Reputation: 7161
Im currently trying to port my somewhat complicated application to Google TV. I can deploy, but i'm getting a "Portrait mode is not available for this application. Press any key to exit." error, which is quite odd since I don't explicitly specify using portrait mode anywhere in the manifest. I can dismiss the error, the app then shows for a second seemingly correct, and then the app gets dismissed.
Of course I've read up on the Google TV page manifest reference, which states that every activity needs to have screenOrientation="unspecified"
(which is the default). I've tried to explicitly define this at each of the activities I have, but still gives me the same error.
Tried adding these to the manifest as well (to no effect):
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-feature android:name="com.google.android.tv" android:required="true"/>
Now my question is; what am I missing here? What can I check in order to figure out what goes wrong?
Upvotes: 1
Views: 625
Reputation: 1350
You might be setting the requested orientation in code somewhere using:
Activity.setRequestedOrientation(..)
Perhaps you can provide your manifest?
Upvotes: 1