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
New Developer
Posts: 54
Registered: ‎10-07-2008
My Device: Not Specified
Accepted Solution

PersistenceStore Question

Hi!

 

I have a question about Persistence Store. How long does the data is stored? It is stored until neext boot or turn off the device?

 

Does exists an alternative that Persists only when the device is on?  

 

If this alternative does not exists, how can I know if the device has restarted? I´ve checked the API Docs and found anything like that.

 

Thanks for advance!

 

Regards!

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: PersistenceStore Question

Persistent store stores info between device restarts. In common words - it is like a computer hard-drive.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: PersistenceStore Question

[ Edited ]

to know when device is going to powerOff() and powerOn() consider SystemEventListener interface.

 

there are relevant methods to process such events.

 

implement this interface in your application and use addSystemListener() method of Application class.

 

 

Message Edited by tbilisoft on 16-02-2009 05:46 PM
New Developer
Posts: 54
Registered: ‎10-07-2008
My Device: Not Specified

Re: PersistenceStore Question

Thanks for your answer.

 

Let me try with that Interface, i need to delete store before turn off device.

 

Regards,

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: PersistenceStore Question

You're welcome Smiley Happy

 

it works.

Highlighted
New Developer
Posts: 54
Registered: ‎10-07-2008
My Device: Not Specified

Re: PersistenceStore Question

It worked!

 

Just what I needed, I use it to clean the login information persisted, my customer wants for security reasons to ask for login every time is turned on-off the BB.

 

Regards!