jeudi 2 février 2017

get usb location on android device

I'm creating an app using flash cc as3. In the app, it load external swf from documentsDirectory. It works fine on tablets and phones. My boss brings me this new android projector device. Now app could not locate the documentsDirectory in that device. I tried userDirectory. It also didn't work. The android projector device's usb location is /mnt/usb/sda1/myfolder. I tried to manually set the location of the file, it also didn't work. Is there anyway I could find the location of the usb in as3? I tried var volumes = StorageVolumeInfo.storageVolumeInfo.getStorageVolumes(); to get all the available volumes but it show errors. Any help would be appreciated.

Aucun commentaire:

Enregistrer un commentaire