CN109814930A - A kind of application loading method, device and mobile terminal - Google Patents

A kind of application loading method, device and mobile terminal Download PDF

Info

Publication number
CN109814930A
CN109814930A CN201811611969.7A CN201811611969A CN109814930A CN 109814930 A CN109814930 A CN 109814930A CN 201811611969 A CN201811611969 A CN 201811611969A CN 109814930 A CN109814930 A CN 109814930A
Authority
CN
China
Prior art keywords
data
target
page
downloading
application
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
CN201811611969.7A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811611969.7A priority Critical patent/CN109814930A/en
Publication of CN109814930A publication Critical patent/CN109814930A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of application loading method, device and mobile terminals, the described method includes: obtaining the cold start for being directed to target application, download target data needed for loading predetermined page after the target application starts, the predetermined page is loaded according to the target data of downloading, and continue to download in addition to the target data, load other data needed for the target application.By this method, the target data for preferentially downloading predetermined page may be implemented, shorten and use the target application time by way of cold start-up, avoids the time-consuming larger problem of starting, improve the usage experience of user.

Description

A kind of application loading method, device and mobile terminal
Technical field
The present invention relates to field of computer technology more particularly to a kind of application loading methods, device and mobile terminal.
Background technique
With the continuous development of computer technology, it is raw to be increasingly becoming people for the mobile terminal based on mobile phone, tablet computer Living and work necessity, to solve the problems, such as that application memory occupancy mobile terminal memory is larger, major cell phone manufacturer is proposed A kind of new application ecology based on hardware platform, i.e., fast application.
User in the application in mobile terminal using fastly in application, need to only obtain in platform, finding need to be to be used Using, click the application, i.e., it is usable, without downloading to the application in mobile terminal, when user passes through the side of cold start-up Formula (i.e. in the case where the process applied fastly is all not present in the backstage of mobile terminal and foreground, opening the fast application) starts certain It is fast in application, backstage needs to download the rpk packet applied fastly, in rpk packet comprising apply fastly initialization data, fastly apply in institute There are resource data and the page data etc. of the page, to the resource of all pages in the initialization data, fast application after the completion of downloading Data and page data etc. are decompressed and are verified, and then, are therefrom finding data required for load homepage, and according to looking into The data found load homepage.
But started by way of cold start-up it is fast in application, due to the cold start-up applied fastly all execution processes It is all serial, while fast application function gradually increases, the installation kit applied fastly constantly becomes larger, by the above-mentioned means, to whole After the completion of a installation kit is verified, then data needed for finding homepage are loaded, and certainly will will cause user by cold It is elongated that the mode of starting starts the time applied fastly, that is, that applies fastly from user's click completes to add using icon to mobile terminal The time carried consumed in homepage is elongated, and user experience is poor.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of application loading method, device and mobile terminal are provided, to solve existing skill Time in art using cold start-up is longer, the poor problem of user experience.
In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
In a first aspect, it is provided in an embodiment of the present invention a kind of using loading method, it is applied to mobile terminal, the method packet It includes:
Obtain the cold start for being directed to target application;
Download target data needed for loading predetermined page after the target application starts;
The predetermined page is loaded according to the target data of downloading, and continues to download in addition to the target data, is added Carry other data needed for the target application.
Optionally, the target data of the predetermined page includes initialization data, using creation data, resource data and page Face data.
Optionally, it before target data needed for loading predetermined page after the downloading target application starting, also wraps It includes:
Download the verification data of the target application, wherein the verification data include for verifying the predetermined page First verification data;
It is described that the predetermined page is loaded according to the target data of downloading, comprising:
The target data of the predetermined page is verified based on the first verification data;
If verified successfully, the predetermined page is loaded according to the target data of downloading.
It is optionally, described that the predetermined page is loaded according to the target data of downloading, comprising:
Based on the first verification data, the initialization data is verified, after verifying successfully, is loaded described initial Change data;
Based on the first verification data, application creation data are verified, after verifying successfully, in the movement Terminal creates the target application;
Based on the first verification data, the resource data is verified, after verifying successfully, loads the number of resources According to;
Based on the first verification data, the page data is verified, after verifying successfully, loads the page number According to the institute of the target application of the initialization data, creation, the resource data of load and load based on load It states page data and obtains the predetermined page.
It optionally, further include the second check number for verifying other data of the target application in the verification data According to.
Second aspect applies loading device the embodiment of the invention provides a kind of, and described device includes:
Instruction acquisition module, for obtaining the cold start for being directed to target application;
Data download module, for downloading target data needed for load predetermined page after the target application starts;
Data loading module for loading the predetermined page according to the target data of downloading, and continues downloading except described Other than target data, other data needed for the target application are loaded.
Optionally, the target data of the predetermined page includes initialization data, using creation data, resource data and page Face data.
Optionally, described device further include:
Download module is verified, for downloading the verification data of the target application, wherein the verification data include being used for Verify the first verification data of the predetermined page;
The data loading module, comprising:
Verification unit, for being verified based on the first verification data to the target data of the predetermined page;
Data loading unit, if loading the predetermined page according to the target data of downloading for verifying successfully.
Optionally, the data loading module, comprising:
First loading unit, for based on it is described first verification data, the initialization data is verified, verification at After function, the initialization data is loaded;
Second loading unit, for verifying, verifying to application creation data based on the first verification data After success, the target application is created in the mobile terminal;
Third loading unit, for verifying, being verified successfully to the resource data based on the first verification data Afterwards, the resource data is loaded;
4th loading unit, for verifying, being verified successfully to the page data based on the first verification data Afterwards, the page data is loaded, described in the target application of the initialization data, creation based on load, load Resource data and the page data of load obtain the predetermined page.
It optionally, further include the second check number for verifying other data of the target application in the verification data According to.
The third aspect, the embodiment of the present invention provide a kind of mobile terminal, including processor, memory and are stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor The step of application loading method provided by the above embodiment.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the computer program realizes application load side provided by the above embodiment when being executed by processor The step of method.
By the above technical solution provided in an embodiment of the present invention as it can be seen that the embodiment of the present invention is directed to target application by obtaining Cold start, download the target application starting after load predetermined page needed for target data, then according to the mesh of downloading It marks data and loads predetermined page, and continue to download in addition to target data, other data needed for loading target application, this Sample, when using target application when the user clicks, mobile terminal is instructed according to the cold start-up, downloads the number of targets of predetermined page first According to, while loading target data, continue to download other data, be not necessarily to after the completion of the downloading of all data, it could be according to mesh It marks data and loads predetermined page, shorten the time for clicking from user and using and completing to predetermined page load, provide user's Usage experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in invention, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart using loading method embodiment of the present invention;
For the present invention, another applies the flow chart of loading method embodiment to Fig. 2;
Fig. 3 is another flow chart for applying loading method embodiment of the present invention;
Fig. 4 is the schematic diagram that a kind of application of the present invention loads process;
Fig. 5 is a kind of structural schematic diagram using loading device of the present invention;
Fig. 6 is a kind of structural schematic diagram of mobile terminal of the present invention.
Specific embodiment
The embodiment of the present invention provides a kind of application loading method, device and mobile terminal.
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts, all should belong to protection of the present invention Range.
Embodiment one
As shown in Figure 1, the embodiment of the present invention provides a kind of using loading method, the executing subject of this method can be movement Terminal, wherein the terminal device can such as mobile phone, tablet computer mobile terminal device.This method can specifically include following Step:
In step s 102, the cold start for being directed to target application is obtained.
Wherein, can be can be in any fast application that mobile terminal uses for target application, and fast application can be a kind of use The exploitation of front-end technology stack, primary rendering are provided simultaneously with the H5 page and the dual application ecology a little of native applications.
In an implementation, with the continuous development of computer technology, the mobile terminal based on mobile phone, tablet computer gradually at For people's lives with the necessity of work, for solve the problems, such as application memory occupy mobile terminal memory it is larger, major mobile phone vendor Quotient is proposed a kind of new application ecology based on hardware platform, i.e., fast application.User is using fastly in application, only need to be in movement Application in terminal obtains in platform, and finding needs application to be used, clicks the application, that is, can be used, without answering this With downloading in mobile terminal, when by way of cold start-up (this is not present on the backstage of mobile terminal and foreground in user In the case where the process applied fastly, the fast application is opened) start that certain is fast in application, backstage needs to download the rpk packet applied fastly, The resource data of all pages and page data etc. in including the initialization data applied fastly in rpk packet, applying fastly, downloading is completed The resource data to all pages in the initialization data, fast application and page data etc. are decompressed and are verified afterwards, then, Data required for load homepage are therefrom found, and homepage is loaded according to the data found.
But started by way of cold start-up it is fast in application, due to the cold start-up applied fastly all execution processes It is all serial, while fast application function gradually increases, the installation kit applied fastly constantly becomes larger, by the above-mentioned means, to whole After the completion of a installation kit is verified, then data needed for finding homepage are loaded, and certainly will will cause user by cold It is elongated that the mode of starting starts the time applied fastly, that is, that applies fastly from user's click completes to add using icon to mobile terminal The time carried consumed in homepage is elongated, and user experience is poor.For this purpose, the embodiment of the present invention, which provides one kind, is able to solve the above problem Technical solution, can specifically include the following contents:
Application market etc. can be installed using download platform in mobile terminal, user can find in application market to be needed Target application to be mounted, meanwhile, in the mobile terminal, foreground and backstage are all without the process of the target application, that is, in the shifting The target application is not used in dynamic terminal, after user, which finds, needs fast application to be used, user can click what this was applied fastly Use icon, at this time the cold start-up instruction of the available target application that need to be used to user of mobile terminal.
For example, user needs to open applies A fastly, and do not have to apply the use process of A fastly in mobile terminal, then user can It to open the application market installed in mobile terminal, is searched in application market and applies A fastly, then found in search result fast Using A, the fast use icon using A is clicked, at this point, mobile terminal can receive the fast cold start for applying A.
In addition, user can find suitable target application, for example, user in application market according to keyword search " take-away " being searched in application market, the relevant fast application with " take-away " being found in search result, such as " Meituan is taken out fast Using ", " be hungry take-away fast application " etc., user can select one or more target applications in search result at this time, such as The mobile terminal configuration that fruit user uses has a split screen function, and user can choose using multiple target applications, and mobile terminal can be with Receive the cold start of multiple target applications.
In step S104, target data needed for loading predetermined page after downloading target application starting.
Wherein, target data may include initialization data, using loads such as creation data, resource data and page datas Data needed for predetermined page.
In an implementation, after the cold start-up for receiving target application instructs, the downloading data packet of available target application, And target data needed for loading predetermined page is arranged in the front of data packet downloading queue, it is preferential to download target application starting All target datas needed for loading predetermined page afterwards.
For example, may include in the downloading data packet of target application the initialization data of target application, using creation data, Picture resource data, page resource data etc. can find the target data of load predetermined page, example in downloading data packet It needs to initialize target application before such as loading predetermined page, then (as be used in mobile terminal creation application icon Family, which provides, applies entrance), finally load resource data (such as picture resource, video resource) and page number that predetermined page includes According to, so, target data needed for loading predetermined page includes the initialization data of target application, using creation data, resource Data and page data.
For example, fastly using the manifest.json file in the downloading data packet of A comprising being used to indicate initialization operation (i.e. initialization data), for creating the app.js file applied fastly (i.e. using creation data), for storing institute in fast application There is the common catalogue file (i.e. resource data) of the resource datas such as picture resource, the video resource of the page and fastly using in A 3 pages for including, the respectively page 1- page 3, wherein the page 1 is predetermined page, when user applies city in mobile terminal It is found in fastly using A, and in mobile terminal and the inactive process applied fastly, at this point, user clicks to be made using A fastly With button, it is fastly target application using A, then mobile terminal can that mobile terminal, which will receive the cold start-up applied fastly instruction, To obtain the fast downloading data packet using A, the target of load predetermined page (i.e. the page 1) is then found in downloading data packet Then data can rearrange the downloading order of downloading data package-in file, the file download sequence after arrangement can With as shown in table 1, the downloading of target data is carried out according to the file download sequence in table 1.
Table 1
File
manifest.json
app.js
The resource data of common target lower page 1
The index.js file of the page 1
The resource data of common catalogue lower page 2 and the page 3
The index.js file of the page 2 and the page 3
In addition, the downloading order for the multiple data for including in target data can be serially, it is also possible to parallel, example Such as, can continue to download app.js, or can be according to the downloading order in table 1, after downloading manifest.js file While downloading manifest.js file, the files such as Parallel download app.js are suitable to the downloading of files multiple in target data Sequence, the embodiment of the present invention do not do specific restriction, can be according to the different and different of practical application scene.
In step s 106, predetermined page is loaded according to the target data of downloading, and continues downloading in addition to target data , other data needed for loading target application.
Wherein, other data can be in addition to target data, for loading any other number needed for target application According to for example, for numbers such as image data, video data, page datas needed for loading other pages for including in target application According to.
It in an implementation, can be first according to the target data of downloading to predetermined after having downloaded the target data of predetermined page The page is loaded, and continues other data for downloading target application after load, alternatively, while loading predetermined page, it can With other data of Parallel download target application.
For example, as the file download sequence in above-mentioned table 1 can be according to downloading after the completion of target data all downloading Target data load predetermined page, while can continue download common catalogue lower page 2 and the page 3 resource data, with And the index.js file of the page 2 and the page 3, alternatively, the dependency number of load predetermined page and then the downloading page 2 and the page 3 According to.
The embodiment of the present invention provides a kind of using loading method, and the cold start of target application is directed to by obtaining, under Target data needed for loading predetermined page after the target application starts is carried, predetermined page is then loaded according to the target data of downloading Face, and continue to download in addition to target data, other data needed for loading target application, in this way, using when the user clicks When target application, mobile terminal downloads the target data of predetermined page according to the cold start first, in load target data While, continue to download other data, it is not necessary that predetermined page could be loaded according to target data after the completion of the downloading of all data Face shortens the time for clicking from user and using and completing to predetermined page load, provides the usage experience of user.
Embodiment two
As shown in Fig. 2, the embodiment of the present invention provides a kind of using loading method, the executing subject of this method can be movement Terminal, wherein the terminal device can such as mobile phone, tablet computer mobile terminal device.This method can specifically include following Step:
In step S202, the cold start for being directed to target application is obtained.
The concrete processing procedure of above-mentioned S202 may refer to the related content of S102 in above-described embodiment one, no longer superfluous herein It states.
In step S204, the verification data of target application are downloaded.
Wherein, verification data may include the first verification data for verifying predetermined page.
In an implementation, if comprising can first download target for verifying data in the downloading data packet of target application The verification data of application are verified comprising the first verification data for verifying predetermined page in data, for example, under target application Carrying includes hash.json file (i.e. verification data) in data packet, comprising for owning in target application in the hash.json The hash value that file is verified, that is, include hash value (the i.e. first verification for being verified to predetermined page in this document Data), and the hash value for being verified to other pages, for example, applying fastly includes the page 1- page 3 in A, wherein The page 1 is predetermined page, when getting to the cold start-up applied fastly instruction, the available fast downloading data using A Packet, finds verification data, which can be the compressed package of hash.zip, either in downloading data packet The file of hash.json then after downloading decompresses the compressed package, is corresponded to if it is the compressed package of hash.zip The file of hash.json finds for verifying predetermined page after downloading obtains the hash.json file applied fastly One verification data, the first verification data may include to the verification data for target data needed for loading predetermined page, For example, the verification data of the picture resource for verifying the page 1, the verification data of the page data for verifying the page 1, and Verification data etc. for verification Application initialization data.
In addition, further include the second verification data of other data for verification object application in verification data, such as on It states in the fast verification data using A, further includes the verification data verified to the related data of the page 2 and the page 3, i.e., second Verify data.
In step S206, target data needed for loading predetermined page after downloading target application starting;
The concrete processing procedure of above-mentioned S206 may refer to the related content of S104 in above-described embodiment one, no longer superfluous herein It states.
In step S208, the target data of predetermined page is verified based on the first verification data.
In an implementation, after having downloaded target data, target data can be verified based on the first verification data, this Outside, target data can also be verified during downloading, for example, target data includes initialization data, using wound Data, resource data and page data are built, it can be after the completion of this four target datas be all downloaded, based on the first verification data pair This four target datas are verified, alternatively, initialization data can be verified after having downloaded initialization data, After verifying successfully, continue downloading application creation data, after verifying successfully, is continuing to download resource data, after verifying successfully, under Page data is carried, or, it can be verified according to the download progress of target data, for example, to including in target data Four data are downloaded simultaneously, and the data completed to downloading verify, can be according to download progress, while to one or more A target data is downloaded.
In step S210, if verified successfully, predetermined page is loaded according to the target data of downloading, and continue except mesh It marks other than data, other data needed for load downloading target application.
It in an implementation, can be according to the target data of downloading to predetermined page after verify successfully to target data It is loaded, while other data in lower target application can be continued, according to the second verification data, to other of target application Data are verified, wherein, can be with other data of Parallel download target application when loading target data, and downloading it When his data, based on the second verification data, other data can be verified according to the download progress of other data, for example, Target application includes the page 1- page 3, and wherein the page 1 is predetermined page, then after the target data for having downloaded the page 1, according to First verification data verify the target data of the page 1, after verifying successfully, while loading page 1, under can continuing The related data for carrying the page 2 and the page 3 carries out school according to related data of the download progress to the page 2 and the page 3 in downloading It tests, e.g., when the picture resource data of the page 2 have been downloaded first, then acquisition second verifies in data and corresponds to the picture resource Hash value verifies the picture resource according to the hash value, while verifying the picture resource data of the page 2, if The video resource data of the page 3 also download completion, then can be while verifying the picture resource data of the page 2 to the page 3 Video resource data are verified.
The embodiment of the present invention provides a kind of using loading method, and the cold start of target application is directed to by obtaining, under Target data needed for loading predetermined page after the target application starts is carried, predetermined page is then loaded according to the target data of downloading Face, and continue to download in addition to target data, other data needed for loading target application, in this way, using when the user clicks When target application, mobile terminal is instructed according to the cold start-up, downloads the target data of predetermined page first, in load target data While, continue to download other data, it is not necessary that predetermined page could be loaded according to target data after the completion of the downloading of all data Face shortens the time for clicking from user and using and completing to predetermined page load, provides the usage experience of user.
Embodiment three
As shown in figure 3, the embodiment of the present invention provides a kind of using loading method, the executing subject of this method can be movement Terminal, wherein the terminal device can such as mobile phone, tablet computer mobile terminal device.This method can specifically include following Step:
In step s 302, the cold start for being directed to target application is obtained.
The concrete processing procedure of above-mentioned S302 may refer to the related content of S102 in above-described embodiment one, no longer superfluous herein It states.
In step s 304, the verification data of target application are downloaded.
The concrete processing procedure of above-mentioned S304 may refer to the related content of S204 in above-described embodiment two, no longer superfluous herein It states.
In step S306, target data needed for loading predetermined page after downloading target application starting.
The concrete processing procedure of above-mentioned S306 may refer to the related content of S104 in above-described embodiment one, no longer superfluous herein It states.
In step S308, based on the first verification data, initialization data is verified, after verifying successfully, load is just Beginningization data.
In step s310, based on the first verification data, application creation data is verified, after verifying successfully, are being moved Dynamic terminal creates target application.
In step S312, based on the first verification data, resource data is verified, after verifying successfully, loads resource Data.
In step S314, based on the first verification data, page data is verified, after verifying successfully, loading page Data.
In an implementation, the treatment process of above-mentioned steps S308- step S314 can be realized in conjunction with step S304, for example, such as Shown in Fig. 4, after downloading and having verified verification data, the first check number for being used for verification object data is obtained from verification data According to, then proceed to downloading initialization data, to downloading complete initialization data verify, after verify successfully, load initially Change data, then downloading application creation data, and verified based on the first verification data correspondence with creation data, verification is completed Afterwards, application creation data are loaded, continues to download resource data after the completion, after resource data is verified and loaded, finally Page data is downloaded, page data is verified and is loaded.
It based on above scheme, is optimized to fast using A and the fast downloading process for applying B, and by proof analysis, it is right Two target applications (optimized using above scheme) before optimization and after optimization are tested, and are obtained as shown in table 2 Data result.
Table 2
Target application Before optimization After this programme processing File size
A is applied fastly 982ms 240ms 12kb
B is applied fastly 1314ms 290ms 750kb
From Table 2, it can be seen that based on the time provided by the invention for greatly shortening cold start-up using loading method, Moreover, the cold start-up time of target application can't obviously increase, provided by the invention with the size variation of downloading data packet It is more apparent using effect of optimization of the loading method to the loading method applied fastly.
In addition, the downloading process of target data can be realized with the concurrent process of verification and load, for example, in target data Including four data carry out Parallel download, when initialization data downloading after the completion of, initialization data can be carried out verification and Load can continue to download its excess-three number in target data during verifying initialization data and being loaded According to, when downloaded application creation data after, to application creation data verified and loaded while, continue download target data In other two data, and so on, until four data in target data are all downloaded, verify and load completion.
In addition, if the data for including in target data are compressed data packets, then it can be after the download is complete to compression number It is decompressed according to packet, is being verified and loaded after the completion of decompression.
In step S316, continue to download in addition to target data, other data needed for loading target application.
The concrete processing procedure of above-mentioned S316 may refer to the related content of S106 in above-described embodiment one, no longer superfluous herein It states.
The embodiment of the present invention provides a kind of using loading method, and the cold start of target application is directed to by obtaining, under Target data needed for loading predetermined page after the target application starts is carried, predetermined page is then loaded according to the target data of downloading Face, and continue to download in addition to target data, other data needed for loading target application, in this way, using when the user clicks When target application, mobile terminal is instructed according to the cold start-up, downloads the target data of predetermined page first, in load target data While, continue to download other data, it is not necessary that predetermined page could be loaded according to target data after the completion of the downloading of all data Face shortens the time for clicking from user and using and completing to predetermined page load, provides the usage experience of user.
Example IV
Loading method is applied the above are provided in an embodiment of the present invention, is based on same thinking, the embodiment of the present invention also mentions Loading device is applied for a kind of, as shown in Figure 5.
This includes: instruction acquisition module 501, data download module 502 and data loading module 503 using loading device, Wherein:
Instruction acquisition module 501, for obtaining the cold start for being directed to target application;
Data download module 502, for downloading target data needed for load predetermined page after the target application starts;
Data loading module 503 for loading the predetermined page according to the target data of downloading, and continues downloading except institute It states other than target data, loads other data needed for the target application.
In embodiments of the present invention, the target data of the predetermined page includes initialization data, using creation data, money Source data and page data.
In embodiments of the present invention, described device further include:
Download module is verified, for downloading the verification data of the target application, wherein the verification data include being used for Verify the first verification data of the predetermined page;
The data loading module 503, comprising:
Verification unit, for being verified based on the first verification data to the target data of the predetermined page;
Data loading unit, if loading the predetermined page according to the target data of downloading for verifying successfully.
In embodiments of the present invention, the data loading module 503, comprising:
First loading unit, for based on it is described first verification data, the initialization data is verified, verification at After function, the initialization data is loaded;
Second loading unit, for verifying, verifying to application creation data based on the first verification data After success, the target application is created in the mobile terminal;
Third loading unit, for verifying, being verified successfully to the resource data based on the first verification data Afterwards, the resource data is loaded;
4th loading unit, for verifying, being verified successfully to the page data based on the first verification data Afterwards, the page data is loaded, described in the target application of the initialization data, creation based on load, load Resource data and the page data of load obtain the predetermined page.
It in embodiments of the present invention, further include other data for verifying the target application in the verification data Second verification data.
The method that can also carry out mobile terminal execution in Fig. 1-Fig. 4 using loading device of the embodiment of the present invention, and realize Mobile terminal is in Fig. 1-embodiment illustrated in fig. 4 function, and details are not described herein.
The embodiment of the present invention provides a kind of using loading device, and the cold start of target application is directed to by obtaining, under Target data needed for loading predetermined page after the target application starts is carried, predetermined page is then loaded according to the target data of downloading Face, and continue to download in addition to the target data, other data needed for loading target application, in this way, when the user clicks When using target application, mobile terminal is instructed according to the cold start-up, downloads the target data of predetermined page first, in load target While data, continue to download other data, without that could be loaded according to target data predetermined after the completion of the downloading of all data The page shortens the time for clicking from user and using and completing to predetermined page load, provides the usage experience of user.
Embodiment five
A kind of hardware structural diagram of Fig. 6 mobile terminal of each embodiment to realize the present invention,
The mobile terminal 600 includes but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, defeated Enter unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor The components such as 610 and power supply 611.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 6 is not constituted Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 610, for obtaining the cold start for being directed to target application;
Processor 610 is also used to download target data needed for load predetermined page after the target application starts;
Processor 610 is also used to load the predetermined page according to the target data of downloading, and continues downloading except the mesh It marks other than data, loads other data needed for the target application.
In addition, the target data of the predetermined page includes initialization data, using creation data, resource data and the page Data.
In addition, processor 610, is also used to download the verification data of the target application, wherein the verification data include For verifying the first verification data of the predetermined page;
In addition, the processor 610, is also used to the target data based on the first verification data to the predetermined page It is verified;
In addition, the processor 610 loads described pre- if being also used to verify successfully according to the target data of downloading Determine the page.
In addition, the processor 610, is also used to carry out school to the initialization data based on the first verification data It tests, after verifying successfully, loads the initialization data;
In addition, the processor 610, is also used to carry out application creation data based on the first verification data Verification after verifying successfully, creates the target application in the mobile terminal;
In addition, the processor 610, is also used to verify the resource data based on the first verification data, After verifying successfully, the resource data is loaded;
In addition, the processor 610, is also used to verify the page data based on the first verification data, After verifying successfully, the page data is loaded, with the target application of the initialization data, creation based on load, is added The page data of the resource data and load that carry obtains the predetermined page.
In addition, further including the second check number for verifying other data of the target application in the verification data According to.
The embodiment of the present invention provides a kind of mobile terminal, and the cold start of target application is directed to by obtaining, and downloading should Target data needed for loading predetermined page after target application starting, then loads predetermined page according to the target data of downloading, And continue to download in addition to the target data, other data needed for loading target application, in this way, using when the user clicks When target application, mobile terminal is instructed according to the cold start-up, downloads the target data of predetermined page first, in load target data While, continue to download other data, it is not necessary that predetermined page could be loaded according to target data after the completion of the downloading of all data Face shortens the time for clicking from user and using and completing to predetermined page load, provides the usage experience of user.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 610 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 602 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 603 can be received by radio frequency unit 601 or network module 602 or in memory 609 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 600 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 603 includes loudspeaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor (Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can be deposited Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike Wind 6042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 601 is converted in the case where telephone calling model.
Mobile terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when mobile terminal 600 is moved in one's ear Display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 6061.
User input unit 607 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 607 include touch panel 6071 and Other input equipments 6072.Touch panel 6071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel 6071 Neighbouring operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receiving area It manages the order that device 610 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments 6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touching The type for touching event provides corresponding visual output on display panel 6061.Although in Fig. 6, touch panel 6071 and display Panel 6061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 6071 and display panel 6061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 608 is the interface that external device (ED) is connect with mobile terminal 600.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 600 or can be used in 600 He of mobile terminal Data are transmitted between external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in storage Data in device 609 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611 Can be logically contiguous by power-supply management system and processor 610, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 610, and memory 609 is stored in On memory 609 and the computer program that can run on the processor 610, the computer program are executed by processor 610 The above-mentioned each process using loading method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here It repeats no more.
Embodiment six
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize above-mentioned each process using loading method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-OnlyMemory, abbreviation ROM), random access memory (RandomAccess Memory, abbreviation RAM), magnetic or disk etc..
The embodiment of the present invention provides a kind of computer readable storage medium, by obtaining the cold start-up behaviour for target application Make, downloads target data needed for loading predetermined page after the target application starts, then loaded according to the target data of downloading Predetermined page, and continue to download in addition to the target data, other data needed for loading target application, in this way, when using When family is clicked using target application, mobile terminal is instructed according to the cold start-up, is downloaded the target data of predetermined page first, is being added While carrying target data, continue to download other data, without that could be added according to target data after the completion of the downloading of all data Predetermined page is carried, the time for clicking from user and using and completing to predetermined page load is shortened, provides the usage experience of user.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above description is only an embodiment of the present invention, is not intended to restrict the invention.For those skilled in the art For, the invention may be variously modified and varied.All any modifications made within the spirit and principles of the present invention are equal Replacement, improvement etc., should be included within scope of the presently claimed invention.

