Distributed control method of application program and electronic equipment

By establishing communication connections between electronic devices, distributed control of applications can be achieved, solving the problem of a single management method for electronic devices, improving user experience, and enabling functional collaboration and expansion.

CN118535069APending Publication Date: 2024-08-23HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310194140.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing electronic devices have a relatively simple and inflexible approach to managing applications, which fails to effectively achieve distributed control of applications and results in a poor user experience.

Method used

By establishing a communication connection between the first electronic device and the second electronic device, the second electronic device displays the application controls in response to the first user's operation, and the first electronic device runs the application in response to the second user's operation, thereby achieving distributed control and improving management flexibility.

Benefits of technology

It improves the flexibility of application control and management, enhances the user experience, is suitable for various electronic devices, does not require consideration of software and hardware resource constraints, and enables functional synergy and expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535069A
    Figure CN118535069A
Patent Text Reader

Abstract

The embodiment of the invention provides a distributed control method of an application program and electronic equipment. In the method, an application program is installed in a first electronic device, and a second electronic device displays a control of the application program in response to a first operation of a first user on the first electronic device; therefore, the first electronic equipment can respond to the second operation of the second user on the control on the second electronic equipment and run the application program. Through the scheme, the second electronic equipment can establish the control of the application program installed on the first electronic equipment, and the distributed control of the application program on the first electronic equipment can be realized by operating the control, so that the flexibility of the control management of the application program in the first electronic equipment is finally improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a distributed control method of an application program and an electronic device. Background Art

[0002] With the development of electronic technology in recent years, the types of intelligent electronic devices have increased, enriching and facilitating the lives of users. For example, various electronic devices can provide users with rich functions through installed applications.

[0003] However, the current management methods of electronic devices for applications are relatively simple and not flexible enough. Summary of the invention

[0004] The present application provides a distributed control method of an application and an electronic device, which are used to implement distributed control of the application, improve the flexibility of the management method of the application in the electronic device, and thus improve the user experience.

[0005] In a first aspect, an embodiment of the present application provides a distributed control method for an application. The method can be applied to a first electronic device, wherein the first electronic device is installed with an application, the first electronic device and the second electronic device are in communication connection, and a control of the application is displayed in the second electronic device, and the control is displayed by the second electronic device in response to a first operation of a first user on the first electronic device. The method comprises the following steps:

[0006] The first electronic device runs the application in response to a second operation of the control on the second electronic device by a second user.

[0007] Through this method, the second electronic device can establish a control of the application installed on the first electronic device, and by operating the control, it can achieve distributed control of the application on the first electronic device, ultimately improving the flexibility of control management of the application in the first electronic device and improving user experience.

[0008] In a possible design, the first operation may be, but is not limited to, any of the following:

[0009] Mode 1: The first operation is that the first user performs any one of the following operations on the icon of the application on the first electronic device: single click, double click, long press, and drag;

[0010] Mode 2: The first operation is that the first user drags the icon of the application to a target area on the first electronic device, wherein the target area is a set area in a display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device;

[0011] Mode 3: the first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device;

[0012] Mode 4: the first operation is that the first user selects a distributed control mode in a shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting a third operation of the first user, and the third request is used to trigger display of the shortcut menu of the application;

[0013] Method 5: The first operation is that the first user selects to agree to the request in the distributed control request notification displayed on the first electronic device; wherein the distributed control request is sent by the second electronic device to the first electronic device after detecting the fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

[0014] Through this design, the first user can flexibly initiate distributed control of the application on the first electronic device.

[0015] In one possible design, after detecting the first operation, the first electronic device sends a first message to the second electronic device; the first message is used to instruct the second electronic device to create the control.

[0016] Through this design, after detecting the first operation, the first electronic device can create a control of the application on the second electronic device through communication interaction, so that the second electronic device can achieve distributed control of the application on the first electronic device.

[0017] In one possible design, the first message includes information about the application and an icon of the control. The icon of the control may be the same as the icon of the application on the first electronic device, or the icon of the control is generated by the first electronic device based on the icon of the application. Exemplarily, the information of the application may include at least one of the following: an identifier of the application, control instructions of the application (including running instructions, and may also include update instructions, deletion instructions, etc.), or a control method for the first electronic device to authorize the application (allowing distributed control to run the application, and may also include running distributed control to delete or update the application, etc.).

[0018] Through this design, the second electronic device can determine the icon of the control according to the first message, and create the control based on the information of the application, so that there is an association relationship between the control and the application on the first electronic device.

[0019] In one possible design, the icon of the control is the same as the icon of the application on the first electronic device.

[0020] In one possible design, after running the application, the first electronic device can also display the user interface of the application.

[0021] In one possible design, after running the application, the first electronic device may also send a second message to the second electronic device based on the first user interface of the application; wherein the second message is used for the second electronic device to display the running information of the application.

[0022] Through this design, the first electronic device can interact through communication so that the second electronic device can display the running information of the application running in the first electronic device. That is, the second user can run the application in the first electronic device through the second operation of the control in the second electronic device, and the second electronic device can display the running information of the application running in the first electronic device. Therefore, with the assistance and cooperation of the first electronic device, the second electronic device can display the running information of the application of the first electronic device, that is, realize the function of the application in the first electronic device. Based on this solution, the function of the first electronic device can also be extended to the second electronic device to realize the functional coordination of the two electronic devices.

[0023] In one possible design, the operation information includes: operation results, operation status information, or user interface.

[0024] Through this design, the second electronic device can provide application services to users by displaying multiple forms.

[0025] In one possible design, the second message is used to indicate the first user interface or the second user interface; the second user interface is the first target area selected in the first user interface; or the second user interface is obtained by scaling the first user interface; or the second user interface is obtained by combining at least one first image unit in the first user interface.

[0026] With this design, the first electronic device or the second electronic device can obtain the second user interface by scaling or selecting a part of the first user interface.

[0027] In one possible design, the second message is used to indicate at least one second image unit in the first user interface.

[0028] Through this design, the second electronic device can obtain the second user interface by combining the at least one second image unit.

[0029] In one possible design, the first electronic device can also receive a third message from the second electronic device; wherein the third message is used to indicate the second user's fifth operation in the second user interface; and the first electronic device executes the operation instructions corresponding to the fifth operation on the first user interface based on the third message.

[0030] Through this design, the second user can also control the application running on the first electronic device by operating the second user interface displayed on the second electronic device, thereby further improving the user experience.

[0031] In one possible design, the third message includes the first operation position or the second operation position; wherein the first operation position is the position of the fifth operation in the second user interface; and the second operation position is the position where the fifth operation is mapped to the first user interface.

[0032] With this design, the first electronic device determines the second operation position of the fifth operation according to the first operation position in the third message, or directly obtains the second operation position from the third message. In this way, the first electronic device can execute the operation instruction corresponding to the fifth operation on the first user interface according to the second operation position. Finally, the first electronic device can map the fifth operation performed by the second user on the second user interface to the first user interface, so that the first electronic device can execute the operation instruction corresponding to the second operation.

[0033] In one possible design, the first display area of ​​the first electronic device and the second display area of ​​the second electronic device are different in size and / or shape, the first display area is the area in the display screen of the first electronic device used to display the user interface, and the second display area is the area in the display screen of the second electronic device used to display the user interface.

[0034] In a possible design, the first electronic device sends the second message to the second electronic device according to the first user interface of the application, including: the first electronic device sends the second message to the second electronic device according to the first user interface and the first interface layout strategy. Optionally, the first interface layout strategy is set for the size or shape of the second display area of ​​the application and the second electronic device. Optionally, the first interface layout strategy can be set by the manufacturer of the second electronic device or the developer of the application.

[0035] Through this design, the standardization and consistency of the second user interface finally generated by the first electronic device or the second electronic device can be guaranteed.

[0036] In one possible design, when the area used to display the user interface in the display screen of the second electronic device is adjusted to a third display area, the first electronic device may also send a fourth message to the second electronic device based on the first user interface and second interface layout strategy, so that the second electronic device displays the third user interface of the application according to the fourth message; wherein the third user interface at least includes part of the display content of the first user interface; and the third display area is different in size and / or shape from the first display area and the second display area.

[0037] Through this design, it can be ensured that the third user interface can adapt to the third display area of ​​the second electronic device.

[0038] In a possible design, the first electronic device may generate the first user interface on a virtual screen. In this case, the first electronic device may not display the first user interface in the first display area of ​​the display screen; or may display part or all of the first user interface according to the size or shape of the first display area, which is not limited in this application.

[0039] Due to the characteristics of the virtual screen, the first electronic device can create the first user interface of any size and shape on the virtual screen without being restricted by the display screen size and display resolution.

[0040] In a possible design, the first electronic device may run the application in response to a second operation of the second user on the control on the second electronic device through the following steps:

[0041] The first electronic device receives a fifth message from the second electronic device, and runs the application according to the fifth message; wherein the fifth message is sent by the second electronic device after detecting the second operation, and the fifth message is used to instruct the first electronic device to run the application.

[0042] With this design, after the second user performs the second operation on the control in the second electronic device, the second electronic device can run the corresponding application in the first electronic device through communication interaction with the first electronic device.

[0043] In a possible design, the second operation is any one of the following operations performed by the second user on the control: single-click, double-click, long press, and drag.

[0044] In one possible design, performance of the first electronic device is better than performance of the second electronic device.

[0045] Through this design, the second electronic device with poor performance can control the application of the first electronic device with better performance in a distributed manner. Furthermore, the second electronic device with poor performance can also realize the functions of the first electronic device with better performance, and the functional coordination or functional expansion between electronic devices with different performance can be realized without optimizing the software and hardware resources of the second electronic device.

[0046] In one possible design, the first electronic device is a smart phone, and the second electronic device is a smart wearable device or a smart home device.

[0047] In a second aspect, an embodiment of the present application provides a distributed control method for an application. The method can be applied to a second electronic device, the second electronic device is communicatively connected to a first electronic device, and the first electronic device has an application installed thereon. The method comprises the following steps:

[0048] The second electronic device displays a control of the application in response to a first operation performed by a first user on the first electronic device; wherein the control is used to run the application on the first electronic device when the second user performs a second operation on the control.

[0049] Through this method, the second electronic device can establish a control of the application installed on the first electronic device, and by operating the control, it can achieve distributed control of the application on the first electronic device, ultimately improving the flexibility of control management of the application in the first electronic device and improving user experience.

[0050] In a possible design, the first operation may be, but is not limited to, any of the following:

[0051] Mode 1: The first operation is that the first user performs any one of the following operations on the icon of the application on the first electronic device: single click, double click, long press, and drag;

[0052] Mode 2: The first operation is that the first user drags the icon of the application to a target area on the first electronic device, wherein the target area is a set area in a display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device;

[0053] Mode 3: the first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device;

[0054] Mode 4: the first operation is that the first user selects a distributed control mode in a shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting a third operation of the first user, and the third request is used to trigger display of the shortcut menu of the application;

[0055] Method 5: The first operation is that the first user selects to agree to the request in the distributed control request notification displayed on the first electronic device; wherein the distributed control request is sent by the second electronic device to the first electronic device after detecting the fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

[0056] In a possible design, the second electronic device may display the control of the application in response to the first operation of the first user on the first electronic device through the following steps:

[0057] The second electronic device receives the first message from the first electronic device; the first message is sent by the first electronic device after detecting the first operation, and the first message is used to instruct the second electronic device to create the control; the second electronic device generates the control according to the first message, and displays the control on the display screen of the second electronic device.

[0058] In one possible design, the first message includes information about the application and an icon of the control.

[0059] In one possible design, the icon of the control is the same as the icon of the application on the first electronic device.

[0060] In one possible design, the second electronic device can also display the running information of the application.

[0061] In one possible design, the operation information includes: operation results, operation status information, or user interface.

[0062] In a possible design, when the running information includes a user interface, the second electronic device may display the running information of the application through the following steps:

[0063] The second electronic device receives a second message from the first electronic device; wherein the second message is sent by the first electronic device based on the first user interface of the application; the second electronic device displays the second user interface of the application based on the second message; wherein the second user interface includes at least part of the display content of the first user interface.

[0064] In one possible design, the second message is used to indicate the first user interface or the second user interface; the second user interface is the first target area selected in the first user interface; or the second user interface is obtained by scaling the first user interface; or the second user interface is obtained by combining at least one first image unit in the first user interface.

[0065] In one possible design, the second message is used to indicate at least one second image unit in the first user interface; the second electronic device may also combine the at least one second image unit into the second user interface.

[0066] In one possible design, after the second electronic device detects the fifth operation of the second user in the second user interface, it may also send a third message to the first electronic device; wherein the third message is used to indicate the fifth operation.

[0067] In one possible design, the third message includes the first operation position or the second operation position; wherein the first operation position is the position of the fifth operation in the second user interface; and the second operation position is the position where the fifth operation is mapped to the first user interface.

[0068] In one possible design, the first display area of ​​the first electronic device and the second display area of ​​the second electronic device are different in size and / or shape, the first display area is the area in the display screen of the first electronic device used to display the user interface, and the second display area is the area in the display screen of the second electronic device used to display the user interface.

[0069] In one possible design, the second electronic device may display the second user interface based on the second message and the first interface layout strategy.

[0070] In one possible design, when the area used to display the user interface in the display screen of the second electronic device is adjusted to a third display area, the second electronic device can also display the third user interface of the application according to the second message and the second interface layout strategy; wherein the third user interface at least includes part of the display content of the first user interface; and the third display area is different in size and / or shape from the first display area and the second display area.

[0071] In one possible design, the first user interface is generated on a virtual screen of the first electronic device.

[0072] In one possible design, after detecting the second operation, the second electronic device may also send a fifth message to the first electronic device; wherein the fifth message is used to instruct the first electronic device to run the application.

[0073] In a possible design, the second operation is any one of the following operations performed by the second user on the control: single-click, double-click, long press, and drag.

[0074] In one possible design, when the second user performs the second operation on the control on the second electronic device, the second electronic device does not run the application.

[0075] In one possible design, performance of the first electronic device is better than performance of the second electronic device.

[0076] In one possible design, the first electronic device is a smart phone, and the second electronic device is a smart wearable device or a smart home device.

[0077] In a third aspect, an embodiment of the present application provides a distributed control method for an application, which can be applied to a communication system consisting of a first electronic device and a second electronic device, wherein the first electronic device has an application installed. The method comprises the following steps:

[0078] The second electronic device displays the control of the application in response to a first operation performed by a first user on the first electronic device; and the first electronic device runs the application in response to a second operation performed by a second user on the control on the second electronic device.

[0079] In a possible design, the first operation may be, but is not limited to, any of the following:

[0080] Mode 1: The first operation is that the first user performs any one of the following operations on the icon of the application on the first electronic device: single click, double click, long press, and drag;

[0081] Mode 2: The first operation is that the first user drags the icon of the application to a target area on the first electronic device, wherein the target area is a set area in a display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device;

[0082] Mode 3: the first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device;

[0083] Mode 4: the first operation is that the first user selects a distributed control mode in a shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting a third operation of the first user, and the third request is used to trigger display of the shortcut menu of the application;

[0084] Method 5: The first operation is that the first user selects to agree to the request in the distributed control request notification displayed on the first electronic device; wherein the distributed control request notification is sent by the second electronic device to the first electronic device after detecting the fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

