Several directories in Android

Source: Internet
Author: User

1. Context.getexternalfilesdir () ==>/sdcard/android/data/app package name/files/

Usually put a long time to save data, corresponding settings, applications, application details, "Clear Data"


2. Context.getexternalcachedir () ==>/sdcard/android/data/app package name/cache/

General storage of temporary cache data , app-to-app details, corresponding settings, " Clear Cache "


3. Context.getfilesdir () ==>/data/data/<package name>/files

The directory that this method obtains is not on the sdcard, but on the application installation directory


4. Context.getcachedir () ==>/data/data/<package Name>/cache

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.

Reference:   [Android data store] sdcard/android/data/What is this directory for?

Several directories in Android

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.