Method, device, equipment and medium for running application program on terminal device

By detecting the identification information on the terminal device, ensuring that the application is run with the correct configuration data, the application crash caused by misconfiguration data in the prior art is solved, and the user experience and application stability are improved.

CN112379936BActive Publication Date: 2025-01-03ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910691524.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-29
Publication Date
2025-01-03
Estimated Expiration
2039-07-29

AI Technical Summary

Technical Problem

When an existing cloud configuration policy is running an end device application, incorrect configuration data may cause the application to fail to function properly, resulting in damaged user experience and difficulty in updating.

Method used

By detecting whether the terminal device has the first identification information and the second identification information related to the current configuration data, it is ensured that the application is run using the correct configuration data, and if the configuration data is incorrect, the updated configuration data is obtained to avoid a crash.

Benefits of technology

It effectively avoids application crashes caused by misconfiguration of data, improves user experience, and ensures that the application can run normally when the configuration data is updated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112379936B_ABST
    Figure CN112379936B_ABST
Patent Text Reader

Abstract

The disclosed embodiment discloses a method, apparatus, device and medium for a terminal device to run an application program. The method for a terminal device to run an application program includes, before using the current configuration data of the application program to run the application program, detecting whether there is first identification information related to the current configuration data; when the first identification information related to the current configuration data is detected, detecting whether there is second identification information related to the current configuration data; when the second identification information related to the current configuration data is detected, running the application program using the current configuration data. The technical solution ensures that the correct current configuration data is used to run the application program by detecting the first identification information and the second identification information related to the current configuration data, thereby effectively avoiding the situation where the application program cannot run normally or even crashes due to the use of incorrect configuration data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer application technology, and in particular to a method, apparatus, device and medium for running an application program on a terminal device. Background Art

[0002] With the development of mobile Internet, Internet companies provide users with applications that can realize various functions. In order to meet the needs of users to use various applications in different scenarios, the applications of user terminal devices need to be able to achieve flexible cloud configuration. Cloud configuration means that the business logic of the application of the terminal device has multiple options, and the cloud server determines the corresponding configuration data used by the application.

[0003] The current common cloud configuration strategy is that the application of the user terminal device requests configuration data from the server at a certain business opportunity, or the server pushes the configuration data of the application to the user terminal device at a pre-set time. After receiving the configuration data, the user terminal device caches a copy locally for running the application. However, when there is an error in the configuration data obtained from the server, serious consequences may occur. For example, the application of the user terminal device may not run normally or even crash. In this case, even if the configuration data of the server has been corrected to the correct configuration data later, the application of the user terminal device cannot be updated accordingly. Therefore, users can only delete and re-download the application, which seriously damages the user experience. Some users may not even install the same application again after uninstalling the application, which brings great inconvenience to users using the application and Internet companies maintaining and promoting the application. Summary of the invention

[0004] In order to solve the problems in the related art, the embodiments of the present disclosure provide a method, an apparatus, a device and a medium for running an application on a terminal device.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for a terminal device to run an application.

[0006] Specifically, the method for running an application on a terminal device includes:

[0007] Before running the application using the current configuration data of the application, detecting whether there is first identification information related to the current configuration data;

[0008] When first identification information related to the current configuration data is detected, detecting whether second identification information related to the current configuration data exists;

[0009] When second identification information related to the current configuration data is detected, the application is run using the current configuration data.

[0010] In combination with the first aspect, in a first implementation method of the first aspect of the present disclosure, the first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

[0011] In combination with the first aspect, the present disclosure, in a second implementation of the first aspect, further includes:

[0012] Detecting whether the terminal device stores configuration data of the application;

[0013] When detecting that the terminal device stores the configuration data, using the configuration data as the current configuration data;

[0014] When it is not detected that the terminal device stores the configuration data, the configuration data of the application is obtained from a server as the current configuration data.

[0015] In combination with the first aspect, the present disclosure, in a third implementation of the first aspect, further includes:

[0016] When the first identification information related to the current configuration data is not detected, the application is run using the current configuration data, and the first identification information is added to the current configuration data.

[0017] In combination with the third implementation of the first aspect, the present disclosure further includes, in a fourth implementation of the first aspect:

[0018] When the application is run normally using the current configuration data, the second identification information is added to the current configuration data.

