Search code examples
androidandroid-contentprovider

Does saving username and password to a flat file with in an android app makes it less secure?


I understand that each app runs within its own sandbox.

  1. If that is the case, is it safe to save credentials in a flat file?

  2. Apart from saving it in the database or over the network what are other options in saving credentials in an app?


Solution

  • You can store application credentials in SharedPreferences in android app instead of store in flat file.