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

Java Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 22
Registered: ‎07-28-2008
My Device: Not Specified

Retaining persistent data after application deletion

I initialize my persistent data in a static object in the same class that creates the fields for the user interface.

I found a posting that states " If you would like your data to remain on the device after your application is removed then you would want to leverage a system class (like hashtable)...", whereby a class of my creation extends a system class. Do I move the code from the static object to a class that extends String? I want to insure that the persistent data is retained in the event the cod file gets deleted or I update my application with another cod file. Any and all advice would be welcomed.

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

Re: Retaining persistent data after application deletion

Please see the following link.


How To - Handle stored data when removing an application
Article Number: DB-00424



As long as your persistent data is compatible with the new application you are installing, it should remain on the BlackBerry when the user upgrades your application.  If it has changed, the user will receive the error outlined here.


Support - Unspecified error encountered [J:0x00000011] when upgrading a third-party application
Article Number: DB-00446


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.