[0019] In combination with the first aspect, in a fifth implementation of the first aspect of the present disclosure, when the first identification information related to the current configuration data is detected but the second identification information related to the current configuration data is not detected, or when the application cannot be run normally using the current configuration data, the method further includes:

[0020] Get other configuration data of the application as updated current configuration data

[0021] In combination with the fifth implementation of the first aspect, the sixth implementation of the first aspect of the present disclosure further includes:

[0022] When there is no first identification information related to the updated current configuration data, adding the first identification information to the updated current configuration data and running the application using the updated current configuration data;

[0023] When there is second identification information related to the updated current configuration data, running the application using the updated current configuration data;

[0024] When the first identification information related to the updated current configuration data exists but the second identification information related to the updated current configuration data does not exist, other configuration data of the application is acquired as the updated current configuration data.

[0025] In a second aspect, an embodiment of the present disclosure provides an apparatus for running an application on a terminal device.

[0026] Specifically, the apparatus for running an application on a terminal device includes:

[0027] A first detection module is configured to detect whether there is first identification information related to the current configuration data before running the application using the current configuration data of the application;

[0028] A second detection module is configured to detect whether there is second identification information related to the current configuration data when the first identification information related to the current configuration data is detected;

[0029] The first running module is configured to run the application using the current configuration data when second identification information related to the current configuration data is detected.

[0030] In combination with the second aspect, in a first implementation method of the second aspect of the present disclosure, the first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

[0031] In combination with the second aspect, the present disclosure, in a second implementation of the second aspect, further includes a third detection module, which is configured to:

[0032] Detecting whether the terminal device stores configuration data of the application;

[0033] When detecting that the terminal device stores the configuration data, using the configuration data as the current configuration data;

[0034] When it is not detected that the terminal device stores the configuration data, the configuration data of the application is obtained from a server as the current configuration data.

[0035] In combination with the second aspect, the present disclosure further includes, in a third implementation of the second aspect:

[0036] The first adding module is configured to, when the first identification information related to the current configuration data is not detected, run the application using the current configuration data and add the first identification information to the current configuration data.

[0037] In combination with the third implementation of the second aspect, the present disclosure further includes, in a fourth implementation of the second aspect:

[0038] The second adding module is configured to add the second identification information to the current configuration data when the application is normally run using the current configuration data.

[0039] In combination with the second aspect, the present disclosure further includes, in a fifth implementation of the second aspect:

[0040] The acquisition module is configured to acquire other configuration data of the application as updated current configuration data when first identification information related to the current configuration data is detected but second identification information related to the current configuration data is not detected, or when the application cannot be operated normally using the current configuration data.

[0041] In combination with the fifth implementation of the second aspect, the sixth implementation of the second aspect of the present disclosure further includes:

[0042] The first adding module is further configured to add the first identification information to the updated current configuration data and run the application using the updated current configuration data when the first identification information related to the updated current configuration data does not exist;

[0043] The first running module is further configured to run the application using the updated current configuration data when there is second identification information related to the updated current configuration data;

[0044] The first acquisition module is further configured to acquire other configuration data of the application as the updated current configuration data when there is first identification information related to the updated current configuration data but there is no second identification information related to the updated current configuration data.

[0045] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following method steps:

[0046] Before running the application using the current configuration data of the application, detecting whether there is first identification information related to the current configuration data;

[0047] When first identification information related to the current configuration data is detected, detecting whether second identification information related to the current configuration data exists;

[0048] When second identification information related to the current configuration data is detected, the application is run using the current configuration data.

[0049] In combination with the third aspect, in a first implementation method of the third aspect of the present disclosure, the first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

[0050] In combination with the third aspect, in a second implementation manner of the third aspect of the present disclosure, the one or more computer instructions are further executed by the processor to implement the following method steps:

[0051] Detecting whether the terminal device stores configuration data of the application;

[0052] When detecting that the terminal device stores the configuration data, using the configuration data as the current configuration data;

[0053] When it is not detected that the terminal device stores the configuration data, the configuration data of the application is obtained from a server as the current configuration data.

[0054] In combination with the third aspect, in a third implementation manner of the third aspect of the present disclosure, the one or more computer instructions are further executed by the processor to implement the following method steps:

[0055] When the first identification information related to the current configuration data is not detected, the application is run using the current configuration data, and the first identification information is added to the current configuration data.

[0056] In combination with the third implementation manner of the third aspect, in a fourth implementation manner of the third aspect of the present disclosure, the one or more computer instructions are further executed by the processor to implement the following method steps:

[0057] When the application is run normally using the current configuration data, the second identification information is added to the current configuration data.

[0058] In combination with the third aspect, in a fifth implementation of the third aspect of the present disclosure, when the first identification information related to the current configuration data is detected but the second identification information related to the current configuration data is not detected, or when the application cannot be run normally using the current configuration data,

[0059] The one or more computer instructions are also executed by the processor to implement the following method steps:

[0060] Other configuration data of the application is obtained as updated current configuration data.

[0061] In combination with the fifth implementation manner of the third aspect, in a sixth implementation manner of the third aspect of the present disclosure, the one or more computer instructions are further executed by the processor to implement the following method steps:

[0062] When there is no first identification information related to the updated current configuration data, adding the first identification information to the updated current configuration data and running the application using the updated current configuration data;

[0063] When there is second identification information related to the updated current configuration data, running the application using the updated current configuration data;

[0064] When the first identification information related to the updated current configuration data exists but the second identification information related to the updated current configuration data does not exist, other configuration data of the application is acquired as the updated current configuration data.

[0065] In a fourth aspect, an embodiment of the present disclosure provides a readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the method described in any one of the first aspect and the first to sixth implementations of the first aspect is implemented.

[0066] In a fifth aspect, a method for running an application on a terminal device is provided in an embodiment of the present disclosure.

[0067] Specifically, the method for running an application on a terminal device includes:

[0068] The operating system detects, in response to a start-up request of an application program, whether first identification information related to current configuration data corresponding to the application program exists;

[0069] When first identification information related to the current configuration data is detected, detecting whether second identification information related to the current configuration data exists;

[0070] When second identification information related to the current configuration data is detected, the application is run using the current configuration data.

[0071] In a sixth aspect, an operating system for running an application on a terminal device is provided in an embodiment of the present disclosure.

[0072] Specifically, the operating system used for the terminal device to run the application program includes:

[0073] a fourth detection module, configured to detect, in response to a start-up request of an application, whether first identification information related to current configuration data corresponding to the application exists;

[0074] A fifth detection module, configured to detect whether second identification information related to the current configuration data exists when the first identification information related to the current configuration data is detected;

[0075] The second running module is configured to run the application using the current configuration data when second identification information related to the current configuration data is detected.

[0076] According to the technical solution provided by the embodiment of the present disclosure, by detecting the first identification information and the second identification information related to the current configuration data, it is ensured that the correct current configuration data is used to run the application, thereby effectively avoiding the situation where the application cannot run normally or even crashes due to the use of incorrect configuration data.

[0077] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0079] Figure 1 A flowchart showing a method for a terminal device to run an application according to an embodiment of the present disclosure;

[0080] Figure 2 A diagram showing an application scenario of a terminal device and a server according to an embodiment of the present disclosure;

[0081] Figure 3 An exemplary process of a method for executing an application program on a terminal device according to an embodiment of the present disclosure is shown;

[0082] Figure 4 A flowchart showing a method for a terminal device to run an application according to an embodiment of the present disclosure;

[0083] Figure 5 A structural block diagram of an apparatus for running an application on a terminal device according to an embodiment of the present disclosure is shown;

[0084] Figure 6 A structural block diagram of an operating system for a terminal device to run an application program according to an embodiment of the present disclosure is shown;

[0085] Figure 7 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0086] Figure 8 A schematic diagram showing the structure of a computer system suitable for implementing the method for running an application on a terminal device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0087] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0088] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0089] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0090] Figure 1 A flow chart of a method for running an application on a terminal device according to an embodiment of the present disclosure is shown.

[0091] like Figure 1 As shown, the method for running an application on a terminal device includes the following steps S101-S103:

[0092] In step S101, before running the application using the current configuration data of the application, detecting whether there is first identification information related to the current configuration data;

[0093] In step S102, when first identification information related to the current configuration data is detected, whether second identification information related to the current configuration data exists is detected;

[0094] In step S103, when second identification information related to the current configuration data is detected, the application is run using the current configuration data.

[0095] According to an embodiment of the present disclosure, the terminal device may be a handheld terminal device, a laptop computer, a cellular phone, a smart phone, a wireless data card, a personal digital assistant computer, a tablet computer, a cordless phone, an Internet of Things device (IOT device) or other terminal device that can access the network, which is not specifically limited in the present disclosure. The application program may be software installed on the terminal device, such as a communication program, a game program, an entertainment program, a social program or a practical life program, etc., which is not specifically limited in the present disclosure. The configuration data may include data required by the application during operation, such as the Internet Protocol address of the server that provides services for the application, security data, performance data and monitoring data, etc., which are not specifically limited in the present disclosure. According to an embodiment of the present disclosure, the operation of the application may include the startup of the application and various operations after the startup of the application.

[0096] According to an embodiment of the present disclosure, the first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

[0097] According to an embodiment of the present disclosure, before a terminal device uses the current configuration data to run an application, it is first detected whether there is first identification information indicating that the current configuration data has been used to run an application. If the first identification information is detected, it means that the current configuration data has been used to run an application. After the first identification information is detected, it is detected whether there is second identification information indicating that the terminal device has successfully run an application using the current configuration data. If the second identification information is detected, it means that the terminal device has successfully run an application using the current configuration data, that is, it means that the current configuration data is correct. Then, the current configuration data can be used to run the application.

[0098] As mentioned above, if the current configuration data is wrong, when the terminal device uses the wrong configuration data to run the application, it will cause the application to be abnormal. According to an embodiment of the present disclosure, the terminal device does not directly use the configuration data to run the application, but detects the correctness of the configuration data before using it. Specifically, before using the current configuration data to run the application, the first identification information and the second identification information related to the current configuration data are detected. When the first identification information and the second identification information exist at the same time, it indicates that the current configuration information is correct. At this time, the current configuration data can be used to run the application. In this way, it can effectively avoid the situation where the application cannot run normally or even crashes due to the use of incorrect configuration data.

[0099] According to an embodiment of the present disclosure, the first identification information and the second identification information may be stored as part of a configuration file of the configuration data, or may be stored in a file different from the configuration file of the configuration data. For example, a local file for recording the first and / or second identification information of the configuration data may be created, or a parameter for representing the first and / or second identification information may be added to the configuration data. The embodiment of the present disclosure does not limit the specific form of the first identification information and the second identification information.

[0100] According to an embodiment of the present disclosure, before using the configuration data to run the application, it is possible to first detect whether the terminal device stores the configuration data of the application. If the configuration data is detected in the terminal device, the detected configuration data is used as the current configuration data. If the configuration data of the application is not detected in the terminal device, the configuration data of the application can be obtained from the server as the current configuration data.

[0101] According to an embodiment of the present disclosure, when the first identification information related to the current configuration data is not detected, the application is run using the current configuration data, and the first identification information is added to the current configuration data. If the first identification information related to the current configuration data is not detected, it means that the current configuration data has not been used, and the application is run using the current configuration information, and the first identification information is added to it, so that when the current configuration data is used to run the application in the future, the corresponding first identification information can be detected, indicating that the current configuration data has been used to run the application.

[0102] According to an embodiment of the present disclosure, when the current configuration data is used to run the application program normally, the second identification information is added to the current configuration data. In this way, when the configuration data is to be used in the future, the second identification information can be detected, indicating that the configuration data has been used to run the application program normally.

[0103] According to an embodiment of the present disclosure, when the first identification information related to the current configuration data is detected, but the second identification information related to the current configuration data is not detected, other configuration data of the application is obtained as the current configuration data. According to an embodiment of the present disclosure, if the first identification information related to the current configuration data is detected, but the second identification information related to the current configuration data is not detected, it means that the current configuration data has been used to run the application but failed, that is, the current configuration data may be wrong. In this case, in order to avoid abnormal operation of the application, the terminal device will not use this local current configuration data, but obtains other configuration data of the application as updated current configuration data to run the application.

[0104] According to an embodiment of the present disclosure, when the application cannot be run normally using the current configuration data, the application is restarted, and other configuration data of the application is obtained as updated current configuration data. According to an embodiment of the present disclosure, after the application is restarted, it is detected that the current configuration data used previously has the relevant first identification information but not the second identification information, so the current configuration data is no longer used, but other configuration data of the application is obtained as updated current configuration data to run the application.

[0105] According to an embodiment of the present disclosure, for the updated current configuration data, if there is no first identification information related to the updated current configuration data, it means that the updated current configuration data has not been used, then the first identification information is added to the updated current configuration data and the application is run using the updated current configuration data. If there is second identification information related to the updated current configuration data, it means that the updated current configuration data has been used to run the application normally, then the application is run using the updated current configuration data. If there is first identification information related to the updated current configuration data but there is no second identification information related to the updated current configuration data, it means that the updated current configuration data is wrong, then other configuration data of the application is obtained as the updated current configuration data, and the above operation for the updated current configuration data is repeated.

[0106] According to an embodiment of the present disclosure, obtaining other configuration data of the application as the current configuration data includes obtaining configuration data of other versions of the application from a server as the current configuration data, or obtaining configuration data of other versions of the application locally from a terminal device as the current configuration data. For example, earlier version configuration data or preset default configuration data can be obtained as the current configuration data.

[0107] According to an embodiment of the present disclosure, current configuration data in which the first identification information is detected but the second identification information is not detected, and / or updated current configuration data in which the first identification information exists but the second identification information does not exist, can be deleted to save storage space and avoid repeated detection during subsequent use to waste time and processing resources.

[0108] Reference below Figure 2 and Figure 3 An exemplary process of a method for running an application on a terminal device according to an embodiment of the present disclosure is specifically described.

[0109] Figure 2A diagram showing an application scenario of a terminal device and a server according to an embodiment of the present disclosure.

[0110] like Figure 2 As shown, the application scenario includes a server 201 and a terminal device 202, wherein the server 201 and the terminal device 202 are in communication connection. For the convenience of description, Figure 2 Only one server 201 and six types of terminal devices 202 are drawn in the application scenario. It should be understood that this example is only used for example and is not a limitation of the present disclosure. The number and types of servers 201 and terminal devices 202 in the present disclosure can be set according to actual needs, and the present disclosure does not make specific limitations on this.

[0111] According to an embodiment of the present disclosure, any one or more of the terminal devices 202 running an application program may obtain configuration data of the application program from the server 201 to implement cloud configuration of the application program.

[0112] It is understandable that although Figure 2 An application scenario of the present disclosure is shown, but the present disclosure is also applicable to other application scenarios, such as running an application program using one or more local configuration data files of a terminal device.

[0113] Figure 3 An exemplary process of a method for a terminal device to run an application according to an embodiment of the present disclosure is shown.

[0114] like Figure 3 As shown, in S301, an application on a terminal device is started.

[0115] In S302, it is detected whether configuration data of the application program exists locally on the terminal device.

[0116] If it is not detected in S302 that the configuration data of the application program exists locally in the terminal device, then in S303 , the configuration data of the application program is obtained from the server as the current configuration data, and then the process proceeds to S304 .

[0117] If it is detected in S302 that configuration data of the application program exists locally in the terminal device, the local configuration data is used as current configuration data and the process proceeds to S304.

[0118] In S304, it is detected whether there is first identification information related to the current configuration data.

[0119] If the first identification information related to the current configuration data is not detected in S304, the application is run using the current configuration data in S305, and then, the first identification information is added to the current configuration data in S306. Then, in S307, it is determined whether the application can be run normally using the current configuration data.

[0120] If the application can be run normally using the current configuration data in S307 , then in S308 , second identification information is added to the current configuration data.

[0121] If the application cannot be run normally using the current configuration data in S307 , the process proceeds to S301 to restart the application.

[0122] If the first identification information related to the current configuration data is detected in S304, then in S309, it is detected whether there is second identification information related to the current configuration data.

[0123] If the second identification information related to the current configuration data is detected in S309 , the process proceeds to S306 .

[0124] If the second identification information related to the current configuration data is not detected in S309 , then in S310 , other configuration data of the application is acquired as updated current configuration data, and then the process proceeds to S304 .

[0125] References Figure 3 There are many variations on the operations described.

[0126] For example, after obtaining the configuration data of the application from the server as the current configuration data in S303, the process may proceed to S305 and perform subsequent operations. Because the configuration data obtained from the server does not necessarily have the corresponding first identification information, the operation of detecting the first identification information in S304 may be skipped, and after running the application using the current configuration data in S305, the process may directly perform S306 to add the first identification information.

[0127] For example, in S308, if the current configuration data already has associated second identification information, the second identification information may not be repeatedly set for it.

[0128] For example, obtaining other configuration data of the application as the updated current configuration data in S310 may include obtaining configuration data of other versions of the application from the server as the updated current configuration data, or obtaining configuration data of other versions of the application locally from the terminal device as the updated current configuration data. If the configuration data of other versions of the application is obtained from the server as the updated current configuration data, it is possible to proceed to S305 and perform subsequent operations. Because the configuration data obtained from the server does not necessarily have the corresponding first identification information, the operation of detecting the first identification information in S304 can be skipped, and S306 can be directly executed to add the first identification information after running the application using the current configuration data in S305.

[0129] For example, if the second identification information related to the current configuration data is not detected in S309, the current configuration data may be deleted.

[0130] Figure 4 A flow chart of a method for running an application on a terminal device according to an embodiment of the present disclosure is shown.

[0131] like Figure 4 As shown, the method for running an application on a terminal device includes the following steps S401-S403:

[0132] In step S401, the operating system detects whether there is first identification information related to current configuration data corresponding to the application program in response to a startup request of the application program;

[0133] In step S402, when first identification information related to the current configuration data is detected, whether second identification information related to the current configuration data exists is detected;

[0134] In step S403, when second identification information related to the current configuration data is detected, the application is run using the current configuration data.

[0135] According to the embodiments of the present disclosure, the present invention can be applied to a variety of terminal devices, such as handheld terminal devices, laptop computers, cellular phones, smart phones, wireless data cards, personal digital assistant computers, tablet computers, cordless phones, IOT devices or other terminal devices that can access the network. For example, the terminal device can be a smart refrigerator in the IOT device. When the application A in the smart refrigerator needs to obtain configuration data to start the application A, the smart refrigerator or the operating system of the smart refrigerator responds to the start request of the application A, first detects whether there is a first identification information related to the current configuration data corresponding to the application A, and when the first identification information related to the current configuration data is detected, it indicates that the smart refrigerator has used the current configuration data to run the application A, and then detects whether there is a second identification information related to the current configuration data. When the second identification information related to the current configuration data is detected, it indicates that the smart refrigerator has used the current configuration data to run the application A normally, so the current configuration data can be used to run the application A.

[0136] Figure 5 A structural block diagram of an apparatus 500 for running an application on a terminal device according to an embodiment of the present disclosure is shown.

[0137] The device can be implemented as part or all of the electronic device through software, hardware or a combination of both. Figure 5 As shown, the apparatus for running an application on a terminal device includes a first detection module 510 , a second detection module 520 and a first running module 530 .

[0138] The first detection module 510 is configured to detect whether there is first identification information related to the current configuration data before running the application using the current configuration data of the application;

[0139] The second detection module 520 is configured to run the application using the current configuration data when second identification information related to the current configuration data is detected;

[0140] The first running module 530 is configured to run the application using the current configuration data when second identification information related to the current configuration data is detected.

[0141] According to an embodiment of the present disclosure, the first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

[0142] According to an embodiment of the present disclosure, a third detection module 540 is further included, configured to:

[0143] Detecting whether the terminal device stores configuration data of the application;

[0144] When detecting that the terminal device stores the configuration data, using the configuration data as the current configuration data;

[0145] When it is not detected that the terminal device stores the configuration data, the configuration data of the application is obtained from a server as the current configuration data.

[0146] According to an embodiment of the present disclosure, it also includes:

[0147] The first adding module 550 is configured to, when the first identification information related to the current configuration data is not detected, run the application using the current configuration data and add the first identification information to the current configuration data.

[0148] According to an embodiment of the present disclosure, it also includes:

[0149] The second adding module 560 is configured to add the second identification information to the current configuration data when the application is normally run using the current configuration data.

[0150] According to an embodiment of the present disclosure, it also includes:

[0151] The acquisition module 570 is configured to acquire other configuration data of the application as updated current configuration data when first identification information related to the current configuration data is detected but second identification information related to the current configuration data is not detected, or when the application cannot be operated normally using the current configuration data.

[0152] According to an embodiment of the present disclosure, the first adding module is further configured to, when there is no first identification information related to the updated current configuration data, add the first identification information to the updated current configuration data and run the application using the updated current configuration data;

[0153] The first running module is further configured to run the application using the updated current configuration data when there is second identification information related to the updated current configuration data;

[0154] The first acquisition module is further configured to acquire other configuration data of the application as the updated current configuration data when there is first identification information related to the updated current configuration data but there is no second identification information related to the updated current configuration data.

[0155] According to an embodiment of the present disclosure, the acquiring other configuration data of the application as the updated current configuration data includes:

[0156] Obtaining configuration data of other versions of the application from the server as the updated current configuration data; or

[0157] The configuration data of other versions of the application program is locally acquired from the terminal device as the updated current configuration data.

[0158] According to an embodiment of the present disclosure, a deletion module 580 is further included, which is configured to:

[0159] When the first identification information related to the current configuration data is detected but the second identification information related to the current configuration data is not detected, deleting the current configuration data; and / or

[0160] When the first identification information related to the updated current configuration data exists but the second identification information related to the updated current configuration data does not exist, the updated current configuration data is deleted.

[0161] Figure 6 A structural block diagram of an operating system 600 for a terminal device to run an application program according to an embodiment of the present disclosure is shown.

[0162] The operating system can be implemented as part or all of the electronic device through software, hardware, or a combination of both. Figure 6 As shown, the operating system for the terminal device to run the application includes a fourth detection module 610, a fifth detection module 620 and a second running module 630.

[0163] The fourth detection module 610 is configured to detect, in response to a start request of an application, whether there is first identification information related to current configuration data corresponding to the application;

[0164] The fifth detection module 620 is configured to run the application using the current configuration data when second identification information related to the current configuration data is detected;

[0165] The second running module 630 is configured to run the application using the current configuration data when second identification information related to the current configuration data is detected.

[0166] The present disclosure also discloses an electronic device, Figure 7 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0167] like Figure 7As shown, the electronic device 700 includes a memory 701 and a processor 702; wherein,

[0168] The memory 701 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 702 to implement the following method steps:

[0169] Before running the application using the current configuration data of the application, detecting whether there is first identification information related to the current configuration data;

[0170] When first identification information related to the current configuration data is detected, detecting whether second identification information related to the current configuration data exists;

[0171] When second identification information related to the current configuration data is detected, the application is run using the current configuration data.

[0172] According to an embodiment of the present disclosure, the first identification information indicates that the terminal device has used the current configuration data to run the application;

[0173] The second identification information indicates that the terminal device has used the current configuration data to run the application normally.

[0174] According to an embodiment of the present disclosure, the one or more computer instructions are also executed by the processor to implement the following method steps:

[0175] Detecting whether the terminal device stores configuration data of the application;

[0176] When detecting that the terminal device stores the configuration data, using the configuration data as the current configuration data;

[0177] When it is not detected that the terminal device stores the configuration data, the configuration data of the application is obtained from a server as the current configuration data.

[0178] According to an embodiment of the present disclosure, the one or more computer instructions are also executed by the processor to implement the following method steps:

[0179] When the first identification information related to the current configuration data is not detected, the application is run using the current configuration data, and the first identification information is added to the current configuration data.

[0180] According to an embodiment of the present disclosure, the one or more computer instructions are also executed by the processor to implement the following method steps:

[0181] When the application is run normally using the current configuration data, the second identification information is added to the current configuration data.

[0182] According to an embodiment of the present disclosure, when the first identification information related to the current configuration data is detected, but the second identification information related to the current configuration data is not detected, or when the application cannot be run normally using the current configuration data,

[0183] The one or more computer instructions are also executed by the processor to implement the following method steps:

[0184] Other configuration data of the application is obtained as updated current configuration data.

[0185] According to an embodiment of the present disclosure, the one or more computer instructions are also executed by the processor to implement the following method steps:

[0186] When there is no first identification information related to the updated current configuration data, adding the first identification information to the updated current configuration data and running the application using the updated current configuration data;

[0187] When there is second identification information related to the updated current configuration data, running the application using the updated current configuration data;

[0188] When the first identification information related to the updated current configuration data exists but the second identification information related to the updated current configuration data does not exist, other configuration data of the application is acquired as the updated current configuration data.

[0189] According to an embodiment of the present disclosure, the acquiring other configuration data of the application as the updated current configuration data includes:

[0190] Obtaining configuration data of other versions of the application from the server as the updated current configuration data; or

[0191] The configuration data of other versions of the application program is locally acquired from the terminal device as the updated current configuration data.

[0192] According to an embodiment of the present disclosure, the one or more computer instructions are also executed by the processor to implement the following method steps:

[0193] When the first identification information related to the current configuration data is detected but the second identification information related to the current configuration data is not detected, deleting the current configuration data; and / or

[0194] When the first identification information related to the updated current configuration data exists but the second identification information related to the updated current configuration data does not exist, the updated current configuration data is deleted.

[0195] Figure 8 A schematic diagram showing the structure of a computer system suitable for implementing the data analysis method according to an embodiment of the present disclosure is shown.

[0196] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0197] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0198] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a readable medium thereof, and the computer program includes a program code for executing the above-mentioned object category determination method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 809, and / or installed from a removable medium 811.

[0199] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the road map or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0200] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0201] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.

[0202] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A method for running an application on a terminal device, characterized in that: include: Before running the application using the current configuration data of the application, detecting whether there is first identification information related to the current configuration data; When first identification information related to the current configuration data is detected, detecting whether second identification information related to the current configuration data exists; When second identification information related to the current configuration data is detected, running the application using the current configuration data; The first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

2. The method according to claim 1, characterized in that Also includes: Detecting whether the terminal device stores configuration data of the application; When detecting that the terminal device stores the configuration data, using the configuration data as the current configuration data; When it is not detected that the terminal device stores the configuration data, the configuration data of the application is obtained from a server as the current configuration data.

3. The method according to claim 1, characterized in that Also includes: When the first identification information related to the current configuration data is not detected, the application is run using the current configuration data, and the first identification information is added to the current configuration data.

4. The method according to claim 3, characterized in that Also includes: When the application is run normally using the current configuration data, the second identification information is added to the current configuration data.

5. The method according to claim 1, characterized in that When the first identification information related to the current configuration data is detected but the second identification information related to the current configuration data is not detected, or when the application cannot be run normally using the current configuration data, the method further includes: Other configuration data of the application is obtained as updated current configuration data.

6. A device for running an application on a terminal device, characterized in that: include: A first detection module is configured to detect whether there is first identification information related to the current configuration data before running the application using the current configuration data of the application; A second detection module is configured to detect whether there is second identification information related to the current configuration data when the first identification information related to the current configuration data is detected; A first running module, configured to run the application using the current configuration data when second identification information related to the current configuration data is detected; The first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

7. An electronic device, characterized in that: The method comprises a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following method steps: Before running the application using the current configuration data of the application, detecting whether there is first identification information related to the current configuration data; When first identification information related to the current configuration data is detected, detecting whether second identification information related to the current configuration data exists; When second identification information related to the current configuration data is detected, running the application using the current configuration data; The first identification information indicates that the electronic device has used the current configuration data to run the application; the second identification information indicates that the electronic device has used the current configuration data to run the application normally.

8. A readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.

9. A method for running an application on a terminal device, characterized in that: include: The operating system detects, in response to a start-up request of an application program, whether first identification information related to current configuration data corresponding to the application program exists; When detecting the first identification information related to the current configuration data, detecting whether there is second identification information related to the current configuration data; When second identification information related to the current configuration data is detected, running the application using the current configuration data; The first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.

10. An operating system for running an application on a terminal device, characterized in that: include: a fourth detection module, configured to detect, in response to a start-up request of an application, whether first identification information related to current configuration data corresponding to the application exists; A fifth detection module, configured to detect whether second identification information related to the current configuration data exists when the first identification information related to the current configuration data is detected; A second running module is configured to run the application using the current configuration data when second identification information related to the current configuration data is detected; The first identification information indicates that the terminal device has used the current configuration data to run the application; the second identification information indicates that the terminal device has used the current configuration data to run the application normally.