Transcript
Android: Reading a text file all at once
from res/raw
1
Right click on the res folder, choose New/Folder
2
Name the new folder raw and click Finish
3
Copy the file (use naming convention: a-z0-9_.), right click on the raw folder and select paste
4
If the file is in the folder but seen in Eclipse, go to Project/Clean or restart Eclipse.
Design has a Button and a TextView to display the results
5
Code for reading text file in res/raw all at once
6
Result:
7