Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1147

PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 2.0.0
    • 2.1.0
    • cordova-android
    • None
    • Android 4.0.3 in Samsung Galaxy S2
      Android 4.1.1 in Galaxy Nexus
      Android 4.0.3 in LG L5

    Description

      New project exactly as said in:
      http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

      index.html of "Hello world"

      I put the mobile in horizontal, and it "crashes".

      I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

      The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".

      Logcat shows this:

      07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
      07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
      07-27 10:14:55.806: E/ActivityThread(16105): at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
      07-27 10:14:55.806: E/ActivityThread(16105): at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
      07-27 10:14:55.806: E/ActivityThread(16105): at org.apache.cordova.Device.setContext(Device.java:62)
      07-27 10:14:55.806: E/ActivityThread(16105): at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
      07-27 10:14:55.806: E/ActivityThread(16105): at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
      07-27 10:14:55.806: E/ActivityThread(16105): at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
      07-27 10:14:55.806: E/ActivityThread(16105): at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.os.Handler.dispatchMessage(Handler.java:99)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.os.Looper.loop(Looper.java:137)
      07-27 10:14:55.806: E/ActivityThread(16105): at android.app.ActivityThread.main(ActivityThread.java:4745)
      07-27 10:14:55.806: E/ActivityThread(16105): at java.lang.reflect.Method.invokeNative(Native Method)
      07-27 10:14:55.806: E/ActivityThread(16105): at java.lang.reflect.Method.invoke(Method.java:511)
      07-27 10:14:55.806: E/ActivityThread(16105): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
      07-27 10:14:55.806: E/ActivityThread(16105): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      07-27 10:14:55.806: E/ActivityThread(16105): at dalvik.system.NativeStart.main(Native Method)

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            dantart Alex
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: