I have a simple application that attempts to save some data to external storage on Android device (Nexus 4) to be later retrieved on PC (Windows or Mac).
The writing succeeds but when i try to retrieve the file using Android File Transfer on Mac or by Explorer on Windows the MyApp directory just isn't there.
If i use 'Root Explorer' app on the device itself i can see the directory and the file and all permissions look ok.
The application code is along the following lines:
File extStorageDir = Environment.getExternalStorageDirectory();
File path = new File(extStorageDir, "MyApp");
File file = new File(path, "TestFile.txt");
OutputStream os = new FileOutputStream(file);
// ... write something
os.close();
Ideas appreciated.