androiddeploymentsharedpreferencesandroid-install-apk

Android: Set Shared Preferences during Installation?


Does Android provide smth. like that OR do I have to check every time during start of my app "Oh, am I freshly installed? Do I have to initialize the Shared Preferences now?"


Solution

  • It is a good idea to check for the preference file existence anyway if you depend on certain critical values.