I am writing to a file in my application. I want to find the file to check that the file has been written correctly (and so I can access the file via a web view). Here is the code I am using to write the file:
try {
FileOutputStream fos = openFileOutput("rules.txt", Context.MODE_PRIVATE);
fos.write(content.getBytes());
fos.close();
}
catch (Exception e) {
e.printStackTrace();
}
and then I use this to get the directory of the file:
getFilesDir()
However the string it provides is not available as a directory on the my device (hidden files are shown).
Any help would be appreciated!