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

Getting Force Close in incoming Cal while recording the Audio?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.9.0, 2.0.0
    • 2.1.0
    • cordova-android
    • None

    Description

      Hi am developing the Application in android phonegap,am getting force close in recording the audio while incoming cal is received.i attached the log cat error message
      08-31 10:39:35.387 I/RT (664): AUDIO: Incoming call
      08-31 10:39:35.397 I/Device (969): Telephone RINGING
      08-31 10:39:35.397 D/DroidGap(969): onMessage(telephone,ringing)
      08-31 10:39:35.397 D/AndroidRuntime(969): Shutting down VM
      08-31 10:39:35.397 W/dalvikvm(969): threadid=1: thread exiting with uncaught exception (group=0x2aac8578)
      08-31 10:39:35.437 W/PhoneApp(355): Failed to unregister mScreenReceiver: java.lang.IllegalArgumentException: Receiver not registered: com.android.phone.PhoneApp$1@2afe5578
      08-31 10:39:35.437 E/AndroidRuntime(969): FATAL EXCEPTION: main
      08-31 10:39:35.437 E/AndroidRuntime(969): java.lang.RuntimeException: Error receiving broadcast Intent

      { act=android.intent.action.PHONE_STATE flg=0x20000000 (has extras) }

      in org.apache.cordova.Device$1@2afdced8
      08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
      08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Handler.handleCallback(Handler.java:587)
      08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Handler.dispatchMessage(Handler.java:92)
      08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Looper.loop(Looper.java:130)
      08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.ActivityThread.main(ActivityThread.java:3701)
      08-31 10:39:35.437 E/AndroidRuntime(969): at java.lang.reflect.Method.invokeNative(Native Method)
      08-31 10:39:35.437 E/AndroidRuntime(969): at java.lang.reflect.Method.invoke(Method.java:507)
      08-31 10:39:35.437 E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
      08-31 10:39:35.437 E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
      08-31 10:39:35.437 E/AndroidRuntime(969): at dalvik.system.NativeStart.main(Native Method)
      08-31 10:39:35.437 E/AndroidRuntime(969): Caused by: java.lang.NullPointerException
      08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.AudioPlayer.pausePlaying(AudioPlayer.java:282)
      08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.AudioHandler.onMessage(AudioHandler.java:154)
      08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.api.PluginManager.postMessage(PluginManager.java:326)
      08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.java:469)
      08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.Device$1.onReceive(Device.java:140)
      08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
      08-31 10:39:35.437 E/AndroidRuntime(969): ... 9 more

      Attachments

        Activity

          People

            macdonst Simon MacDonald
            macdonst Simon MacDonald
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: