Skip to content
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.
Java
Branch: master
Clone or download
Angtrim Merge pull request #19 from sssolammm/master
Issue #18 - enable/disable buttons from Dialog
Latest commit 7cceecd Nov 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Enable setting button texts, align message with title. Dec 17, 2018
fivestarslibrary
gradle/wrapper Enable setting button texts, align message with title. Dec 17, 2018
sampleapp
.gitignore 1. Update gradle version to 3.1.3 Jul 24, 2018
README.md
build.gradle
gradle.properties Library Ready Sep 12, 2015
gradlew
gradlew.bat Library Ready Sep 12, 2015
screen.jpeg
settings.gradle

README.md

Android Five Stars Library

Android Five Stars Library is a small library that helps developers 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.

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.

If "Force Mode" is activated, when the user selects 4/5 stars, he is immediately redirected to the Play Store, without asking for a confirm. :D

Preview

preview

Installation

To use the library, first include it your project using Gradle

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

dependencies {
        compile 'com.github.Angtrim:Android-Five-Stars-Library:v3.1'
}

How to use

To use this library just add this snippet in the onCreate of your activity.

The showAfter(int numbersOfAccess) method tells the library after how many access the dialog has to be shown.

Example:

        FiveStarsDialog fiveStarsDialog = new FiveStarsDialog(this,"angelo.gallarello@gmail.com");
        fiveStarsDialog.setRateText("Your custom text")
                .setTitle("Your custom title")
                .setForceMode(false)
                .setStarColor(Color.YELLOW)
                .setUpperBound(2) // Market opened if a rating >= 2 is selected
                .setNegativeReviewListener(this) // OVERRIDE mail intent for negative review
                .setReviewListener(this) // Used to listen for reviews (if you want to track them )
                .showAfter(0);

Features

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.

Used by

If you use my library, please tell me at angelo.gallarello [at] gmail [dot] com. So I can add your app here!

License

Do what you want with this library.

You can’t perform that action at this time.