java.lang.Object | |
↳ | android.os.Environment |
Class Overview
환경변수에 접근할 수 있게 해준다.
ExternalStorage 등에 접근할 때 사용. AndroidMenifest.xml 에 권한 설정도 필요
Summary
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. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DIRECTORY_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). | ||||||||||
DIRECTORY_DCIM | The traditional location for pictures and videos when mounting the device as a camera. | ||||||||||
DIRECTORY_DOWNLOADS | Standard directory in which to place files that have been downloaded by the user. | ||||||||||
DIRECTORY_MOVIES | Standard directory in which to place movies that are available to the user. | ||||||||||
DIRECTORY_MUSIC | Standard directory in which to place any audio files that should be in the regular list of music for the user. | ||||||||||
DIRECTORY_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). | ||||||||||
DIRECTORY_PICTURES | Standard directory in which to place pictures that are available to the user. | ||||||||||
DIRECTORY_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). | ||||||||||
DIRECTORY_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). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the Android data directory. | |||||||||||
Gets the Android Download/Cache content directory. | |||||||||||
Gets the Android external storage directory. | |||||||||||
Get a top-level public external storage directory for placing files of a particular type. | |||||||||||
Gets the current state of the primary "external" storage device. | |||||||||||
Gets the Android root directory. | |||||||||||
Returns whether the device has an external storage device which is emulated. | |||||||||||
Returns whether the primary "external" storage device is removable. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
'Dev. 안드로이드 > API 및 이론' 카테고리의 다른 글
[Android] 안드로이드 액티비티(Activity)의 생명주기(Lifecycle) (0) | 2012.10.19 |
---|---|
비트맵 관련 어플 제작시 자주 발생하는 힙메모리 관련 오류 해결 (0) | 2012.05.16 |
xmlpullparser의 setNamespaceAware (0) | 2012.03.21 |