Android Data Storage Path

Source: Internet
Author: User

1, through the Context.getexternalfilesdir () method can get to sdcard/android/data/your app's package name/files/directory, usually put some long-time saved data
The Context.getexternalcachedir () method allows you to get to sdcard/android/data/your app package name/cache/directory, typically storing temporary cache data

And the "Clear data" and "clear cache" options in the above two directories corresponding to the application details of settings--

2, Context.getfilesdir () can get to "/data/data/<package Name>/files" This method obtains the directory is not on the sdcard, but in the application installs the directory

Context.getcachedir can get to "/data/data/<package Name>/cache" This method obtains the directory is not on the sdcard, but in the application installs the directory, The data in this file is deleted by the system when the device is running out of memory. Note: You can not rely on the system to help you delete these files, when the data in this folder more than 1MB, the system will delete the data in this folder.

Android Data Storage Path

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.