I’ve a web app with phonegap 1.3 and jquerymobile 1.0 that works well on all android version but 4.0
In fact if I change the orientation the app force close with no errors and no (as I can understand) logcat errors.
If I open my app in portrait works, If I open in landscape works but if I try to switch closes
Here’s my code:
import android.os.Bundle;
import com.phonegap.DroidGap;
public class MYActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
}
of course I’ve
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="sensor"
in manifest !
thanks for help
Try adding this:
as your config change parameter to see if it fixes your issue.