Terminal device and application program interaction method, device and medium

By introducing a connection forwarding server between the terminal device and the application server, and using a single-channel connection to realize the interaction of multiple applications, the problem of power consumption and storage space of the terminal device when processing multiple applications is solved, and the energy efficiency performance of the device is improved.

CN114666874BActive Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011527662.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2024-09-24
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

When existing terminal devices process multiple applications, they need to establish independent connections with each application server, resulting in increased power consumption and storage space consumption, and cannot support the connection of many applications.

Method used

By introducing a connection forwarding server between the terminal device and the application server, the terminal device only needs to establish a single-channel connection with the connection forwarding server, and multiple applications interact with the application server through this single-channel connection, reducing power consumption and storage space consumption.

Benefits of technology

It achieves optimization of power consumption and storage space when processing multiple applications on the terminal device, reduces the number of independent connections, and improves the energy efficiency performance of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114666874B
    Figure CN114666874B
Patent Text Reader

Abstract

The present application relates to a terminal device and an application interaction method thereof. The method is applied to an application interaction system of a terminal device, the application interaction system includes a terminal device and a connection forwarding server, and the method includes: the terminal device sends a service request of each application to the connection forwarding server through a single-channel connection (single application connection) established between the terminal device and the connection forwarding server; the connection forwarding server forwards each service request to the corresponding application server. In this way, the terminal device can establish a single-channel connection (single application connection) with the connection forwarding server, so that multiple applications can interact with the application server through the single-channel connection, thereby reducing the power consumption of the terminal device and reducing the storage space consumption of the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technology in the field of mobile terminals, and in particular to a terminal device and an application program interaction method, device and medium thereof. Background Art

[0002] The application program (APP) of the terminal device can interact with the application service of the server or the application program of other terminal devices through the network.

[0003] like Figure 1 As shown, the common interaction mode between the application of the terminal device and the application service of the server is that the application of the terminal device establishes a connection between the application and the application service through the address and port of the server where the application service is located, and then sends a service request to the application service through the connection. After the application service receives the above service request, the application transmits data between the application service and the application service of the server through the connection. For example, the video conferencing application of the terminal device establishes connection A with the video conferencing application service through the address and port of the server where the video conferencing application service is located. The video conferencing application sends a service request to the video conferencing application service through the connection. After the video conferencing application service receives the above service request and accepts it, the video conferencing application can interact with the video conferencing application service of the server through the connection to realize data transmission. Similarly, the instant messaging application of the terminal device can also use the above method to establish connection B with the instant messaging application service of the server and realize interaction.

[0004] In this case, a connection is maintained between each application of the terminal device and the application service of the server, and the connections between each application of the terminal device and the application service of the server are independent and isolated from each other, which increases the power consumption of the terminal device and the storage space consumption of the terminal device. For terminal devices with small storage space and strict power consumption requirements, they cannot support more connections between applications and application services. Summary of the invention

[0005] The purpose of the present application is to provide a terminal device and its application interaction method, device and medium. Through the method of the present application, when processing the business of multiple applications, the terminal device only needs to establish a single-channel connection (single application connection) with a connection forwarding server, and multiple applications interact with the application server through the single-channel connection, thereby reducing the power consumption of the terminal device and reducing the storage space consumption of the terminal device.

[0006] The first aspect of the present application provides an application interaction method for a terminal device, which is applied to an application interaction system of the terminal device, and the application interaction system includes a terminal device and a connection forwarding server; the method includes: the terminal device sends a first business request of a first application and a second business request of a second application to the connection forwarding server through a first channel established between the terminal device and the connection forwarding server; the connection forwarding server sends the first business request and the second business request to the first application server and the second application server respectively, wherein the first application server corresponds to the first application, and the second application server corresponds to the second application.

[0007] That is, in an embodiment of the present application, for example, the terminal device may be a mobile phone, the first application may be a video conferencing application, the second application may be an instant messaging application, and the first channel may be a single application connection established between the mobile phone and the connection forwarding server. The first service request may be a login request for the video conferencing application, and the second service request may be a login request for the instant messaging application. The first application server may be a video conferencing application service, and the second application server may be an instant messaging application service. The mobile phone may send the login requests of the first application and the second application to the connection forwarding server through a single application connection, which can reduce the power consumption and storage space consumption of the mobile phone.

[0008] In a possible implementation of the first aspect above, it also includes: the connection forwarding server receives a first service response corresponding to the first service request from the first application server, and receives a second service response corresponding to the second service request from the second application server; the connection forwarding server sends the first service response and the second service response to the terminal device through the first channel.

[0009] That is, in an embodiment of the present application, for example, the first service response may be a service response of successful login returned by a video conferencing application service, and the second service response may be a service response of successful login returned by an instant messaging application service.

[0010] In a possible implementation of the first aspect above, the message formats of the first service request and the second service request are the same, and the message formats of the first service response and the second service response are the same.

[0011] In a possible implementation of the first aspect above, the first service request message and the first service response message include a first service identifier of the first application, and the second service request message and the second service response message include a second service identifier of the second application.

[0012] That is, in the embodiment of the present application, for example, the first service request message includes a login request for a video conferencing application and a service identifier of the video conferencing application, and the second service request message includes a login request for an instant messaging application and a service identifier of the instant messaging application; similarly, the first service response message includes a service response for a successful login for the video conferencing application and a service identifier of the video conferencing application, and the second service response message includes a service response for a successful login for the instant messaging application and a service identifier of the instant messaging application. The service identifier of the video conferencing application may be 111A.

[0013] In a possible implementation of the first aspect above, it also includes: the terminal device inputs the first service response in the first service response message into a first application corresponding to the first service identifier, and inputs the second service response in the second service response message into a second application corresponding to the second service identifier.

[0014] In a possible implementation of the first aspect above, it also includes: when the remaining power is less than the power threshold and the memory space is less than the memory threshold, the terminal device establishes a first channel with the connection forwarding server.

