Issue
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.
My Questions are
- Is it even possible to open this page from my Activity ?
- If yes then how ?
Solution
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);
Answered By - logancodemaker

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.