I am extending the application class in my application and have the following ...
protected static File myAppDir = null;
Then in onCreate () (in the app) ...
if (myAppDir == null) myAppDir = new File(getExternalFilesDir(null).getAbsolutePath());
This automatically creates /mnt/sdcard/Android/data/com.mycompany.myApp/files if it does not exist. You can specify parameters other than "null" to getExternalFilesDir () for things like images, videos, etc.
source share