Ryan launch app run using debugger in Eclipse and post the debug log.. Several of us are developing apps using Webview, I am and several others so the better feedback we can give each other via this list and others helps lift all our webview skills at once :)
On Jan 12, 3:19 pm, Ryan <ryankelly...@hotmail.com> wrote: > Hi, > > When I use the WebView.loadData function from a sring returned from > XMLPullParser.nextText, the WebView always displays the following > error message:- > > Web page not available > The Web page at data:text/html;utf-8... > might be temporarily down.. > > However, if I hard code the same text into the loadData function all > appears fine. > > My code for parsing the XML is very similar to the api example, which > I have copied below:- > > public String getHTMLDescription(InputStream xmlData) throws > XmlPullParserException, IOException { > String html = new String(); > InputStreamReader reader = new InputStreamReader(xmlData, "UTF-8"); > BufferedReader buffer = new BufferedReader(reader); > > XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); > factory.setNamespaceAware(true); > XmlPullParser xpp = factory.newPullParser(); > > xpp.setInput(buffer); > int eventType = xpp.getEventType(); > while (eventType != XmlPullParser.END_DOCUMENT) { > if(eventType == XmlPullParser.START_TAG) { > if(xpp.getName().compareTo("description") == 0) { > html = xpp.nextText(); > } > eventType = xpp.next(); > > } > > return html; > > } > > Any ideas? > > Thanks, > > Ryan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---