Search code examples
androidconfigurationconfiguration-files

Android configuration file


What is the best way and how do I set up a configuration file for a application?

I want the application to be able to look into a text file on the SD card and pick out certain information that it requires.


Solution

  • You can achieve this using shared preferences

    There is a very detailed guide on how to use Shared Preferences on the Google Android page https://developer.android.com/guide/topics/data/data-storage.html#pref