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

Check if SD card is inserted in device?

Contributor ,
Jul 29, 2013 Jul 29, 2013

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
638
Translate
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