Fields Summary |
---|
private static final File | ROOT_DIRECTORY |
private static final File | DATA_DIRECTORY |
private static final File | EXTERNAL_STORAGE_DIRECTORY |
private static final File | DOWNLOAD_CACHE_DIRECTORY |
public static final String | MEDIA_REMOVEDgetExternalStorageState() returns MEDIA_REMOVED if the media is not present. |
public static final String | MEDIA_UNMOUNTEDgetExternalStorageState() returns MEDIA_UNMOUNTED if the media is present
but not mounted. |
public static final String | MEDIA_CHECKINGgetExternalStorageState() returns MEDIA_CHECKING if the media is present
and being disk-checked |
public static final String | MEDIA_NOFSgetExternalStorageState() returns MEDIA_NOFS if the media is present
but is blank or is using an unsupported filesystem |
public static final String | MEDIA_MOUNTEDgetExternalStorageState() returns MEDIA_MOUNTED if the media is present
and mounted at its mount point with read/write access. |
public static final String | MEDIA_MOUNTED_READ_ONLYgetExternalStorageState() returns MEDIA_MOUNTED_READ_ONLY if the media is present
and mounted at its mount point with read only access. |
public static final String | MEDIA_SHAREDgetExternalStorageState() returns MEDIA_SHARED if the media is present
not mounted, and shared via USB mass storage. |
public static final String | MEDIA_BAD_REMOVALgetExternalStorageState() returns MEDIA_BAD_REMOVAL if the media was
removed before it was unmounted. |
public static final String | MEDIA_UNMOUNTABLEgetExternalStorageState() returns MEDIA_UNMOUNTABLE if the media is present
but cannot be mounted. Typically this happens if the file system on the
media is corrupted. |
Methods Summary |
---|
public static java.io.File | getDataDirectory()Gets the Android data directory.
return DATA_DIRECTORY;
|
static java.io.File | getDirectory(java.lang.String variableName, java.lang.String defaultPath)
String path = System.getenv(variableName);
return path == null ? new File(defaultPath) : new File(path);
|
public static java.io.File | getDownloadCacheDirectory()Gets the Android Download/Cache content directory.
return DOWNLOAD_CACHE_DIRECTORY;
|
public static java.io.File | getExternalStorageDirectory()Gets the Android external storage directory.
return EXTERNAL_STORAGE_DIRECTORY;
|
public static java.lang.String | getExternalStorageState()Gets the current state of the external storage device.
return SystemProperties.get("EXTERNAL_STORAGE_STATE", MEDIA_REMOVED);
|
public static java.io.File | getRootDirectory()Gets the Android root directory.
return ROOT_DIRECTORY;
|