E
E
eegmak2021-07-07 17:54:28
Android
eegmak, 2021-07-07 17:54:28

How to close webview?

How to close webview with loaded url c javascript (free memory, stop javascript)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eegmak, 2021-07-07
@eegmak

did so
override fun onBackPressed() {
val webView: WebView = findViewById(R.id.webview)
webView.destroy()
super.onBackPressed()
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question