Thursday, July 21, 2011

Adding a button to rate your app in the Market

When you publish an application on the Market is usually a great idea to encourge your users to rate it.

The percentage of users who rate applications is usually very low, so putting a button to facilitate the work is one of the best strategies to get a lot of rates.

And it's very simple, basically you must launch an Intent with a url to the market, and it does all the work alone.

public void rate(View view) {
Intent intent = new Intent(Intent.ACTION_VIEW);

Obviously you must change the name for the package, to yours.

And for the button you must include something like this in the view:

And that's all.

Note: If you test launching the market in the Android emulator you will get the following error:

ERROR/AndroidRuntime(230): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.trackeen.sea }

Don't worry, the Market doesn't work in emulators, when you try this code in a real device it will work.


  1. What lines did you have to put in your androidManifest.xml file?

  2. Nothing special. I think the only that must be present is:

  3. You should check if the intent can be handled before launching it. In china or in the amazon kindle for instance, there is no google play and it will probably fail.

  4. How can I know if user has rated the app. So that I don't ask user to rate my app again.

  5. Websoftex Software Solutions Pvt. Ltd is constantly evolving and our developers constantly upgrade their skills to provide our customers proper software solutions in tune with the latest trends and technologies available. Websoftex Microfinance Software the finest and customized software tool for managing your Co-operative Society of any type.driver toolkit serial

  6. Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. Android App Development

  7. So the initial rule of App testing, is usually to check earlier and also obtain the App examined just prior to discharge, preferably by a skilled App tester. Make money

  8. We have professional Android apps developer in India which develop many website in android for clients requirements.