Upgrade android app without loosing data

A

AC Question

I have a problem, I want to upgrade my app, but I don't too lose the data stored.

The problem is that in my database code I have this:

public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL("DROP TABLE IF EXISTS " + POINTS_TABLE);
db.execSQL("DROP TABLE IF EXISTS " + NETWORKS_TABLE);
onCreate(db);
}
I also thought of all sort of data backup, so I could at least save the data, and then to the upgrade. The problem is I think I just have two options:

a) root the device b) connect via usb

The problem is the device usb does not work. My computers does not seem to recognize it.

Is there anyway to save my data? I already tried applications Astro, Super Backup, Titanium Backup, but all of them requires root. Problem is, I can't root without an usb cable.

My tablet is an Samsung Galaxy Tab 2 7.0. Any tips?
 

Trending Posts

Forum statistics

Threads
943,189
Messages
6,917,712
Members
3,158,868
Latest member
mehammed