Android 2.3 emulator orientation changes

前端 未结 4 1968
感情败类
感情败类 2021-01-05 10:45

I ran into a bit of a problem, which I think is related to the emulator itself. I have put this code right at the top of my onCreate method in one of my activit

相关标签:
4条回答
  • 2021-01-05 11:24

    It seems to be a problem with the emulator, since the Settings app (for example) does the same thing (although the Launcher doesn't, which leads me to believe the Launcher app uses some other mechanism to detect orientation changes).

    I'll mark this answer as accepted in a couple days, until then please feel free to shed some light if you have it.

    0 讨论(0)
  • 2021-01-05 11:24

    Seems to be a problem with the emulator indeed.

    0 讨论(0)
  • 2021-01-05 11:27

    This is a problem with the emulator. See: http://code.google.com/p/android/issues/detail?id=13189

    and on stackoverflow: why does the gingerbread emulator orientation get stuck in apps?

    Unfortunately, this problem isn't addressed with the 10.0 Android SDK (released 2/2011).

    0 讨论(0)
  • 2021-01-05 11:29

    While testing on the 2.3.3 emulator, I am setting android:screenOrientation="behind" for each activity.

    0 讨论(0)
提交回复
热议问题