I have never done this, but I can think of two options.
You can write the code to validate the trial activation code and include it in the application. Then the application with verify the key and store the activation date in a persistent object (as mentioned above). If someone then enters a permanent activation code, the application validates it and removes the persistent object.
My second idea requires a web service that the BB Application can use to validate the key. This method requires more work, but it seems more secure as the key validation logic isn't deployed with the application. This method also gives you ability to de-activate a permanent activation code if it starts being abused.
|