CN105808697A - Local storage based data preloading method - Google Patents

Local storage based data preloading method Download PDF

Info

Publication number
CN105808697A
CN105808697A CN201610121963.6A CN201610121963A CN105808697A CN 105808697 A CN105808697 A CN 105808697A CN 201610121963 A CN201610121963 A CN 201610121963A CN 105808697 A CN105808697 A CN 105808697A
Authority
CN
China
Prior art keywords
prestrain
application
data
database file
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610121963.6A
Other languages
Chinese (zh)
Inventor
潘大博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing East Chenyuan Information Technology Co Ltd
Original Assignee
Beijing East Chenyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing East Chenyuan Information Technology Co Ltd filed Critical Beijing East Chenyuan Information Technology Co Ltd
Priority to CN201610121963.6A priority Critical patent/CN105808697A/en
Publication of CN105808697A publication Critical patent/CN105808697A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6281Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database at program execution time, where the protection is within the operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to a local storage based data preloading method. The method comprises the following steps of generating a preloading object by data required to be loaded when an application runs; storing the generated preloading object into a database file; packaging the database file and the application; and directly loading the object from the database file when running the application.

Description

A kind of based on locally stored data prestrain method
Technical field
The method that the present invention relates to the startup of application and loading, refers more particularly to the data prestrain method of mobile phone application.
Background technology
Along with popularizing of smart mobile phone, mobile phone application is also increasingly extensive therewith.Due to mobile phone small volume, the hardware resource of mobile phone is subject to bigger restriction, and its disposal ability is confidential compared with individual calculus low, thus, mobile phone application is easier to phenomenon card occur.
And in some mobile phone is applied, due to the needs of program function, for instance will show that more region related data or needs show bigger classification, when application starts, to resolve and load more data.
In the prior art, the method for these data is processed usually by these data records hereof, for instance record is in XML file.When mobile phone application initial start-up, from storage device, first read data file, then carry out text resolution, extract the information needed.Afterwards regeneration can for display object, such as classification tree, the map etc. of bandgap calibration.
In above-mentioned processing mode, on the one hand, do text resolution and object formation due to needs, so can cause bigger load, when handset capability has been not as, it may appear that the phenomenon of card, have a strong impact on Consumer's Experience.Still further aspect, owing to stored data are the files of plaintext version, its safety is also poor, it is easy to is tampered or causes information leakage.
For this, a kind of data loading scheme of urgent need offer, reduction processes load on the one hand, it is to avoid blocks and times;Still further aspect avoids the information leakage expressly caused.
Summary of the invention
For the problems referred to above, on the one hand, the present invention proposes that a kind of described method comprises the steps based on locally stored data prestrain method,
The data genaration prestrain object loaded is needed when application being run;
The prestrain object generated is stored in database file;
Above-mentioned database file is packed together with application;
When running described application, direct library file from the data above loads object.
In above-mentioned data prestrain method, storing in database file is the prestrain object that have passed through serializing.
In above-mentioned data prestrain method, described database file is stored in this locality.
In above-mentioned data prestrain method, described application runs on the mobile phone being provided with android system.
In above-mentioned data prestrain method, described database file is key-value pair type database file.
In above-mentioned data prestrain method, described prestrain object is used for interface display.
Accompanying drawing explanation
Fig. 1 illustrates the step according to an embodiment based on locally stored data Preload system of the present invention.
Detailed description of the invention
Below in conjunction with Figure of description, with specific embodiment, the method based on locally stored data Preload system of the present invention is described.
In some mobile phone is applied, due to the needs of program function, when running this application, generally require some data of loading, the application such as relating to geographic area needs to load the information data relevant to geographic area, and the application relevant to commodity classification needs to load the data that commodity classification is relevant.
In existing technology, this data load process needs through steps such as reading, parsing, object generation and displays.That is, from file or network, the data file of set form is first read, for instance the data file of XML format.Afterwards, it is necessary to this document is resolved, to extract required information.File for complicated structure, for instance XML file, the process of its parsing also ratio is relatively time-consuming.Particularly in data file bigger time, resolving is likely to need the several seconds, thus causing card, causes that application runs not smooth, the experience of extreme influence user.
With reference to Fig. 1, for the problems referred to above, the present invention proposes a kind of technical scheme, and this technical scheme comprises the steps:
Step S001: need the data genaration prestrain object loaded when application being run.
Step S002: by above-mentioned prestrain object serialization.
Step S003: the object of serializing is stored in key assignments (key-value) type database file.
Step S004: storage has the database file of the prestrain object of serializing pack together with application.
Step S005: directly load object when running this application from above-mentioned local database files.
In methods described above, what run application can be smart mobile phone, for instance widely used android system mobile phone.Wherein, described database file is stored in the locally stored module of mobile phone, when running application, the prestrain object that mobile phone reads from local data file and loads, described pre-loaded object needs the object shown in front end when being under many circumstances and start.
In order to object when running is stored file system, prestrain object have passed through serializing.Further, in order to convenient in follow-up reading, the object serialized is stored in the object database of a key-value type, and this wide area information server file is packed together with described application.
Should in aforementioned manners, when application program launching, application need not read original data file, and removes to resolve this document, but directly loads the object kept from local database file.So, generating process owing to saving parsing consuming time and object, the startup time of application obtains effective control, and its experience have also been obtained raising.
Further, technique scheme, compared with existing technical scheme, also has the feature that confidentiality is high.Owing to storage is to local time object data library file, in this document, data are to exist with the form of the binary object after serializing, and so its confidentiality is far above the data file of stored in clear in prior art, and can effectively prevent from distorting.
Above already in connection with specific embodiment, and invention has been described with reference to accompanying drawing, but it is to be understood that, above-mentioned being embodied as is merely illustrative, is not intended that limiting the scope of the invention.Protection scope of the present invention is defined in the claims, and for technical scheme in claim make for amendment known in those skilled in the art, replacement and the combination of equivalence both fall within protection scope of the present invention.

