How to open App info Page of Android System WebView in Android

Viewed 374

My App is crashing when user does not have Android System WebView enabled in Android 10 and Android 11.

So I decided to show a Dialog to users that tells them that the Android System WebView is disabled and they need to enable it.

In the dialog box I have an error text and a button. I want to open this error page when user clicks the button on the Dialog.

enter image description here

My Questions are

  1. Is it even possible to open this page from my Activity ?
  2. If yes then how ?
1 Answers

Hi it's possible to open that view using code. This is java version

Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package", "com.google.android.webview", null);
intent.setData(uri);
startActivity(intent);
Related