Hallo,
my App uses a WebView. If the Webview is laoded by:

mwebView.loadData(htmlString, "text/html","utf-8");

all worked fine, including saveState and restoreState in
onSaveInstanceState () and onRestoreInstanceState().

I added images to htmlString. Therefore I had to replace loadData by

mwebView.loadDataWithBaseURL(baseUrl, htmlString, "text/html","utf-8",
null)

where baseUrl contains the images, which are included in htmlString by
the <img>-tag.

The text and the images are displayed.
But the view is not restored in onRestoreInstanceState(Bundle
savedInstanceState) by

mwebView.restoreState(savedInstanceState);

Any suggestions?

BTW, savePicture() and restorePicture(), what are they good for?

Regards
Bost

-- 
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

Reply via email to