On Sat, Sep 11, 2010 at 6:58 PM, Patrick <patrick.manges...@gmail.com> wrote: > Hallo! > > My MainActivity (the one that is started by the android application) > is a TabActivity which contains several tabs (which are implemented as > activities as well). In a certain tab/activity I want to prevent the > change of orientation/rotation when the phone is turned. What is the > easiest way to achieve this?
I don't know if it's the easiest. You can prevent an activity of being restarted by an orientation change by using android:configChanges and make your way in onConfigurationChanged(). Since you are using a TabActivity, I'm not sure what behaviour you want to achieve, and to be honest, I don't know much about TabActivity. But I can think, if posible, to manage the changes in the tab activity concerning the current activity that is running (the one you want to rotate you set the android:orientation) so you won't get the tabs rotated. But, that's an idea from someone away from a developer-computer right now, and junior to android development. -- If you want freedom, compile the source. Sebastián Treu http://labombiya.com.ar -- 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