java.lang.Object | |
↳ | android.os.Environment |
Provides access to environment variables.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MEDIA_BAD_REMOVAL | getExternalStorageState() returns MEDIA_BAD_REMOVAL if the media was removed before it was unmounted. | |||||||||
String | MEDIA_CHECKING | getExternalStorageState() returns MEDIA_CHECKING if the media is present and being disk-checked | |||||||||
String | MEDIA_MOUNTED | getExternalStorageState() returns MEDIA_MOUNTED if the media is present and mounted at its mount point with read/write access. | |||||||||
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. | |||||||||
String | MEDIA_NOFS | getExternalStorageState() returns MEDIA_NOFS if the media is present but is blank or is using an unsupported filesystem | |||||||||
String | MEDIA_REMOVED | getExternalStorageState() returns MEDIA_REMOVED if the media is not present. | |||||||||
String | MEDIA_SHARED | getExternalStorageState() returns MEDIA_SHARED if the media is present not mounted, and shared via USB mass storage. | |||||||||
String | MEDIA_UNMOUNTABLE | getExternalStorageState() returns MEDIA_UNMOUNTABLE if the media is present but cannot be mounted. | |||||||||
String | MEDIA_UNMOUNTED | getExternalStorageState() returns MEDIA_UNMOUNTED if the media is present but not mounted. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the Android data directory.
| |||||||||||
Gets the Android Download/Cache content directory.
| |||||||||||
Gets the Android external storage directory.
| |||||||||||
Gets the current state of the external storage device.
| |||||||||||
Gets the Android root directory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
getExternalStorageState() returns MEDIA_BAD_REMOVAL if the media was removed before it was unmounted.
getExternalStorageState() returns MEDIA_CHECKING if the media is present and being disk-checked
getExternalStorageState() returns MEDIA_MOUNTED if the media is present and mounted at its mount point with read/write access.
getExternalStorageState() returns MEDIA_MOUNTED_READ_ONLY if the media is present and mounted at its mount point with read only access.
getExternalStorageState() returns MEDIA_NOFS if the media is present but is blank or is using an unsupported filesystem
getExternalStorageState() returns MEDIA_REMOVED if the media is not present.
getExternalStorageState() returns MEDIA_SHARED if the media is present not mounted, and shared via USB mass storage.
getExternalStorageState() returns MEDIA_UNMOUNTABLE if the media is present but cannot be mounted. Typically this happens if the file system on the media is corrupted.
getExternalStorageState() returns MEDIA_UNMOUNTED if the media is present but not mounted.
Gets the Android data directory.
Gets the Android Download/Cache content directory.
Gets the Android external storage directory.
Gets the current state of the external storage device.
Gets the Android root directory.