You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2014/10/15 01:27:33 UTC
[jira] [Resolved] (CB-7765) navigator.device.capture.captureImage
Throws CAPTURE_INTERNAL_ERR, Cannot Create Cache Folder, Galaxy S5
[ https://issues.apache.org/jira/browse/CB-7765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-7765.
----------------------------
Resolution: Cannot Reproduce
I can't reproduce this with my Samsung Galaxy S5 running Android 4.4.2. (Unlocked T-Mobile version). It seems to put it on the external storage automatically. This could possibly be a firmware issue, since I make sure to update the S5 whenever an update rolls out for the device.
> navigator.device.capture.captureImage Throws CAPTURE_INTERNAL_ERR, Cannot Create Cache Folder, Galaxy S5
> --------------------------------------------------------------------------------------------------------
>
> Key: CB-7765
> URL: https://issues.apache.org/jira/browse/CB-7765
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin Media Capture
> Affects Versions: 3.5.0
> Environment: Galaxy S5
> Reporter: David Perry
>
> When using the media-capture (org.apache.cordova.media-capture@0.3.1) captureImage, getTempDirectoryPath calls cordova.getActivity().getCacheDir() (instead of checking for SD card first) which returns /data/data/com.packagename/cache but this path does not exist. The code then calls File.mkdirs to create the path which calls mkdirErrno which calls Libcore.os.mkdir(path, S_IRWXU) and that is throwing an exception that is caught and the method silently returns false. The exception has an errno = 17. The end result is captureImage calls the error callback with CAPTURE_INTERNAL_ERR. This issue appears to be in the latest version of the media-capture plugin as well. Targeting Android-19.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org