[0085] In one possible design, after the first electronic device detects the first operation, it can also send a first message to the second electronic device; the first message is used to instruct the second electronic device to create the control; the second electronic device receives the first message from the second electronic device; the second electronic device generates the control based on the first message and displays the control on the display screen of the second electronic device.

[0086] In one possible design, the first message includes information about the application and an icon of the control.

[0087] In one possible design, the icon of the control is the same as the icon of the application on the first electronic device.

[0088] In one possible design, the second electronic device may also display the running information of the application; and / or, the first electronic device may also display the user interface of the application.

[0089] In one possible design, the operation information includes: operation results, operation status information, or user interface.

[0090] In one possible design, when the operating information includes a user interface, the first electronic device may also send a second message to the second electronic device based on the first user interface of the application; the second electronic device receives the second message from the first electronic device; the second electronic device displays the second user interface of the application based on the second message; wherein the second user interface includes at least part of the display content of the first user interface.

[0091] In one possible design, the second message is used to indicate the first user interface or the second user interface; the second user interface is the first target area selected in the first user interface; or the second user interface is obtained by scaling the first user interface; or the second user interface is obtained by combining at least one first image unit in the first user interface.

[0092] In one possible design, the second message is used to indicate at least one second image unit in the first user interface; the second electronic device may also combine the at least one second image unit into the second user interface.

[0093] In one possible design, after the second electronic device detects the fifth operation of the second user in the second user interface, it can also send a third message to the first electronic device; wherein the third message is used to indicate the fifth operation; and the first electronic device executes the operation instructions corresponding to the fifth operation on the first user interface based on the third message.

[0094] In one possible design, the third message includes the first operation position or the second operation position; wherein the first operation position is the position of the fifth operation in the second user interface; and the second operation position is the position where the fifth operation is mapped to the first user interface.

[0095] In one possible design, the first display area of ​​the first electronic device and the second display area of ​​the second electronic device are different in size and / or shape, the first display area is the area in the display screen of the first electronic device used to display the user interface, and the second display area is the area in the display screen of the second electronic device used to display the user interface.

[0096] In one possible design, the first electronic device sends the second message to the second electronic device based on the first user interface and the first interface layout strategy; and / or the second electronic device displays the second user interface based on the second message and the first interface layout strategy.

[0097] In one possible design, when the area used to display the user interface in the display screen of the second electronic device is adjusted to a third display area, the second electronic device displays the third user interface of the application according to the second message and the second interface layout strategy; or the first electronic device sends a fourth message to the second electronic device according to the first user interface and the second interface layout strategy, so that the second electronic device displays the third user interface of the application according to the fourth message; wherein the third user interface includes at least part of the display content of the first user interface; and the third display area is different in size and / or shape from the first display area and the second display area.

[0098] In one possible design, the first electronic device can also generate the first user interface on a virtual screen.

[0099] In one possible design, after detecting the second operation, the second electronic device may also send a fifth message to the first electronic device; wherein the fifth message is used to instruct the first electronic device to run the application; the first electronic device receives the fifth message from the second electronic device, and runs the application according to the fifth message.

[0100] In a possible design, the second operation is any one of the following operations performed by the second user on the control: single-click, double-click, long press, and drag.

[0101] In one possible design, when the second user performs the second operation on the control on the second electronic device, the second electronic device does not run the application.

[0102] In one possible design, performance of the first electronic device is better than performance of the second electronic device.

[0103] In one possible design, the first electronic device is a smart phone, and the second electronic device is a smart wearable device or a smart home device.

[0104] In a fourth aspect, an embodiment of the present application provides a first electronic device, comprising a unit for executing each step of the method provided in the first aspect above. Optionally, the first electronic device comprises a communication unit and a processing unit; wherein the communication unit is used to receive and send data; and the processing unit is used to execute the method provided in the first aspect. Exemplarily, the first electronic device may also include a display screen for displaying a user interface.

[0105] In a fifth aspect, an embodiment of the present application provides a second electronic device, comprising a unit for executing each step of the method provided in the second aspect above. Optionally, the second electronic device comprises a display screen, a communication unit and a processing unit; wherein the display screen is used to display an interface; the communication unit is used to receive and send data; and the processing unit is used to execute the method provided in the second aspect.

[0106] In a sixth aspect, an embodiment of the present application provides a first electronic device, the first electronic device comprising at least one processor and a memory; the at least one processor is coupled to the memory, and the at least one processor is used to read a computer program stored in the memory to execute the method provided in the first aspect. Optionally, the first electronic device also includes a display screen.

[0107] In the seventh aspect, an embodiment of the present application provides a second electronic device, which includes a display screen, at least one processor and a memory; the at least one processor is coupled to the memory, and the at least one processor is used to read the computer program stored in the memory to execute the method provided in the second aspect.

[0108] The computer program code includes computer instructions.

[0109] In an eighth aspect, an embodiment of the present application provides a chip, comprising a processor and a memory, wherein the processor is coupled to the memory, and the processor is used to call a computer program stored in the memory during runtime to implement the method provided in the first or second aspect above.

[0110] In a ninth aspect, an embodiment of the present application provides a computer storage medium storing a computer program. When the computer program is run on an electronic device, the computer executes the method provided in the first or second aspect above.

[0111] In the tenth aspect, an embodiment of the present application provides a computer program product, which includes a computer program; when the computer program is run on a computer, the computer executes the method provided in the first aspect or the second aspect.

[0112] The technical effects that can be achieved in any of the second to tenth aspects mentioned above can refer to the description of the technical effects that can be achieved by any possible design in the first aspect mentioned above, and the repetitions will not be discussed here. BRIEF DESCRIPTION OF THE DRAWINGS

[0113] Figure 1A An architecture diagram of a communication system provided in an embodiment of the present application;

[0114] Figure 1BA schematic diagram of an example of a communication system provided in an embodiment of the present application;

[0115] Figure 2A A structural diagram of an electronic device provided in an embodiment of the present application;

[0116] Figure 2B A schematic diagram of a display mode of an electronic device provided in an embodiment of the present application;

[0117] Figure 3 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0118] Figure 4 A flow chart of a distributed control method for an application provided in an embodiment of the present application;

[0119] Figure 5 A flowchart of interaction between electronic devices provided in an embodiment of the present application;

[0120] Fig. 6A A schematic diagram of a user interface provided in an embodiment of the present application;

[0121] Figure 6B A schematic diagram of a user interface provided in an embodiment of the present application;

[0122] Figure 6C A schematic diagram of a user interface provided in an embodiment of the present application;

[0123] Fig.6D A schematic diagram of a user interface provided in an embodiment of the present application;

[0124] Fig. 6E A schematic diagram of a user interface provided in an embodiment of the present application;

[0125] Fig. 6F A schematic diagram of a user interface provided in an embodiment of the present application;

[0126] Figure 7 A flowchart of interaction between electronic devices provided in an embodiment of the present application;

[0127] Figure 8 A flow chart of a distributed control method for an application provided in an embodiment of the present application;

[0128] Fig. 9 A flowchart of a functional collaboration method provided in an embodiment of the present application;

[0129] Fig.10 A flowchart of a functional collaboration method provided in an embodiment of the present application;

[0130] Fig.11AA schematic diagram of an application scenario provided for an embodiment of the present application;

[0131] Fig. 11B An example diagram of functional collaboration provided in an embodiment of the present application;

[0132] Fig. 11C Another functional collaboration example diagram provided for an embodiment of the present application;

[0133] Fig.12 A flowchart of a functional collaboration method provided in an embodiment of the present application;

[0134] Fig.13 A flowchart of a functional collaboration method provided in an embodiment of the present application;

[0135] Fig.14A An example diagram of a user interface processing process provided in an embodiment of the present application;

[0136] Fig. 14B An example diagram of functional collaboration provided in an embodiment of the present application;

[0137] Fig.15A An example diagram of a user interface processing process provided in an embodiment of the present application;

[0138] Fig. 15B An example diagram of functional collaboration provided in an embodiment of the present application;

[0139] Fig.16 A structural diagram of an electronic device provided in an embodiment of the present application;

[0140] Fig.17 A structural diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0141] The present application provides a distributed control method of an application and an electronic device, which are used to implement distributed control of applications, improve the flexibility of the management method of applications in electronic devices, and thus improve user experience. The method and the electronic device are based on the same technical concept. Since the principles of the method and the electronic device to solve problems are similar, the implementation of the electronic device and the method can refer to each other, and the repeated parts will not be repeated.

[0142] Some terms in this application are explained below to facilitate understanding by those skilled in the art.

[0143] 1) Electronic equipment refers to equipment or devices with data connectivity, data calculation and processing functions. Generally, electronic equipment has a display screen.

[0144] For example, the electronic device in the present application may be a personal computer (PC), a laptop, a computer, a netbook, a tablet computer, a car computer, a smart phone, a smart wearable device (such as a smart watch, a smart bracelet, smart glasses, etc.), etc. Of course, the electronic device may also be various portable devices, car terminal devices, personal digital assistants (PDA), smart home devices (such as smart TVs, etc.), and other smart devices. The present application does not limit the specific form of the electronic device.

[0145] The electronic device can realize its functions through the operating system installed and provide services to the user. For example, the electronic device can be equipped with, but not limited to, Or other operating systems.

[0146] In some scenarios, electronic devices can be divided into the following two categories according to their performance:

[0147] Category I electronic devices: have better performance than Category II electronic devices and have more abundant software and hardware resources. Based on these abundant software and hardware resources, they can provide users with more and better services.

[0148] Optionally, the performance of the first category electronic device is better than that of the second category electronic device, which may include but is not limited to: the storage performance, processor performance or other component performance of the first category electronic device is better than that of the second category electronic device, or the overall performance of the first category electronic device is better than that of the second category electronic device.

[0149] For example, such electronic devices may have at least one of the following features: higher processing speed and computing power of the processor, a larger screen, higher battery capacity, and larger memory storage space.

[0150] Category II electronic devices: their performance is inferior to that of Category I electronic devices, and their software and hardware resources are not as rich as those of Category I electronic devices. Due to the constraints of various software and hardware resources, the services they provide to users are also limited.

[0151] Based on the above description, the first type of electronic device can also be called a capability-rich device, a smart-rich device or a rich device. This application will hereinafter refer to the first type of electronic device as a rich device.

[0152] The second type of electronic device can also be called a light (thin) capability device, a light (thin) intelligent device or a light (thin) device. In the following of this application, the first type of electronic device is referred to as a light device.

[0153] It should be noted that the above classification definition for electronic devices is a relative classification of two electronic devices and does not belong to fixed attributes of electronic devices. For example, electronic device 1 may be a first-class electronic device relative to electronic device 2, and may be a second-class electronic device relative to electronic device 3.

[0154] Exemplarily, the rich device may be a PC, a laptop, a tablet computer, a smart phone, a car computer, etc. The light device may be a smart watch, a smart bracelet, smart glasses, a car terminal, etc.

[0155] 2) The virtual screen is proposed relative to the real screen (i.e., display screen) of the electronic device, and is a virtual component created by the electronic device in the memory. The virtual screen is not affected by the display screen size and display resolution of the electronic device. That is, the electronic device can create any size and any number of virtual screens in the memory, and then the electronic device can generate a user interface for each virtual screen. The electronic device can display part or all of the user interface on a virtual screen on the display screen according to display requirements or user instructions, and can also project the user interface in the virtual screen to other electronic devices for display through screen projection technology.

[0156] 3) Image units are the basic elements that constitute the user interface, also known as interface image units and user interface components. It should be noted that the same user interface can contain static image units, dynamic image units, or both.

[0157] Exemplarily, the image unit in the user interface may include, but is not limited to, images of the following content: background image (wallpaper), icon, text, number, notification bar, menu, virtual button, etc.

[0158] 4) Interface layout strategy, which is the layout rules of image units in the user interface. For example, the interface layout strategy not only includes at least one image unit included in the user interface, but also includes at least one of the following items for each image unit: size, position, color, angle, or transparency, etc.

[0159] It should be noted that, in order to ensure standardization and consistency, the interface layout strategy of the user interface of each application program that needs to be displayed by the electronic device is generally fixed, and is generally set by the manufacturer of the electronic device or the developer of the application program.

[0160] 5) Graphic code is a graphic generated by processing some feature data according to a certain specific rule. The graphic code carries the feature data. The specific rule is fixed. Based on the rule, the electronic device can convert the feature data into a graphic code, or perform image recognition on the graphic code to restore the feature data.

[0161] Exemplarily, current graphic codes include: QR code, bar code, etc.

[0162] 6) Applications are used to be installed in electronic devices and can provide services to users after running. Applications can also be called application software or applications (APP).

[0163] The application program may be developed by the manufacturer of the electronic device, or by the supplier of the operating system of the electronic device, or by a third-party application manufacturer, and this application does not limit this.

[0164] For example, the application programs may include: calling application, camera application, text messaging application, chat application, video application, music application, electronic map application, social application, etc.

[0165] 7) Controls are control components installed in electronic devices and encapsulated with data and / or programs for starting certain functions or applications of electronic devices. Optionally, in the user interface, controls can also be presented as virtual buttons or icons.

[0166] In an embodiment of the present application, a control installed in one electronic device has an association relationship (or binding relationship) with an application installed in another electronic device. For example, the control may encapsulate a control instruction for controlling and managing the application installed in the other electronic device, or the control may encapsulate a program for generating the control instruction. The present application does not limit this. Optionally, the icon of the control may be the same as the icon of the application associated with the control.

[0167] 8) Screen projection technology is used to achieve screen collaboration between multiple electronic devices. Screen collaboration is a mode of interaction between multiple electronic devices. Common screen collaborations include multi-screen interactions between smartphones, tablets, laptops, projectors, etc.

[0168] With this screen projection technology, a screen projection channel can be established between electronic device A and electronic device B. Then, electronic device A can project user interfaces, audio files, video files, pictures and other contents to electronic device B through the screen projection channel, so that electronic device B can play or display the contents projected by electronic device A.

[0169] Exemplarily, currently provided screen projection technologies may include: ScreenCast, Miracast, airplay, hiplay, digital living network alliance (DLNA), etc.

[0170] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0171] In the embodiments of the present application, descriptions such as "when...", "in the case of...", "if" and "if" all mean that the electronic device will make corresponding processing under certain objective circumstances. It does not limit the time, nor does it require the electronic device to make a judgment when implementing it, nor does it mean that there are other limitations.

[0172] It should be noted that in this application, "used for indication" can include being used for direct indication and being used for indirect indication. When describing that a certain information is used to indicate A, it can include that the information directly indicates A or indirectly indicates A, but it does not mean that the information must carry A. Taking the first information used to indicate the first content as an example, the first information can include the first content, and can also include a part of the first content or an identifier or index of the first content, and can also include an algorithm for determining the first content, a calculation parameter, etc. This application does not limit the method of "indication".

[0173] In the present application, "including / comprising A" may be equivalent to "including / comprising A information". A information is used to indicate A.

[0174] In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0175] The solution provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0176] The distributed control scheme of the application provided in the embodiment of the present application can be applied to a communication system in which two electronic devices establish a communication connection. The following is an example of a communication system including a first electronic device and a second electronic device. Figure 1A shown.

[0177] Optionally, the communication connection between the first electronic device and the second electronic device may be a wireless communication connection or a wired communication connection, which is not limited in the present application. Figure 1A The wireless communication connection is taken as an example for exemplary description.

[0178] In one embodiment, the first electronic device can act as a master device and actively initiate a connection establishment process through short-range wireless communication technology to establish a wireless communication connection with the second electronic device, complete the transmission of relevant data when implementing the distributed control method of the application provided in the embodiment of the present application, and realize the control and management of the second electronic device. Exemplarily, the connection establishment process may include: device search, pairing, connection establishment and other processes. In addition, the first electronic device as a master device can also be responsible for providing a clock synchronization signal.

[0179] Optionally, the short-range wireless communication technology may include but is not limited to: radio frequency identification (RFID) technology, Bluetooth technology, wireless-fidelity (WI-FI) technology, ZigBee technology, ultra-wideband (UWB) technology, near field communication (NFC) technology, as well as communication technologies evolved based on the above communication technologies, and communication technologies that have the same or similar functions as the above communication technologies and can replace each other.

[0180] For example, Figure 1B As shown, the smart phone can establish a Bluetooth connection with the smart watch through Bluetooth technology, and realize control and management of the smart watch and business communication through the Bluetooth connection.

[0181] In another embodiment, the first electronic device and the second electronic device can be connected to the same wireless local area network (WLAN) through short-range wireless communication technology. In this way, the first electronic device and the second electronic device can establish a wireless communication connection through the wireless local area network to complete the transmission of relevant data when implementing the distributed control method of the application provided in the embodiment of the present application.

[0182] For example, the communication system may also include a WI-FI access point. Two electronic devices may first access the WI-FI access point according to the WI-FI technology, and then the WI-FI access point may connect the two electronic devices to the wireless local area network.

[0183] For another example, two electronic devices can be connected to the same Bluetooth beacon via Bluetooth technology, so that the two can establish a wireless communication connection via Bluetooth technology.

[0184] Optionally, in this communication system, after the first electronic device establishes a wireless communication connection with the second electronic device, the two can establish a traditional screen projection channel based on the wireless communication connection, so that the first electronic device can send screen projection data to the second electronic device to realize the traditional screen collaboration function.

[0185] It should also be noted that the present application does not limit the connection method between the first electronic device and the second electronic device. For example, the first electronic device and the second electronic device may also establish a physical communication connection through a cable.

[0186] In such Figure 1A In the communication system shown, each electronic device can provide users with corresponding functions by installing various applications. However, the current management and control methods of electronic devices for applications are relatively simple and less flexible. For example, electronic devices can only control and manage applications installed locally. For another example, an electronic device can display the user interface of another electronic device locally through traditional screen projection technology, and control and manage the application installed in another electronic device by operating the user interface of another electronic device displayed locally.

[0187] In addition, the above-mentioned management methods of managing applications through screen projection technology all require that the electronic device has certain software and hardware support, that is, the electronic device needs to be able to locally display the user interface of another electronic device through screen projection technology. Obviously, this method is not suitable for some electronic devices with constrained software and hardware resources, such as some light devices.

[0188] In addition, in Figure 1A In the communication system shown, in the scenario where the first electronic device is a rich device and the second electronic device is a light device, the first electronic device can provide users with a variety of rich functions due to its rich software and hardware resource support. However, since the second electronic device is constrained by various software and hardware resources, the functions provided by the second electronic device are also limited.

[0189] Continue with Figure 1B The communication system composed of a smart watch and a smart phone is used as an example. A smart phone can be installed with various applications, but a smart watch may not be able to install some applications due to the performance of the processor, such as weather software, chat software, search engine software, and microblogs.

[0190] In addition, even if smart watches can install applications, the services provided by smart watch applications are greatly reduced compared to the applications of the same name installed on smartphones. The application does not support sending red envelopes, real-time voice / video calls, or opening mini-programs, etc. For another example, the navigation function of the map application installed in the smart watch cannot display the electronic map, but only displays an arrow to indicate the direction of travel.

[0191] In order to expand the functions of light devices, the following solutions are currently provided: 1. Forcibly install a mobile phone operating system compatible with the smartphone in the smart watch so that applications compatible with the smartphone can be installed in the smart watch; 2. Based on the programming framework of feature ability (FA), important information or operations of the smartphone are pre-placed on the card through the card flow architecture, and the card is displayed on the smart watch, and the background application logic of the card is executed on the smartphone.

[0192] However, due to the huge differences between mobile phone operating systems and watch operating systems in terms of power management, background task scheduling, etc., solution one will result in higher power consumption, larger memory usage, shorter standby time, and poor user experience for smart watches. Solution two also requires developers to design cards based on the display of smart watches. Therefore, the display of smart watches will also impose greater restrictions and constraints on the content displayed on the cards. Therefore, even with solution two, smart watches still cannot realize some functions.

[0193] In summary, how to achieve distributed control of applications and improve the flexibility of the management method of applications in electronic devices is a problem that technicians in this field need to consider. In addition, how to expand the function of one electronic device to another electronic device without affecting the performance of the electronic device is also a problem that technicians in this field need to consider.

[0194] Based on this, an embodiment of the present application provides a distributed control method and electronic device for an application. In this method, a first electronic device is installed with an application, and a second electronic device displays a control of the application in response to a first operation of a first user on the first electronic device; in this way, the first electronic device can run the application in response to a second operation of the control on the second electronic device by a second user. Through this scheme, the second electronic device can establish a control of the application installed by the first electronic device, and by operating the control, it can achieve distributed control of the application on the first electronic device, ultimately improving the flexibility of control management of the application in the first electronic device and improving the user experience. This scheme has no requirements for the software and hardware resources and performance of the second electronic device that can achieve distributed control of the application in the first electronic device, that is, this scheme can be applied to various scenarios and various electronic devices, and has a wide range of applications.

[0195] In addition, after the first electronic device responds to the second user's second operation on the control on the second electronic device and runs the application, the second electronic device can further display the running information of the application to provide the user with the functions of the application. That is, the second user can run the application in the first electronic device through the second operation on the control in the second electronic device, and the second electronic device can display the running information of the application running in the first electronic device. Therefore, with the assistance and cooperation of the first electronic device, the second electronic device can display the running information of the application of the first electronic device, that is, realize the function of the application in the first electronic device. Based on this solution, the function of the first electronic device can also be extended to the second electronic device to realize the functional coordination of the two electronic devices. In summary, the solution provided by the present application can realize the functional coordination and functional expansion of electronic devices without considering the software and hardware resource constraints of electronic devices, and avoid causing large power consumption and memory overhead to electronic devices.

[0196] The present application embodiment provides an electronic device, which can form a communication system with other electronic devices to implement the distributed control method of the application provided by the present application embodiment. Figure 2A , the structure of the electronic device provided in the embodiments of the present application is introduced.

[0197] like Figure 2AAs shown, the electronic device 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a SIM card interface 295, etc.

[0198] Understandably, Figure 2A The electronic device 200 shown is only an example and does not constitute a limitation on the electronic device. The electronic device may have more Figure 2A More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Figure 2A The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0199] The processor 210 may include one or more processing units, for example: the processor 210 may include a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 200. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0200] A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. By providing the memory, the number of times the processor 210 accesses data to the internal memory 221 may be reduced, the waiting time of the processor 210 may be reduced, and thus the efficiency of the system may be improved.

[0201] The distributed control method of the application provided in the embodiment of the present application can be controlled by the processor 210 or called by other components to complete, such as calling the software program of the embodiment of the present application stored in the internal memory 221 to control the wireless communication module 260 to communicate data with other electronic devices, and control the display screen to display the user interface. The processor 210 may include different devices. For example, when the CPU and GPU are integrated, the processor 210 can cooperate with the CPU and GPU to execute the method provided in the embodiment of the present application. For example, part of the algorithm in the method is executed by the CPU, and another part of the algorithm for displaying the user interface is executed by the GPU to obtain faster processing efficiency.

[0202] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 294, where N is a positive integer greater than 1. The display screen 294 can be used to display information input by a user or information provided to a user and various graphical user interfaces (GUIs). For example, the display screen 294 can display windows, photos, videos, web pages, or files, etc. In addition, it can be understood that in some embodiments, the status bar may also include a Bluetooth icon, a Wi-Fi icon, an external device icon, etc. In some embodiments, when the processor 210 detects a touch operation of a user's finger (or a stylus, etc.) on an application icon, in response to the touch operation, the user interface corresponding to the application icon is opened and displayed on the display screen 294. In some embodiments, when the processor 210 detects a click operation of an external input device (such as a mouse, keyboard, etc.) of the electronic device 200 on an application icon, in response to the click operation, a corresponding control operation is performed on the application.

[0203] In the embodiment of the present application, the display screen 294 can be an integrated flexible display screen, or a spliced ​​display screen consisting of two rigid screens and a flexible screen located between the two rigid screens. When the processor 210 runs the distributed control method for the application provided in the embodiment of the present application, the processor 210 can control the display screen 294 to display the running information of the application.

[0204] In some embodiments, part or all of the display area of ​​the display screen 294 can be used to display a user interface. For example, the electronic device 200 can have multiple display modes, and each display mode has a corresponding display area. The shape or size of the display area corresponding to different display modes is different. It should be noted that the display areas corresponding to different display modes may overlap.

[0205] Take a smart watch as an example. Figure 2B As shown, the display screen of the smart watch is square. In the first display mode, the smart watch displays the user interface through the first display area in the display screen; in the second display mode, the smart watch displays the user interface through the second display area in the display screen. The first display area is square, consistent with the size and shape of the display screen; the second display area is circular. The first display area and the second display area are different in size and / or shape.

[0206] Of course, the electronic device 200 may also have only one display mode. In this case, the electronic device 200 may display the user interface through the entire area of ​​the display screen 294 , or may display the user interface through a partial area of ​​the display screen 294 .

[0207] The camera 293 is used to capture still images or videos. Optionally, the electronic device 200 may include 1 to N cameras 293. For example, the camera 293 may include a front camera or a rear camera, or a camera 293 may be used as both a front camera and a rear camera. Typically, the camera 293 may include a photosensitive element such as a lens group and an image sensor. Among them, the lens group includes a plurality of lenses (convex lenses or concave lenses) for collecting light signals reflected by the object to be photographed, and transmitting the collected light signals to the image sensor. The image sensor generates an original image of the object to be photographed based on the light signal.

[0208] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. The program storage area may store an operating system, a program code of at least one application, etc. The operating system may include, but is not limited to, The data storage area can store data created during the use of the electronic device 200 .

[0209] The internal memory 221 may also store one or more computer programs for executing the method provided in the embodiments of the present application. The one or more computer programs are stored in the internal memory 221 and configured to be executed by one or more processors 210, and the one or more computer programs include instructions, which may be used to execute the various steps in the following embodiments.

[0210] In addition, the internal memory 221 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0211] The sensor module 280 may include a fingerprint sensor, a touch sensor, a pressure sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like.

[0212] Touch sensor, also known as "touch panel". The touch sensor can be set on the display screen 294. The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor can also be set on the surface of the electronic device 200, which is different from the position of the display screen 294.

[0213] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.

[0214] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the 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.

[0215] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the same device as at least some of the modules of the processor 210.

[0216] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 250 or other functional modules.

[0217] The wireless communication module 260 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 electronic device 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 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 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In the embodiment of the present application, the electronic device 200 can establish a wireless communication connection with other electronic devices through the wireless communication module 260 to exchange data, or the electronic device 200 can access the access point through the wireless communication module 260, so that instructions and data can be sent to the network device or other electronic devices through the access point.

[0218] In addition, the electronic device 200 can implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone interface 270D, and the application processor. For example, music playback, recording, etc. The electronic device 200 can receive the key 290 input and generate key signal input related to the user settings and function control of the electronic device 200. The electronic device 200 can generate a vibration prompt using the motor 291. The indicator 292 in the electronic device 200 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 295 in the electronic device 200 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 295, or pulled out from the SIM card interface 295, to achieve contact and separation with the electronic device 200.

[0219] It should be understood that in practical applications, Figure 2A The electronic device 200 shown is only an example, and the electronic device 200 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0220] It should also be noted that in the embodiments provided in this application, the structures of the first electronic device and the second electronic device can refer to Figure 2A In addition, the structures of the first electronic device and the second electronic device may be different. Figure 2A More or fewer components, or different component configurations are shown, and this application will not repeat them. In addition, even if the two have the same components, the same components in the two electronic devices may also have performance differences.

[0221] The software system of the electronic device 200 provided in the embodiment of the present application can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device. Figure 3 shown.

[0222] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. Figure 3As shown, the software architecture can be divided into four layers, from top to bottom, namely, application layer, application framework layer (framework, FWK), Android runtime (Android runtime) and system library, and kernel layer. In addition, the electronic device may also include a hardware layer.

[0223] The application layer is the top layer of the operating system, including native applications of the operating system, as well as third-party applications such as camera, gallery, calendar, Bluetooth, music, video, information, etc.

[0224] In an embodiment of the present application, the application layer may also include a distributed control service application of the application, which is used to implement the distributed control method of the application provided in the embodiment of the present application. For example, the service application supports an electronic device to create a control of a locally installed application on another electronic device, and the other electronic device controls the local application in a distributed manner. For another example, the service application supports an electronic device to establish a control of an application of another electronic device locally, so that the application on the other electronic device can be distributedly controlled.

[0225] 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 may include some predefined functions. The application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.

[0226] The window manager is used to provide window management services. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The window manager can provide multiple management functions to control the transparency, position, size and other parameters of the window or interface on the display screen.

[0227] Content providers are used to store and retrieve data and make these data accessible to applications. The data may include files (such as documents, videos, images, audio), text and other information.

[0228] The view system includes visual controls, such as controls for displaying text, images, documents, etc. The view system can be used to build applications. The interface in the display window can be composed of one or more controls. For example, a display interface showing a file icon can include controls for displaying text and controls for displaying images.

[0229] The phone manager is used to provide the communication function of the terminal device. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.

[0230] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0231] The core library of the Android system consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the Android system. The application layer and the application framework layer run in the virtual machine. Taking Java as an example, 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 object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0232] The system library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications. 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. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0233] The kernel layer provides the core system services of the operating system, such as security, memory management, process management, network protocol stack and driver model, which are all implemented based on the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer has many drivers related to electronic devices, the main drivers are: display driver; keyboard driver as input device; Flash driver based on memory technology device; camera driver; audio driver; Bluetooth driver; WiFi driver, etc.

[0234] In some embodiments, the kernel layer may also include an input driver service for obtaining and reporting operation information performed on an interface or window displayed on the display screen from an external input device (such as a mouse, keyboard, touchpad, etc.), a sensor (such as a touch screen, touch sensor, etc.) or other electronic device.

[0235] The hardware layer can include various sensors, display screens, cameras, Bluetooth modules, WiFi modules, etc.

[0236] In order to improve the flexibility of the management method of applications in electronic devices, the present application embodiment provides a distributed control method for applications. The method is described below with reference to the accompanying drawings. The method can be applied to Figure 1A The communication system shown includes a first electronic device and a second electronic device, for example Figure 1B The application scenario shown is as follows: A first electronic device is in communication with a second electronic device.

[0237] Before introducing the solution provided by the embodiment of the present application, some definitions involved in the embodiment of the present application are explained first:

[0238] The first electronic device has an application installed therein.

[0239] The second electronic device is an electronic device for distributedly controlling the application installed on the first electronic device.

[0240] A first user is a user who uses and operates the first electronic device.

[0241] The second user is a user who uses and operates the second electronic device.

[0242] It should be noted that the first user and the second user may be the same user or different users, and this application does not limit this.

[0243] The first display area of ​​the first electronic device is an area on the display screen of the first electronic device used to display a user interface.

