I want to access
It's not possible.
Context.getFilesDir() returns a path that is bound to your package and the
Context is required to access the package name.
Environment is different as there's only constants that are common to all apps running on the same runtime.
Context is available practically everywhere in an Android application so this shouldn't really be a problem.
Environment.getDataDirectory()? how can I get
Environment.getDataDirectory() just returns the part of the data directory common to all apps. For example, the
To get your own files dir (
getFilesDir()), your package name and
"/files" need to be appended to it.
Context implementation does this for you.