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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -