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