Claims (11)

1. a kind of apply loading method, which is characterized in that be applied to mobile terminal, which comprises
Obtain the cold start for being directed to target application;
Download target data needed for loading predetermined page after the target application starts;
The predetermined page is loaded according to the target data of downloading, and continues to download in addition to the target data, loads institute State other data needed for target application.
2. the method according to claim 1, wherein the target data of the predetermined page includes initialization number According to, using creation data, resource data and page data.
3. the method according to claim 1, wherein loading predetermined page after the downloading target application starting Before target data needed for face, further includes:
Download the verification data of the target application, wherein the verification data include for verifying the predetermined page One verification data;
It is described that the predetermined page is loaded according to the target data of downloading, comprising:
The target data of the predetermined page is verified based on the first verification data;
If verified successfully, the predetermined page is loaded according to the target data of downloading.
4. according to the method described in claim 2, it is characterized in that, described load the predetermined page according to the target data of downloading Face, comprising:
Based on the first verification data, the initialization data is verified, after verifying successfully, loads the initialization number According to;
Based on the first verification data, application creation data are verified, after verifying successfully, in the mobile terminal Create the target application;
Based on the first verification data, the resource data is verified, after verifying successfully, loads the resource data;
Based on the first verification data, the page data is verified, after verifying successfully, loads the page data, Described in the target application of the initialization data, creation, the resource data of load and load based on load Page data obtains the predetermined page.
5. according to the method described in claim 3, it is characterized in that, further including for verifying the target in the verification data Second verification data of other data of application.
6. a kind of apply loading device, which is characterized in that described device includes:
Instruction acquisition module, for obtaining the cold start for being directed to target application;
Data download module, for downloading target data needed for load predetermined page after the target application starts;
Data loading module for loading the predetermined page according to the target data of downloading, and continues downloading except the target Other than data, other data needed for the target application are loaded.
7. device according to claim 6, which is characterized in that the target data of the predetermined page includes initialization number According to, using creation data, resource data and page data.
8. device according to claim 6, which is characterized in that described device further include:
Download module is verified, for downloading the verification data of the target application, wherein the verification data include for verifying First verification data of the predetermined page;
The data loading module, comprising:
Verification unit, for being verified based on the first verification data to the target data of the predetermined page;
Data loading unit, if loading the predetermined page according to the target data of downloading for verifying successfully.
9. device according to claim 7, which is characterized in that the data loading module, comprising:
First loading unit, for verifying, being verified successfully to the initialization data based on the first verification data Afterwards, the initialization data is loaded;
Second loading unit, for verifying, being verified successfully to application creation data based on the first verification data Afterwards, the target application is created in the mobile terminal;
Third loading unit, for being verified to the resource data based on the first verification data, after verifying successfully, Load the resource data;
4th loading unit, for being verified to the page data based on the first verification data, after verifying successfully, The page data is loaded, with the target application of the initialization data, creation based on load, the resource of load Data and the page data of load obtain the predetermined page.
10. device according to claim 8, which is characterized in that further include for verifying the mesh in the verification data Mark the second verification data of other data of application.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in application loading method the step of.
CN201811611969.7A 2018-12-27 2018-12-27 A kind of application loading method, device and mobile terminal Pending CN109814930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811611969.7A CN109814930A (en) 2018-12-27 2018-12-27 A kind of application loading method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811611969.7A CN109814930A (en) 2018-12-27 2018-12-27 A kind of application loading method, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN109814930A true CN109814930A (en) 2019-05-28

