Android.OS.Environment Members

The members of Android.OS.Environment are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
MediaBadRemovalstring. Storage state if the media was removed before it was unmounted.
const
MediaCheckingstring. Storage state if the media is present and being disk-checked.
const
MediaMountedstring. Storage state if the media is present and mounted at its mount point with read/write access.
const
MediaMountedReadOnlystring. Storage state if the media is present and mounted at its mount point with read-only access.
const
MediaNofsstring. Storage state if the media is present but is blank or is using an unsupported filesystem.
const
MediaRemovedstring. Storage state if the media is not present.
const
MediaSharedstring. Storage state if the media is present not mounted, and shared via USB mass storage.
const
MediaUnknownstring. Unknown storage state, such as when a path isn't backed by known storage media.
const
MediaUnmountablestring. Storage state if the media is present but cannot be mounted.
const
MediaUnmountedstring. Storage state if the media is present but not mounted.

Public Properties

[read-only]
static
DataDirectoryJava.IO.File. Return the user data directory.
static
DirectoryAlarmsstring. Standard directory in which to place any audio files that should be in the list of alarms that the user can select (not as regular music).
static
DirectoryDcimstring. The traditional location for pictures and videos when mounting the device as a camera.
static
DirectoryDocumentsstring. Standard directory in which to place documents that have been created by the user.
static
DirectoryDownloadsstring. Standard directory in which to place files that have been downloaded by the user.
static
DirectoryMoviesstring. Standard directory in which to place movies that are available to the user.
static
DirectoryMusicstring. Standard directory in which to place any audio files that should be in the regular list of music for the user.
static
DirectoryNotificationsstring. Standard directory in which to place any audio files that should be in the list of notifications that the user can select (not as regular music).
static
DirectoryPicturesstring. Standard directory in which to place pictures that are available to the user.
static
DirectoryPodcastsstring. Standard directory in which to place any audio files that should be in the list of podcasts that the user can select (not as regular music).
static
DirectoryRingtonesstring. Standard directory in which to place any audio files that should be in the list of ringtones that the user can select (not as regular music).
[read-only]
static
DownloadCacheDirectoryJava.IO.File. Return the download/cache content directory.
[read-only]
static
ExternalStorageDirectoryJava.IO.File. Return the primary external storage directory.
[read-only]
static
ExternalStorageStatestring. Returns the current state of the primary "external" storage device.
[read-only]
static
IsExternalStorageEmulatedbool. Returns whether the primary "external" storage device is emulated.
[read-only]
static
IsExternalStorageRemovablebool. Returns whether the primary "external" storage device is removable.
[read-only]
static
RootDirectoryJava.IO.File. Return root of the "system" partition holding the core Android OS.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
GetExternalStoragePublicDirectory(string) : Java.IO.File
Get a top-level public external storage directory for placing files of a particular type.
static
GetExternalStorageState(Java.IO.File) : string
Returns the current state of the storage device that provides the given path.
static
GetStorageState(Java.IO.File) : string
static
InvokeIsExternalStorageEmulated(Java.IO.File) : bool
Returns whether the storage device that provides the given path is emulated.
static
InvokeIsExternalStorageRemovable(Java.IO.File) : bool
Returns whether the storage device that provides the given path is removable.