[0015] That is, in the embodiment of the present application, for example, the power threshold and the memory threshold can both be 50%, and the remaining power and the remaining memory are 40% and 30% respectively. In this way, the terminal device can maintain a single application connection with the connection forwarding server when the remaining power and / or memory space is insufficient, which can reduce the power consumption of the terminal device.

[0016] In a possible implementation of the first aspect above, it also includes: when the remaining power is greater than the power threshold and / or the memory space is greater than the memory threshold, the terminal device establishes a second channel and a third channel with the connection forwarding server; the terminal device sends the first service request of the first application to the connection forwarding server through the second channel, and the terminal device sends the second service request of the second application to the connection forwarding server through the third channel.

[0017] That is, in the embodiment of the present application, for example, the power threshold and memory threshold of the terminal device can be 50%, and the remaining power and remaining memory are 70% and 80% respectively. The second channel and the third channel here can be the application connection of the video conferencing application and the instant messaging application, respectively. In other words, the power threshold and memory threshold of the terminal device are configurable.

[0018] In a possible implementation of the first aspect above, the connection forwarding server receives a first service response corresponding to the first service request from the first application server, and receives a second service response corresponding to the second service request from the second application server; the connection forwarding server sends the first service response to the terminal device through the second channel, and sends the second service response to the terminal device through the third channel.

[0019] The second aspect of the present application provides an application interaction method for a terminal device, including: the terminal device sends a first service request of a first application and a second service request of a second application to a connection forwarding server through a first channel established between the terminal device and the connection forwarding server; the terminal device receives a first service response corresponding to the first service request and a second service response corresponding to the second service request from the connection forwarding server through the first channel.

[0020] In a possible implementation of the second aspect above, the first business response is received from the first application server after the connection forwarding server sends the first business request to the first application server, and the second business response is received from the second application server after the connection forwarding server sends the second business request to the second application server, wherein the first application server corresponds to the first application and the second application server corresponds to the second application.

[0021] In a possible implementation of the second aspect, the message formats of the first service request and the second service request are the same, and the message formats of the first service response and the second service response are the same.

[0022] In a possible implementation of the second aspect above, the first service request message and the first service response message include a first service identifier of the first application, and the second service request message and the second service response message include a second service identifier of the second application.

[0023] In a possible implementation of the second aspect above, it also includes: the terminal device inputs the first service response in the first service response message into the first application corresponding to the first service identifier, and inputs the second service response in the second service response message into the second application corresponding to the second service identifier.

[0024] In a possible implementation of the second aspect above, it also includes: when the remaining power is less than the power threshold and the memory space is less than the memory threshold, the terminal device establishes a first channel with the connection forwarding server.

[0025] In a possible implementation of the second aspect above, it also includes: when the remaining power is greater than the power threshold and / or the memory space is greater than the memory threshold, the terminal device establishes a second channel and a third channel with the connection forwarding server; the terminal device sends the first service request of the first application to the connection forwarding server through the second channel, and the terminal device sends the second service request of the second application to the connection forwarding server through the third channel.

[0026] The third aspect of the present application provides an application interaction method for a terminal device, characterized in that it includes: a connection forwarding server receives a first business request of a first application and a second business request of a second application sent by the terminal device through a first channel established between the connection forwarding server and the terminal device; the connection forwarding server sends the first business request and the second business request to the first application server and the second application server respectively, wherein the first application server corresponds to the first application, and the second application server corresponds to the second application.

[0027] In a possible implementation of the third aspect above, it also includes: the connection forwarding server receives a first service response corresponding to the first service request from the first application server, and receives a second service response corresponding to the second service request from the second application server; the connection forwarding server sends the first service response and the second service response to the terminal device through the first channel.

[0028] In a possible implementation of the third aspect, the message formats of the first service request and the second service request are the same, and the message formats of the first service response and the second service response are the same.

[0029] In a possible implementation of the third aspect above, the first service request message and the first service response message include the first service identifier of the first application, and the second service request message and the second service response message include the second service identifier of the second application.

[0030] A fourth aspect of the present application provides a terminal device, including:

[0031] A memory storing instructions;

[0032] The processor is coupled to the memory, and when the program instructions stored in the memory are executed by the processor, the terminal device executes the functions of the application interaction method of the terminal device provided in the first aspect, the second aspect or the third aspect.

[0033] The fourth aspect of the present application provides a readable medium having instructions stored therein, characterized in that when the instructions are executed on the readable medium, the readable medium executes the function of the application interaction method of the terminal device provided in the first aspect, the second aspect or the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 An example of the interaction between various application programs of a terminal device and an application service of a server through respective independent application connections in the prior art is shown;

[0035] Figure 2 According to an embodiment of the present application, a scene diagram is shown in which a mobile phone, a connection forwarding server and an application server interact through a single channel;

[0036] Figure 3 According to an embodiment of the present application, another scenario diagram of an interactive system including a routing server is shown;

[0037] Figure 4 According to an embodiment of the present application, a flow chart of an interaction method between an application program of a mobile phone and an application server is shown;

[0038] Figure 5a According to an embodiment of the present application, a diagram of interaction between a mobile phone application and a routing server, a connection forwarding server and an application server is shown;

[0039] Figure 5b According to an embodiment of the present application, a module structure diagram of an interactive system is shown.

[0040] Figure 6 According to an embodiment of the present application, a scenario diagram is shown in which a mobile phone, a routing server, a connection forwarding server and an application server interact through multiple channels;

[0041] Figure 7 According to an embodiment of the present application, a flowchart of a method is shown in which each application of a mobile phone interacts with a connection forwarding server through a single channel connection;

[0042] Figure 8 According to an embodiment of the present application, a flowchart of a method is shown in which each application of a mobile phone interacts with a connection forwarding server through a single channel connection;

[0043] Fig. 9 According to an embodiment of the present application, a module structure diagram of an interactive system is shown;

[0044] Fig.10 According to an embodiment of the present application, a flowchart of a method is shown in which each application of a mobile phone interacts with a connection forwarding server through a corresponding application connection;

[0045] Fig.11 According to an embodiment of the present application, a flowchart of a method is shown in which each application of a mobile phone interacts with a push server through a single channel connection;

[0046] Fig.12 The hardware structure block diagram of the terminal device in the embodiment of the present application is shown;

[0047] Fig.13 A software structure block diagram of a terminal device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0048] Embodiments of the present application include but are not limited to a method, apparatus, and medium for interaction between a terminal device and its application program.

[0049] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0050] In order to solve the above problems, the present application discloses a multi-application interaction method suitable for a terminal device. Specifically, in an embodiment of the present application, a connection forwarding server is set between a terminal device and different application servers that provide application services for different applications on the terminal device. At the same time, the terminal device encapsulates the service requests sent by different applications into service request messages with a unified format, and each application server also encapsulates the service response into a message with a unified format. Based on this, the terminal device can send different types of service requests sent by different applications to the connection forwarding server, and the connection forwarding server forwards the service request to the corresponding application server by identifying the service identifier in the service request message. At the same time, after the service response messages returned by different application servers are forwarded to the terminal device by the connection forwarding server, the terminal device can input the service response into the corresponding application by identifying the service identifier in the service response message. In this way, when the terminal device processes the services of multiple applications, it only needs to establish a single-channel connection (single application connection) with the connection forwarding server, and does not need to establish connections with multiple application servers one by one, thereby reducing the power consumption of the terminal device and reducing the storage space consumption of the terminal device.

[0051] Figure 2 According to some embodiments of the present application, a scenario diagram of an interactive system 10 including a terminal device 100 connected to a forwarding server 200 and an application server 300 is shown.

[0052] like Figure 2As shown, the terminal device 100 establishes a separate application connection 120 with the connection forwarding server 200 in a single-channel manner (single application connection), and the terminal device 100 can establish the above application connection 120 through the address and port of the connection forwarding server 200. When multiple applications (video conferencing applications and instant messaging applications) of the terminal device 100 send service requests to the application service of the connection forwarding server 200 respectively, the terminal device 100 encapsulates the service request of each application into a service request message, and the service request message corresponding to each application stores the service identifier and service request of the application.

[0053] When the connection forwarding server 200 receives the service request message, it forwards the service request to the application server 300 corresponding to the service identifier through the service identifier in the service request message. After obtaining the service response corresponding to the above service request, the application server 300 encapsulates the service response into a service response message in the same way as encapsulating the service request message, and returns it to the terminal device 100 through the application connection 120. When the terminal device 100 receives the service response message, it forwards the service response to the application corresponding to the service identifier through the service identifier in the service response message.

[0054] In addition, it can be understood that the multi-application interaction method of the present application can also be used when the terminal device is in a specific state. For example, when the remaining power of the terminal device 100 is less than the power threshold or the memory space of the terminal device 100 is less than the memory threshold, the above-mentioned interaction method is performed by connecting to the forwarding server. When the remaining power of the terminal device 100 or the memory space of the terminal device 100 is restored to be greater than the power threshold or the memory threshold, the terminal device 100 can establish an application connection for multiple applications respectively, and each application of the terminal device 100 can complete the interaction with the application server 300 through its corresponding application connection through the connection forwarding server 200. In this way, when the terminal device 100 is in a state of insufficient power or insufficient memory, multiple applications on the terminal device 100 can maintain interaction with the application service of the application server 300 through a single-channel application connection (single application connection). When the power or memory of the terminal device 100 is restored, the multiple applications on the terminal device 100 can maintain interaction with the application service of the application server 300 through their corresponding application connections again.

[0055] exist Figure 2In the interactive system 10 of the application shown, the terminal device 100 can be various terminal devices, for example, including but not limited to, a laptop computer, a desktop computer, a tablet computer, a mobile phone, a server, a wearable device, a head-mounted display, a mobile email device, a portable game console, a portable music player, a reader device, or other terminal devices capable of accessing a network. In some embodiments, the embodiments of the present application can also be applied to wearable devices worn by users. For example, smart watches, bracelets, jewelry (for example, devices made into decorative items such as earrings, bracelets, etc.) or glasses, etc., or as part of watches, bracelets, jewelry or glasses, etc.

[0056] It can be understood that various applications can be installed on the terminal device 100, such as a video conferencing application, an instant messaging application, etc.

[0057] The connection forwarding server 200 and the application server 300 may be hardware servers or may be embedded in a virtualized environment. For example, according to some embodiments of the present application, the connection forwarding server 200 and the application server 300 may be virtual machines executed on a hardware server including one or more other virtual machines. In other embodiments of the present application, the connection forwarding server 200 and the application server 300 may be the same hardware server.

[0058] Below Figure 3 The mobile phone 100 shown in the figure is used as an example of the terminal device 100, and the video conferencing application 101 and the instant messaging application 102 of the mobile phone 100 send a service request to the application server 300, and combine Figures 3 to 9 To explain in detail the application interaction method of the terminal device.

[0059] Figure 3 An application interactive system 10 including a mobile phone 100, a connection forwarding server 200, an application server 300 and a routing server 400 is shown, wherein a video conferencing application 101 and an instant messaging application 102 are running on the mobile phone 100. The mobile phone 100 also includes an application service management module 110, which can obtain the address and port of the connection forwarding server 200 from the routing server 400, and establish a separate application connection 120 with the connection forwarding server 200 in a single-channel manner (single connection). At the same time, the application service management module 110 can also encapsulate the service requests of the video conferencing application 101 and the instant messaging application 102 into a service request message, and send it to the connection forwarding server 200.

[0060] The connection forwarding server 200 is used to forward the service request to the application server 300 corresponding to the service identifier through the service identifier in the service request message after receiving the service request message.

[0061] After obtaining the service response corresponding to the above service request, the application server 300 encapsulates the service response into a service response message in the same manner as the service request message, and returns it to the terminal device 100 through the application connection 120 .

[0062] It can be understood that in some embodiments of the present application, the routing server 400 may be optional, and the application service management module 110 may also obtain the address and port of the connection forwarding server 200 from the storage area of ​​the mobile phone 100.

[0063] Figure 4 In some embodiments, the interaction method between the application of the mobile phone 100 and the application server 300 is shown, including:

[0064] S401: The mobile phone 100 detects a service request sent by its own application.

[0065] Here, the service request sent by the application may be a login request, a request to send / obtain data, a logout request, etc. of the application. For example, after the user turns on the mobile phone 100, the user can enter the video conferencing application 101 and the instant messaging application 102 by clicking the icons of "video conferencing" and "instant messaging" in the user interface (UI) of the mobile phone 100. After that, the user clicks the "login" button in the video conferencing application 101 and the instant messaging application 102 respectively. In response to the user's operation of clicking the "login" button, the video conferencing application 101 and the instant messaging application 102 respectively send login requests to the video conferencing application service 201 and the instant messaging application service 202 of the application server 300.

[0066] The application service management module 110 of the mobile phone 100 can detect the login request sent by the video conferencing application 101 and the instant messaging application 102. Here, the mobile phone 100 can configure the application service management module 110 as a system service in the system settings of its own operating system. After the user turns on the application service management module 110 of the mobile phone 100, the application service management module 110 can actively obtain the service identification of the video conferencing application 101 and the instant messaging application 102 and store them in the memory of the mobile phone 100. The service identification here is used to uniquely identify the application in the mobile phone 100. It can be understood that when the application service management module 110 is turned on, when the user installs the video conferencing application 101 and the instant messaging application 102 on the mobile phone 100, the application service management module 110 can also obtain the service identification corresponding to the video conferencing application 101 and the instant messaging application 102.

[0067] At the same time, the application service management module 110 can monitor the service requests issued by the video conferencing application 101 and the instant messaging application 102 by monitoring the application. That is, when the video conferencing application 101 or the instant messaging application 102 issues a service request, the application service management module 110 can obtain the content of the service request, for example, the service content included in the service request.

[0068] In some embodiments of the present application, the mobile phone 100 can configure the corresponding parameters for the on / off configuration of the application service management module 110. For example, the mobile phone 100 configures the application service management module 110 as a parameter name AppManageMode through the system settings, configures the parameter value corresponding to the on of the application service management module 110 to 1, and configures the parameter value corresponding to the off of the application service management module 110 to 0, and the above parameters and parameter values ​​are stored in the memory of the mobile phone 100. It can be understood that the user can turn on / off the application service management module 110 by setting the value of the parameter AppManageMode in the system settings of the mobile phone 100.

[0069] In some other embodiments of the present application, the application service management module 110 may also be an application program installed in the mobile phone 100. The user may start the application service management module 110 by clicking the icon of the application service management module 110.

[0070] S402: The mobile phone 100 continuously determines whether its remaining power and remaining memory are less than the power threshold and the memory threshold. If both are less than the power threshold and the memory threshold, the process proceeds to S403, where a single application connection 120 is established between the mobile phone 100 and the application server 300. Otherwise, the process proceeds to S406, where the mobile phone 100 establishes an application connection between each application and the application server 300.

[0071] For example, the application service management module 110 of the mobile phone 100 can read the current remaining power and remaining memory of the mobile phone 100 through the power management service and memory management service in the operating system, and compare the obtained remaining power and remaining memory with the power threshold and memory threshold stored in the storage area of ​​the mobile phone 100, wherein the power threshold and memory threshold can be 50%. In the case where both the remaining power and the remaining memory are less than the power threshold and the memory threshold, such as: the remaining power and the remaining memory are 40% and 30% respectively, the mobile phone 100 executes S403. In the case where both or one of the remaining power and the remaining memory is greater than the power threshold and the memory threshold, such as: the remaining power and the remaining memory are 40% and 60% respectively, the mobile phone 100 executes S406.

[0072] In another embodiment of the present application, the power threshold and the memory threshold may also take other values. For example, the power threshold and the memory threshold may be set to 40% and 60% respectively. In this case, when the remaining power of the mobile phone 100 is 30% and the remaining memory is 50%, the mobile phone 100 executes S403. For another example, when the remaining power of the mobile phone 100 is 50% and the remaining memory is 50%, the mobile phone 100 executes S406.

[0073] In the Android system, the power management service is implemented by the Android system message of the mobile phone 100 in which the message of the change of the battery power of the mobile phone is realized through the Android system message. When a specific Action event occurs, the system will issue a corresponding broadcast, and the application can receive the broadcast through BroadcastReceiver and perform corresponding processing.

[0074] The above-mentioned memory management service is obtained by reading the attribute of the current available memory size (MemTotal) in the memory information (meminfo) in the Android system of the mobile phone 100 .

[0075] S403: The mobile phone 100 establishes a single application connection 120 with the connection forwarding server 200 through the routing server 400.

[0076] Here, Figure 5aIn some embodiments, the application service management module 110 of the mobile phone 100 can obtain the address and port of the connection forwarding server 200 from the routing server 400. The application service management module 110 sends a request to establish an application connection 120 to the connection forwarding server 200 through the address and port of the connection forwarding server 200. After the connection forwarding server 200 receives and accepts the request to establish the application connection 120, the mobile phone 100 establishes the application connection 120 with the connection forwarding server 200. When the video conferencing application 101 and the instant messaging application 102 of the mobile phone 100 send service requests to the connection forwarding server 200, the connection management unit 1101 in the application service management module 110 allocates the application connection 120 to the video conferencing application 101 and the instant messaging application 102.

[0077] In other embodiments of the present application, the application service management module 110 of the mobile phone 100 can obtain the address and port of the connection forwarding server 200 from the storage area of ​​the mobile phone 100 , without obtaining the address and port of the connection forwarding server 200 from the routing server 400 .

[0078] It can be understood that in S403 , when an application connection already exists between the mobile phone 100 and the connection forwarding server 200 , the application service management module 110 of the mobile phone 100 no longer sends a request to the connection forwarding server 200 to establish an application connection.

[0079] S404 : The mobile phone 100 sends the service request of each application to the connection forwarding server 200 through the application connection 120 , and the connection forwarding server 200 forwards the service request to the application server 300 .

[0080] S405: After processing the service request, the application server 300 returns the corresponding service response to the connection forwarding server 200, and the connection forwarding server 200 returns the service response to the mobile phone 100 through the application connection 120.

[0081] Here, Figure 5b In some embodiments, the implementation method of the above steps S403 to S405 is shown, that is, the application service management module 110 of the mobile phone 100 sends the service requests of the video conferencing application 101 and the instant messaging application 102 to the connection forwarding server 200 in sequence through the application connection 120, and the connection forwarding server 200 forwards them to the application server 300 for processing, and then obtains the interactive method of the service response.

[0082] After executing S405 or during executing S405, the mobile phone 100 returns to S402, and the mobile phone 100 continues to detect whether its remaining power and remaining memory meet the power threshold and memory threshold. Figure 5a Give a detailed introduction.

[0083] It can be understood that when the remaining power or remaining memory of the mobile phone 100 meets the power threshold and the memory threshold, the application service management module 110 of the mobile phone 100 establishes a corresponding application connection for each application, and each application sends a service request to the connection forwarding server 200 through its own application connection, specifically including:

[0084] S406: The mobile phone 100 establishes an application connection between each application and the connection forwarding server 200 through the routing server 400.

[0085] like Figure 6 As shown, the application service management module 110 of the mobile phone 100 can establish application connection 121 and application connection 122 for the video conference application 101 and the instant messaging application 102 respectively with the connection forwarding server 200 through the address and port of the connection forwarding server 200 saved by the routing server 400. When the video conference application 101 and the instant messaging application 102 send requests to the application server 300 respectively, the connection management unit 1101 in the application service management module 110 allocates the application connection 121 and the application connection 122 to the video conference application 101 and the instant messaging application 102 respectively, and the connection forwarding server 200 can receive the service requests of the video conference application 101 and the instant messaging application 102 through the above application connection 121 and application connection 122.

[0086] S407 : Each application of the mobile phone 100 sends a service request to the connection forwarding server 200 through its corresponding application connection, and the connection forwarding server 200 forwards the service request to the application server 300 .

[0087] S408: After processing the service request, the application server 300 returns the corresponding service response to the connection forwarding server 200, and the connection forwarding server 200 returns the corresponding service response to the mobile phone 100 through the application connection corresponding to each application. The methods in S407 to S408 will be described in detail below.

[0088] Figure 7 The implementation process of the above step S404 in some embodiments is shown, which specifically includes:

[0089] S404a: The mobile phone 100 obtains and encapsulates the service requests of the video conferencing application 101 and the instant messaging application 102 into a service request message.

[0090] Continue to refer Figure 5a First, the application service management module 110 of the mobile phone 100 can obtain the login request issued by the video conferencing application 101 by request interception. For example, when the type of the login request issued by the video conferencing application 101 is an HTTP request (Hypertext Transport Protocol), the application service management module 110 can obtain the login request issued by the video conferencing application 101 through a pre-set HTTP request interceptor.

[0091] Next, the application service management module 110 obtains the service identifier of the video conferencing application 101, the device ID (Identity) of the mobile phone 100, the device type, the service content and other information. Among them, for the video conferencing application 101, its service identifier can be 111A. It can be understood that the application identifier of the video conferencing application 101, such as NetMeetingApp, can also be used as the service identifier. The service content can be a service request issued by the video conferencing application 101, such as a login request issued by the video conferencing application 101. The service identifier here can be obtained by the application service management module 110 from the video conferencing application 101 after the user turns on the application service management module 110.

[0092] At the same time, the application service management module 110 also obtains the token information of the video conference application 101. The token information is used by the video conference application service 201 to authenticate the video conference application 101. When the video conference application 101 sends a service request to the video conference application service 201 for the first time, the service request will carry the login credentials of the video conference application 101, such as the user name and password. After the video conference application service 201 confirms that the login credentials are correct, it returns the authorized token information. When the video conference application 101 sends a service request to the video conference application service 201 again, it will carry the token information. The video conference application service 201 will receive the service request sent by the video conference application service 201 only after verifying the token information.

[0093] Afterwards, the application service management module 110 can encapsulate the above information of the video conference application 101 together with the service request of the video conference application 101 into a service request message. Take the message format of the HTTP request as an example, as shown in Table 1. The message header here is used to identify basic information about the version of the message, such as: the length of the message, the method of sending the message, etc.

[0094] Header Device ID Device Type Business Logo Token Information Business Content

[0095] Table 1

[0096] For the instant messaging application 102 , the service management module 110 may also use the same method as the video conferencing application 101 to obtain and package the service request sent by the video conferencing application 101 into a service request message.

[0097] S404b: The mobile phone 100 sends the service requests of the video conferencing application 101 and the instant messaging application 102 to the connection forwarding server 200 via the application connection 120 in the form of service request messages.

[0098] The connection management unit 1101 in the application service management module 110 of the mobile phone 100 allocates the application connection 120 to the video conferencing application 101 and the instant messaging application 102. The application service management module 110 sends the encapsulated service request messages corresponding to the video conferencing application 101 and the instant messaging application 102 to the connection forwarding server 200 in sequence through the application connection 120.

[0099] Continue to refer Figure 5a It can be understood that when the application connection 120 between the mobile phone 100 and the connection forwarding server 200 is disconnected, in step S404b, the mobile phone 100 can re-acquire the address and port of the connection forwarding server 200 from the storage area of ​​the routing server 400 and establish the application connection 120.

[0100] S404c: The connection forwarding server 200 forwards the service requests in the service request messages of the video conferencing application 101 and the instant messaging application 102 to the video conferencing application service 201 and the instant messaging application service 202.

[0101] Continue to refer Figure 5aAfter receiving the service request message corresponding to the video conference application 101, the connection forwarding server 200 obtains and saves the service identifier 111A of the video conference application 101 from the service request message. According to the correspondence between the service identifier 111A and the video conference application service 201 on the application server 300, the service content in the service request message corresponding to the video conference application 101, that is, the login request is forwarded to the video conference application service 201. At the same time, the connection forwarding server 200 can save the device ID and device type and other information in the message. When the video conference application service 201 sends a service response to the video conference application 101, the service response is returned to the corresponding mobile phone 100 based on the device ID and device type. For example, the connection forwarding server 200 can save the correspondence between the device ID and device type of the mobile phone 100 and the application connection 120. Similarly, the connection forwarding server 200 can also use the above method to forward the login request in the message corresponding to the instant messaging application 102 to the instant messaging application service 202.

[0102] Figure 8 The implementation process of step S405 in some embodiments is shown, which specifically includes:

[0103] S405a: After processing the service request, the video conferencing application service 201 and the instant messaging application service 202 return a service response message to the mobile phone 100 through the connection forwarding server 200.

[0104] After receiving the login request of the video conference application 101 forwarded by the connection forwarding server 200, the video conference application service 201 confirms that the video conference application 101 has successfully logged in, and returns a service response to the connection forwarding server 200. If the login request is the first time that the video conference application 101 sends to the video conference application service 201, the video conference application service 201 will also return a token information to the connection forwarding server 200.

[0105] Continue to refer Figure 5a, the connection forwarding server 200 can also use a method similar to the application service management module 110 of the mobile phone 100 in S404a and a similar message format to package the service response of the video conferencing application service 201 into a message and return it to the mobile phone 100, but the difference from S405 is that the connection forwarding server 200 obtains the service response issued by the video conferencing application service 201, and uses the service response as the service content, and the service identifier 111A of the video conferencing application 101 to encapsulate it into a service response message. If the video conferencing application service 201 returns token information, the connection forwarding server 200 will also encapsulate the token information into the service response message. Afterwards, the connection forwarding server 200 returns the service response message to the mobile phone 100 through the application connection 120 according to the previously saved device ID and device type. The message here can also be in the HTTP message format.

[0106] Similarly, for the service response of the instant messaging application service 202, the connection forwarding server 200 also uses the same method as that for processing the service response sent by the video conferencing application service 201 to package the service response into a service response message and return it to the mobile phone 100.

[0107] S405b: After receiving the service response messages from the video conferencing application service 201 and the instant messaging application service 202 , the mobile phone 100 sends the service response in the service response message to the video conferencing application 101 and the instant messaging application 102 .

[0108] For example, continue to refer to Figure 5a After receiving the service response message, the application service management module 110 of the mobile phone 100 obtains the service identifier 111A from the service response message. The application service management module 110 sends the service response of successful login and the token information in the service response message to the video conferencing application 101 according to the video conferencing application 101 corresponding to 111A. After receiving the service response of successful login, the video conferencing application 101 completes the service interaction with the video conferencing application service 201. At the same time, the video conferencing application 101 also saves the token information in the storage area of ​​the mobile phone 100 for identity authentication the next time a service request is sent to the video conferencing application service 201.

[0109] Similarly, the mobile phone 100 can also process the service response message of the instant messaging application 102 using the same method as the service response message of the video conferencing application 101 .

[0110] Fig. 9The implementation of the above steps S407 to S408 in some embodiments is shown, that is, the application service management module 110 of the mobile phone 100 sends the service requests of the video conferencing application 101 and the instant messaging application 102 to the application server 300 in sequence through the application connection 121 and the application connection 122, and obtains the interactive mode of the service response from the application server 300, specifically including:

[0111] First, for the video conference application 101 and the instant messaging application 102, the application service management module 110 can use the above-mentioned method S404a to encapsulate the service requests of the video conference application 101 and the instant messaging application 102 into corresponding service request messages. The difference is that, afterwards, the application service management module 110 can send the service request messages of the video conference application 101 and the instant messaging application 102 to the connection forwarding server 200 through the above-mentioned application connection 121 and application connection 122.

[0112] Secondly, after the connection forwarding server 200 receives the service request message of the video conference application 101 and the instant messaging application 102 through the above application connection 121 and application connection 122, it can forward it to the video conference application service 201 and the instant messaging application service 202 through the above method S404c. Then, after the video conference application service 201 and the instant messaging application service 202 process the service request, the application server 300 can encapsulate the service response corresponding to the service request into the corresponding service response message through the above method S405a. The difference is that, afterwards, the connection forwarding server 200 returns the service response message to the mobile phone 100 through the respective application connection 121 and application connection 122 of the video conference application 101 and the instant messaging application 102.

[0113] Finally, after receiving the service response messages from the video conference application service 201 and the instant messaging application service 202, the mobile phone 100 sends them to the video conference application 101 and the instant messaging application 102. Meanwhile, the mobile phone 100 continues to return to S402.

[0114] It can be understood that after the above S405 or S408 is executed, when the remaining power and remaining memory of the mobile phone 100 itself change, for example, when the mobile phone 100 is in a charging state or the remaining power of the mobile phone 100 is greater than the power threshold, and the remaining memory of the mobile phone 100 is greater than the memory threshold, if there is only one application connection between the mobile phone 100 and the application server 300 at this time, and there are multiple applications on the mobile phone 100, for example, the video conferencing application 101 and the instant messaging application 102, at this time, the mobile phone 100 will execute S406 to establish application connection 121 and application connection 122 for the video conferencing application 101 and the instant messaging application 102 respectively, so that the video conferencing application 101 and the instant messaging application 102 can interact with the application server 300 through their respective application connection 121 and application connection 122. On the contrary, when the remaining power of the mobile phone 100 is less than the power threshold and the remaining memory of the mobile phone 100 is less than the memory threshold, if at this time multiple applications of the mobile phone 100 respectively interact with the application server 300 through their respective application connections, for example, the video conferencing application 101 and the instant messaging application 102 interact with the application server 300 through their respective application connections 121 and 122. At this time, the mobile phone 100 executes S403 to switch the application connections 121 and 122 into a single application connection, so that the video conferencing application 101 and the instant messaging application 102 interact with the application server 300 through the application connection.

