File operation "Android 8"

Source: Internet
Author: User

File operation Android Data storage method
    • Sharedpreferences Storage
    • File storage
    • SQLite database Storage
    • ContentProvider Storage
    • Networked storage

Resource File storage Directory

Res/xml

The custom XML file. These files are compiled into the application at run time and can be obtained at run time using the Resources.getxml () method

Res/raw

The custom RAW format resource will be copied directly to the device. These files will not be compressed into the application. These resources can be obtained using the Resources.getrawresource () method with the ID parameter, such as R.raw.somefilename

Sharedpreferences file Storage

Sharedpreferences provides some basic information preservation functions, all of which are saved in the form of "Key=value", but android.content. The information stored by the Sharedpreferences interface can only be a few basic data types-such as: String, Integer, Boolean, and so on.

File operation "Android 8"

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.