First, lemme show my string that populates a listview:
static final String[] title = new String[] {
"Temaki Sushi", "Oyakodon", "Okonomiyaki", "Tofu Dango", "Oden",
"Nikujaga", "Yellowtail Teriyaki", "Tendon", "Tonjiru", "Sukiyaki",
};
Now, the question is, instead of hardcoding those items, is there any way to reference the items to an external text file in the res/raw folder? Lets say I have a text file titled titles.txt in raw folder.
yes, you can do it
you should read the text like this
and then split it to array as you like, some thing like this should work
when your write SPLITER between each title