Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data processing method and system based on SharedPreferences tool

A technology of data processing and tools, which is applied in the direction of electronic digital data processing, special data processing applications, file systems, etc., can solve the problems of no encryption processing, complex usage methods, etc., and achieve the effect of simple and fast storage process, safe and reliable storage

Inactive Publication Date: 2017-03-29
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The usage methods provided by the system are very complicated to use, and users need to call different storage methods to store data according to the data type.
[0003] In addition, the existing SharedPreferences tool stores data without encryption, and anyone can read the file and obtain the corresponding content of the file

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and system based on SharedPreferences tool
  • Data processing method and system based on SharedPreferences tool
  • Data processing method and system based on SharedPreferences tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0066] First, the related nouns are explained as follows:

[0067] SharedPreferences: SharedPreferences is a lightweight storage class on the Android platform, which is used to save some common configurations of applications. Files are usually stored in XML form.

[0068] AES: Advanced Encryption Standard (English: Advanced Encryption Standard, abbreviation: AES), also known as Rijndael encryption in cryptography, is a block encryption standard adopted by the US federal government. This standard is used to replace the original DES, has been analyzed by many parties and is widely used all over the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data processing method and system based on a SharedPreferences tool. A storage method comprises the steps that a storage interface setValue of the SharedPreferences tool is called for data storage, wherein a plurality of storage functions are packaged by the storage interface setValue; and the storage interface setValue carries out classified storage on to-be-stored data by calling different storage functions according to types of to-be-stored data. According to the method and the system, various storage data channels are processed, thereby forming the uniform storage interface and a singleton design is globally available. The plurality of storage functions are packaged by the uniform storage interface. When the data is stored, the classified storage of the data can be realized by calling the interface. The whole storage process is simple and fast.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a data processing method and system based on a SharedPreferences tool. Background technique [0002] SharedPreferences is a form of file storage in Android development. Files are mainly saved in the form of XML. SharedPreferences tools are used very frequently during the development process. The usage method provided by the system is very complicated to use, requiring the user to call different storage methods to store according to the data type. [0003] In addition, the existing SharedPreferences tool stores data without encryption, and anyone can read the file and obtain the corresponding content of the file. Usually SharedPreferences is used to store some settings or data that needs to be saved for a long time. If it is read and changed by a third party at will, it is the result that the developer does not want to see. Contents of the invention [0004] One of the purposes of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F17/30G06F21/60
CPCG06F16/13G06F9/449G06F16/172G06F16/83G06F21/602G06F2221/2107
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products