I have been using this line of code in AndroidStudio to get the path of a file in my project:
String srcDir = System.getProperty("user.dir");
Currently when I am trying to access the same project using intelliJ the value of srcDir
returned is different. Any solutions to this?
Went through SO-722003, but that doesn't resolve my issue. Can't use SO-12413952 since the project location may differ on different system after the user's directory.