My App is crashing when user does not have Android System WebView disabled in Android 10 and Android 11.
So I decided to show a Dialog to user that tells them that the Android System WebView is not enabled and they need to enable it.
In the dialog box I have a Error Text and a button. I want to open this page when user clicks the button.
My Questions are
- Is it even possible to open this page from my Activity ?
- If yes then how ?
CodePudding user response:
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);