Jamie Bennett wrote: > Hi, > > In my app I need to populate the header fields of a url request to a > server which gives me back html as a response. This is then loaded > into a webview and displayed. > > Currently I'm using HttpPost to send the headers+data and using > loadData() to display the result in a webview. The problem is that the > server can send back dummy urls which are meant to be handled by the > app itself. It seems shouldOverrideUrlLoading() is only available when > you do a loadUrl() and not when a loadData() is called. > > Any idea's how to work around this one?
Try using loadDataWithBaseURL(). If you do not have a base URL to use, supply a fake one (e.g., fake://oh/how/i/wish/this/made/sense). I have never had luck with loadData() -- I always use loadDataWithBaseURL(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

