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
Contributor
Posts: 28
Registered: ‎09-28-2011
My Device: 9700 Bold

Trial app

Hello,

 

I want to create a 7 day trial for my app. The problem is I don't have the expertise to create a server which the trial application connects to to check the trial status (ie register first run, check if trial has expired etc). I want to rather make the app create a file somewhere in the device memory to record the date of first install. Where do you suggest I put this file?

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Trial app

PersistentStore.

 

Contributor
Posts: 28
Registered: ‎09-28-2011
My Device: 9700 Bold

Re: Trial app

A persistent store is deleted if the app is uninstalled, so a user could just uninstall the trial and reinstall it to use it indefinitely?
Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: Trial app

"A persistent store is deleted if the app is uninstalled,"

 

Only if it uses a class specific to the application.  If it uses standard RIM classes, it is not deleted. 

Contributor
Posts: 28
Registered: ‎09-28-2011
My Device: 9700 Bold

Re: Trial app

[ Edited ]

peter_strange wrote:

"A persistent store is deleted if the app is uninstalled,"

 

Only if it uses a class specific to the application.  If it uses standard RIM classes, it is not deleted. 



Thanks Peter, what class would you recommend I use? Would just a string be fine?

Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: Trial app

String will work, but I would put a collection class in there, so that you can add to it.  My favorite at the moment is intHashtable.  I used to use Vector.  So add a Collection class, and then add as one of the Collection, the String. 

 

Hope this makes sense.