如何在 Google Play 商店 (market://) 上打开开发者页面

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

最近,Google Play 允许开发者创建开发者页面。

示例如下:https://play.google.com/store/apps/dev?id=5700313618786177705

我试图找到我可以使用的开发者页面 Uri link (market://...),但我在 Android 开发者页面上找不到它。 (http://developer.android.com/distribute/tools/promote/linking.html)

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

你可以直接调用market://dev?id=xxx 例如:

market://dev?id=5700313618786177705

希望这能满足您的需求!

最好, 杰克

这对我有用:

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

使用市场 URI 对我不起作用。

//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;
        }
    }

要在 google 上打开应用程序播放:您可以使用:

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

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

Kotlin 使用开发者名称而不是开发者 ID:

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