public abstract class CommonPathUtil extends Object
| Constructor and Description |
|---|
CommonPathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAssetsDirectoryPath()
Gets the relative path to the assets directory within the jar
|
static String |
getDatabaseDirectoryPath(String packageName)
Returns the absolute path to the directory on the Android
filesystem where databases are stored for the current application.
|
static String |
getExternalStorageDirectoryPath()
Gets the path to the external storage directory
|
static String |
getFilesDirectoryPath(String packageName)
Returns the absolute path to the directory on the Android
filesystem where files are stored for the current application.
|
static String |
getMountedExternalStorageDirectoryPath()
Gets the path to the external storage directory only if
mounted.
|
public static String getMountedExternalStorageDirectoryPath()
null if not mounted.public static String getExternalStorageDirectoryPath()
public static String getFilesDirectoryPath(String packageName)
packageName - name of the application packagepublic static String getAssetsDirectoryPath()
public static String getDatabaseDirectoryPath(String packageName)
packageName - name of the application packageCopyright © 2005–2014 QOS.ch. All rights reserved.