What is the difference between getDir and getFilesDir on Android?
getFilesDir() returns a File object to a directory that is private to your application only. When you use openFileOutput(String, int), the data you write is directly stored in this directory and is not accessible by any other application. It holds your application files. getDir() enables you to create any file or directory in the internal … Read more