ObjectiveI've been talking about Androidui, but it's not over yet, and I'll add it later. Today, I'll talk about other things about data persistence. For an application, it is unavoidable to be able to store the data, and the Android program is no exception. In Android, there are several ways to implement data persistence. The following will be described separate
The sequential and chained storage of linear tables has different time complexity in storing and deleting data.
Typical examples of sequential storage are arrays, and a typical example of chained storage is a single linked list. As we all know, when the reading data is more
In the actual development, the storage data is mainly using SQLite. In practice, we mainly use the following three kinds of storage methods.(1) using plist storage to simply NSString, Nsarray, nsdictionary, etc.(2) Using preference storage, similar to the above, the
Bit
It is an IP address of a single position in the 20 h. 2fh Area of the internal data storage space, or a 8051-bit address that can address SFr.
CodeIs a Code address between 0000 h .. 0 ffffh.
Data
It is a data storage address between 0 and 127, or a special function regi
localstorage– data storage with no time limitsessionstorage– data storage for a session
——————Localstorage methodThe data stored by the Localstorage method has no time limit. Data is still available after the next day, the second
MYSQL internal data storage has not been well documented. I am free to study it. [@ more @] 1. analyze row data with single fields: 1.1 create test data droptableifexistsheyf_5; createtableheyf_5 (namevarchar (50) typemyisamdefadefacharsetlatin1; insertintoheyf_5value
MYSQL internal
File storage (internal storage)once the program is installed in the device, the data/data/package name/That is the internal storage space, external confidentiality.The context provides 2 ways to open an input, output stream
FileInputStream openfileinput (String name)
Download source code (download-free credits): Download
You can directly store data in internal storage. By default, files are private to internal storage and cannot beWhen you uninstall an application, the files are removed.You can create and write data in two ways:
Using related methods in java,
Use the related met
SharedPreferences is also a lightweight data storage method.The essence is to store key-value pairs of data based on XML files.Is usually used to store some simple configuration information. Its storage location is/Data/
/Shared_prefs
Directory. Read SharedPreferenc
CookiesCookies, sometimes in their plural form, are the data (usually encrypted) stored on the user's local terminal by certain websites in order to identify the user and track the session. The next step is to talk about some of the advantages and disadvantages of cookies, cookie although the persistent preservation of client data provides the convenience of sharing the burden of server
Android data storage methods and android Storage
As a complete application, data storage operations are essential. Therefore, the Android system provides four data storage
Learn android from scratch (Data Storage (2) Internal Storage. 36 .)
CallopenFileOutput()With the name of the file and the operating mode. This returnsFileOutputStream. PassOpenFileOutput () creates a FileoutputStream object
Write to the filewrite(). Create a Write object and perform data read/Write operations.
Clo
Induction:LinearContinuous storage of "arrays"Advantage: Fast access (element can be directly located)Cons: Insertion of deleted elements is slow (because you want to move other elements), space is usually limitedDiscrete storage "linked list"Advantage: No space limit, insert delete element quicklyCons: Access speed is slow (to one traversal, one for one)Application of linear structure:1. Stack2. QueuesNonl
source Download (download points free): DownloadYou can store the data directly into the internal storage, and by default, the file is stored in the internal storage that is private and cannot beOther programs are accessed, and when the application is uninstalled, the files are removed.There are two ways to create and write d
There are five ways to store data on the Android platform:1. File storage data;2. Use sharedpreferences to store data;3. SQLite database stores data;4. Use contentprovider to store data;5. network
content is controlled by the Cache Control information, including related freshness detection.
In actual applications, Application Cache is prone to problems. Typical examples are: how to change the manifest file to achieve resource update, and may cause repeated Cache (the time for manifest Parsing is different ). When deciding to use Application Cache, you must read this article carefully:
The API provided by Application Cache is very simple. It does not rely on JS to implement the Cache,
RW Size (rw data + ZI data) 104 (0.10kB)Total ROM Size (Code + RO data + RW data) 2988 (2.92kB)
============================================================================== Total ROM Size (Code + RO data + RW data) This writes
Android
External Storage stores store data files on the SD card.
1. When saving data, you must first judge the SD card status.
Environment. getExternalStorageState () can be used to display the running status of the SD card.
There are two statuses:
MEDIA_UNKNOWN,MEDIA_REMOVED,MEDIA_UNMOUNTED,MEDIA_CHECKING,MEDIA_NOFS,MEDIA_MOUNTED,MEDIA_MOUNTED_READ_ONLY,MEDIA_S
Data
Microsoft Data Engine MSDE
Overview
Developers who create applications face the choice of which technology should be selected among the many database options. There are a number of factors that developers need to consider before choosing a database technology. For example, how many users does the application need to support? Do all users have access to the
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.