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

Java Development

Reply
Developer
ldbbdevelopervn
Posts: 80
Registered: ‎03-19-2009
My Device: Not Specified
Accepted Solution

How to store register info safely ?

[ Edited ]

Some require for my app :

- When delete app, register info is still remain

- When update app, register info is intact

I have try with PersistentStore but I still want to refer idea of expert for a best solution. Thanks very much ! :smileyindifferent:

Message Edited by ldbbdevelopervn on 07-30-2009 02:21 PM

PPCLINK Blackberry Team
The Best Software for Smartphone World.
Website : www.ppclink.com
Please use plain text.
Developer
ldbbdevelopervn
Posts: 80
Registered: ‎03-19-2009
My Device: Not Specified

Re: How to store register info safely ?

Help me. Thanks !

PPCLINK Blackberry Team
The Best Software for Smartphone World.
Website : www.ppclink.com
Please use plain text.
Developer
simon_hain
Posts: 16,216
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to store register info safely ?

if the info has to remain you have to use a predefined class to store your information, as String, Boolean, Integer... or Vector, Hashtable etc.
If you put an own class into the store that implements Persistable the store will get deleted if you remove the application.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
ldbbdevelopervn
Posts: 80
Registered: ‎03-19-2009
My Device: Not Specified

Re: How to store register info safely ?

Thanks simon_hain for your reply. But in APIDocs: "Every object that can persist between handheld resets must implement persistable". If my app not implement Persistable and use predefined class to store my app data, are you sure my app data is maintain when restart device. Please, show me more detail If you can. Thanks very much !:smileyindifferent:


PPCLINK Blackberry Team
The Best Software for Smartphone World.
Website : www.ppclink.com
Please use plain text.
Developer
simon_hain
Posts: 16,216
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to store register info safely ?

some classes already implement persistable. the ones i mentioned for example. see the API for details.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
ldbbdevelopervn
Posts: 80
Registered: ‎03-19-2009
My Device: Not Specified

Re: How to store register info safely ?

Thanks simon_hain ! :smileyindifferent:

PPCLINK Blackberry Team
The Best Software for Smartphone World.
Website : www.ppclink.com
Please use plain text.