[0244] The second display area of ​​the second electronic device is an area in the display screen of the second electronic device used to display the user interface.

[0245] The third display area of ​​the second electronic device is an area on the display screen of the second electronic device used to display a user interface.

[0246] It should be noted that, when the second electronic device has multiple display modes, each display mode has a corresponding display area. The shapes or sizes of the display areas corresponding to different display modes are different. The user can select the second display area or the third display area on the second electronic device to display the user interface. When the second electronic device has only one display mode, the second display area is the default area of ​​the second electronic device for displaying the user interface.

[0247] In addition, the first display area, the second display area, and the third display area have different sizes and / or shapes.

[0248] The first user interface is a user interface of an application program that is generated when the first electronic device runs a locally installed application program.

[0249] The second user interface and the third user interface are user interfaces of the application program displayed on the display screen of the second electronic device when the first electronic device runs the application program installed locally. The second user interface is the user interface displayed by the second electronic device in the second display area, and the third user interface is the user interface displayed by the second electronic device in the third display area.

[0250] It should be noted that the display contents in the first user interface and the second user interface may be the same or different. Optionally, the second user interface includes at least part of the display contents in the first user interface. Similarly, the display contents in the first user interface and the third user interface may be the same or different.

[0251] The first operation is an operation performed by a first user on a first electronic device, and is used to start distributed control of an application on the first electronic device (ie, to create a control of the application installed on the first electronic device on a second electronic device).

[0252] The second operation is an operation of the second user on the control on the second electronic device, which is used to run the application on the first electronic device. Optionally, similar to the traditional operation of running a local application on the electronic device, the second operation can be any of the following operations performed by the second user on the control: single click, double click, long press, drag, etc.

[0253] The third operation is an operation performed by the first user on the first electronic device, and is used to cause the first electronic device to display a shortcut menu of the application.

[0254] The fourth operation is an operation performed by the second user on the second electronic device, and is used to request distributed control of the application on the first electronic device.

[0255] The fifth operation is an operation performed by the second user on the second user interface displayed by the second electronic device.

[0256] In short, the present application does not limit the specific operation methods of the above operations, which can be exemplified when introducing the embodiments of the present application later.

[0257] The first message is sent by the first electronic device to the second electronic device after the first operation is detected, and is used to instruct the second electronic device to create a control of an application.

[0258] The second message is generated by the first electronic device according to the first user interface of the application and sent to the second electronic device, and is used for the second electronic device to display the second user interface.

[0259] The third message is sent by the second electronic device to the first electronic device after the second electronic device detects the fifth operation of the second user in the second user interface, and is used to indicate the fifth operation.

[0260] Fourth message: in a scenario where the second message is generated by the first electronic device according to the first user interface and the first interface layout strategy, the fourth message is generated by the first electronic device according to the first user interface and the second interface layout strategy and sent to the second electronic device.

[0261] The fifth message is sent by the second electronic device to the first electronic device after detecting the second operation of the second user on the control, and is used to instruct the first electronic device to run the application.

[0262] See below Figure 4 The flowchart shown in the figure illustrates the method provided by the embodiment of the present application. It should be noted that the prerequisite for implementing this solution is that the first electronic device has an application installed.

[0263] S401: The second electronic device displays a control of an application in response to a first operation performed by a first user on the first electronic device.

[0264] Optionally, the icon of the control is the same as the icon of the application on the first electronic device.

[0265] S402: The first electronic device runs an application in response to a second operation of a second user on a control on the second electronic device.

[0266] It should also be noted that, in the embodiment of the present application, the second electronic device may not have the application installed. Therefore, when the second user performs the second operation on the control on the second electronic device, the second electronic device does not run the application.

[0267] Optionally, during step S402, the first electronic device may run the application in the following manners, but is not limited to:

[0268] Method 1: Before S402, the application is running in the background of the first electronic device and is in a dormant mode. When the first electronic device executes S402, it can wake up the application and run the application in the foreground.

[0269] Mode 2: Before S402, the application has been running in the foreground of the first electronic device. When the first electronic device executes S402, the application can continue to run in the foreground.

[0270] Mode 3: Before S402, the application is not started, and the first electronic device does not run the application in the background or foreground. When the first electronic device executes S402, it can open the application and run the application in the foreground.

[0271] Method 4: The first electronic device runs the application in the background.

[0272] Method 5: The first electronic device can run the application program through a third-party application.

[0273] It should be noted that, optionally, when the first electronic device is in a black screen state, or other applications are running in the foreground, the first electronic device may not display the user interface of the application when executing S402 to run the application; or when the first electronic device is in a black screen state, the first electronic device may light up the screen and display the user interface of the application when executing S402 to run the application; or when the first electronic device is running other applications, the first electronic device may place the other application in the background when executing S402 and switch from displaying the user interface of the other application to displaying the user interface of the application. The specific implementation process is not limited in this application.

[0274] It should be noted that during the running of the application, the process list of the first electronic device includes the process of the application. The first user can perform an operation of viewing the running program on the first electronic device (for example, long pressing a function key, or the first user swipes upward from the bottom of the first electronic device with a finger, or the first user swipes from the side of the first electronic device to the opposite side with a finger, etc.), and can also see the user interface of the application.

[0275] S403: Optionally, when the first electronic device runs the application through S402, a user interface of the application may be displayed.

[0276] The specific process of the first electronic device locally displaying the user interface of the running application can refer to the process of displaying the user interface of the application in the prior art, which will not be described in detail here.

[0277] S404: Optionally, when the first electronic device runs the application through S402, the second electronic device may display running information of the application.

[0278] In one embodiment, the second electronic device may display the running information of the application while the first electronic device is running the application, or after the first electronic device has finished running the application. Optionally, the first electronic device may send running data to the second electronic device while the application is running, or after the application has finished running, so that the second electronic device may display the running information of the application based on the running data. The running data may indicate the running information.

[0279] Optionally, the running information of the application may include, but is not limited to: running results, running status information, or user interface. The embodiment of the present application does not impose any limitation on the running information of the application.

[0280] For example, when the second electronic device runs an artificial intelligence (AI) application of the first electronic device through distributed control of the AI ​​application's controls, the first electronic device can send the running result of the AI ​​application (i.e., the AI ​​calculation result) to the second electronic device.

[0281] For another example, the application status information may indicate whether the application is in a running state, whether it is running normally, etc.

[0282] For another example, if the second electronic device enables the application running on the first electronic device to have a user interface through distributed control, the first electronic device can interact with the second electronic device so that the second electronic device can display the user interface of the application on its display screen.

[0283] It should be noted that the execution of S403 by the first electronic device and the execution of S404 by the second electronic device do not conflict with each other, that is, according to the actual scenario, steps S403 and S404 can be executed one by one or at the same time, and this application does not limit this.

[0284] It should also be noted that the first electronic device may have multiple applications installed, so based on the above process, the second electronic device may create controls for multiple applications. Furthermore, the second user may execute the second operation on the control of any application in the second electronic device to enable the first electronic device to run the application.

[0285] In addition, the first electronic device can count the distributed control frequency of each application, and then upload the distributed control frequency of each application to the server for subsequent processing and analysis. Of course, the second electronic device can also count the distributed control frequency of each application it implements, and then send it to the first electronic device or upload it to the server so that the first electronic device or the server can perform subsequent processing.

[0286] It should be noted that the second user can perform the second operation on the control on the second electronic device to run the application corresponding to the control on the first electronic device. In addition, the second user can also perform other operations on the control on the second electronic device to achieve other distributed control of the application corresponding to the control on the first electronic device. For example, the second user can perform the sixth operation on the control to update or delete the application corresponding to the control on the first electronic device.

[0287] In summary, the embodiment of the present application provides a distributed control method for an application, in which a first electronic device is installed with an application, and a second electronic device displays a control of the application in response to a first operation of a first user on the first electronic device; in this way, the first electronic device can run the application in response to a second operation of the control on the second electronic device by a second user. Through this scheme, the second electronic device can establish a control of the application installed by the first electronic device, and by operating the control, it can achieve distributed control of the application on the first electronic device, ultimately improving the flexibility of control management of the application in the first electronic device and improving the user experience. This scheme has no requirements for the software and hardware resources and performance of the second electronic device that can achieve distributed control of the application in the first electronic device, that is, this scheme does not need to consider the software and hardware resource constraints of the electronic device, therefore, this scheme can be applied to various scenarios and various electronic devices, and has a wide range of applications.

[0288] In addition, after the first electronic device responds to the second user's second operation on the control on the second electronic device and runs the application, the second electronic device can further display the running information of the application to provide the user with the functions of the application. That is, the second user can run the application in the first electronic device through the second operation on the control in the second electronic device, and the second electronic device can display the running information of the application running in the first electronic device. Therefore, with the assistance and cooperation of the first electronic device, the second electronic device can display the running information of the application of the first electronic device, that is, realize the function of the application in the first electronic device. Based on this solution, the function of the first electronic device can also be extended to the second electronic device to realize the functional coordination of the two electronic devices. In summary, the solution provided by the present application can realize the functional coordination and functional expansion of electronic devices without considering the software and hardware resource constraints of electronic devices, and avoid causing large power consumption and memory overhead to electronic devices.

[0289] In the embodiment of the present application, the performance of the first electronic device is better than the performance of the second electronic device. Optionally, the first electronic device is a rich device and the second electronic device is a light device. For example, Figure 1B As shown, the first electronic device may be a smart phone, and the second electronic device may be a smart wearable device. For another example, in a smart home scenario, the first electronic device may be a smart phone, and the second electronic device may be a smart home device. Through this solution, a second electronic device with poor performance can control the application of a first electronic device with better performance in a distributed manner. Furthermore, a second electronic device with poor performance can also implement the functions of a first electronic device with better performance, and functional collaboration or functional expansion between electronic devices with different performance can be achieved without optimizing the software and hardware resources of the second electronic device.

[0290] exist Figure 4 In one implementation of the embodiment shown, the first electronic device can Figure 5 The interactive process shown realizes the distributed control of the application. In this embodiment, the above S401 can be realized through steps S501-S502, and a control of the application installed on the first electronic device is created on the second electronic device; the above S402 can be realized through S503-S504, that is, the second electronic device can realize the distributed control of the application on the first electronic device by operating the control. The following is an explanation in conjunction with the specific steps.

[0291] S501: After the first electronic device detects a first operation of the first user on the first electronic device, the first electronic device sends a first message to the second electronic device. The first message is used to instruct the second electronic device to create the control. The second electronic device receives the first message from the first electronic device.

[0292] Optionally, the first operation is used to implement distributed control of an application on the first electronic device. The first operation may be implemented, but is not limited to, in any of the following implementations:

[0293] Mode 1: The first operation is that the first user performs any of the following operations on the icon of the application on the first electronic device: single click, double click, long press, and drag.

[0294] Mode 2: The first operation is that the first user drags the icon of the application to the target area on the first electronic device, wherein the target area is a set area in the display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device.

[0295] The above target area is used to trigger the distributed control of the application, that is, all applications located in the target area can be distributedly controlled. Optionally, the target area can be associated with the second electronic device, that is, the second electronic device is used to distribute the control of the application of the first electronic device. That is, when the first electronic device detects that an application is dragged to the target area, a control of the application is created on the second electronic device.

[0296] Take the scenario where the first electronic device is a smartphone and the second electronic device is a smart watch as an example. The target area can be any set area (any corner, any side, etc.) of the display screen of the smartphone. Optionally, the first user can activate the target area by turning on the distributed control function of the smartphone. For example Fig. 6A As shown, the target area The three applications of map, and phone are opened by the first user by dragging to the target area.

[0297] For another example, the target area is a window of a distributed control folder, and the distributed control folder is used to trigger the distributed control of the application. Figure 6B As shown, the target area is the window of the "My Watch" folder.

[0298] Fig. 6A and Figure 6B The location of the application icon with a dotted border in the middle is the location of the application before it is dragged to the target area. After dragging the three applications of Maps, Phone and Phone to the target area, the smart watch can display the icons of the three applications.

[0299] Mode 3: The first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device.

[0300] Continuing with the example of the first electronic device being a smartphone, the user can open the smartphone's settings application (e.g., the phone's own settings application, the phone's permission management application, or other third-party applications, etc.), and set the control mode of any application to distributed control in the user interface of the settings application. The control mode setting user interface is as follows Figure 6C Shown or Fig.6D shown.

[0301] In one implementation, after the user opens the "Settings" application, the user can open the following Figure 6C shown Settings interface; users can then directly turn on or off the distributed control mode. When the user turns on the distributed control mode, the smartphone can interact with the smartwatch to create a controls.

[0302] In another implementation, when the user opens the Settings application and turns on After setting up the interface, users can further open Fig.6D shown Distributed control settings interface; in this interface, users can turn on or off Distributed control mode; when the user opens When using distributed control, users can also choose to implement multiple electronic devices connected to their smartphones. Distributed control electronic equipment (such as Fig.6D smartwatch in your device).

[0303] Method 4: The first operation is that the first user selects the distributed control mode in the shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting the third operation of the first user, and the third request is used to trigger the display of the shortcut menu of the application.

[0304] Continuing to take the first electronic device as a smartphone as an example, The shortcut menu can be Fig. 6E As shown. For example, the user can Long press or tap the icon several times to open shortcut menu.

[0305] Method 5: The first operation is that the first user selects to agree to the request in the distributed control request notification displayed on the first electronic device; wherein the distributed control request notification is sent by the second electronic device to the first electronic device after detecting the fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

[0306] Let's continue to take the scenario where the first electronic device is a smartphone and the second electronic device is a smart watch as an example. Fig. 6F As shown, the user selects distributed control by executing the smart watch After the operation, the smart watch sends a distributed control request notification to the smart phone; then the smart phone can directly display the distributed control request notification, or display the distributed control request after the user chooses to display the distributed control request notification; when the user chooses to agree in the distributed control request, the smart phone can create a distributed control request in the smart watch. controls.

[0307] S502: The second electronic device generates a control according to the first message, and displays the control on a display screen of the second electronic device.

[0308] Optionally, in the above process of S501-S502, the first message may include information of the application and / or an icon of the control, wherein the icon of the control may be the same as the icon of the application on the first electronic device, or the icon of the control may be generated by the first electronic device based on the icon of the application.

[0309] In addition, the first message also includes information about the application, so that the second electronic device can create the control based on the information about the application so that there is an association between the control and the application on the first electronic device. Exemplarily, the information about the application may include at least one of the following: an identification of the application, control instructions of the application (including running instructions, and may also include update instructions, deletion instructions, etc.), or a control method for the first electronic device to authorize the application (allowing distributed control to run the application, and may also include running distributed control to delete or update the application, etc.).

[0310] S503: After detecting the second user's second operation on the control on the second electronic device, the second electronic device sends a fifth message to the first electronic device, wherein the fifth message is used to instruct the first electronic device to run an application. The first electronic device receives the fifth message from the second electronic device.

[0311] Exemplarily, the second operation may be any of the following operations performed by the second user on the control: single-click, double-click, multiple consecutive clicks, long press, drag, etc., which is not limited in the present application.

[0312] Optionally, the fifth message may include information about the application, for example, the fifth message may include an identifier of the application, or include a running instruction of the application.

[0313] S504: The first electronic device runs the application according to the fifth message.

[0314] Optionally, the first electronic device may run the application according to the information of the application included in the fifth message. The manner in which the first electronic device runs the application may refer to the description in step S402 above, which will not be repeated here.

