You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mateusz Wielgos (JIRA)" <ji...@apache.org> on 2014/03/25 02:11:51 UTC

[jira] [Commented] (CB-5398) Pick image from Library or Photo album on android 4.4

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

Mateusz Wielgos commented on CB-5398:
-------------------------------------

This issue is marked as resolved, but I am having problems. I am having this issue on Android 4.4.2. I am using latest cordova-cli, cordova-android, cordova-plugin-file-transfer and cordova-plugin-file from master branches.

For navigator.camera.getPicture, I tried to use both NATIVE_URI and FILE_URI.

FileTransfer error callback gets called. Looking at FileTransferError properties, they are as follows:
code: null
source: null
target: null
http_status: null

The image URI passed in, with camera.DestinationType.NATIVE_URI is : content://com.android.providers.media.documents/document/image%3A85 . The image URI passed in, with camera.DestinationType.FILE_URI is exactly the same.

I can't go the DATA_URL route as Android 4.0-4.3 support for Blob XHR is non-existent, see : https://code.google.com/p/android/issues/detail?id=39882 .

Tried the same thing on Android 4.2.2, no issues.

Ideas / help?

Thanks!

> Pick image from Library or Photo album on android 4.4
> -----------------------------------------------------
>
>                 Key: CB-5398
>                 URL: https://issues.apache.org/jira/browse/CB-5398
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera
>    Affects Versions: 2.9.0, 3.2.0
>         Environment: android 4.4
>            Reporter: julio cesar
>            Assignee: Mike Billau
>             Fix For: 3.5.0
>
>
> An android 4.4 try to pick a photo using pictureSource.PHOTOLIBRARY or pictureSource.SAVEDPHOTOALBUM and return type destinationType.FILE_URI.
> Now android 4.4, when you select the above options, it opens an "open from" dialog that  let you choose from new places as "Recent", "Drive", "Images" and "Downloads" (the names might not be the same as I use the device in spanish and translated it).
> If you choose any of them, you get an error, AndroidProtocolHandler, unable to open content URL: the url here with a content://com.android.providers format.
> I've tested on phonegap 2.9 because this is the version I use, but I suppose it affects all of them. (in fact I use 2.9.1)



--
This message was sent by Atlassian JIRA
(v6.2#6252)