Copy link to clipboard
Copied
Im having a issue with CameraRoll on Android 6 version (specifically Samsung Galaxy S6 with new Android 6 update installed)
When the photo is selected, the the imagepromise never loads. It worked perfectly before the update.
It also works perfectly on my other devices that dont have Android 6 installed.
I used exactly the same code like here for loading: Uploading images from CameraRoll and CameraUI | Adobe Developer Connection
I also tried to load the promise like this once photo is selected:
var loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onMediaLoaded );
loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, onError);
loader.loadFilePromise(imagePromise);
but with exactly the same result.
It not really a AIR 22 specific issue, its also happens for AIR 21.
Is there something else i can try?
Copy link to clipboard
Copied
Hello,
Thanks for reporting the issue.
I tried this issue at my end on Android 6 Samsung Galaxy S6 with AIR 22 and its working fine.Also working or other Android devices.
Could you please check you have enabled the access right in app.xml.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
this should be enable and please try with latest AIR SDK from Download Adobe AIR 22 Beta - Adobe Labs
If still you will face same issue so please share a sample project so it will be helpful for us to reproduce at our end.
Regards,
Mayank
Copy link to clipboard
Copied
Thank you.
I managed to figure it out.
The problem was that in the android manifest additions i had this line:
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
After changing the target sdk version to 22 it works.
Seems like the issue is connected with new runtime permissions in version 23 of the SDK.
From Android 6.0 (v23) READ/WRITE_EXTERNAL_STORAGE is considered dangerous permission so needs to be requested at runtime.
There is a discussion about this issue here: