1.4k
“Rate This App”-link in Google Play store app on the phone
In this Article I am sharing how to open this app in google play store for rating us my app its a very easy to used rate us in your in your app to use to perfection over an app.
you just design a button and apply these code for review app in google play
“Rate This App”-link in an Android App to open up the app-listing in the user’s Google Play store app on their phone.
- What code do I have to write to create the
market://
orhttp://
-link open in the Google Play store app on the phone? - Where do you put the code?
- Does anyone have a sample implementation of this?
- Do you have to specify the screen where the
market://
orhttp://
link will be placed, and which is the best to use –market://
orhttp://
?
Rating.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { try{ startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id="+getPackageName()))); } catch (ActivityNotFoundException e){ startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id="+getPackageName()))); } } });