• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Android 6 CameraRoll requestPermission()

Explorer ,
Jan 23, 2017 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?

TOPICS
Air beta

Views

1.0K

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
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 24, 2017 Jan 24, 2017

Yes, you need to give WRITE_EXTERNAL_STORAGE.

Thanks,

Adobe AIR Team

Votes

Translate

Translate
Adobe Employee ,
Jan 24, 2017 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

Votes

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
community guidelines
Explorer ,
Jan 24, 2017 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?

Votes

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
community guidelines
Adobe Employee ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

Yes, you need to give WRITE_EXTERNAL_STORAGE.

Thanks,

Adobe AIR Team

Votes

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
community guidelines
Explorer ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

LATEST

Thanks! Works now...

Votes

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
community guidelines