Android Question File.ListFiles(File.DirAssets) crashes on older versions of Android

skaliwag

Member
Licensed User
Longtime User
Regardless of the rest of the code or what files are in the assets

File.ListFiles(File.DirAssets)

is shutting down the app, without any error message,s on both my phones that run Android 2.2.1

There is no problem on a phone running Android 4.1.2
 

skaliwag

Member
Licensed User
Longtime User
I agree it's not something you'd need to do often.
However, in this case, I need to use a lot of image files in the format '001Name1.png', '002Name2.png' etc where Name1, Name2 etc. are various character names.
I need to list these to break the file names up so that I know that 'Name1' belongs to 001 etc.
 
Upvote 0
Top