Database updated in this way:
- Code: Select all
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
if (newVersion > oldVersion) {
Log.e("TAG", "New database version exists for upgrade.");
try {
Log.e("TAG", "Copying database...");
copyDataBase();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
The problem is that I have a table in the database of statistics, I wanted to order the data in this table are copied into the new database.
How do I? Ask for an example.
Regards and sorry for my poor English.

