CN104598258B - Application software starting method and device - Google Patents

Application software starting method and device Download PDF

Info

Publication number
CN104598258B
CN104598258B CN201310530397.0A CN201310530397A CN104598258B CN 104598258 B CN104598258 B CN 104598258B CN 201310530397 A CN201310530397 A CN 201310530397A CN 104598258 B CN104598258 B CN 104598258B
Authority
CN
China
Prior art keywords
data
starting
application software
database
file data
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.)
Active
Application number
CN201310530397.0A
Other languages
Chinese (zh)
Other versions
CN104598258A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310530397.0A priority Critical patent/CN104598258B/en
Publication of CN104598258A publication Critical patent/CN104598258A/en
Application granted granted Critical
Publication of CN104598258B publication Critical patent/CN104598258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses an application software starting method, which comprises the following steps: receiving a starting command for starting application software; loading file data for starting the application software from a local hard disk according to the starting command; and starting the application software according to the file data. Correspondingly, the embodiment of the invention also discloses a corresponding device. The embodiment of the invention can improve the starting speed of the application software.

Description

Application software starting method and device
Technical Field
The invention relates to the technical field of internet, in particular to an application software starting method and device.
Background
More and more applications are currently available, such as game applications, chat applications, video applications, etc. The current application software is started by loading data in a database to finish the starting of the application software. Reading data from the database is slow, which results in slow start-up of the application software.
Disclosure of Invention
The embodiment of the invention provides an application software starting method and device, which can improve the starting speed of application software.
In a first aspect, an embodiment of the present invention provides an application software starting method, including:
receiving a starting command for starting application software;
loading file data for starting the application software from a local hard disk according to the starting command;
and starting the application software according to the file data.
In a second aspect, an embodiment of the present invention provides an application software starting apparatus, including: receiving element, first load unit and start unit, wherein:
the receiving unit is used for receiving a starting command for starting the application software;
the first loading unit is used for loading file data used for starting the application software from a local hard disk according to the starting command;
and the starting unit is used for starting the application software according to the file data.
In the technical scheme, a starting command for starting application software is received; loading file data for starting the application software from a local hard disk according to the starting command; and starting the application software according to the file data. Compared with the prior art that data is loaded from a database, the method and the device for loading the file data from the local hard disk can improve the starting speed of the application software.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an application software starting method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another application software launching method according to an embodiment of the present invention;
FIG. 3 is an exemplary schematic diagram provided by an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application software startup device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another application software startup device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the present invention is not limited to the application software, and examples of the application software include: the application may be a chat application, a video application, a gaming application, or an office application.
Fig. 1 is a schematic flowchart of an application software starting method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
s101, receiving a starting command for starting the application software.
Specifically, the starting command input by the user may be received, for example: clicking an icon of application software by a user; specifically, the starting command may be generated automatically by the system, for example: and starting the application software.
And S102, loading file data for starting the application software from a local hard disk according to the starting command.
Specifically, when the start command is received, the file data may be loaded from the local hard disk according to the start command. In this embodiment, the file data is not limited, and the file data for starting different application software may be different. For example: the file data may include at least one of:
configuration data, quick link data, site navigation data, etc.
S103, starting the application software according to the file data.
Specifically, starting the application software according to the file data may be to perform starting processing on the file data loaded in step S102, for example: display, data configuration, network connection, and the like.
The above method may be applied in particular to any device supporting application software, i.e. the device may implement the above method. For example: the system comprises intelligent equipment with a network function, such as a tablet Computer, a mobile phone, an electronic reader, a remote controller, a Personal Computer (PC), a notebook Computer, vehicle-mounted equipment, a network television, wearable equipment and the like. The mobile phone may specifically be a mobile phone with a window phone operating system.
In the technical scheme, a starting command for starting application software is received; loading file data for starting the application software from a local hard disk according to the starting command; and starting the application software according to the file data. Compared with the prior art that data is loaded from a database, the method and the device for loading the file data from the local hard disk can improve the starting speed of the application software.
Fig. 2 is a schematic flowchart of another application software starting method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
s201, receiving a starting command for starting the application software.
Specifically, the starting command input by the user may be received, for example: clicking an icon of application software by a user; specifically, the starting command may be generated automatically by the system, for example: and starting the application software.
S202, loading file data for starting the application software from a local hard disk according to the starting command.
Optionally, the file data may specifically be data stored in a local hard disk according to a preset format, for example: file data stored in a folder format, or file data stored in a compressed package format. And the loading can also load the file data according to a loading mode corresponding to the preset format. For example: prior to step S202, the method may further comprise:
and acquiring file data for starting the application software, and storing the file data to the local hard disk in a preset format.
The obtaining may specifically be obtaining database data for starting the application software from a database, and then storing the database data in the local hard disk according to the preset format. Of course, it can be obtained in other ways, for example: obtained through a network.
Step S202 may specifically include:
and loading the file data from the local hard disk according to the starting command and a loading mode corresponding to the preset format.
For example: the file data is stored in a folder format, and then step S202 may load the file data from the folder through information such as file identifier; for example: the file data is stored in a compressed packet format, and then step S202 may be to decompress the compressed packet by using information such as an identifier of the compressed packet to load the file data.
S203, starting the application software according to the file data.
Optionally, after step S203, the method may further include:
s204, loading database data used for starting the application software in a database, judging whether the database data comprises inconsistent data or not, and if so, executing a step S205; wherein the inconsistent data refers to data included in the database data that is different from the file data.
S205, updating the inconsistent data to the application software.
Since the database is provided with a data recovery function, the correctness of the database data stored in the database for starting the application software is higher than that of the file data stored in the local hard disk. Therefore, whether the file data is damaged or not (for example, the file data is damaged in the reading and writing process) can be judged by judging whether the database data comprises the inconsistent data or not through the steps. When the database data comprises the inconsistent data, the inconsistent data can be updated to the application software. The specific step of updating the inconsistent data to the application software may be updating a User Interface (UI) or information configuration corresponding to the inconsistent data in the application software.
Optionally, after determining that the database data includes the inconsistent data, the method may further include:
and storing the inconsistent data to the local hard disk, and replacing the data which is different from the database data and is included in the file data.
Specifically, the inconsistent data may be stored in the local hard disk according to the preset format at a location where data included in the file data and different from the database data are located, and the data included in the file data and different from the database data are deleted.
Through the steps, the file data can be updated when the file data is damaged, so that the application software can be started next time.
Optionally, after determining that the database data includes the inconsistent data, the method may further include:
and storing the database data to the local hard disk, and replacing the file data.
Therefore, when the file data is damaged, the database data can be directly stored in the local hard disk, and the file data is replaced.
In the above technical solution, various optional implementations are added on the basis of the above embodiment, and the starting speed of the application software can be improved.
The following is illustrated by way of a specific example, as shown in FIG. 3:
s301, starting the application software, that is, receiving a start command for starting the application software.
S302, relevant data is read from the file, namely relevant data is loaded from the file stored in the local hard disk.
And S303, displaying and configuring the UI, namely displaying and configuring the read related data. When step S303 is completed, the application software start ends.
And S304, reading related data from the database. Step S304 may be specifically executed after step S303.
S305, judging whether the related data in the database is consistent with the related data in the file, if not, executing the step S306, and if so, ending the step.
S306, writing the difference data into the file, namely writing the difference data which is different from the related data in the file in the related data in the database into the file.
S307, updating the UI and information configuration.
For convenience of description, only the relevant parts of the embodiments of the present invention are shown, and details of the specific technology are not disclosed.
Fig. 4 is a schematic structural diagram of an application software starting apparatus according to an embodiment of the present invention, as shown in fig. 4, including: a receiving unit 41, a first loading unit 42 and a starting unit 43, wherein:
a receiving unit 41, configured to receive a start command for starting the application software.
Specifically, the starting command input by the user may be received, for example: clicking an icon of application software by a user; specifically, the starting command may be generated automatically by the system, for example: and starting the application software.
And a first loading unit 42, configured to load, according to the start command, file data for starting the application software from a local hard disk.
Specifically, when the start command is received, the file data may be loaded from the local hard disk according to the start command. In this embodiment, the file data is not limited, and the file data for starting different application software may be different. For example: the file data may include at least one of:
configuration data, quick link data, site navigation data, etc.
A starting unit 43, configured to start the application software according to the file data.
Specifically, starting the application software according to the file data may be to perform starting processing on the file data loaded in step S102, for example: display, data configuration, network connection, and the like.
The above-described apparatus may be applied in particular to any device supporting application software, i.e. the device may comprise the above-described apparatus. For example: the system comprises intelligent equipment with a network function, such as a tablet personal computer, a mobile phone, an electronic reader, a remote controller, a PC (personal computer), a notebook computer, vehicle-mounted equipment, a network television, wearable equipment and the like. The mobile phone may specifically be a mobile phone with a window phone operating system.
In the technical scheme, a starting command for starting application software is received; loading file data for starting the application software from a local hard disk according to the starting command; and starting the application software according to the file data. Compared with the prior art that data is loaded from a database, the method and the device for loading the file data from the local hard disk can improve the starting speed of the application software.
Fig. 5 is a schematic structural diagram of another application software starting apparatus according to an embodiment of the present invention, as shown in fig. 5, including: a receiving unit 51, a first loading unit 52 and a starting unit 53, wherein:
a receiving unit 51, configured to receive a start command for starting the application software.
A first loading unit 52, configured to load, according to the start command, file data for starting the application software from a local hard disk.
Optionally, the file data may specifically be data stored in a local hard disk according to a preset format, for example: file data stored in a folder format, or file data stored in a compressed package format. And the loading can also load the file data according to a loading mode corresponding to the preset format. For example: the apparatus may further include:
and an obtaining unit (not shown in the drawings) configured to obtain file data used for starting the application software, and store the file data in a preset format to the local hard disk.
The obtaining may specifically be obtaining database data for starting the application software from a database, and then storing the database data in the local hard disk according to the preset format. Of course, it can be obtained in other ways, for example: obtained through a network.
The first loading unit 52 may be specifically configured to load the file data from the local hard disk according to the start command in a loading manner corresponding to the preset format.
For example: the file data is stored in a folder format, and the first loading unit 52 may load the file data from the folder through information such as file identification; for example: the file data is stored in a compressed packet format, and the first loading unit 52 may decompress the compressed packet by using information such as an identifier of the compressed packet to load the file data.
And the starting unit 53 is configured to start the application software according to the file data.
Specifically, starting the application software according to the file data may be to perform starting processing on the file data loaded in step S102, for example: display, data configuration, network connection, and the like.
Optionally, the apparatus may further include:
a second loading unit 54, configured to load database data used for starting the application software in a database, and determine whether the database data includes inconsistent data, and if so, update the inconsistent data to the application software; wherein the inconsistent data refers to data included in the database data that is different from the file data.
Since the database is provided with a data recovery function, the correctness of the database data stored in the database for starting the application software is higher than that of the file data stored in the local hard disk. Therefore, whether the file data is damaged or not (for example, the file data is damaged in the reading and writing process) can be judged by judging whether the database data comprises the inconsistent data or not through the steps. When the database data comprises the inconsistent data, the inconsistent data can be updated to the application software. Specifically, the updating of the inconsistent data to the application software may be updating an application UI or information configuration corresponding to the inconsistent data in the application software.
Optionally, the apparatus may further include:
a first replacing unit (not shown in the drawings) configured to, when the second loading unit 54 determines that the database data includes the inconsistent data, store the inconsistent data in the local hard disk, and replace data included in the file data and different from the database data.
Specifically, the inconsistent data may be stored in the local hard disk according to the preset format at a location where data included in the file data and different from the database data are located, and the data included in the file data and different from the database data are deleted.
The first replacement unit (not shown in the figure) can update the file data when the file data is damaged so that the application software can be started next time.
Optionally, the apparatus may further include:
a second replacing unit (not shown in the drawings) configured to, when the second loading unit 54 determines that the database data includes the inconsistent data, store the database data to the local hard disk, and replace the file data.
Therefore, when the file data is damaged, the database data can be directly stored in the local hard disk, and the file data is replaced.
In the above technical solution, various optional implementations are added on the basis of the above embodiment, and the starting speed of the application software can be improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (5)

