I tried using webview with dynamic fragment. Yet still I could not achieve what I want. the data is not retained still.
I tried to build a logic based on this example on FragmentRetainInstance (http://developer.android.com/resources/samples/ ApiDemos/src/com/example/android/apis/app/FragmentRetainInstance.html) I read another post on setRetainInstance with webview, here Android Framework developer Dianne Hackborn says it is just not possible !! http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentRetainInstance.html Iam confused, please throw some light :) On Jan 20, 3:19 am, Mark Murphy <mmur...@commonsware.com> wrote: > 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 <treking...@gmail.com> wrote: > > On Wed, Jan 18, 2012 at 11:07 AM, IndianDragon <developerdra...@gmail.com> > > 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 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 > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://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 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