incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-1358) Getting Force Close in incoming Cal while recording the Audio?
Date Fri, 31 Aug 2012 16:52:08 GMT

     [ https://issues.apache.org/jira/browse/CB-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simon MacDonald resolved CB-1358.
---------------------------------

    Resolution: Fixed

I've fixed the issue by guarding against the null player value when onResume/onPause are called
in the Media plugin.
                
> Getting Force Close in incoming Cal while recording the Audio?
> --------------------------------------------------------------
>
>                 Key: CB-1358
>                 URL: https://issues.apache.org/jira/browse/CB-1358
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message