|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.os.Environment
public class Environment
Provides access to environment variables.
| Field Summary | |
|---|---|
static String |
MEDIA_BAD_REMOVAL
getExternalStorageState() returns MEDIA_BAD_REMOVAL if the media was removed before it was unmounted. |
static String |
MEDIA_MOUNTED
getExternalStorageState() returns MEDIA_MOUNTED if the media is present and mounted at its mount point with read/write access. |
static String |
MEDIA_MOUNTED_READ_ONLY
getExternalStorageState() returns MEDIA_MOUNTED_READ_ONLY if the media is present and mounted at its mount point with read only access. |
static String |
MEDIA_REMOVED
getExternalStorageState() returns MEDIA_REMOVED if the media is not present. |
static String |
MEDIA_SHARED
getExternalStorageState() returns MEDIA_SHARED if the media is present not mounted, and shared via USB mass storage. |
static String |
MEDIA_UNMOUNTABLE
getExternalStorageState() returns MEDIA_UNMOUNTABLE if the media is present but cannot be mounted. |
static String |
MEDIA_UNMOUNTED
getExternalStorageState() returns MEDIA_UNMOUNTED if the media is present but not mounted. |
| Constructor Summary | |
|---|---|
Environment()
|
|
| Method Summary | |
|---|---|
static File |
getDataDirectory()
Gets the Android data directory. |
(package private) static File |
getDirectory(String variableName,
String defaultPath)
|
static File |
getDownloadCacheDirectory()
Gets the Android Download/Cache content directory. |
static File |
getExternalStorageDirectory()
Gets the Android external storage directory. |
static String |
getExternalStorageState()
Gets the current state of the external storage device. |
static File |
getRootDirectory()
Gets the Android root directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MEDIA_REMOVED
public static final String MEDIA_UNMOUNTED
public static final String MEDIA_MOUNTED
public static final String MEDIA_MOUNTED_READ_ONLY
public static final String MEDIA_SHARED
public static final String MEDIA_BAD_REMOVAL
public static final String MEDIA_UNMOUNTABLE
| Constructor Detail |
|---|
public Environment()
| Method Detail |
|---|
public static File getRootDirectory()
public static File getDataDirectory()
public static File getExternalStorageDirectory()
public static File getDownloadCacheDirectory()
public static String getExternalStorageState()
static File getDirectory(String variableName,
String defaultPath)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||