Hi all, In my game, I have the main game activity that is for the moment in portrait only. So in the manifest, I force it with this lines : android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation" And that's good.
But with tablets and big screens, I want to have a landscape mode ( and only for big screens, there is no room enough for small screens ) So I have to set the orientation by code, this is the easy part : setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); But I also have to have the equivalent of the android:configChanges="keyboardHidden|orientation" manifest line in code. And I have no clue on how to do it ! And if I don't do it in the manifest, the activity will still be destroyed and recreated when I'm in the little screen configuration If I do it in the manifest, I don't have the destruction / recreation phase for big screens... So how to handle that ? Any help appreciated, Emmanuel / Alocaly http://androidblogger.blogspot.com/ http://www.alocaly.com -- 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