Java android.os Environment fields, constructors, methods, implement or subclass

Example usage for Java android.os Environment fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os Environment.

The text is from its open source code.

Field

StringDIRECTORY_MUSIC
Standard directory in which to place any audio files that should be in the regular list of music for the user.
StringDIRECTORY_PODCASTS
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).
StringDIRECTORY_RINGTONES
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).
StringDIRECTORY_ALARMS
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).
StringDIRECTORY_NOTIFICATIONS
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).
StringDIRECTORY_PICTURES
Standard directory in which to place pictures that are available to the user.
StringDIRECTORY_MOVIES
Standard directory in which to place movies that are available to the user.
StringDIRECTORY_DOWNLOADS
Standard directory in which to place files that have been downloaded by the user.
StringDIRECTORY_DCIM
The traditional location for pictures and videos when mounting the device as a camera.
StringDIRECTORY_DOCUMENTS
Standard directory in which to place documents that have been created by the user.
StringMEDIA_UNKNOWN
Unknown storage state, such as when a path isn't backed by known storage media.
StringMEDIA_REMOVED
Storage state if the media is not present.
StringMEDIA_UNMOUNTED
Storage state if the media is present but not mounted.
StringMEDIA_CHECKING
Storage state if the media is present and being disk-checked.
StringMEDIA_NOFS
Storage state if the media is present but is blank or is using an unsupported filesystem.
StringMEDIA_MOUNTED
Storage state if the media is present and mounted at its mount point with read/write access.
StringMEDIA_MOUNTED_READ_ONLY
Storage state if the media is present and mounted at its mount point with read-only access.
StringMEDIA_SHARED
Storage state if the media is present not mounted, and shared via USB mass storage.
StringMEDIA_BAD_REMOVAL
Storage state if the media was removed before it was unmounted.
StringMEDIA_UNMOUNTABLE
Storage state if the media is present but cannot be mounted.
StringMEDIA_EJECTING
Storage state if the media is in the process of being ejected.

Method

FilegetDataDirectory()
Return the user data directory.
FilegetDownloadCacheDirectory()
Return the download/cache content directory.
FilegetExternalStorageDirectory()
Return the primary shared/external storage directory.
FilegetExternalStoragePublicDirectory(String type)
Get a top-level shared/external storage directory for placing files of a particular type.
StringgetExternalStorageState()
Returns the current state of the primary shared/external storage media.
FilegetLegacyExternalStorageDirectory()
FilegetRootDirectory()
Return root of the "system" partition holding the core Android OS.
StringgetStorageState(File path)
booleanisExternalStorageEmulated()
Returns whether the primary shared/external storage media is emulated.
booleanisExternalStorageRemovable()
Returns whether the primary shared/external storage media is physically removable.
booleanisExternalStorageRemovable(File path)
Returns whether the shared/external storage media at the given path is physically removable.