Phonegap 1.7 apps crash on orientation change (Android/Emulator) ...

289 views
Skip to first unread message

simpleid

unread,
May 18, 2012, 6:30:48 AM5/18/12
to phon...@googlegroups.com
... even an uber simple  "Hello World" app.
android:configChanges="orientation|keyboardHidden" is set in the manifest file.
Tested on Android 2.2 emulator

LogCat snippet after CTRL+F12 (screen orientation change) : 
05-18 10:31:35.250: I/ARMAssembler(68): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x31d4f8:0x31d6c0] in 4166451 ns
05-18 10:31:44.171: I/WindowManager(68): Setting rotation to 1, animFlags=1
05-18 10:31:44.260: I/ActivityManager(68): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=18 uiMode=17 seq=4}
05-18 10:31:44.560: I/UsageStats(68): Unexpected resume of org.cord.cordcord while already resumed in org.cord.cordcord
05-18 10:31:45.100: D/DroidGap(297): Origin to allow: http://127.0.0.1*
05-18 10:31:45.130: I/CordovaLog(297): Found log level DEBUG
05-18 10:31:45.130: I/CordovaLog(297): Changing log level to DEBUG(3)
05-18 10:31:45.241: I/CordovaLog(297): Found preference for classicRender
05-18 10:31:45.241: D/DroidGap(297): DroidGap.onCreate()
05-18 10:31:45.411: D/DroidGap(297): DroidGap.loadUrl(file:///android_asset/www/index.html)
05-18 10:31:45.411: D/DroidGap(297): DroidGap: url=file:///android_asset/www/index.html baseUrl=file:///android_asset/www/
05-18 10:31:45.611: D/DroidGap(297): DroidGap.init()
05-18 10:31:45.970: D/PluginManager(297): init()
05-18 10:31:46.160: W/WindowManager(68): Window freeze timeout expired.
05-18 10:31:46.170: W/WindowManager(68): Force clearing orientation change: Window{43f390a0 StatusBar paused=false}
05-18 10:31:46.530: D/SoftKeyboardDetect(297): Ignore this event
05-18 10:31:46.620: I/Database(297): sqlite returned: error code = 14, msg = cannot open file at source line 25467
05-18 10:31:47.519: D/CordovaLog(297): exception firing pause event from native
05-18 10:31:47.519: D/CordovaLog(297): : Line 1 : exception firing pause event from native
05-18 10:31:47.600: I/Web Console(297): exception firing pause event from native at :1
05-18 10:31:50.542: W/IInputConnectionWrapper(297): showStatusIcon on inactive InputConnection
05-18 10:31:53.599: D/dalvikvm(68): GC_EXPLICIT freed 3947 objects / 226688 bytes in 438ms
05-18 10:31:54.290: D/dalvikvm(131): GC_EXPLICIT freed 2451 objects / 122160 bytes in 194ms

Simon MacDonald

unread,
May 18, 2012, 8:51:06 AM5/18/12
to phon...@googlegroups.com
Try...

android:configChanges="orientation|keyboardHidden|screenSize"

Simon Mac Donald
http://hi.im/simonmacdonald
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
Reply all
Reply to author
Forward
0 new messages