i was wondering if someone could tell me how to show an alert dialog box that has a "rate this app" button, i want the dialog to show, for example every week or even just once. Any help will be appreciated
Asked
Active
Viewed 670 times
1
-
2To be honest, any app which did this to me would get a rating of 0 and then be un-installed. – Squonk Aug 04 '12 at 20:36
-
1whoever voted down can go to hell – Moussa Aug 06 '12 at 18:03
-
you can use: https://github.com/codemybrainsout/smart-app-rate/ library. – Hammad Nasir Feb 24 '17 at 10:38
1 Answers
1
You can store somewhere (maybe in the database) the date and time of the last time the user saw the alert in the app and check if enough time has passed since then.
If the last time that the alert was shown was more than three days ago, you show the alert, if it is less than three days, you don't.

luanjot
- 1,176
- 1
- 7
- 21
-
You can get the current time like here http://stackoverflow.com/questions/4266263/sqlite-and-inserting-the-current-date-in-utc-format and add it to sql and get the data like they explain here: http://www.vogella.com/articles/AndroidSQLite/article.html – luanjot Aug 04 '12 at 20:42