If I do not specify a theme in my android manifest, the screen automatically rotates when device changes orientation. But as soon as I specify a theme in the application or activity tags, automatic screen rotation ceases to happen. This is regardless of whether I specify a standard android theme or a custom one.
Automatic rotation happens with this:
<application android:icon="@drawable/icon" android:label="@string/app_name">
...
</application>
But not with this:
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent">
...
</application>
This is on an Identity Tab and the API target is Android 2.1-update1
Problem is with the device / implementation. Tried it on a phone from a different vendor and it works.
Thanks @source.rar for the emulator clue. Since I had a device I hadn’t bothered to check on the emulator.