I see. Is there any way you can think of that will enable me to set the orientation per displayed tab (without wrecking havoc)? Thanks again for all the help!
On Mar 19, 7:59 am, Dianne Hackborn <[email protected]> wrote: > When you call setRequestedOrientation(), your activity will be restarted in > the new orientation. During that time you could very well end up calling it > with a different value while initializing. You might try putting > breakpoints wherever you call it and seeing why it is being called. > > > > On Wed, Mar 18, 2009 at 10:30 PM, Uri.Kanonov <[email protected]> wrote: > > > Thank you for the quick response. > > > If that's not possible then is it possible to merely change > > orientation when switching to a Tab and to switch back to another > > orientation when leaving that tab? > > I tried to implement that behavior by using the > > "setRequestedOrientation" method of Activity in the onCreate method of > > the activities displayed in my tabs but I seem to have gotten the > > device stuck in an infinite loop of orientation switches. I'm not sure > > why that happened as after all only one onCreate method should've been > > called when accessing a single tab. > > > On Mar 19, 2:49 am, Dianne Hackborn <[email protected]> wrote: > > > No it is not, sorry. The orientation applies to the entire display, and > > > tabs are not considered at all. > > > > On Wed, Mar 18, 2009 at 3:19 PM, Uri.Kanonov <[email protected]> > > wrote: > > > > > Anyone? > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support. All such questions should be posted on public > > > forums, where I and others can see and answer them. > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

