android: reading a text file all at once from res/raw

Post on 22-Jan-2016

46 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Android: Reading a text file all at once from res/raw. Right click on the res folder, choose New/Folder. Name the new folder raw and click Finish. Copy the file (use naming convention: a-z0-9_.), right click on the raw folder and select paste. - PowerPoint PPT Presentation

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

top related