import javax.swing.filechooser.*;
//в настольной системе
String path = FileSystemView
.getFileSystemView()
.getDefaultDirectory()
.getPath();
//в activity Android
String path = this.getApplicationInfo().dataDir;
//во фрагменте Android
String path = getContext().getApplicationInfo().dataDir;