List of utility methods to do Root Directory Get
File | getRootDirectory() The root directory which stores the internal files for the emulator, such as configuration files. if (!root.exists()) root.mkdir(); return root; |
File | getRootDirectoryOf(String referenceFile, String rootMark) get Root Directory Of File reference = new File(referenceFile); if (!reference.exists()) return null; String cannon = "."; try { cannon = reference.getCanonicalPath(); } catch (Exception e) { return getRootDirectoryOf(new File(cannon), rootMark); |