Family

ID=66602753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811611969.7A Pending CN109814930A (en) 2018-12-27 2018-12-27 A kind of application loading method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN109814930A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162418A (en) * 2019-05-30 2019-08-23 努比亚技术有限公司 Using cold start-up method, mobile terminal and computer readable storage medium
CN110673887A (en) * 2019-08-15 2020-01-10 华为技术有限公司 Application program starting method and device, terminal equipment and readable storage medium
WO2021057390A1 (en) * 2019-09-26 2021-04-01 华为技术有限公司 Method for launching quick application, and related device
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113127132A (en) * 2021-05-10 2021-07-16 广州欢网科技有限责任公司 Method and system for quickly opening application
CN114356449A (en) * 2021-12-29 2022-04-15 广州久邦世纪科技有限公司 Application program loading method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346192A (en) * 2013-08-09 2015-02-11 聚游互动(北京)科技发展有限公司 Download method and download system for mobile application
CN105630543A (en) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 Application cold start acceleration method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346192A (en) * 2013-08-09 2015-02-11 聚游互动(北京)科技发展有限公司 Download method and download system for mobile application
CN105630543A (en) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 Application cold start acceleration method and apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162418A (en) * 2019-05-30 2019-08-23 努比亚技术有限公司 Using cold start-up method, mobile terminal and computer readable storage medium
CN110162418B (en) * 2019-05-30 2023-06-27 努比亚技术有限公司 Application cold start method, mobile terminal and computer readable storage medium
CN110673887A (en) * 2019-08-15 2020-01-10 华为技术有限公司 Application program starting method and device, terminal equipment and readable storage medium
WO2021057390A1 (en) * 2019-09-26 2021-04-01 华为技术有限公司 Method for launching quick application, and related device
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113127132A (en) * 2021-05-10 2021-07-16 广州欢网科技有限责任公司 Method and system for quickly opening application
CN114356449A (en) * 2021-12-29 2022-04-15 广州久邦世纪科技有限公司 Application program loading method

