Thursday, August 16, 2012

Saving/Restoring Math Pro database

Below procedure is used for restoring / taking backup of the application data (for ex. Results History for Math Pro) in HP TouchPad. 

Manual Procedure:

The application database is stored in a sub-folder of the /media/internal folder on your webOS device. The folder is called .app-storage, and you can access it directly in USB mode. You can copy the database to your PC, and then restore it to the new device as follows:

Connect your TouchPad to the PC in USB mode. The .app-storage subfolder is hidden by default, but you can use Windows Explorer’s “view hidden files and folders” feature to see it.  The database will be in a directory called:
file_.media.cryptofs.apps.usr.palm.applications.com.petzapps.mathpro_0
In that directory will be a file with a name like:
0000000000000008.db
The actual numbers may vary, but there will be a .db file. That is your application data. Copy that file to your PC.
Once the profile is restored by Palm, you can install Math Pro (make sure it’s the same version that was on your old device). It will create a database in the same location (/media/internal/.app-storage/…
IMPORTANT: The new database may not have the same name. For instance instead of 0000000000000008.db, it might be 0000000000000022.db.
Rename the database from the OLD device to the database name that math Pro is using on the new device. Make sure the app is not running. Copy the renamed database onto the new device into the Math Pro database directory:
file_.media.cryptofs.apps.usr.palm.applications.com.petzapps.mathpro_0
When you next run math Pro, your Results History data should be visible.