Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open Android Play Store settings page programmatically

I want to open Play store Setting page.though I know how to open play store

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

but I want to open play store setting(to redirect user to auto update option) page that look like this image

enter image description here

How to do this.Is there any intent for this?

like image 758
Atul Bhardwaj Avatar asked Jul 27 '26 16:07

Atul Bhardwaj


1 Answers

You can do that using this :

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();
    }
like image 145
Sriram C G Avatar answered Jul 30 '26 08:07

Sriram C G



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!