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

Mike Billau commented on CB-5398:
---------------------------------

I'm trying to figure out where in Android there is a URI encoding bug so that 
we can report it and have the problem fixed upstream. 

However, I'm starting to think maybe we need to make some changes to 
incorporate the new Storage Access Framework...more specifically, checking 
different ContentProviders. I was able to implement the solution here: 
http://stackoverflow.com/a/20559175/368762 and it seems to work well for 
accessing images from all of the providers except for Drive. The new way of 
doing things seems to craft the URI based on which provider the data came from 
instead of just assuming uri = intent.getData() will be valid. 


> 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
>
> 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.1.5#6160)

Reply via email to