- Android library to show «Rate this app» dialog
- Related tags
- Update build dependencies
- Update RateThisApp.java
- How to add a «Rate My App» dialog to an Android Application using the Android Five Stars Library
- 1. Install Android Five Stars Library
- 2. Implementation
- Full example
- Top 5: Best Rate My App Dialog Widgets For Android
- 5. Rating Request
- 4. Android Rate
- 3. Android RateThisApp
- 2. Gene-rate
- 1. Smart App Rate
- Honorable mentions
- AndroidMaterialAppRating
- Android Rate App Example
- ‘Rate Our App’ Dialog Scenarios
- Track Launch Count
- Android rate this app dialog
- About
Android library to show «Rate this app» dialog
Related tags
Overview
Android-RateThisApp is an library to show «Rate this app» dialog.
The library monitors the following status
- How many times is the app launched
- How long days does it take from the app installation
and show a dialog to engage users to rate the app in Google Play.
NOTICE: From 1.0.0, group ID has been changed from com.kobakei to io.github.kobakei .
Call RateThisApp.onCreate(Context) and RateThisApp.showRateDialogIfNeeded(Context) in your launcher activity’s onCreate() method.
That’s all! You can see «Rate this app» dialog at an appropriate timing.
In default, the dialog will be shown when any of the following conditions is satisfied.
- App is launched more than 10 times
- App is launched more than 7 days later than installation.
If you want to use your own condition, please call RateThisApp.init(Configuration) in your Application or launcher activity onCreate method.
You can override title, message and button labels.
In default, rate button navigates to the application page on Google Play. You can override this url as below.
Opt out from your code
If you want to stop showing the rate dialog, use this method in your code.
You can receive yes/no/cancel button click events.
Contribute this project
If you want to contribute this project, please send pull request. In present, I need contributors who can translate resources from English/Japanese into other languages.
Issues
Update build dependencies
This updates Gradle wrapper to 2.14.1 and all Android deps to 24 . [UPDATE See below: PR now contains more recent dependencies] [UPDATE 2] PR now includes latest Gradle wrapper 3.3 and latest Android build tools.
Update RateThisApp.java
Add new options to change title of later , No,Thanks , Rate Now buttons
Источник
How to add a «Rate My App» dialog to an Android Application using the Android Five Stars Library
Carlos Delgado
Learn how to add a rate my Application dialog on your android application.
As developers, we love to know the opinion of the users about our creations. Usually, an user won’t share his oppinion publicly because of time, lazyness etc. however this is important for us, so if they won’t qualify your application on the Play Store, they should at least qualify the application internally, where you can of someway know what the user thinks about your app. If you are looking for some kind of dialog that allows the user to give some stars to your apps, then you have found the right post !
In this article, we’ll show you how to install and implement the Android Five Stars library in your Android Application.
1. Install Android Five Stars Library
Android Five Stars Library is a small library that helps developer add a «Rate My App» dialog to their applications. It’s called «Five Stars» because the dialog has a different behaviour based on the rating given by the user. The library requires that you have the minSdkVersion set to 15 in your build.gradle file. Modify your build.gradle file and add the new library:
After updating the file, synchronize your Android project. For more information about this library, please visit the official repository at Github here.
2. Implementation
After the installation, the implementation of the library in your application will be pretty easy. As first step, include the required namespaces in the class where you will execute the dialog:
Then, proceed to display the dialog with the following snippet:
Note that the class that contains the code needs to implement the NegativeReviewListener and ReviewListener classes in order to use this as context of the setNegativeReviewListener and setReviewListener methods e.g:
Otherwise you will need to pass a new instance of a class that implements the mentioned classes and contains the 2 methods that work as callback for the dialog according to the user selection:
Now everytime the snippet is executed it will evaluate if it should be shown according to the value provided in the showAfter method. The library is very simple, just note that:
- When the user tap OK or NEVER the dialog will not show again
- When the user tap NOT NOW the access counter will be reset and the dialog will be shown again after the selected times.
- If the user gives 4 or 5 stars out of 5, the user is sent to the Google Play Store page to give an actual rating.
- If the user gives 3 or less stars out of 5, the user is asked to send a bug report to the developer.
Full example
The following class provides a full example of a working application that uses the library:
The Android Five Stars Library uses internally the android SharedPreferences class to store the number of times that the snippet to show the dialog is executed ( showAfter method).
Источник
Top 5: Best Rate My App Dialog Widgets For Android
See our review from 5 of the Best Rate My App Dialog Widgets For Android.
Every developer loves to have some attention . at least not personally, but for our code. As a mobile developer, you would like to promote the rating of your application. Normally an user will ignore the request of rating your application on the Play Store a lot of times, but if you are persistent enough, you may succeed.
In this top, we will share with you 5 of the most useful components for android to implement a call-to-action dialog to rate your application on the Play Store.
5. Rating Request
RatingRequest library is a simple android dialog for request rating and review. Displaying the dialog is so easy as using the following code:
4. Android Rate
AndroidRate is a library to help you promote your Android app by prompting users to rate the app after using it for a few days. Project based on Android-Rate by Shintaro Katafuchi. Default options of the Rate Dialog are as below:
- Google Play launches when you press the positive button. Change via AppRate#setStoreType(int) , AppRate#setStoreType(int, long) , AppRate#setStoreType(String. ) or AppRate#setStoreType(Intent. ) .
- App is launched 10 or more days later than installation. Change via AppRate#setTimeToWait(long, short) or AppRate#setInstallDays(byte) .
- App is launched 10 or more times. Change via AppRate#setLaunchTimes(byte) .
- App is launched 1 or more days after neutral button clicked. Change via AppRate#setRemindTimeToWait(long, short) or AppRate#setRemindInterval(byte) .
- App is launched 0 or more times after neutral button clicked. Change via AppRate#setRemindLaunchesNumber(byte) .
- Each launch (the condition is satisfied if appLaunches % param == 0). Change via AppRate#setSelectedAppLaunches(byte) .
- App shows the Neutral button («Remind me later»). Change via setShowLaterButton(boolean) .
- Unlimited occurrences of the display of the Rate Dialog within a 365-day period. Change via AppRate#set365DayPeriodMaxNumberDialogLaunchTimes(short) .
- Don’t re-enable the Rate Dialog if a new version of app with different version code is installed. Change via AppRate#setVersionCodeCheck(boolean) .
- Don’t re-enable the Rate Dialog if a new version of app with different version name is installed. Change via AppRate#setVersionNameCheck(boolean) .
- Setting AppRate#setDebug(boolean) to true ensures that the Rate Dialog will be shown each time the app is launched. This feature is for development only!.
- There is no default callback when the button of Rate Dialog is pressed. Change via AppRate.with(this).setOnClickButtonListener(OnClickButtonListener) .
3. Android RateThisApp
The library monitors the following status:
- How many times is the app launched
- How long days does it take from the app installation
and show a dialog to engage users to rate the app in Google Play. In default, the dialog will be shown when any of the following conditions is satisfied.
- App is launched more than 10 times
- App is launched more than 7 days later than installation.
If you want to use your own condition, please call RateThisApp.init(Configuration) in your Application or launcher activity onCreate method.
2. Gene-rate
Generate a better rating for your Android app! It is easy to present your users with a dialog begging for a 5-star rating, but it takes a bit more attention to do it right. This small library takes away the boiler plate and makes it easy to ask for a rating the friendly way.
1. Smart App Rate
- Auto fetches the app icon to appear on top of the dialog
- Make the dialog appear on a defined app session
- Opens Feedback form if the user rates below the minimum threshold
- Extracts the accent color from your app’s theme
- Customizable title, positive button and negative button texts
- Customizable button colors and backgrounds
- Override dialog redirection to Google Play or Feedback form according to your needs
If you want the dialog to appear on the Nth session of the app, just add the session(N) to the dialog builder method and move the code to the onCreate() method of your Activity class. The dialog will appear when the app is opened for the Nth time.
Honorable mentions
AndroidMaterialAppRating
This library allows to use customized Rating Dialog inside applications.
- custom styles for dialog’s background, stars, title, description, hint
- custom rating scope (number of stars)
- note descriptions below rating bar, which describes each note
- defining custom dialog’s title, description and hint
- defining text for positive, negative and neutral button
- enter/exit window animation
If you know another awesome library for android to implement a rate my app widget, please share it with the community in the comment box.
Источник
Android Rate App Example
You want feedback about your app so you know what is working and what is not. You may also want the users to rate your app.
In this article, we will show you how to create a ‘Rate our App’ dialog that lets them either rate or give you a feedback.
‘Rate Our App’ Dialog Scenarios
We want the ‘Rate our App’ dialog to take care of the following choices:
- Rate App – On selecting this, user will be taken to app’s listing in the user’s Google Play store.
- Feedback – This is useful if the user is not happy with your app and would like to give you some feedback instead of opting for a negative review in app store.
- Later – This is useful in case user wants to rate it some other time.
Track Launch Count
Ok, now we know what choices we want to show in the Rate our App’ dialog but about the ‘when’ part, when should we show it?
User can rate your app only when the app has been tried few times which means we need to keep track of the launch count. We can either hard code the launch count or provide a setting which allows them to decide when they are ready to rate. In this example, we have hard coded the launch count to 3. The main layout shows the launch count (for the sake of example) so we know when the dialog will show up.
We will store the launch count in shared preferences. Whenever user launches the app, we will increment the launch count. If the launch count is 3, we will create the ‘Rate our App’ dialog and show.
The rating dialog consists of three buttons:
- Positive – Rate app in play store.
Intent.ACTION_VIEW is the intent action you will use if you want to display some data to the user. Based on the context, it will know what to display.
For opening the feedback dialog, we will rely on Android’s inbuilt mechanism, another special intent Intent.ACTION_SEND which is used when we want to send information to another activity.
The intent’s type message/rfc822 indicates that we want to send email. Android will display all the installed applications with a filter that matches ACTION_SEND and intent type. If more than one application matches, the system displays a disambiguation dialog (a “chooser”) that allows the user to choose an app. We have called Intent.createChooser() to pass our SEND intent. This is to make sure that a chooser is displayed even if the user has previously selected a default action for this intent.
Here is preferences class to track the launch count and store the info of whether the app is already rated.
Источник
Android rate this app dialog
Android-Rate is a library to help you promote your android app by prompting users to rate the app after using it for a few days.
You can download from maven central.
Android-Rate provides methods to configure its behavior.
The default conditions to show rate dialog is as below:
- App is launched more than 10 days later than installation. Change via AppRate#setInstallDays(int) .
- App is launched more than 10 times. Change via AppRate#setLaunchTimes(int) .
- App is launched more than 2 days after neutral button clicked. Change via AppRate#setRemindInterval(int) .
- App shows neutral dialog(Remind me later) by default. Change via setShowLaterButton(boolean) .
- To specify the callback when the button is pressed. The same value as the second argument of DialogInterface.OnClickListener#onClick will be passed in the argument of onClickButton .
- Setting AppRate#setDebug(boolean) will ensure that the rating request is shown each time the app is launched. This feature is only development!.
Clear show dialog flag
When you want to show the dialog again, call AppRate#clearAgreeShowDialog() .
When the button presses on
Set custom view
If you want to use your own dialog labels, override string xml resources on your application.
Android-Rate currently supports the following languages:
- English
- Czech
- German
- Spanish
- Basque
- Persian
- French
- Italy
- Hebrew
- Japanese
- Korean
- Polish
- Portuguese
- Russian
- Turkish
- Ukrainian
- Vietnamese
- Chinese
Android-Rate supports API level 9 and up.
Please try to move the sample.
- Fork it
- Create your feature branch ( git checkout -b my-new-feature )
- Commit your changes ( git commit -am ‘Added some feature’ )
- Push to the branch ( git push origin my-new-feature )
- Create new Pull Request
About
Android-Rate is a library to help you promote your android app by prompting users to rate the app after using it for a few days.
Источник