If you ever need to get the root data directory of your Android application (app) from within your Java code, I can confirm that this approach works:
File rootDataDir = getActivity().getFilesDir();
When I log that directory like this:
it prints this output for my application:
where com.alvinalexander.mynewapp is the package name for my new Android app.
I’ve also been reading image files and other data from that directory (as well as writing to it), and I’ll share that Java code here soon as well.