As described in android documentation, to create a new file which will be situated in the application’s directory there is the method in Context class: openFileOutput().
But where will be the file situated if I use simple createNewFile() method from File class.?
CreateNewFile() is used like this:
So you will tell the file where it should be created. Remember that you can only create new files on your package. That is “data/data/your package name/”.