[0315] Based on the above steps, after the first electronic device detects the first operation, it can create a control of the application on the second electronic device through communication interaction; after the second electronic device detects the second operation on the control, it can also enable the first electronic device to run the application through communication interaction. Therefore, through the above interaction process, distributed control of the application on the first electronic device can be achieved.

[0316] exist Figure 4 In one implementation of the embodiment shown, the first electronic device and the second electronic device can also use the following interactive process to enable the second electronic device to display the user interface of the application program to achieve functional collaboration. Figure 7 shown.

[0317] S701: The second electronic device enables the first electronic device to run an application program through distributed control. The specific process can refer to the above description of S401-S402, or refer to the above description of S501-S504, which will not be repeated here.

[0318] S702: The first electronic device sends a second message to the second electronic device according to the first user interface of the application program. The second electronic device receives the second message from the first electronic device.

[0319] Optionally, the first electronic device may generate the first user interface on a virtual screen. In this case, the first electronic device may not display the first user interface in the first display area of ​​the display screen; or may display part or all of the first user interface according to the size or shape of the first display area, which is not limited in this application. The first display area is the area in the display screen of the first electronic device used to display the user interface.

[0320] Optionally, the first electronic device may also generate and display the first user interface on the display screen according to the size of the display screen and the display resolution settings.

[0321] S703: The second electronic device displays a second user interface of the application according to the second message, wherein the second user interface at least includes part of the display content of the first user interface.

[0322] The second electronic device may display the second user interface in a second display area of ​​the display screen, wherein the second display area is an area of ​​the display screen of the second electronic device used for displaying the user interface.

[0323] In an embodiment, the first display area of ​​the first electronic device and the second display area of ​​the second electronic device may have different sizes and / or shapes.

[0324] Based on this, there are differences in the configurations of the first electronic device and the second electronic device for displaying the user interface. Therefore, in the process S702-S703, the first electronic device and / or the second electronic device needs to process the first user interface of the application generated by the first electronic device.

[0325] Optionally, in order to ensure standardization and consistency, during the S702-S703 process, the first electronic device and / or the second electronic device may process the first user interface according to a unified interface layout strategy (hereinafter referred to as the first interface layout strategy). Based on this, when the first electronic device executes S702, it may send a second message to the second electronic device according to the first user interface and the first interface layout strategy; and when the second electronic device executes S703, it may also display the second user interface according to the second message and the first interface layout strategy.

[0326] Among them, the first interface layout strategy is set for the size or shape of the second display area of ​​the application and the second electronic device. Optionally, the first interface layout strategy can be set for the manufacturer of the second electronic device and the developer of the application. Therefore, the second electronic device can send display configuration information of the second display area to the first electronic device after establishing a communication connection with the first electronic device, or after detecting the second operation of the second user on the control in S701, so that the first electronic device can determine the first interface layout strategy. The display configuration information is used to indicate information such as the size or shape of the second display area. Optionally, the first electronic device and the second electronic device can determine to adopt the first interface layout strategy in combination with aspects such as the channel transmission status of the communication connection between the devices and the processor performance of the second electronic device.

[0327] The following describes the differences in processing methods between the first electronic device and / or the second electronic device through the following implementation methods.

[0328] Implementation method 1: The second message is used to indicate the first user interface.

[0329] In this implementation mode 1, the second electronic device performs the following processing on the first user interface in any of the following modes A1-A2 to obtain a second user interface.

[0330] Mode A1: The second electronic device selects a first target area in the first user interface as the second user interface. The first target area is the same size or shape as the second display area of ​​the second electronic device. Optionally, this mode A1 can be performed when the size of the first user interface is larger than the size of the second display area.

[0331] In this mode A1, the second electronic device can select a first target area in the first user interface according to the first interface layout strategy. Optionally, the first target area includes: a focus area in the first user interface, content in the first user interface that has not changed relative to the initial interface, or content in the first user interface that has changed relative to the initial interface.

[0332] The initial interface may be an application startup interface or a user interface before the application user interface changes (and the first user interface is a user interface after the application user interface changes). The focus area in the first user interface is an area that the user needs to focus on and pay special attention to, and the specific location is generally set according to the display content of the first user interface. For example, in the chat interface of a social application, the focus area is the area with the latest chat information in the chat interface; and in the map display interface of an electronic map, the focus area is the area containing the user's real-time location.

[0333] It should be noted that when the first target area and the second display area have the same shape but different sizes, the second electronic device may also scale the first target area to obtain a second user interface having the same size as the second display area.

[0334] Mode A2: The second electronic device scales the first user interface to obtain a second user interface. To ensure the display effect of the second user interface, mode A2 can be performed when the absolute value of the difference between the aspect ratio of the first user interface and the aspect ratio of the second display area is less than or equal to a set threshold.

[0335] The specific value of the threshold value can be set by the first interface layout strategy, and this application does not limit this. In order to ensure that the content displayed in the second user interface will not be deformed due to scaling, method A2 can be executed when the aspect ratio of the first user interface is the same as the aspect ratio of the second display area, that is, the threshold value is set to 0.

[0336] In mode A2, the first electronic device may generate a first user interface whose aspect ratio satisfies the above conditions through the following steps S1-1 to S1-3:

[0337] S1-1: The second electronic device may also send display configuration information of the second display area to the first electronic device.

[0338] Optionally, the display configuration information is used to indicate information such as the size or shape of the second display area.

[0339] S1-2: After receiving the display configuration information, the first electronic device may determine the aspect ratio of the second display area according to the display configuration information.

[0340] It should be noted that, when the first electronic device determines the first interface layout strategy based on the display configuration information of the second display area sent by the second electronic device, the two processes can reuse the same step (i.e., S1-1). That is, the second electronic device can only send the display configuration information of the second display area once. The first electronic device can determine the first interface layout strategy based on the display configuration information, and can also determine the aspect ratio of the second display area based on the display configuration information to generate the first user interface.

[0341] S1-3: The first electronic device may generate a first user interface according to the aspect ratio of the second display area.

[0342] Optionally, since the virtual screen is not affected by the size and display resolution of the physical display screen of the electronic device, in S1-3, the first electronic device may generate the first user interface on the virtual screen according to the aspect ratio of the second display area.

[0343] Implementation method 2: The second message is used to indicate the second user interface.

[0344] In this implementation mode 2, the first electronic device performs the following processing on the first user interface in any of the following modes B1-B3 to obtain the second user interface.

[0345] Mode B1: The first electronic device selects the first target area in the first user interface as the second user interface. The specific implementation process can refer to the description of Mode A1 in Implementation Mode 1, which will not be repeated here.

[0346] It should be noted that when the first target area and the second display area have the same shape but different sizes, the first electronic device can also scale the first target area to obtain a second user interface of the same size as the second display area; or the second electronic device can scale the second user interface when displaying the second user interface so that the second user interface is the same size as the second display area.

[0347] Mode B2: The first electronic device performs scaling processing on the first user interface to obtain the second user interface. The specific implementation process can refer to the description of Mode A2 in Implementation Mode 1, which will not be repeated here.

[0348] Mode B3: The first electronic device may split and reassemble the first user interface through the following steps S2-1 to S2-3 to obtain the second user interface.

[0349] S2-1: The first electronic device divides the first user interface into multiple image units.

[0350] Optionally, the first electronic device may split the first user interface into multiple image units according to a set image segmentation algorithm.

[0351] For the description of the image unit, please refer to the explanation of terminology in point 3) above, which will not be repeated here.

[0352] S2-2: The first electronic device selects at least one first image unit from the multiple image units.

[0353] Optionally, the first electronic device may select at least one first image unit that needs to be displayed in the second electronic device from the multiple image units according to the first interface layout strategy.

[0354] Optionally, the first electronic device may calculate the weight of each of the multiple image units according to a set component grading algorithm, and select at least one first image unit having a weight higher than a set threshold from the multiple image units.

[0355] S2-3: The first electronic device combines the at least one first image unit into a second user interface.

[0356] Optionally, the first electronic device may perform step S2-3 by following the steps S2-3-1 to S2-3-2:

[0357] S2-3-1: The first electronic device performs image processing on the at least one first image unit. The image processing on any third image unit includes at least one of the following operations: adjusting the size, adjusting the position, adjusting the color, adjusting the angle, or adjusting the transparency. Optionally, in this step, the first electronic device may perform image processing on the at least one first image unit according to the first interface layout strategy.

[0358] For example, the initial coordinates of a certain image unit are (x, y). According to the first interface layout strategy, the position of the image unit needs to be adjusted, and the position offset value is (Tx, Ty). After the first electronic device adjusts the position of the image unit, the target coordinates of the image unit (x ′ ,y ′ ) conforms to the following formula:

[0359] x ′ =x+Tx,y ′ =y+Ty; or

[0360] For another example, the size of a certain image unit is (a, b). According to the first interface layout strategy, the size of the image unit needs to be adjusted, and the target display ratio is (S1, S2). After the first electronic device adjusts the size of the image unit, the target size of the image unit is (a ′ , b ′ ) conforms to the following formula:

[0361] a ′ =a*S1,b ′ = b*S1; or

[0362] S2-3-2: The first electronic device combines the at least one first image unit after image processing into the second user interface.

[0363] In implementation mode 1 or implementation mode 2, the second message may include image data of the first user interface or the second user interface. Optionally, the first electronic device may send the second message to the second electronic device through a traditional screen projection technology.

[0364] Implementation method 3: The second message is used to indicate at least one second image unit in the first user interface.

[0365] In implementation manner 3, the first electronic device may determine the at least one second image unit through the following steps:

[0366] S3-1-1: The first electronic device divides the first user interface into multiple image units.

[0367] S3-1-2: The first electronic device selects the at least one second image unit from the multiple image units. Optionally, the at least one second image unit may be all or part of the multiple image units.

[0368] Optionally, in some implementation scenarios, the first electronic device may directly send the multiple image units split in step S3-1-1, and the second electronic device may decide whether to discard some image units according to the first interface layout strategy. In other implementation scenarios, the first electronic device may decide whether to discard some image units according to the first interface layout strategy, and select the at least one second image unit that needs to be displayed in the second electronic device from the multiple image units.

[0369] In addition, in the present implementation mode 3, the second electronic device may combine the at least one second image unit indicated by the second message into a second user interface, and the specific process may include the following steps S3-2-1 to S3-2-3.

[0370] S3-2-1: The second electronic device selects at least one third image unit from the at least one second image unit.

[0371] Optionally, the second electronic device may select, according to the first interface layout strategy, at least one third image unit that needs to be displayed in the second electronic device from the at least one second image unit.

[0372] S3-2-2: The second electronic device performs image processing on the at least one third image unit. The image processing on any third image unit includes at least one of the following operations: adjusting the size, adjusting the position, adjusting the color, modulating the angle, or adjusting the transparency. The specific description of this step can refer to the description of step 2-3-1 in method B3 in the above-mentioned implementation method 2, which will not be repeated here.

[0373] S3-2-3: The second electronic device combines at least one third image unit after image processing into a second user interface.

[0374] In implementation manner 3, when executing S702, the first electronic device may use different transmission modes for transmission according to different states (dynamic or static) of the image unit.

[0375] Mode C1: When at least one second image unit includes a dynamic image unit, the first electronic device can perform video encoding on the dynamic image unit to generate video encoding data of the dynamic image unit, and send the video encoding data to the second electronic device. After receiving the video encoding data from the first electronic device, the second electronic device performs video decoding on the video encoding data to obtain the dynamic image unit.

[0376] When the first electronic device adopts the method C1, the second message includes the video encoding data of the dynamic image unit.

[0377] Through mode C1, the first electronic device can transmit the dynamic image unit through video encoding technology to ensure that the second electronic device can receive the image unit with dynamic effects, thereby avoiding the dynamic effects of the dynamic image unit being affected by transmission factors.

[0378] Mode C2: When at least one second image unit includes a static image unit, the first electronic device may transmit data information of the static image unit, and the second electronic device may restore the static image unit according to the data information.

[0379] When the first electronic device adopts mode C2, the second message includes data information of the static image unit.

[0380] Optionally, the data information of the static image unit may be, but is not limited to, image data, serial number or feature data after graphic recognition of the static image unit.

[0381] In mode C2, the first electronic device can directly transmit the static image unit by means of image transmission, that is, send the image data of the static image unit. In addition, the first electronic device can also convert the static image unit into other forms (numbering or feature data after image recognition, etc.) to reduce the data overhead caused by transmitting the image data of these static image units, improve data transmission efficiency, and also achieve the purpose of reducing the power consumption of the first electronic device and the second electronic device.

[0382] For example, when the user interface of the first electronic device changes, the image units of the first user interface that have not changed relative to the initial interface can be determined, and then the numbers of these image units can be sent to the second electronic device. In this way, the second electronic device can directly obtain these unchanged image units from the multiple image units of the initial interface previously sent by the first electronic device based on these numbers.

[0383] For another example, a plurality of static image units may be pre-stored in the first electronic device and the second electronic device, wherein each static image unit has a unique number. The plurality of static image units in the second electronic device may be sent from the first electronic device to the second electronic device. For example, the first electronic device sends these static image units to the second electronic device after running an application or when the two establish a connection. After the first electronic device selects the at least one second image unit from the plurality of image units obtained after the first user interface is split, it may determine the number of the static image unit in the at least one second image unit based on the plurality of pre-stored static image units, and send the number of the static image unit to the second electronic device. In this way, the second electronic device may determine the corresponding static image data based on the number of the received static image unit.

[0384] For another example, when at least one image unit selected by the first electronic device includes a barcode or a QR code or other graphic code (a static image unit), the first electronic device can perform image recognition on the graphic code to obtain corresponding feature data. After the first electronic device sends the feature data to the second electronic device, the second electronic device can convert the feature data into a graphic code according to the set graphic code generation rule.

[0385] It can be seen from the above description that in implementation method 3, the second message may contain multiple different types of data. Then the first electronic device can use different transmission technologies to transmit different types of data. For example, the first electronic device can transmit the video encoding data of the dynamic image unit through the screen projection technology. For another example, the first electronic device can transmit the image data of the static image unit through the image transmission technology. For another example, the first electronic device can transmit the number of the static image unit or the feature data after image recognition through the communication connection with the second electronic device; or transmit the entire content of the second message through the communication connection.

[0386] Through any of the above implementations 1 to 3, the second electronic device can display the second user interface of the application on the display screen through communication interaction with the first electronic device, so as to present it to the second user. In this way, the second user can experience the service of the application provided by the second electronic device.

[0387] In addition, in order to further improve the user experience, the second user can also control the application by operating the second electronic device. That is, the second electronic device can transmit the control operation of the second user in the second electronic device back to the first electronic device to trigger the first electronic device to execute the operation instruction corresponding to the operation. For the specific process, please refer to Figure 7 Steps S704-S705 in .

[0388] S704: After the second electronic device detects the fifth operation of the second user in the second display area, the second electronic device sends a third message to the first electronic device, wherein the third message is used to indicate the fifth operation. The first electronic device receives the message from the second electronic device.

[0389] S705: The first electronic device executes an operation instruction corresponding to the fifth operation on the first user interface according to the third message.

[0390] In some scenarios, in order to ensure that the first electronic device can accurately execute the operation instruction, the first electronic device can obtain the location after the fifth operation is mapped to the first user interface, so as to execute the operation instruction at this location. Based on this, in the embodiments of the present application, it can be implemented through the following two solutions:

[0391] Solution 1: The third message may include the first operation position, wherein the first operation position is the position of the fifth operation in the second user interface.

