Android Envieroment Class

Source: Internet
Author: User

Constantsstringmedia_bad_removal The storage media has been removed before it is mounted. Stringmedia_checking is checking storage media. stringmedia_mounted storage media is already mounted and the mount point is readable/writable. Stringmedia_mounted_read_only storage media has been mounted, mount point is read only. Stringmedia_nofs storage Media is a blank or unsupported file system. stringmedia_removed storage media is removed. stringmedia_shared storage media is being shared via USB. stringmedia_unmountable storage media cannot be mounted.  stringmedia_unmounted storage media is not mounted. Fieldspublic static stringdirectory_alarms system alert ringtone storage standard directory. public static STRINGDIRECTORY_DCIM camera's standard catalog for taking photos and videos. public static stringdirectory_downloads download the standard directory. public static stringdirectory_movies the standard catalog for movie storage. public static Stringdirectory_music The standard directory for music storage. public static stringdirectory_notifications system notifies the standard directory where the ringtone is stored. public static stringdirectory_pictures The standard directory where pictures are stored. public static stringdirectory_podcasts The standard directory where the system broadcasts storage.   public static stringdirectory_ringtones system ringtone storage standard directory. Public Methodsstatic Filegetdatadirectory () obtains the directory of Android data. Static filegetdownloadcachedirectory () gets the download cache directory. Static filegetexternalstoragedirectory () or external storage media directory. Static filegetexternalstoragepublicdirectory (String type) Get a top-levelPublic external storage directory for placing files of a particular type.static stringgetexternalstoragestate () Get current external storage media The state. Static filegetrootdirectory () gets the Android directory.  Excerpt from Google Android Development documentation

Android Envieroment Class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.