[ https://issues.apache.org/jira/browse/CB-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13636204#comment-13636204 ]
Abel MuiƱo edited comment on CB-2432 at 4/19/13 9:15 AM: --------------------------------------------------------- The patched code returns a content: URI now (it previously crashed badly: CB-3038). However, since I'm requesting a FILE_URI, I would expect either null or some error (content: is ok for NATIVE_URI, maybe). The bottom line is that I can't consume the content: URI (for instance, can't turn it into a File for use with FileTransfer). See CB-3186 I've added the feature request CB-3187 to at least be able to consume the content: URIs with FileTransfer (which is our particular use case, at the moment). was (Author: amuino): The patched code returns a content: URI now (it previously crashed badly: CB-3038). However, since I'm requesting a FILE_URI, I would expect either null or some error. The bottom line is that I can't consume the content: URI (for instance, can't turn it into a File for use with FileTransfer). See CB-3186 > Camera doesn't pick Picasa photos properly > ------------------------------------------ > > Key: CB-2432 > URL: https://issues.apache.org/jira/browse/CB-2432 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Reporter: Max Woghiren > Assignee: Andrew Grieve > Priority: Minor > Fix For: 2.7.0 > > > Picking a Picasa photo results in an error on some devices. From CB-2213: > Picking a file from Picasa works on my Galaxy S2 running Android 4.0.3. Doing > so copies the image locally and works with that. > Picking a file from Picasa does not work on Andrew's Nexus 4 running Android > 4.2.2. The Intent passed to CameraLauncher.onActivityResult contains a "NOT > CACHED" URI and appears to be unusable. > However, when the Intent is being created in CameraLauncher.getImage, it is > given an "image/\*" type. Changing this to "\*/\*" provides a content URI, > which is nice, but it's of the form > "content://com.google.android.gallery3d.provider/picasa/item/...", which > isn't usable in the usual way; FileUtils.getRealPathFromURI returns null. > This case probably just needs to be handled using > ContentResolver.openInputStream, which would require some FileUtils > refactoring. -- 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