1. An application software starting method, which is applied to a window mobile phone (window phone) operating system, includes:
receiving a starting command for starting an icon of application software in the operating system of the window mobile phone;
acquiring file data for starting the application software, and storing the file data to a local hard disk in a preset format; the file data is obtained from a database through a network; the preset format comprises a format of a compressed packet;
decompressing the compressed packet containing the file data according to the starting command and a loading mode corresponding to the format of the compressed packet, so as to load the file data from the local hard disk;
starting processing is carried out according to the file data; the starting process comprises user interface display and information configuration;
loading database data used for starting the application software in the database, judging whether the database data comprises inconsistent data, and if so, updating a user interface and information configuration corresponding to the inconsistent data in the application software; wherein the inconsistent data refers to data included in the database data that is different from the file data.
2. The method of claim 1, wherein after determining that the database data includes the inconsistent data, the method further comprises:
storing the inconsistent data to the local hard disk, and replacing data which is different from the database data and is included in the file data; or
And storing the database data to the local hard disk, and replacing the file data.
3. An application software starting device, which is applied to a window mobile phone (window phone) operating system, comprising: receiving element, acquisition unit, first load unit, start unit and second load unit, wherein:
the receiving unit is used for receiving a starting command for starting an icon of application software in the operating system of the window mobile phone;
the acquisition unit is used for acquiring file data for starting the application software and storing the file data to a local hard disk in a preset format; the file data is obtained from a database through a network; the preset format comprises a format of a compressed packet;
the first loading unit is used for decompressing the compressed packet containing the file data according to the starting command and a loading mode corresponding to the format of the compressed packet so as to load the file data from the local hard disk;
the starting unit is used for carrying out starting processing according to the file data; the starting process comprises user interface display and information configuration;
the second loading unit is used for loading database data used for starting the application software in the database, judging whether the database data comprises inconsistent data or not, and if so, updating a user interface and information configuration corresponding to the inconsistent data in the application software; wherein the inconsistent data refers to data included in the database data that is different from the file data.
4. The apparatus of claim 3, wherein the apparatus further comprises:
a first replacing unit, configured to, when the second loading unit determines that the database data includes the inconsistent data, store the inconsistent data to the local hard disk, and replace data that is different from the database data and included in the file data; or
And the second replacing unit is used for storing the database data to the local hard disk and replacing the file data when the second loading unit judges that the database data comprises the inconsistent data.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any of claims 1-2.
CN201310530397.0A 2013-10-31 2013-10-31 Application software starting method and device Active CN104598258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310530397.0A CN104598258B (en) 2013-10-31 2013-10-31 Application software starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310530397.0A CN104598258B (en) 2013-10-31 2013-10-31 Application software starting method and device

Publications (2)

Publication Number Publication Date
CN104598258A CN104598258A (en) 2015-05-06
CN104598258B true CN104598258B (en) 2020-05-26

Family

ID=53124077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310530397.0A Active CN104598258B (en) 2013-10-31 2013-10-31 Application software starting method and device

Country Status (1)

Country Link
CN (1) CN104598258B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8091084B1 (en) * 2006-04-28 2012-01-03 Parallels Holdings, Ltd. Portable virtual machine
US8429422B1 (en) * 2007-03-31 2013-04-23 Actioneer, Inc. Method and apparatus for an improved access system
US8506402B2 (en) * 2009-06-01 2013-08-13 Sony Computer Entertainment America Llc Game execution environments

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760063B (en) * 2011-04-25 2015-08-26 联想(北京)有限公司 A kind of file loading method and device
CN102567525A (en) * 2011-12-29 2012-07-11 深圳市万兴软件有限公司 Method and system for modifying files stored in electronic terminals
CN102736962A (en) * 2012-06-07 2012-10-17 深圳市万兴软件有限公司 Method and device of recovering data
CN102902566A (en) * 2012-09-29 2013-01-30 广东欧珀移动通信有限公司 Method and device for installing and starting application software
CN102968366B (en) * 2012-11-30 2015-10-28 广东欧珀移动通信有限公司 The local storage means of a kind of Blu-ray player daily record and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8091084B1 (en) * 2006-04-28 2012-01-03 Parallels Holdings, Ltd. Portable virtual machine
US8429422B1 (en) * 2007-03-31 2013-04-23 Actioneer, Inc. Method and apparatus for an improved access system
US8506402B2 (en) * 2009-06-01 2013-08-13 Sony Computer Entertainment America Llc Game execution environments

