1
2
public class AppRater {
private final static String APP_TITLE = "YOUR-APP-NAME";
This code prompts engaged users to rate your app in the Android market (inspired by iOS Appirater [2]).
It requires a certain number of launches of the app and days since the installation before the rating dialog appears.
Adjust APP_TITLE and APP_PNAME to your needs.
You should also tweak DAYS_UNTIL_PROMPT and LAUNCHES_UNTIL_PROMPT.
To test it and to tweak the dialog appearence, you can call AppRater.showRateDialog(this, null) from your Activity.
Normal use is to invoke AppRater.app_launched(this) each time your activity is invoked (eg. from within the onCreate method). If all conditions are met, the dialog appears.
#android #rate #users #rateDialog
#cesarnog
It requires a certain number of launches of the app and days since the installation before the rating dialog appears.
Adjust APP_TITLE and APP_PNAME to your needs.
You should also tweak DAYS_UNTIL_PROMPT and LAUNCHES_UNTIL_PROMPT.
To test it and to tweak the dialog appearence, you can call AppRater.showRateDialog(this, null) from your Activity.
Normal use is to invoke AppRater.app_launched(this) each time your activity is invoked (eg. from within the onCreate method). If all conditions are met, the dialog appears.
#android #rate #users #rateDialog
#cesarnog
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.