[android-developers] Re: Force Screen Orientation Landscape crashes when in Portrait
Yes. I have
<application android:icon="@drawable/my_icon" android:label="@string/app_name">
<activity android:name="com.android.myapp.MyApp" android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
On Thursday, November 29, 2012 10:47:53 AM UTC-8, Piren wrote:
did you force a specific orientation in the manifest?
On Thursday, November 29, 2012 11:28:04 AM UTC-5, Rob Thompson wrote:setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ); int orientation = getResources().getConfiguration(). orientation; orientation should equal ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, but it does not. It equals ActivityInfo.SCREEN_ ORIENTATION_PORTRAIT. Any solutions?
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home