View Full Version : [FIXED] Packaging a Android native app doesnt respect orientation setting from packager.json

4 Dec 2012, 5:14 AM
Sencha cmd version tested:
Device tested

Samsung Galaxy sII with Android 2.3.4
HTC Desiré with Android 2.2

Android manifest is not properly generated, since it doesn´t include orientation options described in packager.json.
Steps to reproduce the problem:

Add this line in packager.json: "orientations": ["portrait"]
Get the apk running 'sencha app build native' or 'sencha package build packager.json'
The result that was expected:

Android manifest includes the screenOrientation and the app run only in portrait mode
The result that occurs instead:

Android manifest doesn´t change and the app switch to landscape mode

4 Dec 2012, 7:25 AM
Thanks for the report! I have opened a bug in our bug tracker.

4 Dec 2012, 12:07 PM
Is there a workaround? Can I change the generated android manifest in any way?

Ola GP
16 Jan 2013, 5:02 AM
I would also like to know a workaround for this.

Ola GP
20 Jan 2013, 3:04 PM
Just found out how to fix this until an official bug fix is out:

Locate the file: AndroidManifest.xml in the Sencha Cmd folder.
Add the following line to force the application in portrait mode:


The line should be inside the activity-tag:

<activity android:name=".STActivity"