+ All Categories
Home > Documents > Android: Reading a text file all at once from res/raw

Android: Reading a text file all at once from res/raw

Date post: 22-Jan-2016
Category:
Upload: tuyet
View: 38 times
Download: 0 times
Share this document with a friend
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
Popular Tags:
7
Android: Reading a text file all at once from res/raw 1
Transcript
Page 1: Android: Reading a text file all at once from res/raw

Android: Reading a text file all at once

from res/raw

1

Page 2: Android: Reading a text file all at once from res/raw

Right click on the res folder, choose New/Folder

2

Page 3: Android: Reading a text file all at once from res/raw

Name the new folder raw and click Finish

3

Page 4: Android: Reading a text file all at once from res/raw

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.

Page 5: Android: Reading a text file all at once from res/raw

Design has a Button and a TextView to display the results

5

Page 6: Android: Reading a text file all at once from res/raw

Code for reading text file in res/raw all at once

6

Page 7: Android: Reading a text file all at once from res/raw

Result:

7


Recommended