1

webView.canGoBack() not working when using loadDataWithBaseURL()

view story
linux-howto

http://stackoverflow.com – I have a WebView in my application that displays HTML data downloaded from a webpage. Why do I load the HTML rather than the URL alone? Well, in order for me to allow offline search, I download the HTML data and store it on an SQL database. Everything works well, and subsequent calls to loadDataWithBaseUrl() work well, and keep on loading correctly on my WebView, but whenever the user presses the back key, the user is just taken back to the last activity on the stack, rather than going back. I tried using the following code: // Check if the key event was the Back button and if there's hi (HowTos)