Skip to content

joeblossom/RateMyApp

Repository files navigation

#RateMyApp for Android RateMyApp allows you to ask your users to rate your app after a specified number of days or launches. (or both) You can also quickly style the dialog box to match your app.

Please Note: This only works with apps downloaded from the Android Market.

##Install Add the following files to your project:

  • RateMyApp.java (from /src/com/RateMyAppDemo/utilities)
  • ratemyapp_dialog.xml (from /res/layout)
  • And the following strings to your strings.xml:
\Rate Now\
\Remind me later\
\No, thank you\

You can change the number of launches or days until prompt in the RateMyApp.java, by updating the variables LAUNCHES_UNTIL_PROMPT or DAYS_UNTIL_PROMPT, respectively. The DAYS_AND_LAUNCHES variable in RateMyApp.java specifies if you want both launches and days requirement to be met before the dialog is shown, or just one.

##Usage RateMyApp rmaTemp = new RateMyApp(this); rmaTemp.app_launched();

When app_launched is called, it will increment the launch counter, check and show the dialog if the correct conditions are met.

You can also do something like the following to open up the dialog whenever you want (no conditions need to be met):

RateMyApp rmaTemp = new RateMyApp(this);
rmaTemp.showRateDialog(null);

The RateMyAppDemoActivity.java (/src/com/RateMyAppDemo/activities) will show an implementation of both.

##Example You can run the sample RateMyApp Demo to see how the dialog works.

##Credits This utility is an extension of http://www.androidsnippets.com/prompt-engaged-users-to-rate-your-app-in-the-android-market-appirater

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages