Fecth list of files in external storage Android?

Anything libgdx related goes here!

Fecth list of files in external storage Android?

Postby deeplien » Sat Feb 15, 2020 4:11 pm

Hey guys do you have any idea how I could get the list of items inside the "/Download" directory of my Android device. I'm trying the usual:
Code: Select all
FileHandle[] files = Gdx.files.external("/Download").list();
        for(FileHandle file: files){
            System.out.println(file.toString());
        }

The file handle is just empty. Could anyone help me with this?
deeplien
 
Posts: 5
Joined: Sat Jan 11, 2020 8:29 pm

Return to Libgdx

Who is online

Users browsing this forum: Google [Bot] and 1 guest