[
https://issues.apache.org/jira/browse/CB-5398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13976703#comment-13976703
]
Markus Voss edited comment on CB-5398 at 4/22/14 12:45 PM:
-----------------------------------------------------------
I have the same permission problem the full stack trace is:
{code}
E/DatabaseUtils( 1019): Writing exception to parcel
E/DatabaseUtils( 1019): java.lang.SecurityException: Permission Denial: reading
com.android.providers.media.MediaDocumentsProvider uri
content://com.android.providers.media.documents/document/image:1376 from
pid=8417, uid=10096 requires android.permission.MANAGE_DOCUMENTS, or
grantUriPermission()
E/DatabaseUtils( 1019): at
android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:467)
E/DatabaseUtils( 1019): at
android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:394)
E/DatabaseUtils( 1019): at
android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:387)
E/DatabaseUtils( 1019): at
android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:339)
E/DatabaseUtils( 1019): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:305)
E/DatabaseUtils( 1019): at
android.os.Binder.execTransact(Binder.java:404)
E/DatabaseUtils( 1019): at dalvik.system.NativeStart.run(Native Method)
E/AndroidProtocolHandler( 8417): Unable to open content URL:
content://com.android.providers.media.documents/document/image%3A1376
{code}
My IceCreamCordovaWebviewClient.java is exactly as Randy Lau has it. What are
we missing here? Please help
Regards,
Markus
was (Author: mvoss):
I have the same permission problem the full stack trace is:
{code}
E/DatabaseUtils( 1019): Writing exception to parcel
E/DatabaseUtils( 1019): java.lang.SecurityException: Permission Denial: reading
com.android.providers.media.MediaDocumentsProvider uri
content://com.android.providers.media.documents/document/image:1376 from
pid=8417, uid=10096 requires android.permission.MANAGE_DOCUMENTS, or
grantUriPermission()
E/DatabaseUtils( 1019): at
android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:467)
E/DatabaseUtils( 1019): at
android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:394)
E/DatabaseUtils( 1019): at
android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:387)
E/DatabaseUtils( 1019): at
android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:339)
E/DatabaseUtils( 1019): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:305)
E/DatabaseUtils( 1019): at
android.os.Binder.execTransact(Binder.java:404)
E/DatabaseUtils( 1019): at dalvik.system.NativeStart.run(Native Method)
E/AndroidProtocolHandler( 8417): Unable to open content URL:
content://com.android.providers.media.documents/document/image%3A1376
{code}
> 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)