Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link to Android Marketplace Review from within the app?

I would like to link to Android Marketplace from within my app so I can send my user to write a review. I already know how to link to the Android Marketplace with a WebView, but this doesn't really set the user up to write a review. I need to open up Marketplace on the device and go to purchase/review page for the app.

like image 692
user189581 Avatar asked Aug 24 '11 17:08

user189581


People also ask

How do I view my reviews on Google Play?

Open Play Console and go to the Ratings page (Ratings and reviews > Ratings). Scroll the page to view the available ratings data, which is described below.


2 Answers

Similar to Tim's answer, but this will take the user directly to your app (rather than search results.

You can read more about the Market Intent here.

Uri marketUri = Uri.parse("market://details?id=" + getPackageName());
startActivity(new Intent.ACTION_VIEW).setData(marketUri);

(Note: Assumes your activity is in the same package as declared in your application's manifest. Otherwise, just hardcode your package instead of using getPackageName())

Edit: Documentation moved to Linking to Your Products. Thanks Chris Cirefice

like image 97
CrackerJack9 Avatar answered Oct 11 '22 09:10

CrackerJack9


            String myUrl = "market://search?q=pname:com.your.package.name";
            Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(myUrl)) ;
            startActivity(i);

This will open up the Market application on the device and show the page for your application(or any app that you give the package name for). As far as I know your user will have to take it from there, I don't think there is anyway to deeplink to the reviews section.

like image 39
FoamyGuy Avatar answered Oct 11 '22 11:10

FoamyGuy