How can I use back button while loading a page in an Android WebView?

Posted by Sara on Stack Overflow See other posts from Stack Overflow or by Sara
Published on 2010-04-07T08:49:44Z Indexed on 2010/04/07 8:53 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

I have a link in my application that triggers a webview to open from webview.loadUrl(...).

Sometimes it's takes quite a while to load the page, and in these cases I want to be able to use the built in back button on the phone to cancel the loading and go back to my application.

How do I do this? Is there some way I can listen to the backbutton while loading the url?

© Stack Overflow or respective owner

Related posts about android

Related posts about webview