On Fri, Jan 8, 2010 at 12:23 PM, dolly <[email protected]> wrote: > Hi, > > I am trying to display a webpage as part of a widget, but I am not > able to do so since Remote views do not support adding webview to it. > Can this be done in any other way ? > > Regards, > Dolly >
Appwidgets are quite restrictive in this respect, I guess webviews would probably be far too resource-heavy to keep drawn on the home screen. I'm not aware of a method of rendering HTML directly onto a widget, but depending on your requirements you could use a tool like Jericho (http://jericho.htmlparser.net/) to extract the contents of the webpage, and draw the resulting text and images inside textviews and imageviews. The views could be laid out in a similar fashion to the webpage you want display. If the website is one you maintain yourself, an even better solution would be to expose the page data via a Web service, as it will avoid you having to update your appwidget every time the webpage layout is modified.
-- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

