I've got a weird problem over here with an app I am developing. It's using Apache Codova 3.0.0 and the stock file plugin to create a directory on external storage of a Samsung Galaxy Nexus with Android 4.3 and to add some files into there.
What happens here is that I am actually able to do this but the created directory including the files are not showing up when I connect the device to a computer as a mass storage device. All other folders are displaying normally but the one I created. When I browse the device with 'adb shell' I can see the folder, though, and its directory mode from 'ls -al' is exactly the same as that of all the others. READ and WRITE permissions are granted to the app.
I've also tried the same in Android code and it behaves exactly the same:
File f = new File(Environment.getExternalStorageDirectory().toString()+"/myFolder");
if (!f.isDirectory()) {
f.mkdir();
Log.i("myApp", "Created directory: "+f);
}
This operation succeeds but the folder is again not visible when I reconnect the device to a computer. To mention it: I run the application from the IDE - so maybe: is there a sandbox or such that I am not aware of, that could result in showing stuff in /sdcard using adb shell but not when connected as external storage?
I guess I must miss something elementary here and hope that you guys have an answer for me :)
Thanks!