Android Environment常见字段

SD卡状态值

String MEDIA_BAD_REMOVAL Storage state if the media was removed before it was unmounted.

String MEDIA_CHECKING Storage state if the media is present and being disk-checked.

String MEDIA_EJECTING Storage state if the media is in the process of being ejected.

String MEDIA_MOUNTED Storage state if the media is present and mounted at its mount point with read/write access.

String MEDIA_MOUNTED_READ_ONLY Storage state if the media is present and mounted at its mount point with read-only access.

String MEDIA_NOFS Storage state if the media is present but is blank or is using an unsupported filesystem.

String MEDIA_REMOVED Storage state if the media is not present.

String MEDIA_SHARED Storage state if the media is present not mounted, and shared via USB mass storage.

String MEDIA_UNKNOWN Unknown storage state, such as when a path isn’t backed by known storage media.

String MEDIA_UNMOUNTABLE Storage state if the media is present but cannot be mounted.

String MEDIA_UNMOUNTED Storage state if the media is present but not mounted.

常见文件字段

public static String 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).

public static String DIRECTORY_DCIM The traditional location for pictures and videos when mounting the device as a camera.

public static String DIRECTORY_DOCUMENTS Standard directory in which to place documents that have been created by the user.

public static String DIRECTORY_DOWNLOADS Standard directory in which to place files that have been downloaded by the user.

public static String DIRECTORY_MOVIES Standard directory in which to place movies that are available to the user.

public static String DIRECTORY_MUSIC Standard directory in which to place any audio files that should be in the regular list of music for the user.

public static String 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).

public static String DIRECTORY_PICTURES Standard directory in which to place pictures that are available to the user.

public static String 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).

public static String 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).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值