cordova - Android phone rotation issues in phoneGap native app -



cordova - Android phone rotation issues in phoneGap native app -

i'm quite new in java android development. have issue app.

i build android app phonegap opensource , jquery mobile framework. that's looking working.

but issue is.... when i'm trying rotate phone after running app, unexpectedly app closing.

it's not phone it's happening on every android phone.

i want remove screen rotation on app.

hope understand

help me please....

i had same issue - crash on rotate. dont think had androidmanifest.xml copied right tutorial. didnt add together

android:configchanges="orientation|keyboardhidden"

to 1st activity. see after , before:

after (working):

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".app" android:label="@string/app_name" android:configchanges="orientation|keyboardhidden"> <intent-filter>

before (crash on rotate):

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".app" android:label="@string/app_name"> <intent-filter>

not sure if want prepare screen or stop crashing if want prepare portrait or landscape can this:

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".app" android:label="@string/app_name" android:configchanges="orientation|keyboardhidden" android:screenorientation="landscape" > <intent-filter>

android cordova screen-rotation

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -