Problem - Reverse screen testing app on emulator android 3.0, 3.1 and 3.2
I just tested an app developed for Android 2.2 on the 3.2 emulator. The app supports only portrait mode, thus in def开发者_如何学编程ault landscape mode of the emulator it's rotated by 90° (as on Android 2.2). If however I rotate the emulator to portrait mode, the screen is shown completely reversed by 180°. That means, what should be on top is on the bottom of the screen. It's not only the app, but also the Android status bar but, if I exit the app, the issue disappears. I've tested the app on several Phones and emulators, this never happened with Android 2.2 or 2.3 it just happens with 3.0, 3.1 and 3.2. Can't test on a real Tablet device yet. Thanks.
remove this from your activity in manifest file
android:screenOrientation="portrait"
精彩评论