Also Published As

Publication number Publication date
CN104598258A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
KR102497195B1 (en) A mehtod for processing contents, an electronic device and a storage medium therefor
CN108388988B (en) Block chain-based collaborative office method, system and computer-readable storage medium
US20120260202A1 (en) Customized launching of applications
CN105824836B (en) Screenshot sharing method and device, and information receiving method and device
CN110780789B (en) Game application starting method and device, storage medium and electronic device
CN104471917A (en) Application information sharing method and device
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN109582402B (en) Page display method and device
CN110865837B (en) Method and terminal for system upgrade
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
EP3340155A1 (en) Electronic device and method for displaying web page using the same
CN106101358A (en) A kind of method of contact person information updating and smart machine
CN111158788B (en) Desktop starter control method and device and storage medium
CN109117153A (en) Processing method, device, terminal and the storage medium of application program
KR102340251B1 (en) Method for managing data and an electronic device thereof
CN112148395A (en) Page display method, device, equipment and storage medium
CN112486733B (en) System restoration method, device, terminal and storage medium
CN106557262B (en) Data processing method and device
CN108572985B (en) Page display method and device
CN104598258B (en) Application software starting method and device
CN114461053B (en) Resource scheduling method and related device
CN110704157B (en) Application starting method, related device and medium
CN106933613B (en) APP page loading method and device
CN114416212A (en) Mobile terminal application program data resource processing method and device
CN110764837A (en) Method and device for starting equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant