A terminal application control method, apparatus, electronic device, and storage medium

By receiving the terminal application's startup request and obtaining control parameters, and encapsulating the screen identifier and application identifier, the problem of control accuracy when the terminal application runs on different screens is solved, and accurate startup of cross-screen applications is achieved.

CN115408069BActive Publication Date: 2026-05-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2021-05-27
Publication Date
2026-05-26

Smart Images

  • Figure CN115408069B_ABST
    Figure CN115408069B_ABST
Patent Text Reader

Abstract

This invention discloses a terminal application control method, apparatus, electronic device, and storage medium. Upon receiving a terminal application launch request, this invention runs a first terminal application corresponding to a first screen identifier on a first screen according to the launch request. When a control request is received from the first terminal application, control parameters for controlling a second terminal application corresponding to the second application identifier and a second screen corresponding to the second screen identifier are obtained based on the second application identifier and the second screen identifier carried in the control request. The control parameters, the second application identifier, and the second screen identifier are then encapsulated to obtain launch parameters for the second terminal application on the second screen. Finally, the second terminal application is run on the second screen based on the launch parameters. This scheme can improve the accuracy of terminal application control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more specifically to a terminal application control method, device, electronic device, and storage medium. Background Technology

[0002] In recent years, with the rapid development of internet technology, the ways in which terminal applications run on terminals have become more diverse. For example, when a terminal has multiple displays, it is necessary to control the terminal application to run on different screens. Existing terminal application control methods mainly involve running different terminal applications independently on different screens.

[0003] In the research and practice of existing technologies, most terminal applications running on different screens are always running and cannot be closed. When there is a specific relationship (such as timing relationship) between terminal applications running on different screens, it often leads to the inability to accurately control the operation of these terminals on different screens, resulting in a decrease in the accuracy of terminal application control. Summary of the Invention

[0004] This invention provides a terminal application control method, apparatus, electronic device, and storage medium, which can improve the accuracy of terminal application control.

[0005] A terminal application control method, comprising:

[0006] Receive a terminal application launch request, wherein the terminal application launch request carries a first application identifier and a first screen identifier;

[0007] According to the terminal application launch request, run the terminal first application corresponding to the first application identifier on the first screen corresponding to the first screen identifier;

[0008] When a control request is received from the first application of the terminal, the control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request.

[0009] The control parameters, the second application identifier, and the second screen identifier are encapsulated to obtain the startup parameters of the second application on the second screen of the terminal.

[0010] The second application of the terminal is run on the second screen based on the startup parameters.

[0011] Accordingly, embodiments of the present invention provide a terminal application control device, including:

[0012] The receiving unit is configured to receive a terminal application startup request, wherein the terminal application startup request carries a first application identifier and a first screen identifier;

[0013] The first running unit is configured to run the first application of the terminal corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the terminal application startup request.

[0014] The acquisition unit is configured to, when receiving a control request sent by the first application of the terminal, acquire control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier based on the second application identifier and the second screen identifier carried in the control request.

[0015] The encapsulation unit is used to encapsulate the control parameters, the second application identifier, and the second screen identifier to obtain the startup parameters of the second application of the terminal on the second screen.

[0016] The second operating unit is used to run the second terminal application on the second screen based on the startup parameters.

[0017] Optionally, in some embodiments, the acquisition unit may be specifically used to filter out the control interface corresponding to the control request from a preset set of control interfaces to obtain a target control interface; and to call the target control interface according to the second application identifier and the second screen identifier carried by the control request to obtain control parameters for controlling the second terminal application corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0018] Optionally, in some embodiments, the acquisition unit may be specifically used to compare the second screen identifier carried in the control request with the first screen identifier; when the second screen identifier and the first screen identifier are different, the control interface for cross-screen control is selected from the control interface set to obtain the target control interface.

[0019] Optionally, in some embodiments, the acquisition unit may be specifically used to call the target control interface according to the second application identifier and the second screen identifier carried in the control request to obtain the initial control parameters corresponding to the target control interface; verify the initial control parameters based on the second application identifier and the second screen identifier; and when the initial control parameters pass the verification, use the initial control parameters as control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0020] Optionally, in some embodiments, the acquisition unit may be specifically used to verify the legality of the initial control parameter according to the parameter type of the initial control parameter; when the initial control parameter is legal, query the second screen identifier in the screen parameters; when the second screen identifier exists in the screen parameters, verify the application parameter; when the initial control parameter passes verification, using the initial control parameter as the control parameter for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier includes: when the application parameter passes verification, using the initial control parameter as the control parameter for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0021] Optionally, in some embodiments, the acquisition unit may be specifically used to query the target application identifier and startup path of the terminal application to be controlled in the application parameters; when the target application identifier and startup path exist in the application parameters, the target application identifier is compared with a second application identifier; when the target application identifier and the second application identifier are the same, the running address of the terminal application is extracted from the startup path, and the target screen identifier corresponding to the running address is determined; when the target screen identifier and the second screen identifier are the same, the verification of the application parameters is determined to be successful.

[0022] Optionally, in some embodiments, the second running unit may be specifically used to obtain the startup information of the second application of the terminal according to the startup parameters, and extract the attribute information of the second application of the terminal from the startup parameters; detect the terminal application running on the second screen based on the attribute information of the second application of the terminal; and run the second application of the terminal on the second screen according to the detection result and the startup information of the second application of the terminal.

[0023] Optionally, in some embodiments, the second running unit may be specifically used to acquire current process information and determine the currently running terminal application based on the process information; query the target terminal application running in the second screen within the currently running terminal application; the step of running the second terminal application on the second screen based on the detection result and the startup information of the second terminal application includes: when the target terminal application exists in the currently running terminal application, comparing the attribute information of the second terminal application with the attribute information of the target terminal application, and running the second terminal application in the second screen based on the comparison result and the startup information of the second terminal application; the step of running the second terminal application on the second screen based on the detection result and the startup information of the second terminal application includes: when the target terminal application does not exist in the currently running terminal application, running the second terminal application on the second screen based on the startup information of the second terminal application.

[0024] Optionally, in some embodiments, the second running unit may be specifically used to determine the target terminal application as the second terminal application and keep the target terminal application running when the attribute information of the second terminal application is the same as the attribute information of the target terminal application; when the attribute information of the second terminal application is different from the attribute information of the target terminal application, stop running the target terminal application and run the second terminal application on the second screen according to the startup information of the second terminal application.

[0025] Optionally, in some embodiments, the second running unit may be specifically used to obtain the target startup information of the target terminal application in the current application container, and delete the target startup information from the current application container to stop the target terminal application from running; and load the startup information of the second terminal application into the current application container to run the second terminal application on the second screen.

[0026] Optionally, in some embodiments, the second running unit may be specifically used to filter out the target application container corresponding to the second screen from a preset set of application containers, and start the target application container; load the startup information of the terminal's second application into the target application container, so as to run the terminal's second application on the second screen.

[0027] Optionally, in some embodiments, the first running unit may be specifically used to obtain target control parameters corresponding to the terminal startup request, the target control parameters being used to control the terminal first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier; encapsulate the target control parameters, the first application identifier, and the first screen identifier to obtain the target startup parameters of the terminal first application; and run the terminal first application on the first screen based on the target startup parameters.

[0028] Furthermore, embodiments of the present invention also provide an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the terminal application control method provided in embodiments of the present invention.

[0029] Furthermore, embodiments of the present invention also provide a storage medium (also referred to as a computer-readable storage medium) that stores a plurality of instructions adapted for loading by a processor to execute steps in any of the terminal application control methods provided in embodiments of the present invention.

[0030] In this embodiment of the invention, after receiving a terminal application launch request, the first terminal application corresponding to the first application identifier is run on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request sent by the first terminal application is received, the control parameters for controlling the second terminal application corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request. Then, the control parameters, the second application identifier, and the second screen identifier are encapsulated to obtain the launch parameters for the second terminal application on the second screen. Then, the second terminal application is run on the second screen based on the launch parameters. Since this scheme obtains the control parameters for controlling the second screen and the second terminal application on the terminal after receiving the control request sent by the first terminal application, and encapsulates the control parameters, screen identifier, and application identifier into launch parameters for starting the second terminal application to run the second terminal application on the second screen, it is possible to control other terminal applications running on different screens through the terminal application. Therefore, the accuracy of terminal application control can be improved. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1This is a schematic diagram of a scenario for the terminal application control method provided in an embodiment of the present invention;

[0033] Figure 2 This is a flowchart illustrating the terminal application control method provided in an embodiment of the present invention;

[0034] Figure 3 This is a schematic diagram of the cross-screen operation of a first terminal application and a second terminal application provided in an embodiment of the present invention;

[0035] Figure 4 This is another flowchart of the terminal application control method provided in the embodiments of the present invention;

[0036] Figure 5 This is a schematic diagram of the process for verifying initial control parameters provided in an embodiment of the present invention;

[0037] Figure 6 This is a flowchart illustrating the process of running the second applet provided in an embodiment of the present invention;

[0038] Figure 7 This is a schematic diagram of the receipt push mini-program provided in an embodiment of the present invention;

[0039] Figure 8 This is a schematic diagram of the structure of the terminal application control device provided in an embodiment of the present invention;

[0040] Figure 9 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] This invention provides a terminal application control method, apparatus, and storage medium. The terminal application control apparatus can be integrated into an electronic device, which may be a server or a terminal, etc.

[0043] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.

[0044] For example, see Figure 1 Taking the integration of a terminal application control device into an electronic device as an example, after receiving a terminal application launch request, the electronic device runs the terminal first application corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request is received from the terminal first application, the control parameters for controlling the terminal second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request. Then, the control parameters, the second application identifier and the second screen identifier are encapsulated to obtain the launch parameters of the terminal second application on the second screen. Then, the terminal second application is run on the second screen based on the launch parameters, thereby realizing the cross-screen launch of the terminal application.

[0045] Among them, terminal applications are applications that run on terminals. For example, they can include applications that run on the Android system or other systems, or they can include mini programs that run on some platforms. These mini programs can be IoT mini programs, which are mini programs that can run on hardware devices that are independent of the application platform environment.

[0046] The terminal application control method provided in this application involves artificial intelligence technology. In this application embodiment, artificial intelligence technology can be used to obtain control parameters and run a second terminal application on the second screen based on the control parameters.

[0047] Artificial intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to have perception, reasoning, and decision-making capabilities. AI technology is a comprehensive discipline involving a wide range of fields, encompassing both hardware and software technologies. AI software technology primarily includes computer vision technology and machine learning / deep learning.

[0048] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0049] This embodiment will be described from the perspective of a terminal application control device, which can be integrated into an electronic device, such as a server or a terminal. The terminal can include tablet computers, laptops, personal computers (PCs), wearable devices, virtual reality devices, or other smart devices that can control terminal applications.

[0050] A terminal application control method, comprising:

[0051] Upon receiving a terminal application launch request, the terminal first application corresponding to the first application identifier is run on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request is received from the terminal first application, the control parameters for controlling the terminal second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request. The control parameters, the second application identifier and the second screen identifier are encapsulated to obtain the launch parameters for the terminal second application on the second screen. The terminal second application is run on the second screen based on the launch parameters.

[0052] like Figure 2 As shown, the specific process of this terminal application control method is as follows:

[0053] 110. Receive terminal application startup request.

[0054] The terminal application launch request is a request to launch or run one or more terminal applications on the screen of the terminal. The terminal application launch request carries a first application identifier and a first screen identifier. Therefore, the terminal application launch request is used to launch or run the terminal first application corresponding to the first application identifier on the first screen corresponding to the first screen identifier of the terminal.

[0055] There are several ways to receive a terminal application launch request, including the following:

[0056] For example, it can directly receive terminal application launch requests. For instance, it can receive terminal application launch requests generated by the user on the terminal application launch page of the terminal by triggering the launch control of the terminal application. The terminal application launch request carries the first application identifier of the terminal application to be launched and the first screen identifier of the screen on which the terminal application is running.

[0057] 120. Based on the terminal application startup request, run the terminal first application corresponding to the first application identifier on the first screen corresponding to the first screen identifier.

[0058] For example, the target control parameters corresponding to the terminal application launch request can be obtained. These target control parameters are used to control the terminal's first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier. The target control parameters, the first application identifier, and the first screen identifier are encapsulated to obtain the target launch parameters of the terminal's first application. The terminal's first application is then run on the first screen based on the target launch parameters, as follows:

[0059] A1. Obtain the target control parameters corresponding to the terminal application startup request.

[0060] Among them, the target control parameters are used to control the terminal first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier.

[0061] There are several ways to obtain the target control parameters. For example, you can call the control interface or startup interface corresponding to the first application identifier and the first screen identifier to obtain the control parameters corresponding to the control interface or startup interface, and use the control parameters as the target control parameters. Alternatively, you can filter out the control parameters corresponding to the first application identifier and the first screen identifier from the preset control parameter set to obtain the target control parameters.

[0062] A2. Encapsulate the target control parameters, the first application identifier, and the first screen identifier to obtain the target startup parameters of the terminal's first application.

[0063] The target startup parameters are the parameters for launching the first application on the terminal within the first screen. These startup parameters may include the attribute information of the first application on the terminal, as well as the installation package of the first application on the terminal, or data or parameter sets that need to be loaded during the startup process, etc.

[0064] There are various encapsulation methods. For example, the target control parameters, the first application identifier, and the first screen identifier can be merged to obtain the merged control parameters. The encapsulation protocol of the target startup parameters can be obtained, the merged control parameters can be mapped to the payload of the encapsulation protocol, and then the header of the corresponding protocol can be filled to obtain the target startup parameters of the terminal's first application.

[0065] A3. Run the terminal's first application on the first screen based on the target startup parameters.

[0066] For example, the startup information of the first application on the terminal can be obtained based on the target startup parameters, and the attribute information of the first application can be extracted from the target startup parameters. Based on the attribute information of the first application, the terminal running on the first screen corresponding to the first screen identifier can be detected. Based on the detection results and the startup information of the first application, the first application can be run on the first screen. Specifically, it can be as follows:

[0067] (1) Based on the target startup parameters, obtain the startup information of the first application on the terminal, and extract the attribute information of the first application on the terminal from the target startup parameters.

[0068] For example, based on the target startup parameters, information such as the installation package, installer, or launcher corresponding to the first application identifier is obtained, and this information is used as the startup information of the terminal's first application. The first application identifier, version number, and version information of the terminal's first application are extracted from the target startup parameters to obtain the attribute information of the terminal's first application.

[0069] (2) Based on the attribute information of the first application of the terminal, detect the terminal running on the first screen corresponding to the first screen identifier.

[0070] For example, there can be multiple detection methods. For instance, one can obtain the process information of the terminal application currently running on the terminal, and determine the terminal application currently running on the terminal based on the process information. Then, one can query whether there is a terminal application running on the first screen among the currently running terminal applications. Alternatively, one can directly detect the process information corresponding to the first screen to detect whether there is a terminal application currently running.

[0071] (3) Based on the detection results and the startup information of the terminal's first application, run the terminal's first application on the first screen.

[0072] For example, when a running application is present on the first screen, its attribute information is compared with that of the first application. This comparison might include checking if the application identifier, version number, and version information of the running application are the same. If the attributes of the running application match those of the first application, the running application is identified as the first application, and it remains running. If the attributes of the running application differ from those of the first application, the running application is stopped, and the first application is launched on the first screen based on its startup information.

[0073] There are several ways to stop the currently running terminal application. For example, you can obtain the startup information of the currently running terminal application in the application container corresponding to the first screen and delete the startup information from the application container, thus stopping the currently running terminal application.

[0074] There are several ways to run the first application on the first screen. For example, you can refresh the runtime (running instance) status of the application container corresponding to the first screen, that is, load the startup information of the first application on the first screen into the application container corresponding to the first screen, so that the first application on the first screen can run.

[0075] When there is no running terminal application on the first screen, the terminal's first application can be run directly on the first screen. There are several ways to run it. For example, the application container corresponding to the first screen can be launched directly, and the startup information of the terminal's first application can be loaded into the application container corresponding to the first screen, so that the terminal's first application can be run on the first screen.

[0076] Before running the first application on the first screen, the first screen can be started. After the first screen environment is started, the application container corresponding to the first screen is started so that the first application on the first screen can be run.

[0077] 130. When a control request is received from the first application of the terminal, the control parameters of the second application corresponding to the second application and the second screen corresponding to the second screen are obtained according to the second application identifier and the second screen identifier carried in the control request.

[0078] Among them, the control parameters are used to control the parameters on which the second application on the terminal runs on the second screen. These control parameters may include screen parameters, startup path, and terminal application parameters.

[0079] There are several ways to obtain control parameters, as follows:

[0080] For example, when a control request is received from the first application on the terminal, the control interface corresponding to the control request is selected from the preset set of control interfaces to obtain the target control interface. The target control interface is then called according to the second application identifier and the second screen identifier carried in the control request to obtain the control parameters for controlling the second application on the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0081] There are several ways to filter out the target control interface from the preset control interface set. For example, the second screen identifier carried in the control request can be compared with the first screen identifier. When the second screen identifier is different from the first screen identifier, the control interface used for cross-screen control can be filtered out from the control interface set to obtain the target control interface.

[0082] After the target control interface is selected, it can be called to obtain the control parameters. For example, the target control interface can be called according to the second application identifier and the second screen identifier carried in the control request to obtain the initial control parameters corresponding to the target control interface. The initial control parameters are verified based on the second application identifier and the second screen identifier. When the initial control parameters pass the verification, the initial control parameters are used as the control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0083] The initial control parameters include screen parameters and application parameters. There are several ways to verify the initial control parameters. For example, the validity of the initial control parameters can be verified based on their parameter types. When the initial control parameters are valid, the second screen identifier is queried in the screen parameters. If the second screen identifier exists in the screen parameters, the application parameters are verified. When the application parameters pass the verification, the initial control parameters are used as the control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0084] The validity verification is mainly based on the parameter type. For example, if the control parameter has a startup path, it means that the control parameter is valid if it is a path address. If the control parameter is not a path address but a string of garbled characters, it means that the control parameter is invalid. When the control parameter is invalid, the interface call failure message can be returned directly to the first application on the terminal.

[0085] The screen parameter verification is mainly used to verify whether the screen parameters specify the screen on which the terminal application to be launched across screens runs. Therefore, if the screen parameters contain a second screen identifier that is specified for launch, it means that the screen parameter verification has passed. Otherwise, it can be determined that the target control interface call has failed, and then a call failure prompt message is returned to the first terminal application.

[0086] The application parameter validation primarily verifies whether the application parameters contain all types of parameters needed to launch the second application on the terminal. This includes parameters such as the second application identifier and launch path of the second application to be launched. Therefore, the application parameters need to be queried for the target application identifier and launch path of the terminal application to be controlled. If the application parameters contain both, the target application identifier is compared with the second application identifier. If they match, the running address of the terminal application is extracted from the launch path, and the target screen identifier corresponding to that running address is determined. If the target screen identifier matches the second screen identifier, it indicates that the application parameters contain all parameter types, and the application parameter validation is successful. Only then is the target control interface call considered successful; otherwise, the target control interface call is considered a failure, and a call failure message is returned to the first application on the terminal.

[0087] Optionally, the application parameters can also include other parameters, such as startup time or startup region. In this case, it is also necessary to check whether the application parameters contain startup time or startup region information. If the application parameters contain this information, it can be determined that the application parameter verification has passed.

[0088] 140. Encapsulate the control parameters, the second application identifier, and the second screen identifier to obtain the startup parameters of the terminal's second application on the second screen.

[0089] For example, control parameters, second application identifier, and second screen identifier can be fused to obtain fused target control parameters. The target encapsulation protocol corresponding to the startup parameters can be obtained, and the fused target control parameters can be mapped to the payload of the target encapsulation protocol. Then, the header of the corresponding protocol can be filled to obtain the target startup parameters of the terminal's second application.

[0090] 150. Run the second terminal application on the second screen based on the startup parameters.

[0091] For example, the startup information of the second application on the terminal can be obtained based on the startup parameters, and the attribute information of the second application can be extracted from the startup parameters. Based on the attribute information of the second application, the terminal application running on the second screen can be detected. Based on the detection results and the startup information of the second application, the second application can be run on the second screen. Specifically, it can be as follows:

[0092] S1. Based on the startup parameters, obtain the startup information of the second application on the terminal, and extract the attribute information of the second application on the terminal from the startup parameters.

[0093] For example, based on the startup parameters, information such as the installation package, installer, or launcher corresponding to the second application identifier is obtained, and this information is used as the startup information for the second application on the terminal. The second application identifier, version number, and version information of the second application on the terminal are extracted from the startup parameters to obtain the attribute information of the second application on the terminal.

[0094] S2. Based on the attribute information of the second application on the terminal, detect the terminal application running on the second screen.

[0095] For example, current process information can be obtained, and based on the process information, the currently running terminal application can be determined. The target terminal application running on the second screen can be queried among the currently running terminal applications. When the target terminal application exists among the currently running terminal applications, the attribute information of the target terminal application and the attribute information of the second terminal application also need to be compared.

[0096] There are several ways to determine the currently running terminal application. For example, the attribute information of each process can be extracted from the process information, and the application identifier of the terminal application corresponding to each process can be identified from the attribute information, thereby determining the currently running terminal application.

[0097] S3. Based on the detection results and the startup information of the second application on the terminal, run the second application on the second screen.

[0098] The detection results can be of various kinds, and different methods can be used to run the second application on the terminal for different results, as follows:

[0099] (1) The target terminal application does not exist in the currently running terminal applications.

[0100] For example, if the target terminal application does not exist in the currently running terminal application, the second terminal application running on the second screen can be selected based on the startup information of the second terminal application. For example, the target application container corresponding to the second screen can be selected from the preset application container set, and the target application container can be started. The startup information of the second terminal application can be loaded into the target application container to run the second terminal application on the second screen.

[0101] Before launching the target application container, a second screen corresponding to the second screen identifier can also be launched. The process of launching the second screen needs to be separated from the process of launching the second application on the terminal screen.

[0102] (2) The currently running terminal application has a target terminal application.

[0103] For example, when a target application exists among the currently running applications, the attribute information of the target application is compared with that of a second application. If the attribute information of the target application matches that of the second application, the target application is identified as the second application, and the target application remains running. If the attribute information of the target application differs from that of the second application, the target application is stopped, and the second application is launched on the second screen based on its startup information.

[0104] There are several ways to stop the target terminal application from running. For example, you can obtain the target startup information of the target terminal application in the current application container and delete the target startup information from the current application container to stop the target terminal application from running. Alternatively, you can directly force refresh the runtime state of the current application container to stop the target terminal application from running.

[0105] After stopping the target terminal application, a second terminal application can be run on the second screen. For example, the startup information of the second terminal application can be loaded into the current application container to run the second terminal application on the second screen.

[0106] It can be observed that in this solution, the process of launching the first application on the first screen and the process of launching the second application on the second screen are the same. Both include encapsulating startup parameters and launching the application container. Once the application container is launched, both the first and second applications can be launched within it, maintaining a unified startup process. Therefore, the method of controlling the cross-screen operation of the second application through the first application in this solution can be implemented as follows: Figure 3 As shown.

[0107] As can be seen from the above, in this embodiment of the invention, after receiving a terminal application launch request, the terminal first application corresponding to the first application identifier is run on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request sent by the terminal first application is received, the control parameters for controlling the terminal second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request. Then, the control parameters, the second application identifier and the second screen identifier are encapsulated to obtain the launch parameters of the terminal second application on the second screen. Then, the terminal second application is run on the second screen based on the launch parameters. Since this scheme obtains the control parameters of the second screen and the terminal second application on the terminal after receiving the control request sent by the terminal first application, and encapsulates the control parameters, screen identifier and application identifier into launch parameters for launching the terminal second application to run the terminal second application on the second screen, it can realize the control of other terminal applications running on different screens through the terminal application. Therefore, the accuracy of terminal application control can be improved.

[0108] Based on the method described in the above embodiments, the following examples will provide further detailed explanations.

[0109] In this embodiment, the terminal application control device will be specifically integrated into an electronic device, the electronic device being the terminal, the terminal including a first screen and a second screen, and the terminal application being a mini-program, as an example for explanation.

[0110] like Figure 4 As shown, a terminal application control method has the following specific process:

[0111] 210. The terminal receives the mini-program launch request.

[0112] For example, a user can trigger a launch control on the mini-program launch page of the terminal to generate a mini-program launch request. This mini-program launch request carries the first application identifier of the mini-program to be launched and the first screen identifier of the screen on which the mini-program is running. Alternatively, after the user triggers the launch control on the mini-program launch page, a screen selection list can be displayed on the terminal, and the screen identifier of the screen to be launched selected by the user can be received to generate a mini-program launch request.

[0113] 220. The terminal runs the first mini-program corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the mini-program launch request.

[0114] For example, the target control parameters corresponding to the mini-program launch request can be obtained. These target control parameters are used to control the first mini-program corresponding to the first application identifier and the first screen corresponding to the first screen identifier. The target control parameters, the first application identifier, and the first screen identifier are encapsulated to obtain the target launch parameters of the first mini-program. The first mini-program is then run on the first screen based on the target launch parameters, as follows:

[0115] C1. The terminal obtains the target control parameters corresponding to the mini-program startup request.

[0116] For example, the terminal can call the control interface or startup interface corresponding to the first application identifier and the first screen identifier to obtain the control parameters corresponding to the control interface or startup interface, and use the control parameters as the target control parameters. Alternatively, it can filter the control parameters corresponding to the first application identifier and the first screen identifier from the preset control parameter set to obtain the target control parameters.

[0117] C2. The terminal encapsulates the target control parameters, the first application identifier, and the first screen identifier to obtain the target startup parameters of the first mini-program.

[0118] For example, the terminal can fuse the target control parameters, the first application identifier, and the first screen identifier to obtain the fused control parameters, obtain the encapsulation protocol of the target startup parameters, map the fused control parameters to the payload of the encapsulation protocol, and then fill in the packet header of the corresponding protocol to obtain the target startup parameters of the first mini-program.

[0119] C3. The terminal runs the first mini-program on the first screen based on the target startup parameters.

[0120] For example, the terminal can obtain the startup information of the first mini-program based on the target startup parameters, extract the attribute information of the first mini-program from the target startup parameters, detect the terminal running on the first screen corresponding to the first screen identifier based on the attribute information of the first mini-program, and run the first mini-program on the first screen according to the detection result and the startup information of the first mini-program. Specifically, it can be as follows:

[0121] (1) The terminal obtains the startup information of the first mini-program based on the target startup parameters, and extracts the attribute information of the first mini-program from the target startup parameters.

[0122] For example, based on the target startup parameters, the terminal obtains information such as the installation package, installer, or launcher corresponding to the first application identifier, and uses this information as the startup information for the first mini-program. The first application identifier, version number, and version information of the first mini-program are extracted from the target startup parameters to obtain the attribute information of the first mini-program.

[0123] (2) The terminal detects the terminal running on the first screen corresponding to the first screen identifier based on the attribute information of the first mini-program.

[0124] For example, the terminal obtains the process information of the mini-programs running on the terminal, and determines the currently running mini-programs on the terminal based on the process information. It then checks whether there is a mini-program running on the first screen among the currently running mini-programs. Alternatively, it can directly detect the process information corresponding to the first screen to detect whether there is a currently running mini-program.

[0125] (3) The terminal runs the first mini-program on the first screen based on the detection results and the startup information of the first mini-program.

[0126] For example, when a running mini-program exists on the first screen, the terminal compares the attribute information of the current mini-program with that of the first mini-program. This comparison might include checking if the mini-program's application identifier, version number, and version information are the same. If the mini-program's attribute information matches that of the first mini-program, the running mini-program is identified as the first mini-program, and it remains running. If the mini-program's attribute information differs from that of the first mini-program, the terminal retrieves the startup information of the currently running mini-program from the application container corresponding to the first screen and removes this startup information from the application container. This stops the currently running mini-program. Then, the terminal refreshes the runtime state of the application container corresponding to the first screen, loading the startup information of the first mini-program into the application container to run the first mini-program on the first screen.

[0127] When there is no running mini-program on the first screen, the terminal can directly launch the application container corresponding to the first screen, load the launch information of the first mini-program into the application container corresponding to the first screen, and then run the first mini-program on the first screen.

[0128] 230. When a control request is received from the first mini-program, the terminal obtains the control parameters for the second mini-program corresponding to the second application identifier and the second screen corresponding to the second screen identifier based on the second application identifier and the second screen identifier carried in the control request.

[0129] For example, when a control request is received from the first mini-program, the terminal compares the second screen identifier carried in the control request with the first screen identifier. If the second screen identifier is different from the first screen identifier, the terminal filters out the control interface for cross-screen control from the control interface set to obtain the target control interface. The terminal calls the target control interface according to the second application identifier and the second screen identifier carried in the control request to obtain the initial control parameters corresponding to the target control interface. The initial control parameters are verified based on the second application identifier and the second screen identifier. When the initial control parameters pass the verification, the initial control parameters are used as the control parameters for controlling the second mini-program corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0130] The initial control parameters include screen parameters and application parameters. The terminal can verify these initial control parameters in various ways, and it is a serial verification process. Specifically, it can be as follows: Figure 5 As shown, the initial control parameters are first validated for validity. If the initial control parameters are invalid, the interface call will fail. If the initial control parameters are valid, the screen parameters are validated, specifically whether the screen parameters specify the screen identifier of the screen where the mini-program to be launched across screens is located. If the screen parameters contain a second screen identifier, it can be determined that the screen parameters specify the screen identifier of the screen where the mini-program to be launched across screens is located. Otherwise, the interface call will fail. After the screen parameters are validated, the application parameters are validated. For a mini-program to be launched across screens, its application identifier (AppID) and launch path are essential. If any parameter is missing, the interface will be considered to have failed. Therefore, the AppID and launch path can be queried in the application parameters. If the AppID and launch path are present, and the AppID is the same as the AppID of the second mini-program, and the screen identifier corresponding to the running address in the launch path is the same as the second screen identifier, the target control interface call can be determined to be successful. The initial control parameters are then used as the control parameters for controlling the second mini-program corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0131] 240. The terminal encapsulates the control parameters, the second application identifier, and the second screen identifier to obtain the startup parameters of the second mini-program on the second screen.

[0132] For example, the terminal can fuse control parameters, second application identifier, and second screen identifier to obtain fused target control parameters, obtain the target encapsulation protocol corresponding to the startup parameters, map the fused target control parameters to the payload of the target encapsulation protocol, and then fill in the packet header of the corresponding protocol to obtain the target startup parameters of the second mini-program.

[0133] 250. The terminal obtains the startup information of the second mini-program based on the startup parameters, and extracts the attribute information of the second mini-program from the startup parameters.

[0134] For example, based on the startup parameters, the terminal obtains information such as the installation package, installer, or launcher corresponding to the second application identifier, and uses this information as the startup information for the second mini-program. The second application identifier, version number, and version information of the second mini-program are extracted from the startup parameters to obtain the attribute information of the second mini-program.

[0135] 260. The terminal detects the mini-program running on the second screen based on the attribute information of the second mini-program.

[0136] For example, the terminal can obtain current process information and extract the attribute information of each process. From the attribute information, it can identify the application identifier of the mini-program corresponding to each process, thereby determining the currently running mini-program. It then queries the currently running mini-program for the target mini-program running on the second screen. If the target mini-program exists within the currently running mini-program, it also needs to compare the attribute information of the target mini-program with that of the second mini-program.

[0137] 270. Based on the detection results and the startup information of the second mini-program, the terminal runs the second mini-program on the second screen.

[0138] The detection results can be of various kinds, and different methods can be used to run the second mini-program for different results, as follows:

[0139] (1) The target mini-program does not exist in the currently running mini-program.

[0140] For example, the terminal selects the target application container corresponding to the second screen from the preset set of application containers, starts the target application container, loads the startup information of the second mini-program into the target application container, and runs the second mini-program on the second screen.

[0141] Before launching the target application container, the terminal can also launch the second screen corresponding to the second screen identifier. The process of launching the second screen needs to be separated from the process of launching the second mini-program on the screen.

[0142] (2) The currently running mini-program has a target mini-program.

[0143] For example, when a target mini-program exists within the currently running mini-program, the terminal needs to compare the attribute information of the target mini-program with that of the second mini-program. If the attribute information of the target mini-program is the same as that of the second mini-program, the terminal is identified as the second mini-program, and the target terminal is kept running.

[0144] When the attribute information of the target terminal is different from that of the second mini-program, the terminal obtains the target startup information of the target mini-program in the current application container and deletes the target startup information from the current application container to stop the target mini-program from running. Alternatively, it can directly force a refresh of the runtime state of the current application container to stop the target mini-program from running.

[0145] After the target mini-program stops running, the terminal loads the startup information of the second mini-program into the current application container to run the second mini-program on the second screen.

[0146] As can be seen from the above, in this embodiment, after receiving a terminal application launch request, the terminal runs the terminal's first application corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request is received from the terminal's first application, the terminal obtains the control parameters for controlling the terminal's second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier based on the second application identifier and the second screen identifier carried in the control request. Then, the control parameters, the second application identifier, and the second screen identifier are encapsulated to obtain the launch parameters for the terminal's second application on the second screen. Then, the terminal's second application is run on the second screen based on the launch parameters. Since this scheme obtains the control parameters for controlling the second screen and the terminal's second application on the terminal after receiving the control request sent by the terminal's first application, and encapsulates the control parameters, screen identifier, and application identifier into launch parameters for starting the terminal's second application to run the terminal's second application on the second screen, it can realize the control of other terminal applications running on different screens through the terminal application. Therefore, the accuracy of terminal application control can be improved.

[0147] Based on the method described in the above embodiments, the following examples will provide further detailed explanations.

[0148] In this embodiment, the terminal application control device is specifically integrated into an electronic device, which is a facial recognition payment device. The facial recognition payment device includes a front screen and a rear screen. The first application of the terminal is a payment mini-program, and the second application of the terminal is a receipt push mini-program.

[0149] After the user activates the front screen of the facial recognition payment device and the front screen environment is fully activated, the user can also trigger the launch control of the payment mini-program on the facial recognition payment device and select to launch it on the front screen. At this time, the user can directly obtain the control parameters for the payment mini-program and the front screen, or call the same-screen program launch interface wx.navigateToMiniProgram to obtain the control parameters for the payment mini-program and the front screen. The control parameters, the program identifier of the payment mini-program, and the screen identifier of the front screen are encapsulated to obtain the launch parameters for the payment mini-program to launch on the front screen. Then, the mini-program container on the front screen is launched, and the launch information of the payment mini-program is loaded into the mini-program container on the front screen, so that the payment mini-program runs on the front screen.

[0150] When a customer completes payment via a facial recognition payment device in the payment mini-program, the user can trigger a control request within the mini-program. This request launches a receipt push mini-program on the back screen, sending the customer an electronic receipt for their purchase. Upon receiving the control request, the terminal calls the cross-screen launch interface, which can be a JsAPI: `wxfaceapp.launchMp`, specifying that the receipt push mini-program should launch on the back screen. After calling `wxfaceapp.launchMp`, the initial control parameters are validated. These parameters include screen parameters and application parameters. First, the validity of the initial control parameters is checked; if they are invalid, the interface call fails. Second, the screen parameters are checked, as the call will fail if the screen of the mini-program to be launched across screens is not explicitly specified. Third, the application parameters are further checked. For a mini-program requiring cross-screen launch, its AppID and launch path are essential; missing any parameter will result in failure.

[0151] After the "wxfaceapp.launchMp" call is successful, the logic enters the mini-program framework layer, as shown in the following example. Figure 6As shown, the mini-program framework first accepts the call and extracts the parameters passed in the call (Mini-program's AppID, version number, version information, etc.). After extracting the information, it performs the first check: whether the target screen already has a running mini-program. If not, it directly starts the mini-program container. If the mini-program container already has a running mini-program, it performs the next check: whether the AppID, version number, and other information of the currently running mini-program match. If they match, it can be determined that the currently running mini-program is the receipt push mini-program that we need to launch across screens, and there is no need to launch it again; a success notification can be sent directly. If the AppID or version information of the currently running mini-program is different, it means that the currently running mini-program is not the one we need to display across screens. We need to forcibly refresh the runtime state of the current mini-program container, that is, reload it using the information of our receipt push mini-program. After the mini-program is loaded, it can run on the back screen. Specifically, it can be done as follows: Figure 7 As shown, the entire process of cross-screen startup is now complete, and a notification of successful startup can be sent.

[0152] The core of this solution lies in enabling cross-screen launching of mini-programs in dual-screen scenarios, allowing mini-programs on different screens to control the launching (running) of mini-programs on another screen. By supplementing the IoT mini-program's launching process with screen launching parameters and transmitting launching commands via IPC message channels, the effect of launching a mini-program container on another screen is achieved, and then launching the mini-program within that container. This enables cross-screen launching and running of mini-programs in dual-screen scenarios.

[0153] To better implement the above methods, embodiments of the present invention also provide a terminal application control device, which can be integrated into electronic devices, such as servers or terminals, and the terminal may include tablet computers, laptop computers and / or personal computers.

[0154] For example, such as Figure 8 As shown, the terminal application control device may include a receiving unit 301, a first operating unit 302, an acquisition unit 303, an encapsulation unit 304, and a second operating unit 305, as follows:

[0155] (1) Receiving unit 301;

[0156] The receiving unit 301 is used to receive a terminal application startup request, which carries a first application identifier and a first screen identifier.

[0157] For example, receiving unit 301 can be specifically used to receive a terminal application launch request generated by the user on the terminal application launch page of the terminal by triggering the launch control of the terminal application. The terminal application launch request carries the first application identifier of the terminal application to be launched and the first screen identifier of the screen on which the terminal application is running.

[0158] (2) First operating unit 302;

[0159] The first running unit 302 is used to run the first terminal application corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the terminal application startup request.

[0160] For example, the first running unit 302 can be used to obtain the target control parameters corresponding to the terminal application startup request. The target control parameters are used to control the terminal first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier. The target control parameters, the first application identifier and the first screen identifier are encapsulated to obtain the target startup parameters of the terminal first application. The terminal first application is then run on the first screen based on the target startup parameters.

[0161] (3) Obtain unit 303;

[0162] The acquisition unit 303 is used to, when receiving a control request sent by the first application of the terminal, acquire the control parameters of the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier, based on the second application identifier and the second screen identifier carried in the control request.

[0163] For example, the acquisition unit 303 can be used to, when receiving a control request sent by the first application of the terminal, filter out the control interface corresponding to the control request from the preset control interface set, obtain the target control interface, and call the target control interface according to the second application identifier and the second screen identifier carried in the control request, so as to obtain the control parameters of the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier.

[0164] (4) Packaging unit 304;

[0165] The encapsulation unit 304 is used to encapsulate the control parameters, the second application identifier, and the second screen identifier to obtain the startup parameters of the second application on the second screen of the terminal.

[0166] For example, the encapsulation unit 304 can be used to fuse control parameters, second application identifier, and second screen identifier to obtain fused target control parameters, obtain the target encapsulation protocol corresponding to the startup parameters, map the fused target control parameters to the payload of the target encapsulation protocol, and then fill the header of the corresponding protocol to obtain the target startup parameters of the terminal's second application.

[0167] (5) Second operating unit 305;

[0168] The second running unit 305 is used to run the second terminal application on the second screen based on the startup parameters.

[0169] For example, the second running unit 305 can be used to obtain the startup information of the second application on the terminal according to the startup parameters, extract the attribute information of the second application on the terminal from the startup parameters, detect the terminal application running on the second screen based on the attribute information of the second application on the terminal, and run the second application on the terminal on the second screen according to the detection results and the startup information of the second application on the terminal.

[0170] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.

[0171] As can be seen from the above, in this embodiment, after the receiving unit 301 receives the terminal application launch request, the first running unit 302 runs the terminal first application corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the terminal application launch request. When the obtaining unit 303 receives the control request sent by the terminal first application, it obtains the control parameters for controlling the terminal second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier according to the second application identifier and the second screen identifier carried in the control request. Then, the encapsulation unit 304 encapsulates the control parameters, the second application identifier and the second screen identifier to obtain the launch parameters of the terminal second application on the second screen. Then, the second running unit 305 runs the terminal second application on the second screen based on the launch parameters. Since this scheme obtains the control parameters of the second screen and the terminal second application on the terminal after receiving the control request sent by the terminal first application, and encapsulates the control parameters, screen identifier and application identifier into launch parameters for launching the terminal second application to run the terminal second application on the second screen, it can realize the control of other terminal applications running on different screens through the terminal application. Therefore, it can improve the accuracy of terminal application control.

[0172] This invention also provides an electronic device, such as... Figure 9 As shown, it illustrates a structural schematic diagram of the electronic device involved in an embodiment of the present invention, specifically:

[0173] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 9The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0174] The processor 401 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, thereby controlling the electronic device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 401.

[0175] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0176] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0177] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0178] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows:

[0179] Upon receiving a terminal application launch request, the terminal first application corresponding to the first application identifier is run on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request is received from the terminal first application, the control parameters for controlling the terminal second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request. The control parameters, the second application identifier and the second screen identifier are encapsulated to obtain the launch parameters for the terminal second application on the second screen. The terminal second application is run on the second screen based on the launch parameters.

[0180] For example, a user triggers a terminal application launch request on the terminal application launch page by activating the application's launch control. This launch request carries the first application identifier of the terminal application to be launched and the first screen identifier of the screen on which the application runs. The system obtains the target control parameters corresponding to the launch request. These parameters control the terminal's first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier. The system encapsulates the target control parameters, the first application identifier, and the first screen identifier to obtain the target launch parameters for the terminal's first application. Based on these parameters, the terminal's first application runs on the first screen. When a control request is received from the terminal's first application, the system filters the control interface corresponding to the request from a preset set of control interfaces to obtain the target control interface. The system then calls the target control interface based on the second application identifier and the second screen identifier carried in the control request to obtain the control parameters for controlling the terminal's second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier. The system merges the control parameters, the second application identifier, and the second screen identifier to obtain the merged target control parameters. The system obtains the target encapsulation protocol corresponding to the launch parameters, maps the merged target control parameters to the payload of the target encapsulation protocol, and then fills in the corresponding protocol header to obtain the target launch parameters for the terminal's second application. Based on the startup parameters, the startup information of the second application on the terminal is obtained, and the attribute information of the second application on the terminal is extracted from the startup parameters. Based on the attribute information of the second application on the terminal, the terminal application running on the second screen is detected, and the second application on the terminal is run on the second screen according to the detection results and the startup information of the second application on the terminal.

[0181] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0182] As can be seen from the above, in this embodiment of the invention, after receiving a terminal application launch request, the terminal first application corresponding to the first application identifier is run on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request sent by the terminal first application is received, the control parameters for controlling the terminal second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request. Then, the control parameters, the second application identifier and the second screen identifier are encapsulated to obtain the launch parameters of the terminal second application on the second screen. Then, the terminal second application is run on the second screen based on the launch parameters. Since this scheme obtains the control parameters of the second screen and the terminal second application on the terminal after receiving the control request sent by the terminal first application, and encapsulates the control parameters, screen identifier and application identifier into launch parameters for launching the terminal second application to run the terminal second application on the second screen, it can realize the control of other terminal applications running on different screens through the terminal application. Therefore, the accuracy of terminal application control can be improved.

[0183] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be accomplished by instructions, or by instructions controlling related hardware. These instructions can be stored in a storage medium and loaded and executed by a processor.

[0184] To this end, embodiments of the present invention provide a storage medium storing a plurality of instructions, which can be loaded by a processor to execute steps in any of the terminal application control methods provided in the embodiments of the present invention. For example, the instructions can execute the following steps:

[0185] Upon receiving a terminal application launch request, the terminal first application corresponding to the first application identifier is run on the first screen corresponding to the first screen identifier according to the terminal application launch request. When a control request is received from the terminal first application, the control parameters for controlling the terminal second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained according to the second application identifier and the second screen identifier carried in the control request. The control parameters, the second application identifier and the second screen identifier are encapsulated to obtain the launch parameters for the terminal second application on the second screen. The terminal second application is run on the second screen based on the launch parameters.

[0186] For example, a user triggers a terminal application launch request on the terminal application launch page by activating the application's launch control. This launch request carries the first application identifier of the terminal application to be launched and the first screen identifier of the screen on which the application runs. The system obtains the target control parameters corresponding to the launch request. These parameters control the terminal's first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier. The system encapsulates the target control parameters, the first application identifier, and the first screen identifier to obtain the target launch parameters for the terminal's first application. Based on these parameters, the terminal's first application runs on the first screen. When a control request is received from the terminal's first application, the system filters the control interface corresponding to the request from a preset set of control interfaces to obtain the target control interface. The system then calls the target control interface based on the second application identifier and the second screen identifier carried in the control request to obtain the control parameters for controlling the terminal's second application corresponding to the second application identifier and the second screen corresponding to the second screen identifier. The system merges the control parameters, the second application identifier, and the second screen identifier to obtain the merged target control parameters. The system obtains the target encapsulation protocol corresponding to the launch parameters, maps the merged target control parameters to the payload of the target encapsulation protocol, and then fills in the corresponding protocol header to obtain the target launch parameters for the terminal's second application. Based on the startup parameters, the startup information of the second application on the terminal is obtained, and the attribute information of the second application on the terminal is extracted from the startup parameters. Based on the attribute information of the second application on the terminal, the terminal application running on the second screen is detected, and the second application on the terminal is run on the second screen according to the detection results and the startup information of the second application on the terminal.

[0187] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0188] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0189] Since the instructions stored in the storage medium can execute the steps in any of the terminal application control methods provided in the embodiments of the present invention, the beneficial effects that any of the terminal application control methods provided in the embodiments of the present invention can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0190] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a storage medium. A processor of a computer device reads the computer instructions from the storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the terminal application control or application program control aspects described above.

[0191] The present invention has provided a detailed description of a terminal application control method, device, electronic device, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will know that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A terminal application control method, characterized in that, include: Receive a terminal application launch request, wherein the terminal application launch request carries a first application identifier and a first screen identifier; According to the terminal application launch request, run the terminal first application corresponding to the first application identifier on the first screen corresponding to the first screen identifier; When a control request is received from the first application of the terminal, control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier are obtained based on the second application identifier and the second screen identifier carried in the control request. This includes: filtering the control interface corresponding to the control request from a preset set of control interfaces to obtain a target control interface; calling the target control interface based on the second application identifier and the second screen identifier carried in the control request to obtain initial control parameters corresponding to the target control interface; verifying the initial control parameters based on the second application identifier and the second screen identifier; and when the initial control parameters pass the verification, using the initial control parameters as control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier. The control parameters, the second application identifier, and the second screen identifier are encapsulated to obtain the startup parameters of the second application on the second screen of the terminal. The second application of the terminal is run on the second screen based on the startup parameters.

2. The terminal application control method according to claim 1, characterized in that, The step of selecting the control interface corresponding to the control request from the preset set of control interfaces to obtain the target control interface includes: Compare the second screen identifier carried in the control request with the first screen identifier; When the second screen identifier and the first screen identifier are different, the control interface for cross-screen control is selected from the control interface set to obtain the target control interface.

3. The terminal application control method according to claim 1, characterized in that, The initial control parameters include screen parameters and application parameters. The verification of the initial control parameters based on the second application identifier and the second screen identifier includes: The validity of the initial control parameters is verified based on their parameter types. When the initial control parameters are valid, query the second screen identifier in the screen parameters; When the second screen identifier is present in the screen parameters, the application parameters are verified. The step of using the initial control parameters as control parameters for controlling the second application on the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier when the initial control parameters pass the verification includes: using the initial control parameters as control parameters for controlling the second application on the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier when the application parameters pass the verification.

4. The terminal application control method according to claim 3, characterized in that, The verification of the application parameters includes: Query the target application identifier and launch path of the terminal application to be controlled from the application parameters; When the target application identifier and startup path exist in the application parameters, the target application identifier is compared with the second application identifier; When the target application identifier is the same as the second application identifier, the running address of the terminal application is extracted from the startup path, and the target screen identifier corresponding to the running address is determined. When the target screen identifier is the same as the second screen identifier, the verification of the application parameters is deemed successful.

5. The terminal application control method according to any one of claims 1 to 4, characterized in that, Running the second application on the terminal on the second screen based on the startup parameters includes: Based on the startup parameters, obtain the startup information of the second application on the terminal, and extract the attribute information of the second application on the terminal from the startup parameters; Based on the attribute information of the second application on the terminal, the terminal application running on the second screen is detected; Based on the detection results and the startup information of the second application on the terminal, the second application on the terminal is run on the second screen.

6. The terminal application control method according to claim 5, characterized in that, The step of detecting the terminal application running on the second screen based on the attribute information of the second application on the terminal includes: Obtain current process information and determine the currently running terminal application based on the process information; Query the target terminal application running in the second screen from the currently running terminal application; The step of running the second application on the second screen based on the detection results and the startup information of the second application on the terminal includes: when the target application exists in the currently running terminal application, comparing the attribute information of the second application on the terminal with the attribute information of the target application, and running the second application on the second screen based on the comparison results and the startup information of the second application on the terminal; The step of running the second application on the second screen based on the detection results and the startup information of the second application on the terminal includes: when the target application does not exist in the currently running terminal applications, running the second application on the second screen based on the startup information of the second application on the terminal.

7. The terminal application control method according to claim 6, characterized in that, The step of running the second application on the second screen based on the comparison results and the startup information of the second application on the terminal includes: When the attribute information of the second application on the terminal is the same as the attribute information of the target terminal application, the target terminal application is determined to be the second application on the terminal, and the target terminal application is kept running. When the attribute information of the second application on the terminal is different from the attribute information of the target terminal application, the target terminal application is stopped from running, and the second application on the terminal is run on the second screen according to the startup information of the second application on the terminal.

8. The terminal application control method according to claim 7, characterized in that, The step of stopping the target terminal application and running the second terminal application on the second screen according to the startup information of the second terminal application includes: Obtain the target startup information of the target terminal application within the current application container, and delete the target startup information from the current application container to stop the target terminal application from running; The startup information of the second application on the terminal is loaded into the current application container to run the second application on the second screen.

9. The terminal application control method according to claim 6, characterized in that, Running the second application on the second screen according to the startup information of the second application on the terminal includes: Select the target application container corresponding to the second screen from the preset application container set, and launch the target application container; The startup information of the second application on the terminal is loaded into the target application container to run the second application on the second screen.

10. The terminal application control method according to any one of claims 1 to 4, characterized in that, The step of running the first terminal application corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the terminal application launch request includes: Obtain the target control parameters corresponding to the terminal startup request. The target control parameters are used to control the terminal first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier. The target control parameters, the first application identifier, and the first screen identifier are encapsulated to obtain the target startup parameters of the terminal's first application; The terminal's first application runs on the first screen based on the target startup parameters.

11. A terminal application control device, characterized in that, include: The receiving unit is configured to receive a terminal application startup request, wherein the terminal application startup request carries a first application identifier and a first screen identifier; The first running unit is configured to run the first application of the terminal corresponding to the first application identifier on the first screen corresponding to the first screen identifier according to the terminal application startup request. The acquisition unit is configured to, upon receiving a control request sent by the first application of the terminal, acquire control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier based on the second application identifier and the second screen identifier carried in the control request. This includes: filtering the control interface corresponding to the control request from a preset set of control interfaces to obtain a target control interface; calling the target control interface based on the second application identifier and the second screen identifier carried in the control request to obtain initial control parameters corresponding to the target control interface; verifying the initial control parameters based on the second application identifier and the second screen identifier; and when the initial control parameters pass verification, using the initial control parameters as control parameters for controlling the second application of the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier. The encapsulation unit is used to encapsulate the control parameters, the second application identifier, and the second screen identifier to obtain the startup parameters of the second application of the terminal on the second screen. The second operating unit is used to run the second terminal application on the second screen based on the startup parameters.

12. The terminal application control device according to claim 11, characterized in that, The acquisition unit is used for: Compare the second screen identifier carried in the control request with the first screen identifier; When the second screen identifier and the first screen identifier are different, the control interface for cross-screen control is selected from the control interface set to obtain the target control interface.

13. The terminal application control device according to claim 11, characterized in that, The initial control parameters include screen parameters and application parameters, and the acquisition unit is used for: The validity of the initial control parameters is verified based on their parameter types. When the initial control parameters are valid, query the second screen identifier in the screen parameters; When the second screen identifier is present in the screen parameters, the application parameters are verified. The step of using the initial control parameters as control parameters for controlling the second application on the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier when the initial control parameters pass the verification includes: using the initial control parameters as control parameters for controlling the second application on the terminal corresponding to the second application identifier and the second screen corresponding to the second screen identifier when the application parameters pass the verification.

14. The terminal application control device according to claim 13, characterized in that, The acquisition unit is used for: Query the target application identifier and launch path of the terminal application to be controlled from the application parameters; When the target application identifier and startup path exist in the application parameters, the target application identifier is compared with the second application identifier; When the target application identifier is the same as the second application identifier, the running address of the terminal application is extracted from the startup path, and the target screen identifier corresponding to the running address is determined. When the target screen identifier is the same as the second screen identifier, the verification of the application parameters is deemed successful.

15. The terminal application control device according to any one of claims 11 to 14, characterized in that, The second operating unit is used for: Based on the startup parameters, obtain the startup information of the second application on the terminal, and extract the attribute information of the second application on the terminal from the startup parameters; Based on the attribute information of the second application on the terminal, the terminal application running on the second screen is detected; Based on the detection results and the startup information of the second application on the terminal, the second application on the terminal is run on the second screen.

16. The terminal application control device according to claim 15, characterized in that, The second operating unit is used for: Obtain current process information and determine the currently running terminal application based on the process information; Query the target terminal application running in the second screen from the currently running terminal application; The step of running the second application on the second screen based on the detection results and the startup information of the second application on the terminal includes: when the target application exists in the currently running terminal application, comparing the attribute information of the second application on the terminal with the attribute information of the target application, and running the second application on the second screen based on the comparison results and the startup information of the second application on the terminal; The step of running the second application on the second screen based on the detection results and the startup information of the second application on the terminal includes: when the target application does not exist in the currently running terminal applications, running the second application on the second screen based on the startup information of the second application on the terminal.

17. The terminal application control device according to claim 16, characterized in that, The second operating unit is used for: When the attribute information of the second application on the terminal is the same as the attribute information of the target terminal application, the target terminal application is determined to be the second application on the terminal, and the target terminal application is kept running. When the attribute information of the second application on the terminal is different from the attribute information of the target terminal application, the target terminal application is stopped from running, and the second application on the terminal is run on the second screen according to the startup information of the second application on the terminal.

18. The terminal application control device according to claim 17, characterized in that, The second operating unit is used for: Obtain the target startup information of the target terminal application within the current application container, and delete the target startup information from the current application container to stop the target terminal application from running; The startup information of the second application on the terminal is loaded into the current application container to run the second application on the second screen.

19. The terminal application control device according to claim 16, characterized in that, The second operating unit is used for: Select the target application container corresponding to the second screen from the preset application container set, and launch the target application container; The startup information of the second application on the terminal is loaded into the target application container to run the second application on the second screen.

20. The terminal application control device according to any one of claims 11 to 14, characterized in that, The first operating unit is used for: Obtain the target control parameters corresponding to the terminal startup request. The target control parameters are used to control the terminal first application corresponding to the first application identifier and the first screen corresponding to the first screen identifier. The target control parameters, the first application identifier, and the first screen identifier are encapsulated to obtain the target startup parameters of the terminal's first application; The terminal's first application runs on the first screen based on the target startup parameters.

21. An electronic device, characterized in that, It includes a processor and a memory, the memory storing an application program, and the processor running the application program in the memory to perform the steps in the terminal application control method according to any one of claims 1 to 10.

22. A storage medium, characterized in that, The storage medium stores a plurality of instructions adapted for loading by a processor to execute the steps of the terminal application control method according to any one of claims 1 to 10.

23. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the terminal application control method according to any one of claims 1 to 10.