I have some files that need to use by my application when it is on the device.
Right now, I can only done this by copy those files and paste it into device directly
by using computer manually.
So is there any way to pack or copy these files into apk and when installing on the device, and
The program will paste them to specify folder in the device automatically
The files that I want to pack are the model for sphinx speech recognition
Thank.
You can place the files in the /assets directory of your project, which will build it directly into the apk, and then access the file to copy it or whatever you need using the
getAssets()method on aContextobject at runtime: