Im trying to write to a file in my android app.
I dont think its creating the file though.
is the code to correct?
if it is, how do I locate the file on my phone? Is it hidden?
The code resides in an Activity fragment
String FILENAME = "alarmStatus";
FileOutputStream fos;
try {
fos = getActivity().openFileOutput(FILENAME, MODE_PRIVATE);
fos.write("Hello".getBytes());
fos.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}