Better yet would be to have the WebView in a dynamic fragment with
setRetainInstance(true). Passing a widget between activity instances
requires some patch-up work to avoid memory leaks -- you're better
served letting existing Android code handle that.

On Thu, Jan 19, 2012 at 5:15 PM, TreKing <[email protected]> wrote:
> On Wed, Jan 18, 2012 at 11:07 AM, IndianDragon <[email protected]>
> wrote:
>>
>> How to retain the form data in the webview after the change
>> the orientation ?
>
>
> Not sure if it's the best solution, but you could use
> onRetainNonConfigurationInstance() to keep the same WebView instance alive
> across Activity changes.
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

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

Reply via email to