[0392] After detecting the fifth operation of the second user in the second display area, the second electronic device may determine the first operation position; and then send the first operation position to the first electronic device by carrying it in the third message.

[0393] In solution 1, the first electronic device may perform S705 by following the steps below:

[0394] The first electronic device determines a second operation position of the fifth operation based on the first operation position. The second operation position is a position where the fifth operation is mapped to the first user interface. Then, the first electronic device executes an operation instruction corresponding to the fifth operation on the first user interface based on the second operation position.

[0395] Optionally, the first electronic device may determine the second operation position according to the first operation position and the first interface layout strategy.

[0396] Solution 2: The third message may include the second operation position. In this way, the first electronic device may execute the operation instruction corresponding to the fifth operation on the first user interface according to the second operation position in the user operation information.

[0397] In solution 2, the second electronic device may determine the second operating position through the following steps:

[0398] After the second electronic device detects the fifth operation of the user in the second display area, it determines a first operation position of the fifth operation, and then determines a second operation position of the second operation according to the first operation position.

[0399] Optionally, the second electronic device may determine the second operation position according to the first operation position and the first interface layout strategy.

[0400] During the implementation process, in addition to the first operation position or the second operation position, the third message may also include at least one of the following: the operation type of the second operation, the operation instruction corresponding to the second operation, the operation time of the second operation, etc.

[0401] Through S704-S705, the second electronic device can feed back the user's control operation event to the first electronic device so that the first electronic device executes the corresponding operation instruction. It should be noted that if the first electronic device updates the user interface of the application after executing the operation instruction, the first electronic device can continue to interact with the second electronic device through the above process so that the second electronic device can also synchronously display the updated user interface.

[0402] It should also be noted that, from the above description of S702-S703, it can be seen that in some scenarios, the first electronic device and / or the second electronic device needs to execute the corresponding process according to the unified first interface layout strategy so that the second user interface can be displayed in the second display area of ​​the second electronic device. Since the first interface layout strategy is set for the second display area of ​​the second electronic device. In the scenario where the second electronic device has multiple display modes, when the second electronic device switches the display mode and the area for displaying the user interface in the display screen of the second electronic device is adjusted from the second display area to the third display area, the second electronic device can also adaptively adjust the display content. The specific process can be referred to. Figure 7 Step S706 in .

[0403] S706: When the area for displaying the user interface in the display screen of the second electronic device is adjusted to a third display area, the second electronic device displays a third user interface.

[0404] In one implementation, the second electronic device may display the third user interface according to the second message and the second interface layout strategy.

[0405] In another implementation, the second electronic device may notify the first electronic device of the display configuration information of the third display area, so that the first electronic device may determine the second interface layout strategy for the third display area of ​​the second electronic device. Then the first electronic device may send a fourth message to the second electronic device according to the first user interface and the second interface layout strategy, so that the second electronic device may display the third user interface according to the fourth message. For the specific process, please refer to the description in steps S702-S703, which will not be repeated here.

[0406] In the above two implementations, the second interface layout strategy is set for the size or shape of the third display area of ​​the application and the second electronic device. The third user interface at least includes part of the display content of the first user interface. The third user interface may be different from the second user interface, and the size and / or shape of the third display area is different from the first display area and the second display area.

[0407] It should be noted that in some scenarios, the second electronic device can display the third user interface through any of the above-mentioned implementation methods; while in other scenarios, the third user interface can only be displayed by the second electronic device through the combination of the above-mentioned two implementation methods. For example, in the scenario where the first electronic device sends the second message through implementation method 1, the second electronic device can display the third user interface through the above-mentioned first implementation method. For another example, in the scenario where the first electronic device sends the second message through implementation method 2, the first electronic device and the second electronic device can display the third user interface through the above-mentioned second implementation method. For another example, in the scenario where the first electronic device sends the second message through implementation method 3, in some cases, the first electronic device and the second electronic device need to combine the above-mentioned two implementation methods to realize the display of the third user interface in the second electronic device.

[0408] Combined with the above Figure 4 and Figure 5 The embodiment shown is based on Figure 1B The communication system shown in the present application also provides an embodiment, see Figure 8 As shown. Among them, application A is installed in the smart phone, and application A may not be installed in the smart watch. The following is a description of the distributed control method of the application provided in the embodiment of the present application with reference to the accompanying drawings.

[0409] like Figure 8 As shown in , according to the functional logic division, the smart phone can include but is not limited to the following modules: application A, distributed control module, command parsing module, WiFi / Bluetooth module. The smart watch can include but is not limited to the following modules: WiFi / Bluetooth module, distributed control module, event parsing module, watch display screen. The function of each module is described below in conjunction with the specific process of the distributed control method of the application provided in the embodiment of the present application.

[0410] S801: The user starts a distributed control operation on application A. For the description of this operation, reference may be made to the description of the first operation in S501 above, which will not be repeated here.

[0411] S802: The distributed control module in the smart phone generates creation control information based on the operation in S801, and sends the creation control information to the smart watch through the WiFi / Bluetooth module in the smart phone. After receiving the creation control information, the WiFi / Bluetooth module in the smart watch sends it to the distributed control module of the smart watch.

[0412] Optionally, the creation control information may include information of application A, so that there is an association relationship between the control created by the smartwatch and application A. For information about the application A, reference may be made to the description of the application information included in the first message in S502, which will not be repeated here. The creation control information may also include an icon of the control of application A.

[0413] S803: The distributed control module in the smart watch creates and displays the control of application A on the watch display screen according to the received control creation information.

[0414] S804: The user performs a start operation on the control of application A displayed on the watch display screen. For example, the start operation may be any of the following operations performed by the user on the control: single click, double click, long press, and drag.

[0415] S805: After the watch display screen detects the start-up operation, it generates first event information. The first event information is used to indicate the start-up operation. The watch display screen sends the first event information to the event analysis module.

[0416] S806: The event parsing module parses the received first event information and generates user command information. The user command information is used to instruct the smartphone to run application A. The event parsing module sends the user command information to the distributed control module of the smart watch, and the distributed control module then sends the user command information to the smartphone through the WiFi / Bluetooth module. After receiving the user command information, the WiFi / Bluetooth module of the smartphone forwards it to the command parsing module, and the command parsing module sends the user command information to the distributed control module.

[0417] The user command information is used to instruct the smart phone to run application A.

[0418] Since application A is not installed in the smart watch, the smart watch will not run application A after the launch operation is detected on the watch display.

[0419] S807: The distributed control module in the smart phone runs application A according to the received user command information.

[0420] Optionally, the distributed control module may be, but is not limited to, Figure 4In the illustrated embodiment, the application A is run in any of the ways 1 to 5 recorded in S402. The specific process can refer to the description in S402 and will not be repeated here.

[0421] Optionally, after the smartphone runs application A, the user interface of application A can be displayed on the smartphone display screen; or the smartphone and the smart watch continue to interact, and the user interface of application A is displayed on the smart watch.

[0422] Combined with the method provided in the above embodiment, based on Figure 1B The present application also provides several embodiments of the functional coordination method, see Fig. 9 , Fig.10 , Fig.12 and Fig.13 As shown. Among them, the smartphone has application A installed, and the smart watch has the control of application A installed, but application A is not installed. The process of installing or creating the control of application A on the smart watch can refer to Figure 5 or Figure 8 The corresponding description in the embodiment shown. The area in the display screen of the smartphone for displaying the user interface is the first display area, and the area in the display screen of the smart watch for displaying the user interface is the second display area. After the two establish a communication connection, the smart watch can notify the smartphone of the display configuration information of the second display area (such as the size, shape, etc. of the second display area).

[0423] The process of each embodiment is described below in conjunction with the corresponding drawings.

[0424] Embodiment 1: Fig. 9 As shown, according to the logical division, the smart phone can include but is not limited to the following modules: application A, virtual screen, interface processing module, coordinate conversion module, screen projection source end, command parsing module. The smart watch can include but is not limited to the following modules: watch display screen, event parsing module, and screen projection destination end. The function of each module is described below in conjunction with the specific process of the functional collaboration method provided in the first embodiment.

[0425] S901: The watch display screen displays a control of application A. The user may perform a startup operation on the control of application A. For example, the startup operation may be any of the following operations performed by the user on the control: single click, double click, long press, and drag.

[0426] S902: After the watch display screen detects the startup operation, it generates first event information. The first event information is used to indicate the startup operation. The watch display screen sends the first event information to the event analysis module.

[0427] S903: The event parsing module parses the received first event information to generate user command information, wherein the user command information is used to instruct the smart phone to run application A. The event parsing module sends the user command information to the command parsing module of the smart phone through the communication connection between the smart watch and the smart phone.

[0428] Since application A is not installed in the smart watch, the smart watch will not run application A after the launch operation is detected on the watch display.

[0429] S904: The command parsing module runs application A according to the received user command information.

[0430] The process of the smart watch running application A in the smart phone through distributed control in S901-S904 can be referred to Figure 8 The corresponding description in will not be repeated here.

[0431] S905: After application A is run, application A may generate a first user interface of application A on the virtual screen of the smart phone.

[0432] S906: The interface processing module obtains a first user interface from the virtual screen.

[0433] S907: The interface processing module performs image processing on the first user interface to generate a second user interface. The specific processing method of the interface processing module may include scaling or selecting local processing.

[0434] Optionally, the interface processing module may determine the processing method as scaling or selecting local processing according to the first interface layout strategy. Figure 7 The description of the first interface layout strategy in the illustrated embodiment will not be repeated here.

[0435] In one embodiment, the interface processing module performs local processing on the first user interface. In this embodiment, the interface processing module can select a first target area in the first user interface as the second user interface according to the first interface layout strategy. The first target area has the same size or shape as the second display area.

[0436] Optionally, the first target area includes: a focus area in the first user interface, content in the first user interface that has not changed relative to the initial interface, or content in the first user interface that has changed relative to the initial interface.

[0437] In another embodiment, the interface processing module performs scaling processing on the first user interface. In this embodiment, the aspect ratio of the first user interface is the same as the aspect ratio of the second display area. Optionally, in S905, application A can determine the aspect ratio of the second display area according to the display configuration information of the second display area; and generate the first user interface that meets the above conditions on the virtual screen according to the aspect ratio of the second display area.

[0438] S908: The interface processing module sends the second user interface to the screen projection source end.

[0439] S909: The screen projection source transmits the second user interface to the screen projection destination of the smart watch through traditional screen projection technology.

[0440] S910: The screen projection destination transmits the received second user interface to the watch display screen so that the second display area in the watch display screen can display the second user interface.

[0441] S911: The user may perform a control operation on the second user interface displayed in the second display area.

[0442] S912: After the watch display screen detects the control operation, it generates second event information. The second event information is used to indicate the control operation. The watch display screen sends the second event information to the event analysis module.

[0443] S913: The event parsing module parses the received second event information and generates user operation information. The user operation information is used to indicate the control operation. The event parsing module sends the user operation information to the command parsing module of the smart phone through the communication connection between the smart watch and the smart phone. The user operation information includes a first operation position. The first operation position is the position of the user's control operation in the second user interface.

[0444] Optionally, the user operation information may further include at least one of an operation type of the control operation, an operation instruction corresponding to the control operation, and an operation time of the control operation.

[0445] S914: The command parsing module sends the first operation position in the user operation information to the coordinate conversion module; the coordinate conversion module converts the first operation position into a second operation position according to the first interface layout strategy. The second operation position is a position where the control operation is mapped to the first user interface. The coordinate conversion module sends the second operation position to the command parsing module.

[0446] S915: The command parsing module updates the second operation position obtained from the coordinate conversion module to the user operation information, and then sends the updated user operation information to application A. Afterwards, application A may execute the operation instruction corresponding to the control operation on the first user interface according to the updated user operation information.

[0447] Embodiment 2: Fig.10 As shown, according to the logical division, the smart phone can include but is not limited to the following modules: application A, virtual screen, coordinate conversion module, screen projection source, command parsing module. The smart watch can include but is not limited to the following modules: watch display, event parsing module, interface processing module, and screen projection destination. The following is a description of the function of each module in conjunction with the specific process of the functional collaboration method provided in the second embodiment.

[0448] S1001-S1005 are the same as S901-S905 in Embodiment 1. The same steps can be referenced to each other and will not be described in detail here.

[0449] S1006: The screen projection source obtains the first user interface from the virtual screen.

[0450] S1007: The screen projection source transmits the first user interface to the screen projection destination of the smart watch through traditional screen projection technology.

[0451] S1008: The screen projection destination transmits the received first user interface to the interface processing module.

[0452] S1009: The interface processing module performs image processing on the received first user interface to generate a second user interface. The specific processing method of the interface processing module may include scaling or selecting local processing.

[0453] Similar to S907 in the first embodiment, in this step, the interface processing module may also determine the processing method according to the first interface layout strategy. For the specific process, reference may be made to the description in S907, and the specific process will not be repeated here.

[0454] S1010: The interface processing module transmits the second user interface to the watch display screen, so that the second display area in the watch display screen can display the second user interface.

[0455] S1011-S1015 are the same as S911-S915 in Embodiment 1. The same steps can be referenced to each other and will not be described in detail here.

[0456] Below Fig.11A Taking the application scenario shown in the figure as an example, the methods provided in the above-mentioned embodiments 1 and 2 are exemplarily described. Install various applications on a smartphone, such as Fig.11AAs shown in the main interface of the smartphone, the smartphone is equipped with clock, calendar, weather, information, Various applications such as maps and phone calls. Controls for apps like Maps and Phone, such as Fig.11A The user interface of the smartwatch shows Icons for apps like Maps and Phone.

[0457] Example 1:

[0458] When users use the smart watch After the app's controls are started, the smartphone runs The first user interface and the second application interface are generated on the virtual screen of the smart phone. The smart phone can use the method provided in the first embodiment to scale the first user interface to obtain the second user interface, and transmit the second user interface to the smart watch; or the smart phone can use the method provided in the second embodiment to transmit the first user interface to the smart watch, and the smart watch scales the first user interface to obtain the second user interface. The first user interface and the second application interface are as follows: Fig. 11B As shown in (a) in .

[0459] Finally, smartphones and smartwatches display status like Fig. 11B As shown in (b) of the figure. Smartphones can be displayed without The app's UI is black (e.g.), while the smartwatch displays The secondary user interface of the application.

[0460] Example 2:

[0461] When the user starts the map application control on the smart watch, the smartphone starts the navigation function after running the map application, and generates a first user interface on the virtual screen of the smartphone or displays the first user interface on the display screen. The smartphone can use the method provided in Example 1 to select a local area in the first user interface to obtain a second user interface, and transmit the second user interface to the smart watch; or the smartphone can use the method provided in Example 2 to transmit the first user interface to the smart watch, and the smart watch selects a local area in the first user interface to obtain the second user interface. The first user interface and the second user interface are as follows: Fig. 11C As shown in (a) in .

[0462] Finally, the display status of the smart watch is as follows Fig. 11C As shown in (b) in FIG. 1 , the smartphone may not display the user interface of the map application (eg, in a black screen state), while the smart watch displays the second user interface of the map application.

[0463] Embodiment 3: Fig.12As shown, according to the logical division, the smart phone can include but is not limited to the following modules: the following modules: application A, virtual screen, interface splitting module, coordinate conversion module, screen projection source, other transmission source, command parsing module. Smart watches can include but are not limited to the following modules: watch display, event parsing module, interface reorganization module, screen projection destination, and other transmission destinations. The following is a description of the functions of each module in conjunction with the specific process of the functional collaboration method provided in this embodiment three.

