So basically wen I googled on what the "user.dir" property does I got this link to a similar question on stackexchange: Java “user.dir” property - what exactly it means?
So basically the answer given was : It's the directory where Java was run from, where you started the JVM. Does not have to be within the user's home directory. It can be anywhere where the user has permission to run Java.
Which is okay, but then I found this other link in the android context: Why does System.getProperty(“user.dir”) return “/”
As the documentation says, the
user.dir property is the user working directory, which is not necessarily the same as the directory where your apk is placed.
So the first best voted answer in the first link says the directory does not have to be within the users home directory while the other says "it is the user working directory."
Now I am terribly confused and need help on this.