BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-05-2008, 08:23 AM   #1 (permalink)
New Member
 
Join Date: Sep 2008
Model: 8800
PIN: N/A
Carrier: cdma
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Upgrade the database

Please Login to Remove!

Hi All,

I want to Upgrade my database for the Current Application. Whenever I want to reinstall the same application.First I have to erase it first and again i have to install it. But I want to rename the database of the application and i want to remove it, next time when i Upload my application into device again i will install the renamed database into my application.
In this way i want to do.But I am not finding the way to do this. Is there any other way to upgrade my application without erasing the database. I don't want to use DesktopManager. Why becoz my customers will download this application via OTA. In that way not possible to keep backup of my database and again restore it into the device.

Please can any one help in this issue. Urgent.


Thanks in advance
Venkat
Offline  
Old 09-05-2008, 08:40 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

If your "database" is "data stored in persistent storage" then it's easy: make sure all the data stored in PS is of a standard type (java.lang.String, java.lang.Integer, any of the classes in the RIM OS, etc.). The data will persist across application removal/re-installation. Data in Persistent Storage is removed when there is no class definition for the objects. If you "serialize" your data by turning it into a String, it will still be available when you remove the application that stored it.
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.