5

If i start up the 'Play Games' icon on the android and goto My Games, i can click on my app to get to the page about it. Is it possible to programatically go here when a user clicks a button in my app?

NOTE: I dont want to open the app on the Google Play Store!, this is the app page in the Game Play Services I want!

Adrian Brown
  • 456
  • 3
  • 14
  • No, i dont want to open the google play STORE, i want to open the google GAME PLAY SERVICE page, please read the question before down grading it – Adrian Brown Mar 04 '14 at 11:21
  • 1
    `startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=com.google.android.gms")));` – Frank Apr 11 '18 at 09:05

2 Answers2

3

Try this http://developer.android.com/distribute/googleplay/promote/linking.html

or

How to open the Google Play Store directly from my Android application?

or

open link of google play store in mobile version android

From second link:

final String appPackageName = getPackageName(); // getPackageName() from Context or Activity object
try {
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName)));
} catch (android.content.ActivityNotFoundException anfe) {
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + appPackageName)));
}
Community
  • 1
  • 1
meir shapiro
  • 685
  • 7
  • 15
-1

If you want to link to your products from an Android app, create an Intent that opens an Google Play URL, as shown in the example below.

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.example.android"));
startActivity(intent);

for More information go through link