Skip to main content
May 29, 2011
Question

browseForDirectory in Air For Andoid

  • May 29, 2011
  • 1 reply
  • 918 views

Hello,

I have a problem that I have an application that loads flv files from a directory and I want to make the user select that directory, File.browseForDirectory works on desktop but not on the mobile !!!!

Is there any other way to do so ?

This topic has been closed for replies.

1 reply

May 31, 2011

To my knowledge, at this time there is no solid way to navigate the phones folder structure via AIR.  You can readily access its camera roll and that is about it.  But you won't be able to just bring a browser and go whevever you want unfortunately

Participating Frequently
May 31, 2011

You can create your own directory picker control.

Use function like File.getDirectoryListing() and display the results in a list.

(http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#getDirectoryListing%28%29)

Inconvenient, but doable.

June 1, 2011

that is what I did I scanned the whole sdcard folder for the flv files and got a list of the files but the performance is an issue