Skip to content Skip to sidebar Skip to footer

How To Reset An Application States When Upgrading From The Market

As a developer, I have applications already published on the market. When users download the new version, I want the application to clean its states ( SharedPreferences , SQLite sc

Solution 1:

To your question, you should be able to trigger a database update using SQLiteOpenHelper OnUpgrade (change DATABASE_VERSION in your class) and either call a function from there to clear the preferences or add a flag to the db for this and do it in your main program.


Post a Comment for "How To Reset An Application States When Upgrading From The Market"