[0115] It can be understood that in the above embodiment, it is disclosed that the interactive information between the mobile phone 100 and the application server 300 is forwarded by connecting to the forwarding server 200 only when the memory and power of the mobile phone 100 meet certain conditions. In the embodiment of the present application, the interactive information between the mobile phone 100 and the application server 300 can also be forwarded directly by connecting to the forwarding server 200 without considering the memory and power of the mobile phone 100. For example, continuing to take the video conferencing application 101 and the instant messaging application 102 as an example, Fig.10 As shown, the interaction process includes:

[0116] S1001: The mobile phone 100 detects a service request sent by its own application.

[0117] Here, the process performed in S1001 is the same as that in S401 above. The application service management module 110 of the mobile phone 100 can detect the service requests sent by the video conference application 101 and the instant messaging application 102 by monitoring the application.

[0118] S1002: A single application connection 120 is established between the mobile phone 100 and the connection forwarding server 200.

[0119] Here, the process performed in S1002 is the same as that in S403 . The application service management module 110 of the mobile phone 100 can establish a single application connection 120 with the connection forwarding server 200 according to the address and port of the connection forwarding server 200 stored in the storage area of ​​the mobile phone 100 .

[0120] S1003: The mobile phone 100 sends the service request of each application to the connection forwarding server 200 through the application connection 120, and the connection forwarding server 200 forwards the service request to the application server 300.

[0121] Here, the process performed in S1003 is the same as that in S404. The application service management module 110 of the mobile phone 100 encapsulates the service requests of the video conferencing application 101 and the instant messaging application 102 into a service request message. Then, the application service management module 110 sends the service request message to the connection forwarding server 200 through the application connection 120 in sequence. The connection forwarding server 200 forwards the service request in the service request message to the video conferencing application service 201 and the instant messaging application service 202 according to the service identifier in the service request message.

[0122] S1004: After processing the service request, the application server 300 returns the corresponding service response to the connection forwarding server 200, and the connection forwarding server 200 returns the service response to the mobile phone 100 through the application connection 120.

[0123] Here, the process performed in S1004 is the same as that in S405. After processing the service request, the video conference application service 201 and the instant messaging application service 202 return the service response corresponding to the service request to the connection forwarding server 200. The connection forwarding server 200 packages the service response into a message and returns it to the mobile phone 100 through the application connection 120.

[0124] Fig.11 In another embodiment of the present application, the mobile phone 100 can obtain notifications corresponding to various applications on the mobile phone 100 from the push server through a single application connection. Each application does not need to establish a separate application connection with its corresponding application server to obtain notifications through a separate application connection. The process includes:

[0125] S1101: The first application and the second application register for push service with the push server through the operating system of the mobile phone 100 and apply for token information.

[0126] S1102: The first application and the second application receive token information from the push server respectively.

[0127] S1103: The first application and the second application send the token information to the application server and save it in the application server.

[0128] S1104: The application server sends a notification to the push server.

[0129] S1105: The push server pushes the notification to the first application and the second application through a single application connection.

[0130] Fig.12 A schematic structural diagram of a terminal device 100 according to an embodiment of the present application is shown.

[0131] The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0132] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0133] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0134] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0135] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0136] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In an embodiment of the present application, the power management module 141 can be used to detect whether the power of the terminal device 100 (mobile phone 100) is less than a power threshold. The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0137] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0138] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the terminal device 100 .

[0139] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In other embodiments of the present application, the mobile communication module 150 and the wireless communication module 160 can establish an application connection with the connection forwarding server 200 and the application server 300.

[0140] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that terminal device 100 can communicate with the network and other devices through wireless communication technology.

[0141] The terminal device 100 implements the display function through the GPU, the display screen 194, and the application processor, etc. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.

[0142] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0143] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0144] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. In other embodiments of the present application, the internal memory 121 may save the service identifier of the application and the address and port for connecting to the forwarding server 200. In an embodiment of the present application, the internal memory 121 may be used to save the address and port for connecting to the forwarding server 200.

[0145] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0146] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0147] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0148] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the ear.

[0149] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C.

[0150] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0151] The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0152] The touch sensor 180K is also called a “touch control device.” The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch control screen.”

[0153] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100.

[0154] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.

[0155] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0156] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the terminal device 100 by inserting the SIM card interface 195 or removing the SIM card from the SIM card interface 195 .

[0157] Fig.13 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present invention.

[0158] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0159] The application layer can include a series of application packages.

[0160] like Fig.13As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0161] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0162] like Fig.13 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an application service management module, and the like.

[0163] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0164] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0165] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0166] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including connection, disconnection, etc.).

[0167] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0168] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.

[0169] Application service management service, in the embodiment of the present application, the application service management service may be an application service management module of a terminal device, which may manage the application connection between the application program and the server. The terminal device may run the application service management service through a processor. For example, the application service management module may establish a single application connection between the terminal device and the server through a single channel, that is, a single connection.

[0170] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0171] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0172] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0173] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0174] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0175] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0176] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0177] A 2D graphics engine is a drawing engine for 2D drawings.

[0178] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0179] It should be understood that although the terms "first", "second", etc. may be used herein to describe various features, these features should not be limited by these terms. These terms are used only to distinguish and should not be understood as indicating or implying relative importance. For example, a first feature may be referred to as a second feature, and similarly a second feature may be referred to as a first feature without departing from the scope of the exemplary embodiments.

[0180] In addition, various operations will be described as multiple separate operations in a manner that is most helpful for understanding the illustrative embodiments; however, the order of description should not be interpreted as implying that these operations must rely on the order of description, and many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can also be rearranged. When the described operations are completed, the process can be terminated, but there can also be additional operations not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0181] References in the specification to "one embodiment," "an embodiment," "an illustrative embodiment," etc. indicate that the described embodiment may include a particular feature, structure, or property, but each embodiment may or may not necessarily include the particular feature, structure, or property. Moreover, these phrases are not necessarily directed to the same embodiment. In addition, when particular features are described in conjunction with a specific embodiment, the knowledge of those skilled in the art can affect the combination of these features with other embodiments, whether or not these embodiments are explicitly described.

[0182] Unless the context dictates otherwise, the terms "comprising," "having," and "including" are synonymous. The phrase "A / B" means "A or B." The phrase "A and / or B" means "(A), (B), or (A and B)."

