OK so I have pretty much finished my app. Now I want to make it a trial version by times of use. What I was thinking was store a number (say 30) and a purchased=true/false into the registry then when the app is opened it takes one away from the count. As long as the true/false reads false then it will look at the number. When the number reaches zero, the app would disable itself and throw up a message to buy the app, and give a link to the app store where you could purchase the full version.
This way you could test fully but not have it free. The problem is, as far as I know, the registry doesn't exist the way it does in windows.
I know I could just write a text file and upload it to the SD card but then to override the trial all one would have to do is delete the text doc. I want something that once the app is uninstalled the entry stays resident on the phone. then when reinstalled picks up where it left off. this way no one can just uninstall and reinstall.
So my question is what is the equivalent to the registry in android and how do I write to it on a stock unrooted phone.
This way you could test fully but not have it free. The problem is, as far as I know, the registry doesn't exist the way it does in windows.
I know I could just write a text file and upload it to the SD card but then to override the trial all one would have to do is delete the text doc. I want something that once the app is uninstalled the entry stays resident on the phone. then when reinstalled picks up where it left off. this way no one can just uninstall and reinstall.
So my question is what is the equivalent to the registry in android and how do I write to it on a stock unrooted phone.