cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Feltesse (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-5398) Pick image from Library or Photo album on android 4.4
Date Wed, 15 Apr 2015 10:53:59 GMT

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

Julien Feltesse edited comment on CB-5398 at 4/15/15 10:53 AM:
---------------------------------------------------------------

EDIT: 
I managed to fix the crash by simply changing a line in the CameraLauncher code:
https://github.com/robotvert/cordova-plugin-camera/commit/db5e4d663986460917d1a2a90197dfa7fe305e13#diff-f2e83abdaf34884df7e74b6493cf2dd7L555

Other places might need the same treatment, I only needed the user to select a picture without
editing, so YMMV.


-------------
Sorry for reviving this thread but I am still running into this issue ("%3A" instead of ":"
in the URL, "requires android.permission.MANAGE_DOCUMENTS" warning etc.)

Tested on a stock HTC One Mini running android 4.4.2 and on a Nexus 5 running android 5.1.
On both phones, the cordova application (in my case, an ionic app) crashes after selecting
a picture when "allowEdit" is set to false.
Taking a picture works fine.

- I tried to use the plugin's version 0.3.6 and master, to no avail.
- cordova -v shows "4.3.0"
- the file at platforms/android/CordovaLib/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
contains the needsKitKatContentUrlFix method.

Any pointers?


was (Author: robotvert):
Sorry for reviving this thread but I am still running into this issue ("%3A" instead of ":"
in the URL, "requires android.permission.MANAGE_DOCUMENTS" warning etc.)

Tested on a stock HTC One Mini running android 4.4.2 and on a Nexus 5 running android 5.1.
On both phones, the cordova application (in my case, an ionic app) crashes after selecting
a picture when "allowEdit" is set to false.
Taking a picture works fine.

- I tried to use the plugin's version 0.3.6 and master, to no avail.
- cordova -v shows "4.3.0"
- the file at platforms/android/CordovaLib/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
contains the needsKitKatContentUrlFix method.

Any pointers?

> 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: jcesarmobile
>            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.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message