I am trying to find out, where should I keep text files in my Android project and how to refer their location in the code.
I kept my files under the main project directory and referred in the file as /sample.txt. but this did not work.
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.
I would store it in the assets folder and reference it by using something like
Activity.getAssets().open(sample.txt)