Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment

Reply
Developer
Posts: 67
Registered: ‎02-05-2012
My Device: Classic
My Carrier: T-Mobile
Accepted Solution

How to test an Upgrade scenario for a Cascades application with a database?

I'd like to make sure I don't wipe out the users data when I release updated versions of my applications. Is there any documentation available explaining an upgrade Lifecycle? I'd like to run a few test upgrades once I understand this process.

 

When I search the forums for 'upgrade' I tend to see messages around updating the BB SDK itself rather than App Upgrade scenarios.

BlackBerry Development Advisor
Posts: 15,083
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How to test an Upgrade scenario for a Cascades application with a database?

How are you storing your data?  Anything stored in the data folder remains between upgrades.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 67
Registered: ‎02-05-2012
My Device: Classic
My Carrier: T-Mobile

Re: How to test an Upgrade scenario for a Cascades application with a database?

I'm storing data in a SQLite database in the data folder.

 

Is there anyway I can 'simulate' an upgrade? Or does that happen every time I hit the Run button in the Momentics IDE?

BlackBerry Development Advisor
Posts: 15,083
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How to test an Upgrade scenario for a Cascades application with a database?

You can simulate this.  First, export a signed release build.  To do so right click on your project, choose Export -> BlackBerry -> Release Build.  The BAR file should show up in your project in the folder you selected with the version of the app in the file name.  Right click on this bar file and choose BlackBerry -> Install.  This will install a signed release build onto your device.

 

Then, increment the version number in your application and follow the same process above to install the newer version.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 67
Registered: ‎02-05-2012
My Device: Classic
My Carrier: T-Mobile

Re: How to test an Upgrade scenario for a Cascades application with a database?

Thanks!