Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-03-07 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-03-07 (UTC)."],[[["Android `WebView` has limitations with click behavior, like opening links in external browsers instead of within the app."],["This guide provides steps to optimize click behavior by overriding `shouldOverrideUrlLoading()` in your `WebViewClient`."],["You can customize click handling to open links in external browsers, Custom Tabs, or within the `WebView` itself, based on the target URL."],["The code examples demonstrate how to implement this functionality in both Java and Kotlin."],["Test your implementation using the provided test page to ensure links open as intended and the web view state is preserved."]]],[]]