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

Check if SD card is inserted in device?

Contributor ,
Jul 29, 2013 Jul 29, 2013

Copy link to clipboard

Copied

This Adobe documentation indicates you can use File.userDirectory to save files to the SD card on Android. The documentation doesn't point out that File.userDirectory will simply map to local storage if no SD card is inserted, making it useless for determining if an SD card is present. We are trying to give users of our app the option to save downloaded content to local storage or the SD card but we'd like to be able to verify an SD card exists first; is there any way for AIR to check this?

TOPICS
Development

Views

611

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