Highlighted

Android 6 CameraRoll requestPermission()

Explorer ,
Jan 23, 2017

Copy link to clipboard

Copied

I am using AIR SDK 24, -swf-version=35 and targetSdkVersion="24" but CameraRoll requestPermission() method always triggers a PermissionEvent with status "denied". Deleting the app doesn't help. Any ideas what could be wrong?

Yes, you need to give WRITE_EXTERNAL_STORAGE.

Thanks,

Adobe AIR Team

TOPICS
Air beta

Views

815

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Android 6 CameraRoll requestPermission()

Explorer ,
Jan 23, 2017

Copy link to clipboard

Copied

I am using AIR SDK 24, -swf-version=35 and targetSdkVersion="24" but CameraRoll requestPermission() method always triggers a PermissionEvent with status "denied". Deleting the app doesn't help. Any ideas what could be wrong?

Yes, you need to give WRITE_EXTERNAL_STORAGE.

Thanks,

Adobe AIR Team

TOPICS
Air beta

Views

816

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 23, 2017 0
Adobe Employee ,
Jan 24, 2017

Copy link to clipboard

Copied

Hi Harry248,

CameraRoll.requestPermission() requires File Permission on Android. Make sure you have given the file/storage permission in app.xml.

Please let us know if you further face any problem.

Thanks,

Adobe AIR Team

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 24, 2017 0
Explorer ,
Jan 24, 2017

Copy link to clipboard

Copied

I have <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Does it need WRITE_EXTERNAL_STORAGE?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 24, 2017 0
Adobe Employee ,
Jan 24, 2017

Copy link to clipboard

Copied

Yes, you need to give WRITE_EXTERNAL_STORAGE.

Thanks,

Adobe AIR Team

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 24, 2017 1
Harry248 LATEST
Explorer ,
Jan 24, 2017

Copy link to clipboard

Copied

Thanks! Works now...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 24, 2017 1