[0464] S1201-S1205 are the same as S901-S905 in Embodiment 1. The same steps can be referenced to each other and will not be described in detail here.

[0465] S1206: The interface splitting module obtains the first user interface from the virtual screen.

[0466] S1207: The interface splitting module splits the first user interface into multiple image units.

[0467] Optionally, the interface splitting module may transmit all of the multiple image units obtained after splitting the first user interface to the smart watch, or may select at least one image unit from the multiple image units according to the first interface layout strategy and transmit it to the smart watch.

[0468] This embodiment is described by taking the example that the interface splitting module transmits the multiple image units to the smart watch.

[0469] S1208: When the multiple image units include a dynamic image unit, the interface splitting module can send the dynamic image unit to the screen projection source end.

[0470] S1209: The screen projection source transmits the dynamic image unit to the screen projection destination of the smart watch through traditional screen projection technology.

[0471] S1210: The screen projection destination transmits the received dynamic image unit to the interface reorganization module.

[0472] S1211: When the multiple image units include a static image unit, the interface splitting module may send the static image unit to other transmission source ends.

[0473] S1212: The other transmission source end may transmit the static image unit to other transmission destination ends of the smart watch through other transmission technologies.

[0474] For example, the other transmission source end can transmit the image data of the static image unit through the image transmission technology. For another example, the other transmission source end can transmit the number of the static image unit or the feature data after image recognition through the communication connection with other transmission destination ends in the smart watch.

[0475] S1213: The other transmission destination end of the smart watch transmits the received static image unit to the interface reorganization module.

[0476] S1214: The interface reorganization module performs interface reorganization based on the received multiple image units (including static image units and / or dynamic image units) of the first user interface to obtain a second user interface.

[0477] Optionally, during the process of the interface reorganization module executing S1214, at least one image unit that needs to be displayed in the smart watch can be selected from the multiple image units according to the first interface layout strategy; then the selected at least one image unit is image processed according to the first interface layout strategy; and finally, the at least one image unit after image processing is combined into a second user interface. The specific process of the interface reorganization module executing S1214 can be referred to Figure 7 Steps S3-2-1 to S3-2-3 in implementation method 3 in the illustrated embodiment are not repeated here.

[0478] S1215: The interface reorganization module transmits the second user interface to the watch display screen, so that the second display area in the watch display screen can display the second user interface.

[0479] S1216-S1220 are the same as S911-S915 in Embodiment 1. The same steps can be referenced to each other and will not be described in detail here.

[0480] Embodiment 4: Fig.13 As shown, according to the logical division, the smart phone can include but is not limited to the following modules: the following modules: application A, virtual screen, interface splitting and reorganization module, coordinate conversion module, screen projection source end, command parsing module. The smart watch can include but is not limited to the following modules: watch display screen, event parsing module, screen projection destination end. The following is a description of the function of each module in conjunction with the specific process of the functional collaboration method provided in this embodiment 4.

[0481] S1301-S1305 are the same as S901-S905 in Embodiment 1. The same steps can be referenced to each other and will not be described in detail here.

[0482] S1306: The interface splitting and reorganizing module obtains the first user interface from the virtual screen.

[0483] S1307: The interface splitting and reorganizing module splits the first user interface into a plurality of image units, and then reorganizes the interface based on the plurality of image units to obtain a second user interface.

[0484] Optionally, the interface splitting and reorganizing module may select at least one image unit to be displayed in the smart watch from the multiple image units according to the first interface layout strategy; then perform image processing on the selected at least one image unit according to the first interface layout strategy; and finally combine the at least one image unit after image processing into a second user interface. The specific process of the interface reorganizing module executing S1307 can be referred to Figure 7 Steps S2-2 to S2-3 in implementation method 2 in the illustrated embodiment are not described in detail here.

[0485] S1308: The interface is split and reorganized to send the second user interface to the screen projection source.

[0486] S1309: The screen projection source transmits the second user interface to the screen projection destination of the smart watch through traditional screen projection technology.

[0487] S1310: The screen projection destination transmits the received second user interface to the watch display screen so that the second display area in the watch display screen can display the second user interface.

[0488] S1311-S1315 are the same as S911-S915 in Embodiment 1. The same steps can be referenced to each other and will not be described in detail here.

[0489] Continue with Fig.11A Taking the application scenario shown as an example, the methods provided in the above-mentioned Embodiment 3 and Embodiment 4 are exemplarily described.

[0490] Example 3:

[0491] When the user starts the phone application control on the smart watch, the smart phone runs the phone application. After the user operates the smart phone or smart watch, the phone application provides the user with a call service. At this time, the smart phone can generate a first user interface on the virtual screen. After that, the smart phone or smart watch can use the process shown in the third or fourth embodiment above to split the first user interface, select image units, process the image, and reorganize the interface, and combine at least one image unit after image processing into a second user interface. For the specific process, please refer to Fig.14A shown.

[0492] Finally, the display status of the smart watch is as follows Fig. 14B As shown, at this time, the smart watch displays the second user interface, while the smart phone may not display the first user interface. Fig. 14B Also shown is the display status of the smartphone in a normal state (the figure takes the smartphone displaying the first user interface as an example).

[0493] Example 4:

[0494] When users use the smart watch After the app's controls are started, the smartphone runs App, and users can use the smart watch or smartphone After the application is operated, the WeChat application provides the user with a user information code service. At this time, the smartphone can generate a first user interface on the virtual screen. After that, the smartphone or smartwatch can use the process shown in the above-mentioned embodiment three or four to split the first user interface, select image units, process the image, and reorganize the interface, and combine at least one image unit after image processing into a second user interface. For the specific process, please refer to Fig.15A shown.

[0495] Finally, the display status of the smart watch is as follows Fig. 15B As shown, at this time, the smart watch displays the second user interface, while the smart phone may not display the first user interface. Fig. 15B Also shown is the display status of the smartphone in a normal state (the figure takes the smartphone displaying the first user interface as an example).

[0496] It should be noted that in the above embodiments 1 to 4, the transmission of user interfaces or image units between different modules can be equivalent to the transmission of information indicating the above content. For the convenience of description, the above embodiments and drawings directly record it as the transmission of user interfaces or image units, but the above embodiments do not constitute any limitation on the form of transmission of user interfaces or image units between modules. Other embodiments are similar.

[0497] Through any of the above embodiments 1 to 4, the user can run application A in the smart phone by operating the control of application A on the smart watch, and the smart watch can also display the user interface of application A. Therefore, with the assistance of the smart phone, although the smart watch does not have application A installed, it can display the user interface of application A and provide the user with the functions of application A. In addition, in order to further improve the user experience, the user can also control the smart watch to control application A to execute corresponding operation instructions. Based on this embodiment 2, the functions provided by application A in the smart phone can be extended to the smart watch to achieve functional coordination between the smart phone and the smart watch. The solution provided in this embodiment can realize the functional coordination and functional expansion of electronic devices without considering the constraints of the smart watch on software and hardware resources, and avoid causing large power consumption and memory overhead to the smart watch.

[0498] It should also be noted that each step involved in the above embodiments can be performed by a corresponding device, or by a chip, processor, or chip system in the device, and the embodiments of the present application do not limit them. The above embodiments are only described by taking the execution by the corresponding device as an example. In addition, the specific implementation methods or examples in the above embodiments do not limit the solutions provided in the embodiments of the present application.

[0499] It should be noted that in the above embodiments, some steps can be selected for implementation, and the order of the steps in the diagram can be adjusted for implementation, and this application does not limit this. It should be understood that executing some steps in the diagram, adjusting the order of the steps, or combining them for specific implementation all fall within the scope of protection of this application.

[0500] It is understandable that, in order to implement the functions in the above embodiments, the various devices involved in the above embodiments include hardware structures and / or software modules corresponding to the execution of the various functions. It should be easily appreciated by those skilled in the art that, in combination with the units and method steps of the various examples described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0501] It can be understood that the above-mentioned network architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new services, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0502] It should be noted that the "steps" in the embodiments of the present application are only for illustration, and are a method of expression used to better understand the embodiments, and do not constitute a substantial limitation on the execution of the scheme of the present application. For example, the "steps" can also be understood as "features". In addition, the steps do not constitute any limitation on the execution order of the scheme of the present application. Any changes in the order of steps, step merging, or step splitting made on this basis that do not affect the implementation of the overall scheme, and the resulting new technical solutions are also within the scope of the disclosure of the present application.

[0503] Based on the same technical concept, the present application also provides an electronic device, which can implement the methods provided in the above embodiments. Fig.16 As shown, the electronic device 1600 includes a communication unit 1601 and a processing unit 1602. Optionally, the electronic device 1600 may further include a display screen 1603.

[0504] The display screen 1603 is used to display a user interface.

[0505] The communication unit 1601 is used to receive and send data. Optionally, the communication unit 1601 may include a transceiver.

[0506] The processing unit 1602 is used to execute the method provided in the above embodiment through the communication unit 1601 or the display screen 1603.

[0507] In one embodiment, the electronic device 1600 is used to implement Figure 4 , Figure 5 or Figure 7 The functions of the first electronic device in the embodiment shown. The first electronic device has an application installed, the first electronic device is in communication connection with the second electronic device, and the second electronic device displays a control of the application, and the control is displayed by the second electronic device in response to a first operation of the first user on the first electronic device. The processing unit 1602 is used to:

[0508] In response to a second operation of the control on the second electronic device by a second user, the application is run.

[0509] Optionally, the first operation is that the first user performs any one of the following operations on the icon of the application on the first electronic device: single-click, double-click, long-press, and drag; or

[0510] The first operation is that the first user drags the icon of the application to a target area on the first electronic device, wherein the target area is a set area in a display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device; or

[0511] The first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device; or

[0512] The first operation is that the first user selects a distributed control mode in a shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting a third operation of the first user, and the third request is used to trigger display of the shortcut menu of the application; or

[0513] The first operation is that the first user selects to agree to a request in a distributed control request notification displayed on the first electronic device; wherein the distributed control request is sent by the second electronic device to the first electronic device after detecting a fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

[0514] Optionally, the processing unit 1602 is further configured to:

[0515] After detecting the first operation, a first message is sent to the second electronic device through the communication unit 1601; the first message is used to instruct the second electronic device to create the control.

[0516] Optionally, the first message includes information about the application and an icon of the control.

[0517] Optionally, the icon of the control is the same as the icon of the application on the first electronic device.

[0518] Optionally, the processing unit 1602 is further configured to:

[0519] The user interface of the application is displayed on display screen 1603.

[0520] Optionally, the processing unit 1602 is further configured to:

[0521] According to the first user interface of the application, a second message is sent to the second electronic device through the communication unit 1601; wherein the second message is used for the second electronic device to display the running information of the application.

[0522] Optionally, the operation information includes: operation results, operation status information, or user interface.

[0523] Optionally, the second message is used to indicate the first user interface or the second user interface;

[0524] The second user interface is a first target area selected in the first user interface; or

[0525] The second user interface is obtained by scaling the first user interface; or

[0526] The second user interface is obtained by combining at least one first image unit in the first user interface.

[0527] Optionally, the second message is used to indicate at least one second image unit in the first user interface.

[0528] Optionally, the processing unit 1602 is further configured to:

[0529] Receiving a third message from the second electronic device through the communication unit 1601; wherein the third message is used to indicate a fifth operation of the second user in the second user interface;

[0530] According to the third message, an operation instruction corresponding to the fifth operation is executed on the first user interface.

[0531] Optionally, the third message includes the first operation position or the second operation position;

[0532] The first operation position is the position of the fifth operation in the second user interface; and the second operation position is the position where the fifth operation is mapped to the first user interface.

[0533] Optionally, the first display area of ​​the first electronic device and the second display area of ​​the second electronic device are different in size and / or shape, the first display area is an area in the display screen of the first electronic device used to display the user interface, and the second display area is an area in the display screen of the second electronic device used to display the user interface.

[0534] Optionally, the processing unit 1602 is specifically configured to: the first electronic device sends the second message to the second electronic device according to the first user interface and the first interface layout strategy.

[0535] Optionally, when the area for displaying the user interface in the display screen of the second electronic device is adjusted to the third display area, the processing unit 1602 is further configured to:

[0536] According to the first user interface and the second interface layout strategy, sending a fourth message to the second electronic device through the communication unit 1601, so that the second electronic device displays the third user interface of the application according to the fourth message;

[0537] The third user interface at least includes part of the display content of the first user interface; and the third display area is different in size and / or shape from the first display area and the second display area.

[0538] Optionally, the processing unit 1602 is further configured to:

[0539] The first user interface is generated on the virtual screen.

[0540] Optionally, the processing unit 1602 is specifically configured to:

[0541] A fifth message is received from the second electronic device through the communication unit 1601; and the application is run according to the fifth message; wherein the fifth message is sent by the second electronic device after detecting the second operation, and the fifth message is used to instruct the first electronic device to run the application.

[0542] Optionally, the second operation is any one of the following operations performed by the second user on the control: single-click, double-click, long press, and drag.

[0543] Optionally, the performance of the first electronic device is better than the performance of the second electronic device.

[0544] Optionally, the first electronic device is a smart phone, and the second electronic device is a smart wearable device or a smart home device.

[0545] In one embodiment, the electronic device 1600 is used to implement Figure 4 , Figure 5 or Figure 7 The functions of the second electronic device in the embodiment shown. The second electronic device is in communication connection with the first electronic device, and the first electronic device has an application installed. The processing unit 1602 is used to:

[0546] In response to a first operation performed by a first user on the first electronic device, a control of the application is displayed; wherein the control is used to run the application on the first electronic device when a second user performs a second operation on the control.

[0547] Optionally, the first operation is that the first user performs any one of the following operations on the icon of the application on the first electronic device: single-click, double-click, long-press, and drag; or

[0548] The first operation is that the first user drags the icon of the application to a target area on the first electronic device, wherein the target area is a set area in a display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device; or

[0549] The first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device; or

[0550] The first operation is that the first user selects a distributed control mode in a shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting a third operation of the first user, and the third request is used to trigger display of the shortcut menu of the application; or

[0551] The first operation is that the first user selects to agree to a request in a distributed control request notification displayed on the first electronic device; wherein the distributed control request is sent by the second electronic device to the first electronic device after detecting a fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

[0552] Optionally, the processing unit 1602 is specifically configured to:

[0553] receiving the first message from the first electronic device through the communication unit 1601; the first message is sent by the first electronic device after detecting the first operation, and the first message is used to instruct the second electronic device to create the control;

[0554] The control is generated according to the first message, and is displayed on the display screen 1603 of the second electronic device.

[0555] Optionally, the first message includes information about the application and an icon of the control.

[0556] Optionally, the icon of the control is the same as the icon of the application on the first electronic device.

[0557] Optionally, the processing unit 1602 is further configured to:

[0558] The running information of the application is displayed on the display screen 1603.

[0559] Optionally, the operation information includes: operation results, operation status information, or user interface.

[0560] Optionally, when the operation information includes a user interface, the processing unit 1602 is specifically configured to:

[0561] receiving, by the communication unit 1601, a second message from the first electronic device; wherein the second message is sent by the first electronic device according to the first user interface of the application;

[0562] According to the second message, a second user interface of the application is displayed; wherein the second user interface at least includes a portion of the display content of the first user interface.

[0563] Optionally, the second message is used to indicate the first user interface or the second user interface;

