When creating an Android application, I have some files that needs to be stored on the android itself.
How do I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Best place for generic files would be the
assetsfolder.You can access files through the
AssetManager, which you can get withActivity.getAssets()for example.Here is an example how you could access a text file:
For more information on
AssetManagerread the Java Doc. Oh and yes, you can create folders in assets.