Pregunta

Read some articles, but cant find answer: what is the best way to keep android app config and data? It must be a place, when the user press "clear app data" and setting stay available. Data also must be available with first start and dont create by app... Thanks for help and sorry for my bad English)

¿Fue útil?

Solución

you should Prefer SharedPreferences, go through this link you'll get good help http://www.vogella.com/tutorials/AndroidFileBasedPersistence/article.html, and a simple basic Example SharedPreferences

Otros consejos

In case data shouldn/t be created and changed by app it would be easy to create a string-array in res/values/strings.xml and populate it with settings.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top