ava.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image%3A34474 from pid=31783, uid=11010 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()
at android.content.ContentProvider.enforceWritePermissionInner(ContentProvider.java:679)
at android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:494)
at android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:466)
at android.content.ContentProvider$Transport.openAssetFile(ContentProvider.java:383)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:262)
at android.os.Binder.execTransact(Binder.java:453)
FATAL EXCEPTION: Thread-15735
Process: md.qsystems.android.tango, PID: 31783
java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image%3A34474 from pid=31783, uid=11010 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()
at android.os.Parcel.readException(Parcel.java:1620)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)
at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:621)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:960)
at android.content.ContentResolver.openOutputStream(ContentResolver.java:702)
at android.content.ContentResolver.openOutputStream(ContentResolver.java:678)
at com.soundcloud.android.crop.CropImageActivity.saveOutput(CropImageActivity.java:384)
at com.soundcloud.android.crop.CropImageActivity.access$10(CropImageActivity.java:380)
at com.soundcloud.android.crop.CropImageActivity$5.run(CropImageActivity.java:313)
at com.soundcloud.android.crop.CropUtil$BackgroundJob.run(CropUtil.java:193)
at java.lang.Thread.run(Thread.java:818)
Eclipse Neon. Android 6.0:
android:minSdkVersion="15" android:targetSdkVersion="15"
My permissions:
Throw exception:
ava.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image%3A34474 from pid=31783, uid=11010 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission() at android.content.ContentProvider.enforceWritePermissionInner(ContentProvider.java:679) at android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:494) at android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:466) at android.content.ContentProvider$Transport.openAssetFile(ContentProvider.java:383) at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:262) at android.os.Binder.execTransact(Binder.java:453) FATAL EXCEPTION: Thread-15735 Process: md.qsystems.android.tango, PID: 31783 java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image%3A34474 from pid=31783, uid=11010 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission() at android.os.Parcel.readException(Parcel.java:1620) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183) at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146) at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:621) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:960) at android.content.ContentResolver.openOutputStream(ContentResolver.java:702) at android.content.ContentResolver.openOutputStream(ContentResolver.java:678) at com.soundcloud.android.crop.CropImageActivity.saveOutput(CropImageActivity.java:384) at com.soundcloud.android.crop.CropImageActivity.access$10(CropImageActivity.java:380) at com.soundcloud.android.crop.CropImageActivity$5.run(CropImageActivity.java:313) at com.soundcloud.android.crop.CropUtil$BackgroundJob.run(CropUtil.java:193) at java.lang.Thread.run(Thread.java:818)