I have an App shipped with an external SQLite database on Play Store. The app works fine but when i did update (change database content) of the App on Google Play, the database still reflects the old one. Please how can I make the App to access the latest database.
Below is my DatabaseOpenHelper code.
public class DatabaseOpenHelper extends SQLiteAssetHelper {
private static final String DATABASE_NAME = "mydb.db";
private static int DATABASE_VERSION = 1;
public DatabaseOpenHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
}
Someone suggest I should change the DATABASE_VERSION to something but the App crashes when I did so.
Aucun commentaire:
Enregistrer un commentaire