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 receivingunit 41, afirst loading unit 42 and astarting unit 43, wherein:
a receivingunit 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 afirst 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.
Astarting 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 receivingunit 51, afirst loading unit 52 and astarting unit 53, wherein:
a receivingunit 51, configured to receive a start command for starting the application software.
Afirst 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.
Thefirst 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 thefirst 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 thefirst 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 thestarting 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:
asecond 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 thesecond 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 thesecond 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.