Saran
Saran

Reputation: 443

How to open developer page on Google Play Store (market://)

Recently, Google Play lets developers create developer page.

Here is the example : https://play.google.com/store/apps/dev?id=5700313618786177705

I try to find developer page Uri link (market://...) that I can use but I can't find it on Android Developer page. (http://developer.android.com/distribute/tools/promote/linking.html)

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://..."));
startActivity(intent);

Upvotes: 11

Views: 35027

Answers (5)

Merthan Erdem
Merthan Erdem

Reputation: 6068

Kotlin with the developer name instead of the developer Id:

startActivity(Intent(Intent.ACTION_VIEW,
     Uri.parse("https://play.google.com/store/apps/developer?id=MyDeveloperName")))

Upvotes: 0

Houssin Boulla
Houssin Boulla

Reputation: 2869

To open app on google play: you can use:

getContext().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/dev?id=<developer_id>)));

OR

getContext().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://dev?id=<developer_id>)));

Upvotes: -1

Venkatesh Selvam
Venkatesh Selvam

Reputation: 1412

//Method for intent to Google playstore developer page

 private void M_Intent2developerpage() {
       Intent intentdev = new Intent(Intent.ACTION_VIEW);
       intentdev.setData(Uri.parse("market://search?q=pub:Google Inc."));
   //here Developer Name is very case-sensitive . change your developer name as shown in developers page.
       if (!MyStartActivity(intentdev)) {
           intentdev.setData(Uri.parse("https://play.google.com/store/apps/dev?id=5700313618786177705"));
           if (!MyStartActivity(intentdev)) {
               Toast.makeText(this, "Could not open Android Google PlayStore, please install the Google play app.", Toast.LENGTH_SHORT).show();
           }
       }
   }


//Method checks if any problem when Intent

 public boolean MyStartActivity(Intent aIntent) {
        try {
            startActivity(aIntent);
            return true;
        } catch (ActivityNotFoundException e) {
            return false;
        }
    }

Upvotes: 4

Lim Thye Chean
Lim Thye Chean

Reputation: 9474

This works for me:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/dev?id=7809285959465313029")));

Using market URI does not work for me.

Upvotes: 8

Jacko0815
Jacko0815

Reputation: 108

You can simply call market://dev?id=xxx e.g.:

market://dev?id=5700313618786177705

I hope, this suits your needs!

Best, Jacko

Upvotes: 6

Related Questions