Greetings all, I have a problem with the Back navigation within my web-view.
Here is what I would like to have: On the device there is a database containing some web-pages. The User is able to search the content of the database and view the stored pages. Those pages contain some links. If the user clicks on one of those links the click is intercepted. If the reference set within this link is also part of the database, the stored content is displayed, otherwise a remote URL is loaded. This works great so far, but the problem I have is, that when I want to do a back navigation, always the address for my remote location is displayed and the method for searching the local database is not shown. The data from my content provider is displayed with the method: <code> public void showContent(ByteArrayOutputStream content, String title) { if (activity!=null) activity.setTitle(URLDecoder.decode(title)); // loadData(content.toString(), MIME_TYPE, DEFAULT_ENCODING); loadDataWithBaseURL(BASE_URL + title, content.toString(), MIME_TYPE, DEFAULT_ENCODING, REMOTE_URL + title); } </code> I implemented my own WebViewClient and overloaded the method ' shouldOverrideUrlLoading' to intercepted the loading of the requested URL. There I parse the URL and – call 'showContent' of my WebView to displayByteArrayOutputStream stored within my database, otherwise I load the the URL directly by calling 'loadUrl' of the WebView. On back navigation, the method shouldOverrideUrlLoading is not called or the URL is formated differently so I could not read the correct data from the database. If needed, I can provide a test-application that shows what I mean, but I hope this will suffice. Thanks for your help beforehand, Aracos --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---