String |
MEDIA_BAD_REMOVAL |
在没有挂载前存储媒体已经被移除。 |
String |
MEDIA_CHECKING |
正在检查存储媒体。 |
String |
MEDIA_MOUNTED |
存储媒体已经挂载,并且挂载点可读/写。 |
String |
MEDIA_MOUNTED_READ_ONLY |
存储媒体已经挂载,挂载点只读。 |
String |
MEDIA_NOFS |
存储媒体是空白或是不支持的文件系统。 |
String |
MEDIA_REMOVED |
存储媒体被移除。 |
String |
MEDIA_SHARED |
存储媒体正在通过USB共享。 |
String |
MEDIA_UNMOUNTABLE |
存储媒体无法挂载。 |
String |
MEDIA_UNMOUNTED |
存储媒体没有挂载。 |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static String |
DIRECTORY_ALARMS |
系统提醒铃声存放的标准目录。 | |||||||||
public static String |
DIRECTORY_DCIM |
相机拍摄照片和视频的标准目录。 | |||||||||
public static String |
DIRECTORY_DOWNLOADS |
下载的标准目录。 | |||||||||
public static String |
DIRECTORY_MOVIES |
电影存放的标准目录。 | |||||||||
public static String |
DIRECTORY_MUSIC |
音乐存放的标准目录。 | |||||||||
public static String |
DIRECTORY_NOTIFICATIONS |
系统通知铃声存放的标准目录。 | |||||||||
public static String |
DIRECTORY_PICTURES |
图片存放的标准目录。 | |||||||||
public static String |
DIRECTORY_PODCASTS |
系统广播存放的标准目录。 | |||||||||
public static String |
DIRECTORY_RINGTONES |
系统铃声存放的标准目录。 |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static File |
getDataDirectory() 获得android data的目录。 | ||||||||||
static File |
getDownloadCacheDirectory() 获得下载缓存目录。 | ||||||||||
static File |
getExternalStorageDirectory() 或者外部存储媒体目录。 | ||||||||||
static File |
getExternalStoragePublicDirectory(String type)Get a top-level public external storage directory for placing files of a particular type. | ||||||||||
static String |
getExternalStorageState() 获得当前外部储存媒体的状态。 | ||||||||||
static File |
getRootDirectory() 获得android的跟目录。 |