I use the code below in order to save a file in my sdcard. The code is taken by another post in stackoverflow. The file is written in the card successfully and i can view it in my phone. However i noticed that i cannot view the file when i connect my phone in the computer. I also noticed that the contents of the folder ext_card are showing in my computer and not the contents of the folder sdcard.
Here is the code
File dir = new File ("/mnt/ext_card" + "/mine");
dir.mkdirs();
File file = new File(dir, "capture.csv");
try {
f = new FileOutputStream(file);
captureFile = new PrintWriter(f);
} catch (IOException ex) {
}
I write it inside the ext folder and i cannot view it again.