[0183] As used herein, the term "module" may refer to, be part of, or include: a memory (shared, dedicated, or group) for running one or more software or firmware programs, an application-specific integrated circuit (ASIC), an electronic circuit and / or processor (shared, dedicated, or group), a combinational logic circuit, and / or other suitable components that provide the described functionality.

[0184] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order is not required. Instead, in some embodiments, these features may be described in a manner and / or order different from that shown in the illustrative drawings. In addition, the structural or method features included in a specific figure do not mean that all embodiments need to include such features. In some embodiments, these features may not be included, or these features may be combined with other features.

[0185] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the use of the technical solution of the present application is not limited to the various applications mentioned in the embodiments of the present patent. Various structures and variations can be easily implemented with reference to the technical solution of the present application to achieve the various beneficial effects mentioned herein. Various changes made within the knowledge of ordinary technicians in the field without departing from the purpose of the present application should all fall within the scope of the patent application.

Claims

1. A method for application interaction of a terminal device, characterized in that: The method is applied to an application interaction system of a terminal device, the application interaction system comprising a terminal device and a connection forwarding server; The method comprises: The terminal device sends a first service request of a first application and a second service request of a second application to the connection forwarding server through a first channel established between the terminal device and the connection forwarding server, wherein the first service request and the second service request have the same message format; The connection forwarding server sends the first service request and the second service request to a first application server and a second application server respectively, wherein the first application server corresponds to the first application program and the second application server corresponds to the second application program.

2. The method according to claim 1, characterized in that Also includes: The connection forwarding server receives a first service response corresponding to the first service request from the first application server, and receives a second service response corresponding to the second service request from the second application server; The connection forwarding server sends the first service response and the second service response to the terminal device through the first channel.

3. The method according to claim 2, characterized in that The message formats of the first service response and the second service response are the same.

4. The method according to claim 3, characterized in that The message of the first service request and the message of the first service response include the first service identifier of the first application, and the message of the second service request and the message of the second service response include the second service identifier of the second application.

5. The method according to claim 4, characterized in that Also includes: The terminal device inputs the first service response in the first service response message into the first application corresponding to the first service identifier, and inputs the second service response in the second service response message into the second application corresponding to the second service identifier.

6. The method according to claim 1, characterized in that Also includes: When the remaining power is less than the power threshold and the memory space is less than the memory threshold, the terminal device establishes a first channel with the connection forwarding server.

7. The method according to claim 6, characterized in that Also includes: When the remaining power is greater than the power threshold and / or the memory space is greater than the memory threshold, the terminal device establishes a second channel and a third channel with the connection forwarding server; The terminal device sends a first service request of a first application to the connection forwarding server through the second channel, and the terminal device sends a second service request of a second application to the connection forwarding server through the third channel.

8. The method according to claim 7, characterized in that The connection forwarding server receives a first service response corresponding to the first service request from the first application server, and receives a second service response corresponding to the second service request from the second application server; The connection forwarding server sends the first service response to the terminal device through the second channel, and sends the second service response to the terminal device through the third channel.

9. A method for application interaction of a terminal device, characterized in that: include: The terminal device sends a first service request of a first application and a second service request of a second application to the connection forwarding server through a first channel established between the terminal device and the connection forwarding server, wherein the first service request and the second service request have the same message format; The terminal device receives a first service response corresponding to the first service request and a second service response corresponding to the second service request from the connection forwarding server through the first channel.

10. The method according to claim 9, characterized in that The first service response is received from the first application server after the connection forwarding server sends the first service request to the first application server, and the second service response is received from the second application server after the connection forwarding server sends the second service request to the second application server, wherein the first application server corresponds to the first application and the second application server corresponds to the second application.

11. The method according to claim 10, characterized in that The message formats of the first service response and the second service response are the same.

12. The method according to claim 11, characterized in that The message of the first service request and the message of the first service response include the first service identifier of the first application, and the message of the second service request and the message of the second service response include the second service identifier of the second application.

13. The method according to claim 12, characterized in that Also includes: The terminal device inputs the first service response in the first service response message into the first application corresponding to the first service identifier, and inputs the second service response in the second service response message into the second application corresponding to the second service identifier.

14. The method according to claim 9, characterized in that Also includes: When the remaining power is less than the power threshold and the memory space is less than the memory threshold, the terminal device establishes a first channel with the connection forwarding server.

15. The method according to claim 14, characterized in that Also includes: When the remaining power is greater than the power threshold and / or the memory space is greater than the memory threshold, the terminal device establishes a second channel and a third channel with the connection forwarding server; The terminal device sends a first service request of a first application to the connection forwarding server through the second channel, and the terminal device sends a second service request of a second application to the connection forwarding server through the third channel.

16. A method for application interaction of a terminal device, characterized in that: include: The connection forwarding server receives a first service request of a first application and a second service request of a second application sent by the terminal device through a first channel established between the connection forwarding server and the terminal device, wherein the first service request and the second service request have the same message format; The connection forwarding server sends the first service request and the second service request to a first application server and a second application server respectively, wherein the first application server corresponds to the first application program and the second application server corresponds to the second application program.

17. The method according to claim 16, characterized in that Also includes: The connection forwarding server receives a first service response corresponding to the first service request from the first application server, and receives a second service response corresponding to the second service request from the second application server; The connection forwarding server sends the first service response and the second service response to the terminal device through the first channel.

18. The method according to claim 17, characterized in that The message formats of the first service response and the second service response are the same.

19. The method according to claim 18, characterized in that The message of the first service request and the message of the first service response include the first service identifier of the first application, and the message of the second service request and the message of the second service response include the second service identifier of the second application.

20. A terminal device, characterized in that: include: A memory storing instructions; A processor is coupled to a memory, and when the program instructions stored in the memory are executed by the processor, the terminal device executes the function of the application interaction method of the terminal device described in any one of claims 1 to 19.

21. A readable medium having instructions stored therein, characterized in that: When the instructions are executed on the readable medium, the readable medium is caused to execute the function of the application program interaction method of the terminal device according to any one of claims 1 to 19.