Skip to content Skip to sidebar Skip to footer

Android Screen Orientation Intent

My Android app is configured to work on landscape mode only, so I want to make e-mail client, which is created by intent from my app, be landscape too. Is it possible? Here is my c

Solution 1:

It is not possible to specify the orientation of an Activity, if it is external to your app. If an Activity is local to your app (ie. defined in your own Manifest file) - then you could specify the orientation there.

Bottom line, you can not control the orientation of an Application that is not your own (ie. called via system Intent).

Solution 2:

in android manifest add this android:screenOrientation="landscape" in activity.

example:

<activityandroid:name=".yourClientAddressActivity"android:screenOrientation="landscape"></activity>

Solution 3:

If the screen device is already in the landscape orientation, then the new email activity should use it if it supports it; otherwise, it will go into the portrait mode but then, you can't do anything about that because it doesn't support the landscape orientation in the first place.

Post a Comment for "Android Screen Orientation Intent"