Auto update db schema with existing Android app

I have published an earlier version of my app on Play Store which had no db. Now I made a lot of changes as per the requirements and added several tables in my app.

I just want to confirm when I push this new app on Play Store, do all my existing users will easily open the app or they will get FC as there is no db exists in their app?

Please suggest me what will happen and what should I do to not let my users facing FC.



As in your previous app you have not set database, so just initialize your database on your first screen like in splash screen. So as soon as user will start application first database will be created and then app will start so there will not be any kind of issue or app crash scenario user will face.

Use a class derived from SQLiteOpenHelper, which automatically manages creating or updating the database when needed.

Also see When is SQLiteOpenHelper onCreate() / onUpgrade() run? (which is not your problem).

Need Your Help

Creating an array from variable names

php arrays model-view-controller symfony

When writing controllers for Symfony 2, I often need to pass quite a few variables to the template like return array('param1' => $param1, 'anotherBigParam' => $anotherBigParam, 'yetAnotherPar...

Spring boot Test with non-Spring Boot Application

java spring-mvc spring-boot

I have an application using Spring MVC 4, and not using any spring-boot-starter-* dependencies. i.e, I don't have that class with a main method calling I'm configuring all by