RateDialog

Additional

Language
Java
Version
1.0.7 (Apr 19, 2020)
Created
Apr 14, 2017
Updated
Apr 19, 2020
Owner
Marcos Calvo García (marcoscgdev)
Contributor
Marcos Calvo García (marcoscgdev)
1
Activity
Badge
Generate
Download
Source code

Advertising

RateDialog  

An android library to display a rate dialog in an easy way.


Now add the dependency to your app build.gradle file:

implementation 'com.github.marcoscgdev:RateDialog:1.0.7'

Creating the dialog

Show the dialog each 3 days and each 7 launches (default config):

RateDialog.init(this);

Shows the dialog with custom config:

RateDialog.init(this, 2, 0); // daysUntilPrompt, launchesUntilPrompt

You can also get the default config values:

RateDialog.DEFAULT_DAYS_UNTIL_PROMPT
RateDialog.DEFAULT_LAUNCHES_UNTIL_PROMPT

Show the dialog instantly:

RateDialog.showDialog(this);

Creating custom dialog instance

RateDialog rateDialog = new RateDialog(this, "custom_rate_dialog_key");
rateDialog.init();

You can also use custom config

RateDialog rateDialog = new RateDialog(this, "custom_rate_dialog_key", daysUntilPrompt, launchesUntilPrompt);

Show the custom dialog instantly:

RateDialog rateDialog = new RateDialog(this, "custom_rate_dialog_key");
rateDialog.showDialog();

NOTE: Use a different dialog key for each dialog instance.

Custom dialog strings (just override it):

<string name="rate_dialog_title">Rate %s.</string>
<string name="rate_dialog_message">If you enjoy using %s, please help us by rating it. It only takes a few seconds!</string>
<string name="rate_dialog_action_rate">Rate</string>
<string name="rate_dialog_action_never">No, thanks</string>
<string name="rate_dialog_action_later">Later</string>
<string name="rate_dialog_thank_you">Thank you!</string>

See the


sample project to clarify any queries you may have.