Technically, the Activity is shutdown and a new Activity is started for the new orientation. You can prevent orientation changes altogether as Kris stated.
If you do switch to a full Application instead of your Activity, you may be able to store your state outside of your activity so when the landscape view opens it can re-open the webview more or less how it looked before. On Feb 8, 12:34 pm, Kristopher Micinski <[email protected]> wrote: > This is because of what happens when you change orientation. In this case, > your application actually gets restarted. > > You can read about the process a little > here:http://developer.android.com/guide/topics/resources/runtime-changes.html > > There is also a flag you can put in your manifest to force a single > orientation: > > http://stackoverflow.com/questions/582185/android-disable-landscape-mode > > If you want to start things over again after changing orientation you can > save some partially stateful things when the switch happens, you'll have to > decide for yourself... > > kris > > > > > > > > On Wed, Feb 8, 2012 at 10:16 AM, Felipe Valdez <[email protected]> wrote: > > I have a webview that shows an html page, > > this page runsa a javascript > > when I tilt the devce ideways, the webview resets. > > > this behavior is not desired > > > is there a way to: > > > a) make it so it onl works in one orientation > > or > > b) make it so it shows the same view contents, regadless of it's orietation > > > thanks in advance, this is making me pull my hair out! > > > -- > > Felipe Valdez > > +(57) 312 444 2124 > > +(57) 1 4797266 > > > -- > > 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 -- 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

