I’ve used this tutorial in order to create and populate my own SQLite database for android.
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications
However, using these exact methods mean that the database doesnt upgrade with the following code
private static final int DB_Version = 2;
public DbConnector(Context context){
super(context, DB_Name, null, DB_Version);
this.context = context;
}
In fact the method onUpgrade() is never called 🙁
Grateful for any help
Here is the answer thanks to Joe Masilotti on
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/
Change the constructor to:
Change the
createDataBaseto (thanks @kondortek):Change
onUpgradeto: