Cannot get files in userDirectory with getDirectoryListing()
I'm testing getDirectoryListing() with my Android devices.
Then files are obtained using Android device (Ver.4.1.2).
but are not obtained using (Ver.6.0.1).
The code is very simple.
----------------------------------------------------------
var FArr:Array = File.userDirectory.getDirectoryListing();
trace("Number of files = " + FArr.length.toString() );
for(var i:int=0; i<FArr.length ; i++){
trace("name = " + FArr.name );
}
----------------------------------------------------------
As written in the forum ()
I set WRITE_EXTERNAL_STORAGE permission in the app manifest.
But I've been unable to get the outputs yet.
Does anyone know the resolution?
regards ![]()
