I am creating a file “abc.txt” and storing the data. How can I know where is the data stored in SD card, I don’t have a Android phone
try {
FileOutputStream fos = openFileOutput("abc.txt",MODE_PRIVATE);
String s = "Data to be written ok fine cool";fos.write(s.getBytes());
} catch (Exception e) {
e.printStackTrace();
}
I want that file so that I can sattach it and send as email in background
Your file is not written to the SD card. Your file is written to the private data area on the phone where your application’s private files are written. If you want to know where that is (it is different on different devices), you can get that using