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
Posts: 142
Registered: ‎12-15-2008
My Device: Not Specified

Where can I store date/time info in order to make a Trial Version of my software?

I have an app that's ready to be released but I would like to offer a 7 day trial. My plan was to store the date info somewhere on the Storm
that wouldn't get deleted when the app is uninstalled etc etc.

Where or how can I accomplish this?
New Developer
Posts: 38
Registered: ‎01-21-2009
My Device: Not Specified

Re: Where can I store date/time info in order to make a Trial Version of my software?

I don't think that's possible, you would be better off having the phone request a license key from a server over the net, and have the server track which phones have used their trial period or what not.
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Where can I store date/time info in order to make a Trial Version of my software?

You can store anything you want in the Persistent Store.

 

See the API docs for PersistentObject and PersistentStore.

Highlighted
Developer
Developer
Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified

Re: Where can I store date/time info in order to make a Trial Version of my software?

Careful.  If you create a custom class and store an instance of it, when the COD file containing the class is deleted, the persistent store object will also be deleted.    If you store a String you should be OK.