[0564] The second user interface is a first target area selected in the first user interface; or

[0565] The second user interface is obtained by scaling the first user interface; or

[0566] The second user interface is obtained by combining at least one first image unit in the first user interface.

[0567] Optionally, the second message is used to indicate at least one second image unit in the first user interface; the processing unit 1602 is further used to:

[0568] The at least one second image unit is combined into the second user interface.

[0569] Optionally, the processing unit 1602 is further configured to:

[0570] After detecting a fifth operation of the second user in the second user interface, a third message is sent to the first electronic device through the communication unit 1601; wherein the third message is used to indicate the fifth operation.

[0571] Optionally, the third message includes the first operation position or the second operation position;

[0572] The first operation position is the position of the fifth operation in the second user interface; and the second operation position is the position where the fifth operation is mapped to the first user interface.

[0573] Optionally, the first display area of ​​the first electronic device and the second display area of ​​the second electronic device are different in size and / or shape, the first display area is an area in the display screen of the first electronic device used to display the user interface, and the second display area is an area in the display screen of the second electronic device used to display the user interface.

[0574] Optionally, the processing unit 1602 is specifically configured to:

[0575] The second user interface is displayed according to the second message and the first interface layout strategy.

[0576] Optionally, when the area for displaying the user interface in the display screen of the second electronic device is adjusted to the third display area, the processing unit 1602 is further configured to:

[0577] Displaying a third user interface of the application according to the second message and the second interface layout strategy;

[0578] The third user interface at least includes part of the display content of the first user interface; and the third display area is different in size and / or shape from the first display area and the second display area.

[0579] Optionally, the first user interface is generated on a virtual screen of the first electronic device.

[0580] Optionally, the processing unit 1602 is further configured to:

[0581] After detecting the second operation, a fifth message is sent to the first electronic device through the communication unit 1601; wherein the fifth message is used to instruct the first electronic device to run the application.

[0582] Optionally, the second operation is any one of the following operations performed by the second user on the control: single-click, double-click, long press, and drag.

[0583] Optionally, the processing unit 1602 is further configured to:

[0584] When the second user performs the second operation on the control on the second electronic device, the application is not run.

[0585] Optionally, the performance of the first electronic device is better than the performance of the second electronic device.

[0586] Optionally, the first electronic device is a smart phone, and the second electronic device is a smart wearable device or a smart home device.

[0587] It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0588] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0589] Based on the same technical concept, the present application also provides an electronic device, which can implement the methods provided in the above embodiments. Fig.17 As shown, the electronic device 1700 includes: at least one processor 1701, a memory 1702, a transceiver 1703 and a display screen 1704. For example, the above components can be connected via one or more communication buses.

[0590] The at least one processor 1701 is coupled to the memory 1702 and is used to read the computer program stored in the memory to execute the methods provided in the above embodiments.

[0591] Exemplarily, the at least one processor 1701 may specifically be Figure 2A The processor 210 shown. The memory 1702 may be specifically Figure 2A The internal memory 221 shown and / or the external memory connected to the electronic device. The transceiver 1703 can be Figure 2A The mobile communication module 250 and / or the wireless communication module 260 shown. The display screen 1704 can be specifically Figure 2A The display screen 294 is shown, and the embodiment of the present application does not impose any limitation on this.

[0592] Based on the above embodiments, the embodiments of the present application further provide a computer program product, which includes a computer program; when the computer program runs on a computer, the computer executes the method provided in the above embodiments.

[0593] Based on the above embodiments, the embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in the above embodiments.

[0594] Optionally, the above-mentioned computer may include, but is not limited to, electronic devices.

[0595] The storage medium may be any available medium that can be accessed by a computer. For example, but not limited to, a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

[0596] Based on the above embodiments, the embodiments of the present application further provide a chip, the chip is used to read the computer program stored in the memory, and implement the method provided in the above embodiments. Optionally, the chip may include a processor and a memory, the processor is coupled to the memory, and is used to read the computer program stored in the memory, and implement the method provided in the above embodiments.

[0597] Based on the above embodiments, the embodiments of the present application provide a chip system, which includes a processor for supporting a computer device to implement the functions involved in the electronic device in the above embodiments. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0598] In summary, the embodiments of the present application provide a method for distributed control of an application and an electronic device. In this method, a first electronic device is installed with an application, and a second electronic device displays a control of the application in response to a first operation of a first user on the first electronic device; in this way, the first electronic device can run the application in response to a second operation of the control on the second electronic device by a second user. Through this solution, the second electronic device can establish a control of the application installed by the first electronic device, and by operating the control, it can achieve distributed control of the application on the first electronic device, ultimately improving the flexibility of control management of the application in the first electronic device and improving the user experience. This solution has no requirements for the software and hardware resources and performance of the second electronic device that can achieve distributed control of the application of the first electronic device, that is, this solution does not need to consider the software and hardware resource constraints of the electronic device. Therefore, this solution can be applied to various scenarios and various electronic devices, and has a wide range of applications.

[0599] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0600] The present application is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0601] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0602] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0603] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A distributed control method for an application, characterized in that: Applied to a first electronic device, the first electronic device is installed with an application, the first electronic device is in communication connection with a second electronic device, a control of the application is displayed in the second electronic device, and the control is displayed by the second electronic device in response to a first operation of a first user on the first electronic device, the method comprising: The first electronic device runs the application in response to a second operation of the control on the second electronic device by a second user.

2. The method according to claim 1, characterized in that The first operation is that the first user performs any one of the following operations on the icon of the application on the first electronic device: single click, double click, long press, and drag; or The first operation is that the first user drags the icon of the application to a target area on the first electronic device, wherein the target area is a set area in a display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device; or The first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device; or The first operation is that the first user selects a distributed control mode in a shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting a third operation of the first user, and the third request is used to trigger display of the shortcut menu of the application; or The first operation is that the first user selects to agree to a request in a distributed control request notification displayed on the first electronic device; wherein the distributed control request is sent by the second electronic device to the first electronic device after detecting a fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

3. The method according to claim 1 or 2, characterized in that The method further comprises: After detecting the first operation, the first electronic device sends a first message to the second electronic device; the first message is used to instruct the second electronic device to create the control.

4. The method according to claim 3, characterized in that The first message includes the information of the application and the icon of the control.

5. The method according to claim 4, characterized in that The icon of the control is the same as the icon of the application on the first electronic device.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The first electronic device displays a user interface of the application.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The first electronic device sends a second message to the second electronic device according to the first user interface of the application; wherein the second message is used for the second electronic device to display the running information of the application.

8. The method according to claim 7, characterized in that The operation information includes: operation results, operation status information, or user interface.

9. The method according to claim 8, characterized in that The second message is used to indicate the first user interface or the second user interface; The second user interface is a first target area selected in the first user interface; or The second user interface is obtained by scaling the first user interface; or The second user interface is obtained by combining at least one first image unit in the first user interface.

10. The method according to claim 8, characterized in that The second message is used to indicate at least one second image unit in the first user interface.

11. The method according to claim 9 or 10, characterized in that The method further comprises: The first electronic device receives a third message from the second electronic device; wherein the third message is used to indicate a fifth operation of the second user in the second user interface; The first electronic device executes the operation instruction corresponding to the fifth operation on the first user interface according to the third message.

12. The method according to claim 11, characterized in that The third message includes the first operation position or the second operation position; The first operation position is the position of the fifth operation in the second user interface; and the second operation position is the position where the fifth operation is mapped to the first user interface.

13. The method according to any one of claims 9 to 12, characterized in that: The first display area of ​​the first electronic device and the second display area of ​​the second electronic device have different sizes and / or shapes. The first display area is an area in the display screen of the first electronic device used to display the user interface, and the second display area is an area in the display screen of the second electronic device used to display the user interface.

14. The method according to claim 13, characterized in that The first electronic device sends the second message to the second electronic device according to the first user interface of the application, including: the first electronic device sends the second message to the second electronic device according to the first user interface and a first interface layout strategy.

15. The method according to claim 14, characterized in that In a case where the area for displaying the user interface in the display screen of the second electronic device is adjusted to a third display area, the method further includes: The first electronic device sends a fourth message to the second electronic device according to the first user interface and the second interface layout strategy, so that the second electronic device displays the third user interface of the application according to the fourth message; The third user interface at least includes part of the display content of the first user interface; and the third display area is different in size and / or shape from the first display area and the second display area.

16. The method according to any one of claims 7 to 15, characterized in that: The method further comprises: The first electronic device generates the first user interface on a virtual screen.

17. The method according to any one of claims 1 to 16, characterized in that: The first electronic device runs the application in response to a second operation of the control on the second electronic device by a second user, including: The first electronic device receives a fifth message from the second electronic device, and runs the application according to the fifth message; wherein the fifth message is sent by the second electronic device after detecting the second operation, and the fifth message is used to instruct the first electronic device to run the application.

18. The method according to any one of claims 1 to 17, characterized in that: The second operation is any one of the following operations performed by the second user on the control: single click, double click, long press, and drag.

19. The method according to any one of claims 1 to 18, characterized in that: The performance of the first electronic device is superior to the performance of the second electronic device.

20. The method according to any one of claims 1 to 19, characterized in that The first electronic device is a smart phone, and the second electronic device is a smart wearable device or a smart home device.

21. A distributed control method for an application, characterized in that: Applied to a second electronic device, the second electronic device is communicatively connected with a first electronic device, and the first electronic device has an application installed thereon, the method comprising: The second electronic device displays a control of the application in response to a first operation performed by a first user on the first electronic device; wherein the control is used to run the application on the first electronic device when the second user performs a second operation on the control.

22. The method according to claim 21, characterized in that The first operation is that the first user performs any one of the following operations on the icon of the application on the first electronic device: single click, double click, long press, and drag; or The first operation is that the first user drags the icon of the application to a target area on the first electronic device, wherein the target area is a set area in a display screen of the first electronic device; or the target area is a window of a distributed control folder in the first electronic device; or The first operation is that the first user sets the control mode of the application to distributed control in a setting application on the first electronic device; or The first operation is that the first user selects a distributed control mode in a shortcut menu of the application displayed on the first electronic device; the shortcut menu is displayed by the first electronic device after detecting a third operation of the first user, and the third request is used to trigger display of the shortcut menu of the application; or The first operation is that the first user selects to agree to a request in a distributed control request notification displayed on the first electronic device; wherein the distributed control request is sent by the second electronic device to the first electronic device after detecting a fourth operation of the second user, and the fourth operation is used to request distributed control of the application.

23. The method according to claim 21 or 22, characterized in that The second electronic device displays a control of the application in response to a first operation of a first user on the first electronic device, including: The second electronic device receives the first message from the first electronic device; the first message is sent by the first electronic device after detecting the first operation, and the first message is used to instruct the second electronic device to create the control; The second electronic device generates the control according to the first message, and displays the control on a display screen of the second electronic device.

24. The method of claim 23, wherein: The first message includes the information of the application and the icon of the control.

25. The method of claim 24, wherein: The icon of the control is the same as the icon of the application on the first electronic device.

26. The method according to any one of claims 21 to 25, characterized in that The method further comprises: The second electronic device displays the running information of the application.

27. The method of claim 26, wherein: The operation information includes: operation results, operation status information, or user interface.

28. The method of claim 27, wherein: In the case where the running information includes a user interface, the second electronic device displays the running information of the application, including: The second electronic device receives a second message from the first electronic device; wherein the second message is sent by the first electronic device according to the first user interface of the application; The second electronic device displays a second user interface of the application according to the second message; wherein the second user interface at least includes part of the display content of the first user interface.

29. The method of claim 28, wherein: The second message is used to indicate the first user interface or the second user interface; The second user interface is a first target area selected in the first user interface; or The second user interface is obtained by scaling the first user interface; or The second user interface is obtained by combining at least one first image unit in the first user interface.

30. The method of claim 28, wherein: The second message is used to indicate at least one second image unit in the first user interface; the method further includes: The second electronic device combines the at least one second image unit into the second user interface.

31. The method according to claim 29 or 30, characterized in that The method further comprises: After detecting the fifth operation of the second user in the second user interface, the second electronic device sends a third message to the first electronic device; wherein the third message is used to indicate the fifth operation.

32. The method of claim 31, wherein: The third message includes the first operation position or the second operation position; The first operation position is the position of the fifth operation in the second user interface; and the second operation position is the position where the fifth operation is mapped to the first user interface.

33. The method according to any one of claims 29 to 32, characterized in that The first display area of ​​the first electronic device and the second display area of ​​the second electronic device have different sizes and / or shapes. The first display area is an area in the display screen of the first electronic device used to display the user interface, and the second display area is an area in the display screen of the second electronic device used to display the user interface.

34. The method of claim 33, wherein: The second electronic device displays a second user interface of the application according to the second message, including: The second electronic device displays the second user interface according to the second message and the first interface layout strategy.

35. The method of claim 34, wherein: In a case where the area for displaying the user interface in the display screen of the second electronic device is adjusted to a third display area, the method further includes: The second electronic device displays a third user interface of the application according to the second message and the second interface layout strategy; The third user interface at least includes part of the display content of the first user interface; and the third display area is different in size and / or shape from the first display area and the second display area.

36. The method according to any one of claims 28 to 35, characterized in that The first user interface is generated on a virtual screen of the first electronic device.

37. The method according to any one of claims 21 to 36, characterized in that The method further comprises: After detecting the second operation, the second electronic device sends a fifth message to the first electronic device; wherein the fifth message is used to instruct the first electronic device to run the application.

38. The method according to any one of claims 21 to 37, characterized in that The second operation is any one of the following operations performed by the second user on the control: single click, double click, long press, and drag.

39. The method according to any one of claims 21 to 38, characterized in that The method further comprises: When the second user performs the second operation on the control on the second electronic device, the second electronic device does not run the application.

40. The method according to any one of claims 21 to 39, characterized in that The performance of the first electronic device is superior to the performance of the second electronic device.

41. The method according to any one of claims 21 to 40, characterized in that The first electronic device is a smart phone, and the second electronic device is a smart wearable device or a smart home device.

42. A distributed control method for an application, characterized in that: Applied to a communication system consisting of a first electronic device and a second electronic device, wherein the first electronic device is installed with an application, the method comprising: The second electronic device displays a control of the application in response to a first operation of a first user on the first electronic device; The first electronic device runs the application in response to a second operation of the control on the second electronic device by a second user.

43. A first electronic device, characterized in that: include: a communication unit and a processing unit; The communication unit is used to receive and send data; The processing unit is used to execute the method according to any one of claims 1-20.

44. A second electronic device, characterized in that: include: Display screen, communication unit and processing unit; The display screen is used to display a user interface; The communication unit is used to receive and send data; The processing unit is used to execute the method as described in any one of claims 21-41.

45. A first electronic device, characterized in that: include: at least one processor and memory; The at least one processor is coupled to the memory, and the at least one processor is configured to read a computer program stored in the memory to execute the method according to any one of claims 1 to 20.

46. ​​A second electronic device, characterized in that: include: a display screen, at least one processor and a memory; The at least one processor is coupled to the memory, and the at least one processor is configured to read a computer program stored in the memory to execute the method according to any one of claims 21 to 41.

47. A communication system, characterized in that: include: The first electronic device as claimed in claim 45, and the second electronic device as claimed in claim 46.

48. A chip, characterized in that: include: Processor and memory; The processor is coupled to the memory, and the processor is used to call the computer program stored in the memory during operation to implement the method according to any one of claims 1-41.

49. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 41.