如何以编程方式打开Android Play商店设置页面

Atu*_*waj 2 android android-intent google-play-services

我想打开Play商店设置页面.虽然我知道如何打开游戏商店

final String appName = "";
        try {
            startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+appName)));
        } catch (android.content.ActivityNotFoundException anfe) {
            startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id="+appName)));
    }
Run Code Online (Sandbox Code Playgroud)

但我想打开看起来像这个图像的播放商店设置(将用户重定向到自动更新选项)页面

在此输入图像描述

怎么做.这有什么意图吗?

Sri*_*C G 6

你可以这样做:

try {
      Intent intent = new Intent("com.google.android.finsky.activities.SettingsActivity");
      intent.setClassName("com.android.vending", "com.google.android.finsky.activities.SettingsActivity");
      startActivity(intent);
    }
    catch(Exception e) {
      e.printStackTrace();
    }
Run Code Online (Sandbox Code Playgroud)