Referencing this question:
How to create files hierarchy in Androids '/data/data/pkg/files' directory?
What kind of a solution is there to this probl
getContext().getDir() method is your friend
File dir = ctx.getDir("my_sub_dir", Context.MODE_PRIVATE);
File newfile = new File(topDirFile.getAbsolutePath() + File.separator + "new_file_name");
newfile.createNewFile();
BufferedOutputStream fout = new BufferedOutputStream(new FileOutputStream(newfile), 16 * 1024);