I am using android HTC HERO 2.1 version.
The activity I write :
<activity android:name=".gogogo"
android:label="@string/app_name"
android:theme="@style/Theme.mine"
android:screenOrientation="landscape"
android:configChanges="orientation">
let my orientation change to landscape.
However, I figured out that every time I pressed "power" button and then come back to my activity, it always start at portrait.
I tried the game : TEETER , which was written not by me. Has the same problem too, any one know how to fix it??
Edit: it always start at portrait.
--> I mean, if you come back from power, you have to scroll down to do everything, there is something like screen lock.
You can see that there is a "status bar" at the top of the screen and at this time, the orientation is "portrait
". So after You scroll the "screen lock" a little bit down, you can see the activity (such as TEETER) is at "portrait
" state. When you scroll all the way down, the activity's orientation will suddenly change to the state "landscape
".
So the conclusion is : My activity is forced to orient once. And I really want to know how to fix it!