Sometime back I had put a query in the forum regarding the fact that I want to develop an application (trial version) which works only for 3 days (say). After that it should not work. I am giving the thread for reference
Now I implemented the idea of yucca in the following way
1) modify a file (say file1) at application startup. Generate a file (say file2) containing the timestamp of creation of file1 if file1 is created for the first time[to keep the time of the first run of the application]
2) Fetch the time of last modification of file1.
3) Calculate the diiference in time between the value stored in file2 and the value fetched from step2.
4) If the difference is more than 3 days then expire.
But I am facing one problem in this. If the user alters the system date of the phone after say 2 days(since the first run of the application) and reverts the date back by two days(say), this logic will fail and the software expiry will not happen properly.
I want to know how I can develop a full blown system so that even if someone alters the system date and time, the software will expire exactly after 3 days(say) since the first run.
Please help me out.
thanks and regards,