storing a .txt file in android -


i have .txt file in android want read. first stored in raw directory want file in many languages , android read file according language of device. know , how should store file?

store default text file — want use if nothing else matches — in res/raw/ now.

store translations of file other languages in peer directories (e.g., spanish in res/raw-es/).

this how string resources work in res/values-.../ directories. applying technique text files in res/raw-.../ directories.


Comments