Skip to content
Library for android application to implements smart rate dialog
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper
smartrate Landscape design improvements Jun 26, 2019
.gitignore
LICENSE Initial commit Mar 5, 2019
README.md Update README.md Jun 26, 2019
build.gradle
desc.png
description.docx
gradle.properties Initial Commit. Mar 5, 2019
gradlew Initial Commit. Mar 5, 2019
gradlew.bat
preview.jpg
preview2.jpg Fix time between calls Mar 20, 2019
sc.png
sc_1.png
sc_1_sml.png Landscape design improvements Jun 26, 2019
sc_2.png
sc_2_sml.png Landscape design improvements Jun 26, 2019
sc_3_sml.png Landscape design improvements Jun 26, 2019
sc_4_sml.png Landscape design improvements Jun 26, 2019
sc_5.png
sc_6.png
screen shot 2.png
screen shot.png Add files via upload Mar 5, 2019
settings.gradle Version 1 Mar 5, 2019

README.md

SmartRateUsDialog-Android

License API

A library for simple implementation of smart ranking. The user will see a dialog every x time. If the user gives a high score, he will be transferred to the Google store. If he gives a low score, he will only receive a thank you toast message.

Setup

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
	maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency:

dependencies {
	implementation 'com.github.guy-4444:SmartRateUsDialog-Android:1.00.08'
}

Usage

StepProgress Constructor:
// For continual calls - 
SmartRate.Rate(MainActivity.this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Ask me later"
        , "Never ask again"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.parseColor("#2196F3")
        , 4
        , 48
        , 72
);

// For one time call
SmartRate.Rate(MainActivity.this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.parseColor("#2196F3")
        , 4
);

// With Call Back:
SmartRate.Rate(MainActivity.this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.parseColor("#2196F3")
        , 4
        , new SmartRate.CallBack_UserRating() {
            @Override
            public void userRating(int rating) {
                // Do something
                // maybe from now disable this button
            }
        }
);

// Self implement without link to google play store:
// -1 on stars
SmartRate.Rate(MainActivity.this
        , Color.parseColor("#E44643")
        , -1
        , new SmartRate.CallBack_UserRating() {
            @Override
            public void userRating(int rating) {
                Toast.makeText(MainActivity.this, "Rating: " + rating + " Stars", Toast.LENGTH_LONG).show();
                //saveUserRating(rating);
            }
        }
);

device-2018-06-06-144912

What's new

1.00.08:

  1. Landscape design improvements
  2. Cancel button
  3. google play click - new implementation
  4. Fix bugs:
    • first time does't appear
    • 0 hour - now appear

License

Copyright 2019 Guy Isakov

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Credits

5 stars icon: Icon made by Flat Icons (www.flat-icons.com) from www.flaticon.com Google play icon: Icon made by Flat Icons (www.flat-icons.com) from www.flaticon.com

You can’t perform that action at this time.