cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-4471) navigator.device.capture. captureVideo() Not working on android 4.3
Date Mon, 19 Aug 2013 11:42:47 GMT

    [ https://issues.apache.org/jira/browse/CB-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743745#comment-13743745
] 

Simon commented on CB-4471:
---------------------------

Hi, just wanted to note: I have the same issue appearing in Cordova 2.5 with a Galaxy Nexus
on Android 4.3.
I commented on the linked Android issue and tried to report it to Google's Mobile Help Forums
as well.

In the meantime, people not using Cordova seem to be working around this issue by trying to
just retrieve the last video file they can find in the expected video directory or something.
But with Cordova we can't even attempt to do that since the App crashes before that it seems...
Would it be possible to at least capture this NPE and return an empty result or call the error
callback?
                
> navigator.device.capture. captureVideo() Not working on android 4.3
> -------------------------------------------------------------------
>
>                 Key: CB-4471
>                 URL: https://issues.apache.org/jira/browse/CB-4471
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS, Plugin Camera, Plugin Media Capture
>    Affects Versions: 2.8.0
>         Environment: android 4.3 (nexus 4), cordova 2.8
>            Reporter: Arjun T Raj
>            Assignee: Joe Bowser
>
> While calling   navigator.device.capture.
> captureVideo() on  my nexus 4 android 4.3 app was crashing , same app works on all other
phones , and android version except 4.3
> check this https://groups.google.com/forum/#!topic/phonegap/flfkszbBJUo
> LOG
> 07-30 10:58:42.640: D/DroidGap(11149): Incoming Result
> 07-30 10:58:42.640: D/DroidGap(11149): Request code = 2
> 07-30 10:58:42.640: D/DroidGap(11149): We have a callback to send this result to
> 07-30 10:58:42.640: D/AndroidRuntime(11149): Shutting down VM
> 07-30 10:58:42.640: W/dalvikvm(11149): threadid=1: thread exiting with uncaught exception
(group=0x41542700)
> 07-30 10:58:42.650: E/AndroidRuntime(11149): FATAL EXCEPTION: main
> 07-30 10:58:42.650: E/AndroidRuntime(11149): java.lang.RuntimeException: Failure delivering
result ResultInfo{who=null, request=2, result=-1, data=Intent {  }} to activity { com.mypjct.MainActivit/com.mypjct.MainActivity}:
java.lang.NullPointerException
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.app.ActivityThread.deliverResults(ActivityThread.java:3367)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3410)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.app.ActivityThread.access$1100(ActivityThread.java:141)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1304)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.os.Looper.loop(Looper.java:137)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.app.ActivityThread.main(ActivityThread.java:5103)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at java.lang.reflect.Method.invokeNative(Native
Method)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at java.lang.reflect.Method.invoke(Method.java:525)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at dalvik.system.NativeStart.main(Native
Method)
> 07-30 10:58:42.650: E/AndroidRuntime(11149): Caused by: java.lang.NullPointerException
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at org.apache.cordova.FileHelper.getRealPath(FileHelper.java:81)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at org.apache.cordova.Capture.createMediaFile(Capture.java:351)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at org.apache.cordova.Capture.onActivityResult(Capture.java:308)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:864)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.app.Activity.dispatchActivityResult(Activity.java:5322)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     at android.app.ActivityThread.deliverResults(ActivityThread.java:3363)
> 07-30 10:58:42.650: E/AndroidRuntime(11149):     ... 11 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