I'm fairly new to android and java, my background is c# .net.
I have a network share mounted to /mnt/cifs/Audio by using CifsManager. Other apps on the device can display the files in that directory.
My problem is that my app goes into a loop when calling listFiles() on a File object. I noticed that it is because there is a file or folder in that share with an invalid Modified UTF-8 name. From LogCat I can see that it is when NewStringUTF is instantiated, obviously this is done internally when I list all the files.
How can I get around this issue? Is there a way to handle that error/exception or is there another way to get all the files & folders without running into this issue?
Any help would be greatly appreciated.