Hi i am investigating the use of `com.google.accom...
# compose
t
Hi i am investigating the use of
com.google.accompanist.web.WebView
in my current android compose project. I am trying capture when the user clicks on the webview to trigger a new page loaded, then i wish to show the next web page on the devices chrome browser and not in the accompanist webview
i have this code which captures the pageload for both the initial content and "next" page
Copy code
val webViewClient = remember {
    object : AccompanistWebViewClient() {
        override fun onPageStarted(
            view: WebView?,
            url: String?,
            favicon: Bitmap?
        ) {
            super.onPageStarted(view, url, favicon)
            println("xxooxx Page started loading for $url")
        }
    }
}
how do i stop the webview loading the "second" page while i startActivity with a ViewIntent
Copy code
Intent(Intent.ACTION_VIEW, Uri.parse("MySecondPageUrl))
not really a compose or accompanist issue, this is general android.webkit.WebView usage