I want to restrict my app's launch based on the number of times the user has accessed my app in between a particular time interval. So I thought that if I know my app's previous launch, I could achieve it. If there is something else possible , plz someone out there help me..
Asked
Active
Viewed 111 times
1 Answers
0
On your app launch, increment and store a variable in Shared Preferences. Check this at each start.

advantej
- 20,155
- 4
- 34
- 39
-
Can I get an example for that. Bcoz I am totally new to android – Andro Selva Apr 26 '11 at 08:23
-
Anyway. Something is better than nothing. Thanks for your help man. – Andro Selva Apr 26 '11 at 09:57
-
@Andro_Selva See the answer the this question: http://stackoverflow.com/questions/4861379/android-sharedpreferences – advantej Apr 26 '11 at 12:59
-
That was really helpful. I think that I have got what I needed. thanks. – Andro Selva Apr 27 '11 at 04:35