8000 GitHub - androidsx/rate-me at v2.0.3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

androidsx/rate-me

Repository files navigation

Rate-Me Android Arsenal

Rate Me is an Android 3.0 library that shows dialog to suggest the user to rate the application in the Google Play Store.

With a little twist: if the rating is positive, we take the user to the Play Store directly. Otherwise, we ask him for feedback via email. (This is all configurable.)

Screenshot

How to integrate

Eclipse

  1. Download and extract the ZIP file
  2. Import the sources: File > Import > Existing projects into workspace > Select directory > add LibraryRateMe
  3. Add it as a library: Right click on your project > Android > Library: Add > LibraryRateMe

Gradle

Add this to your project's build.gradle file:

dependencies {
    compile 'com.androidsx:ratemelib:X.Y.Z@aar'
}

You can see the last version in Maven Central

How to use

Have a look at the sample code or check out a simple integration:

new DialogRateMe.Builder(context)
		.setLogoResourceId(R.drawable.ic_launcher)
		.setGoToMail(true)
		.setEmail(getString(R.string.support_email))
		.setShowShareButton(false)
		.build()
		.show(getFragmentManager(), "dialog");

The full list of options is:

new DialogRateMe.Builder(this)
		.setDialogColor(Color.WHITE)
		.setIconCloseColorFilter(Color.DKGRAY)
		.setLineDividerColor(Color.BLUE)
		.setLogoResourceId(R.drawable.ic_launcher)
		.setRateButtonBackgroundColor(Color.BLUE)
		.setRateButtonPressedBackgroundColor(Color.RED)
		.setRateButtonTextColor(Color.WHITE)
		.setGoToMail(true)
		.setShowOKButtonByDefault(false)
		.setEmail("support@yourdomain.com")
		.setShowShareButton(false)
		.setTextColor(Color.BLUE)
		.setTitleBackgroundColor(Color.WHITE)
		.setTitleTextColor(Color.BLUE)
		.build()
		.show(getFragmentManager(), "dialog");

Dynamic opening of the dialog

In case you want the dialog to appear based on the number of times the app has been opened or the install date, have a look at this example:

@Override
protected void onStart() {
	super.onStart();

	final int launchTimes = 3;
	final int installDate = 7;

	RateMeDialogTimer.onStart(this);
	if (RateMeDialogTimer.shouldShowRateDialog(this, installDate, launchTimes)) {
		// show the dialog with the code above
	}
}

License

Copyright 2014 Lucas Ponzoda

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

About

Android library that shows a dialog to let the user rate this app in the Google Play store

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages

0