Ovuca wrote: > Hello, > > I have set an activity containing a webview which loads a page from > the network. Each time the orientation of the screen changes the > oncreate(...) method is called and the webview reloads its content > again. Is there a way to avoid the webview to reload the web page ? >
Add the attribute "configChanges" in our manifest, it will prevent a new activity to be created when the orientation changes: <activity android:name=".MyActivity" android:label="@string/app_name" android:configChanges="orientation|keyboard|keyboardHidden"> Hope this helps, Sylvain -- Sylvain Wallez - http://bluxte.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---