[android-developers] Re: Set Screen Orientation of a Tab
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 hack...@android.com 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 urikano...@gmail.com 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 hack...@android.com 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 urikano...@gmail.com wrote: Anyone? -- Dianne Hackborn Android framework engineer hack...@android.com 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 hack...@android.com 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 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 -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
Just set it to what you want in the top-level activity and make sure not to change it to something else until the user explicitly changes tabs. On Wed, Mar 18, 2009 at 11:01 PM, Uri.Kanonov urikano...@gmail.com wrote: 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 hack...@android.com 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 urikano...@gmail.com 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 hack...@android.com 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 urikano...@gmail.com wrote: Anyone? -- Dianne Hackborn Android framework engineer hack...@android.com 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 hack...@android.com 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 hack...@android.com 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 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 -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
Anyone? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
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 hack...@android.com 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 urikano...@gmail.com wrote: Anyone? -- Dianne Hackborn Android framework engineer hack...@android.com 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 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 -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
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 urikano...@gmail.com 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 hack...@android.com 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 urikano...@gmail.com wrote: Anyone? -- Dianne Hackborn Android framework engineer hack...@android.com 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 hack...@android.com 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 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 -~--~~~~--~~--~--~---