Claims (6)

1., based on a locally stored data prestrain method, described method comprises the steps,
The data genaration prestrain object loaded is needed when application being run;
The prestrain object generated is stored in database file;
Above-mentioned database file is packed together with application;
When running described application, direct library file from the data above loads object.
2. according to claim 1 a kind of based on locally stored data prestrain method, it is characterised in that storing in database file is the prestrain object that have passed through serializing.
3. according to claim 1 a kind of based on locally stored data prestrain method, it is characterised in that described database file is stored in this locality.
4. according to claim 1 a kind of based on locally stored data prestrain method, it is characterised in that described application runs on the mobile phone being provided with android system.
5. according to claim 1 a kind of based on locally stored data prestrain method, it is characterised in that described database file is key-value pair type database file.
6. according to claim 1 a kind of based on locally stored data prestrain method, it is characterised in that described prestrain object is used for interface display.
CN201610121963.6A 2016-03-03 2016-03-03 Local storage based data preloading method Pending CN105808697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610121963.6A CN105808697A (en) 2016-03-03 2016-03-03 Local storage based data preloading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610121963.6A CN105808697A (en) 2016-03-03 2016-03-03 Local storage based data preloading method

Publications (1)

Publication Number Publication Date
CN105808697A true CN105808697A (en) 2016-07-27

Family

ID=56466645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610121963.6A Pending CN105808697A (en) 2016-03-03 2016-03-03 Local storage based data preloading method

Country Status (1)

Country Link
CN (1) CN105808697A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112386916A (en) * 2020-12-01 2021-02-23 网易(杭州)网络有限公司 Resource loading method and device and electronic equipment
CN113971052A (en) * 2021-10-26 2022-01-25 腾讯科技(深圳)有限公司 Application running method, device, equipment, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1612664A1 (en) * 2004-07-02 2006-01-04 Siemens Aktiengesellschaft Device and method for accelerating the access to applications
CN101324865A (en) * 2007-06-15 2008-12-17 精品科技股份有限公司 Embedded type information memory device and method for preloading digital assets management
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN104281472A (en) * 2014-09-18 2015-01-14 青岛海信移动通信技术股份有限公司 Method and device for preloading resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1612664A1 (en) * 2004-07-02 2006-01-04 Siemens Aktiengesellschaft Device and method for accelerating the access to applications
CN101324865A (en) * 2007-06-15 2008-12-17 精品科技股份有限公司 Embedded type information memory device and method for preloading digital assets management
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN104281472A (en) * 2014-09-18 2015-01-14 青岛海信移动通信技术股份有限公司 Method and device for preloading resources

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112386916A (en) * 2020-12-01 2021-02-23 网易(杭州)网络有限公司 Resource loading method and device and electronic equipment
CN113971052A (en) * 2021-10-26 2022-01-25 腾讯科技(深圳)有限公司 Application running method, device, equipment, storage medium and program product
CN113971052B (en) * 2021-10-26 2024-05-17 腾讯科技(深圳)有限公司 Application running method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN103577212A (en) System starting preloading method and device
WO2015058620A1 (en) Method and apparatus for generating installation package corresponding to an application and executing application
US8839446B2 (en) Protecting archive structure with directory verifiers
CN107479868B (en) Interface loading method, device and equipment
CN111131352A (en) Theme switching method and device
CN104049974A (en) Dynamic control assembly method and system
CN110362547A (en) Coding, parsing, storage method and the device of journal file
CN112667246B (en) Application function expansion method and device and electronic equipment
CN109558548B (en) Method for eliminating CSS style redundancy and related product
CN101739589A (en) Method and device for generating intelligent card data
CN105808697A (en) Local storage based data preloading method
US20160034285A1 (en) Extending JAVA Application Functionality
CN112069468A (en) Method and equipment for dynamic watermarking of page
CN112905263A (en) Loading method and device of custom component, electronic equipment and storage medium
CN108985109B (en) Data storage method and device
CN112698842A (en) Method and device for acquiring additional information of application program
CN113835748B (en) Packaging method, system and readable medium for application program based on HTML5
CN113868479B (en) Method and device for processing business data
CN111367577A (en) Method, device and terminal for loading plug-in of application
CN113176988B (en) Data recording method and device
CN116466953A (en) Modularized front-end development method, device, computer equipment and storage medium
CN113961912A (en) Automatic encryption and decryption method, device, equipment and storage medium for android software package
CN1707430B (en) Method and system for packaging data
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
CN113268617A (en) Method and device for detecting metadata of papers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160727

WD01 Invention patent application deemed withdrawn after publication