Similar Documents

Publication Publication Date Title
CN108415739B (en) Hook method and device for dynamic link library function and storage medium
CN109814930A (en) A kind of application loading method, device and mobile terminal
CN109828802B (en) List view display method, device and readable medium
CN106933525B (en) A kind of method and apparatus showing image
CN110034876A (en) PUCCH resource instruction, processing method, network side equipment, user terminal
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN104021129B (en) Show the method and terminal of group picture
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN107766747A (en) Method, mobile terminal and the server of verification Application program installation kit integrality
CN106919458B (en) Method and device for Hook target kernel function
CN104869465A (en) Video playing control method and device
CN108055567A (en) A kind of method for processing video frequency, device, terminal device and storage medium
CN107396193B (en) The method and apparatus of video playing
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN108388451A (en) Method for starting up mobile terminal, device and mobile terminal
CN113822322B (en) Image processing model training method and text processing model training method
CN110035181A (en) It is a kind of to apply card theme setting method and terminal fastly
CN109885257A (en) A kind of disk file reading/writing method and device
CN112817634B (en) COTA package downloading method and device
CN110162254A (en) A kind of display methods and terminal device
CN108320148A (en) A kind of resource transfers method and relevant device
CN116010076A (en) Application running method and related equipment
CN110968815A (en) Page refreshing method, device, terminal and storage medium
CN109828770A (en) A kind of method for upgrading software, terminal device and server
CN108710501A (en) A kind of method and terminal of update application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination