Distributed control method for application, and electronic device

Through the distributed control method between electronic devices, the problem of a single application management method for electronic devices is solved, flexible application control and user experience improvement are achieved, and functional collaboration and expansion between different devices are realized.

WO2024175068A1PCT designated stage expired Publication Date: 2024-08-29HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/078186
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-23
Filing Date
2024-02-22
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

The management method of existing electronic devices for applications is relatively simple and inflexible, which limits the user experience.

Method used

Through a distributed control method, communication between a first electronic device and a second electronic device is allowed, the first user operates on the first electronic device, and the second user responds on the second electronic device, realizing control over the first electronic device. Distributed control of applications on the device improves management flexibility.

Benefits of technology

It improves the control management flexibility and user experience of applications, realizes functional collaboration and functional expansion between electronic devices with different performance, and avoids software and hardware resource constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078186_29082024_PF_FP_ABST
    Figure CN2024078186_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a distributed control method for an application, and an electronic device. In the method, an application is installed on a first electronic device, and, in response to a first operation of a first user on the first electronic device, a second electronic device displays a control of the application; thus, in response to a second operation of a second user on the control on the second electronic device, the first electronic device may run the application. By means of the solution, the second electronic device may have established thereon a control of the application installed on the first electronic device, and operations may be performed on the control. Distributed control over the application on the first electronic device is thus achieved, ultimately enhancing the control and management flexibility of the application in the first electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

A distributed control method for application programs and electronic equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 23, 2023, with application number 202310194140.6 and application name “A distributed control method and electronic device for an application program”, the entire contents of which are incorporated by reference into this application. Technical Field

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

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

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

[0006] Summary of the Invention

[0007] The present application provides a distributed control method for applications 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.

[0008] In a first aspect, embodiments of the present application provide a method for distributed control of an application. This method can be applied to a first electronic device, wherein the first electronic device has an application installed, the first electronic device is in communication with a second electronic device, and a control of the application is displayed on the second electronic device, wherein 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:

[0009] 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.

[0010] 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 and management of the application in the first electronic device and improving user experience.

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

[0012] 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, or drag;

[0013] 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 on 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;

[0014] 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;

[0015] Mode 4: The first operation is the first user selecting 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 by the first user, and the third request is used to trigger display of the shortcut menu of the application;

[0016] 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.

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

[0018] 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.

[0019] 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.

[0020] 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 may be 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.).

[0021] With 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.

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

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

[0024] In one possible design, after running the application, the first electronic device can 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.

[0025] 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 a 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, realizing the functional coordination of the two electronic devices.

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

[0027] Through this design, the second electronic device can provide the user with application services by displaying multiple forms.

[0028] 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.

[0029] 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.

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

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

[0032] 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 fifth operation of the second user 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.

[0033] With 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.

[0034] 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.

[0035] With this design, the first electronic device determines the second operation position of the fifth operation based on 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 based on the second operation position. Ultimately, 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.

[0036] 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.

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

[0038] 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.

[0039] 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 can also send a fourth message to the second electronic device according to 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.

[0040] This design ensures that the third user interface can adapt to the third display area of ​​the second electronic device.

[0041] In one possible design, the first electronic device can 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; alternatively, the first electronic device may display part or all of the first user interface based on the size or shape of the first display area, which is not limited in this application.

[0042] 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.

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

[0044] 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.

[0045] 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.

[0046] 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.

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

[0048] This design allows a second electronic device with lower performance to control the applications of a first electronic device with higher performance in a distributed manner. Furthermore, the second electronic device with lower performance can also perform the functions of the first electronic device with higher performance, enabling functional collaboration or expansion between electronic devices with different performance without optimizing the software and hardware resources of the second electronic device.

[0049] 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.

[0050] In a second aspect, embodiments of the present application provide a method for distributed control of an application. This method can be applied to a second electronic device that is communicatively connected to a first electronic device, where the application is installed. The method includes the following steps:

[0051] 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.

[0052] 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 and management of the application in the first electronic device and improving user experience.

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

[0054] 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, or drag;

[0055] 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 on 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;

[0056] 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;

[0057] Mode 4: The first operation is the first user selecting 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 by the first user, and the third request is used to trigger display of the shortcut menu of the application;

[0058] 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.

[0059] In one 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:

[0060] 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.

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

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

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

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

[0065] In one 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:

[0066] 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.

[0067] 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.

[0068] 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 can also combine the at least one second image unit into the second user interface.

[0069] 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.

[0070] 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.

[0071] 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.

[0072] 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.

[0073] 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 based on 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.

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

[0075] 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.

[0076] 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.

[0077] 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.

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

[0079] 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.

[0080] In a third aspect, an embodiment of the present application provides a method for distributed control of an application program, 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 program installed. The method includes the following steps:

[0081] 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.

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

[0083] 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, or drag;

[0084] 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 on 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;

[0085] 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;

[0086] Mode 4: The first operation is the first user selecting 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 by the first user, and the third request is used to trigger display of the shortcut menu of the application;

[0087] 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.

[0088] In one possible design, after detecting the first operation, the first electronic device may 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.

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

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

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

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

[0093] 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.

[0094] 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.

[0095] 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 can also combine the at least one second image unit into the second user interface.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

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

[0102] 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.

[0103] 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.

[0104] 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.

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

[0106] 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.

[0107] 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 configured to receive and transmit data; and the processing unit is configured 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.

[0108] In a fifth aspect, embodiments of the present application provide 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 configured to display an interface; the communication unit is configured to receive and send data; and the processing unit is configured to execute the method provided in the second aspect.

[0109] In a sixth aspect, an embodiment of the present application provides a 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 configured to read a computer program stored in the memory to execute the method provided in the first aspect. Optionally, the first electronic device further includes a display screen.

[0110] 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.

[0111] The computer program code includes computer instructions.

[0112] 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.

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

[0114] In a 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.

[0115] 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 in any possible design in the first aspect mentioned above, and the repetitions will not be discussed. BRIEF DESCRIPTION OF THE DRAWINGS

[0116] FIG1A is an architecture diagram of a communication system provided in an embodiment of the present application;

[0117] FIG1B is a schematic diagram of an example of a communication system provided in an embodiment of the present application;

[0118] FIG2A is a structural diagram of an electronic device provided in an embodiment of the present application;

[0119] FIG2B is a schematic diagram of a display mode of an electronic device provided in an embodiment of the present application;

[0120] FIG3 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;

[0121] FIG4 is a flow chart of a distributed control method for an application program provided in an embodiment of the present application;

[0122] FIG5 is a flowchart of interaction between electronic devices provided in an embodiment of the present application;

[0123] FIG6A is a schematic diagram of a user interface provided in an embodiment of the present application;

[0124] FIG6B is a schematic diagram of a user interface provided in an embodiment of the present application;

[0125] FIG6C is a schematic diagram of a user interface provided in an embodiment of the present application;

[0126] FIG6D is a schematic diagram of a user interface provided in an embodiment of the present application;

[0127] FIG6E is a schematic diagram of a user interface provided in an embodiment of the present application;

[0128] FIG6F is a schematic diagram of a user interface provided in an embodiment of the present application;

[0129] FIG7 is a flowchart of an interaction between electronic devices provided in an embodiment of the present application;

[0130] FIG8 is a flow chart of a distributed control method for an application program provided in an embodiment of the present application;

[0131] FIG9 is a flow chart of a functional collaboration method provided in an embodiment of the present application;

[0132] FIG10 is a flow chart of a functional collaboration method provided in an embodiment of the present application;

[0133] FIG11A is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0134] FIG11B is a diagram illustrating an example of functional collaboration provided by an embodiment of the present application;

[0135] FIG11C is another example diagram of functional collaboration provided by an embodiment of the present application;

[0136] FIG12 is a flow chart of a functional collaboration method provided in an embodiment of the present application;

[0137] FIG13 is a flow chart of a functional collaboration method provided in an embodiment of the present application;

[0138] FIG14A is a diagram illustrating an example of a user interface processing process provided by an embodiment of the present application;

[0139] FIG14B is a diagram illustrating an example of functional collaboration provided by an embodiment of the present application;

[0140] FIG15A is a diagram illustrating an example of a user interface processing process provided by an embodiment of the present application;

[0141] FIG15B is a diagram illustrating an example of functional collaboration provided by an embodiment of the present application;

[0142] FIG16 is a structural diagram of an electronic device provided in an embodiment of the present application;

[0143] FIG17 is a structural diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0144] This application provides a method for distributed control of applications and an electronic device for implementing distributed control of applications, increasing the flexibility of application management in the electronic device, and thereby improving the user experience. The method and the electronic device are based on the same technical concept. Since the method and the electronic device solve similar problems, the implementation of the electronic device and the method can refer to each other, and any repetitions will not be repeated.

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

[0146] 1) Electronic devices are devices or apparatuses that have data connectivity, data calculation, and data processing functions. Generally, electronic devices have display screens.

[0147] For example, the electronic device in this 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 (PDAs), smart home devices (such as smart TVs, etc.), and other smart devices. This application does not limit the specific form of the electronic device.

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

[0149] In some scenarios, electronic devices can be divided into the following two categories based on their performance:

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

[0151] 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.

[0152] 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.

[0153] Category 2 electronic devices: These devices have lower performance than Category 1 electronic devices and are not as well-equipped with hardware and software resources. Due to the constraints of various hardware and software resources, the services they provide to users are also limited.

[0154] Based on the above description, the first type of electronic device can also be called a capability-rich device, an intelligence-rich device, or a rich device. In this application, the first type of electronic device is referred to as a rich device.

[0155] 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.

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

[0157] For example, rich devices may be PCs, laptops, tablets, smartphones, in-vehicle computers, etc. Light devices may be smart watches, smart bracelets, smart glasses, in-vehicle terminals, etc.

[0158] 2) The virtual screen is proposed relative to the real screen (i.e., display screen) of the electronic device. It 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.

[0159] 3) Graphics units are the basic elements of user interfaces, also known as interface graphics units or user interface components. Note that a single user interface can contain both static and dynamic graphics units, or a combination of both.

[0160] Exemplarily, the image units in the user interface may include, but are not limited to, images of the following contents: background images (wallpapers), icons, text, numbers, notification bars, menus, virtual buttons, and the like.

[0161] 4) Interface layout policy, which is the layout rules for image elements in the user interface. For example, the interface layout policy includes not only at least one image element in the user interface, but also at least one of the following for each image element: size, position, color, angle, or transparency.

[0162] It should be noted that, in order to ensure standardization and consistency, the interface layout strategy of the user interface of each application 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.

[0163] 5) Graphic codes are generated by processing characteristic data according to specific rules. Graphic codes carry characteristic data. These specific rules are fixed. Based on these rules, electronic devices can convert characteristic data into graphic codes or perform image recognition on graphic codes to recover characteristic data.

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

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

[0166] 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.

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

[0168] 7) Controls are control components installed in electronic devices that encapsulate data and / or programs and are used to activate certain functions or applications of electronic devices. Optionally, controls can also be presented as virtual buttons or icons in the user interface.

[0169] 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 control instructions for controlling and managing the application installed in the other electronic device, or the control may encapsulate a program for generating the control instructions. This application is not limited to this. Optionally, the icon of the control may be the same as the icon of the application associated with the control.

[0170] 8) Screen projection technology, used to achieve screen collaboration between multiple electronic devices. Screen collaboration is a mode of interaction between multiple electronic devices, and is commonly seen in multi-screen interaction between smartphones, tablets, laptops, projectors, etc.

[0171] Using this screen projection technology, a screen projection channel can be established between electronic devices A and B. Electronic device A can then project user interfaces, audio files, video files, images, and other content to electronic device B through this screen projection channel, so that electronic device B can play or display the content projected by electronic device A.

[0172] For example, current screen projection technologies may include: ScreenCast, Miracast, airplay, hiplay, Digital Living Network Alliance (DLNA), etc.

[0173] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" 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: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects 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.

[0174] 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 perform corresponding processing under certain objective circumstances. It does not limit the time, nor does it require the electronic device to perform judgment actions when implemented, nor does it mean that there are other limitations.

[0175] 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, etc., and can also include an algorithm or calculation parameters for determining the first content. This application does not limit the method of "indication".

[0176] In this application, "including / comprising A" may be equivalent to "including / comprising A information". A information is used to indicate A.

[0177] 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 order.

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

[0179] The distributed control solution for applications provided in the embodiments of the present application can be applied to a communication system in which two electronic devices establish a communication connection. The following description will be made using an example of a communication system including a first electronic device and a second electronic device, as shown in FIG1A .

[0180] 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 this application. FIG1A is illustratively described using a wireless communication connection as an example.

[0181] 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 the master device can also be responsible for providing a clock synchronization signal.

[0182] Optionally, 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.

[0183] For example, as shown in FIG1B , a smart phone can establish a Bluetooth connection with a smart watch through Bluetooth technology, and implement control and management of the smart watch, as well as business communications, through the Bluetooth connection.

[0184] In another embodiment, the first electronic device and the second electronic device can be connected to the same wireless local area network (WLAN) via short-range wireless communication technology. In this way, the first electronic device and the second electronic device can establish a wireless communication connection via 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.

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

[0186] 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.

[0187] 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.

[0188] 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 via a cable.

[0189] In the communication system shown in FIG1A , 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, an electronic device can only control and manage applications installed locally. For another example, an electronic device can use traditional screen projection technology to display the user interface of another electronic device locally, and by operating the user interface of another electronic device displayed locally, it can control and manage the applications installed in the other electronic device.

[0190] Furthermore, the aforementioned methods of managing applications through screen projection require certain hardware and software support on the electronic device. This means the electronic device must be able to locally display the user interface of another electronic device through screen projection. Obviously, this approach is not suitable for some electronic devices with limited hardware and software resources, such as lightweight devices.

[0191] Furthermore, in the communication system shown in FIG1A , in a 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 abundant software and hardware resources. However, due to the constraints of the second electronic device's various software and hardware resources, the functions provided by the second electronic device are also limited.

[0192] Continuing with the example of the communication system consisting of a smartwatch and a smartphone as shown in Figure 1B , a smartphone can install a variety of applications, but a smartwatch, due to processor limitations, may not be able to install some applications, such as weather apps, chat apps, search engines, and Weibo.

[0193] In addition, even if smart watches can install applications, the services provided by smart watch applications are much lower than those of the same name applications installed on smartphones. The app does not support sending red envelopes, real-time voice / video calls, or opening mini-programs. For another example, the navigation function of a map app installed on a smartwatch cannot display an electronic map, but only an arrow indicating the direction of travel.

[0194] To expand the functionality of lightweight devices, the following solutions are currently available: 1. Forcibly install a mobile operating system compatible with smartphones in smartwatches so that applications compatible with smartphones can be installed in smartwatches; 2. A programming framework based on feature capabilities (FA) uses a card flow architecture to pre-place important smartphone information or operations on cards, display the cards on smartwatches, and execute the card's background application logic on smartphones.

[0195] However, due to significant differences between mobile phone operating systems and watch operating systems in areas like power management and background task scheduling, solution one results in higher power consumption, larger memory usage, shorter standby time, and a poor user experience for smartwatches. Solution two also requires developers to design cards based on the smartwatch's display, which significantly limits and constrains the content displayed on the cards. Therefore, even with solution two, some smartwatch features remain unavailable.

[0196] In summary, how to achieve distributed control of applications and improve the flexibility of application management in electronic devices is an issue that those skilled in the art need to consider. Furthermore, how to extend the functionality of one electronic device to another without affecting the performance of the electronic devices is also an issue that those skilled in the art need to consider.

[0197] Based on this, an embodiment of the present application provides 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 second user on the control on the second electronic device. Through this solution, 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 and 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 in 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.

[0198] In addition, after the first electronic device runs the application in response to the second user's second operation on the control on the second electronic device, 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 collaboration of the two electronic devices. In summary, the solution provided by the present application can realize the functional collaboration and functional expansion of electronic devices without considering the software and hardware resource constraints of electronic devices, thereby avoiding causing large power consumption and memory overhead to electronic devices.

[0199] The present invention provides an electronic device that can form a communication system with other electronic devices to implement the distributed control method of the application provided in the present invention.

[0200] As shown in Figure 2A, 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.

[0201] It is understood that the electronic device 200 shown in FIG2A is merely an example and does not limit the electronic device, and the electronic device may have more or fewer components than shown in FIG2A, may combine two or more components, or may have a different component configuration. The various components shown in FIG2A may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0202] 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 into 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 based on the instruction opcode and the timing signal to complete the control of instruction fetching and execution.

[0203] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or is reusing. If the processor 210 needs to use the instruction or data again, it can directly access it from the memory. By providing this memory, the number of times the processor 210 accesses data from the internal memory 221 can be reduced, reducing the processor 210's waiting time, thereby improving system efficiency.

[0204] 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 can 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.

[0205] Display screen 294 is used to display images, videos, etc. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 200 may include one or N display screens 294, where N is a positive integer greater than 1. Display screen 294 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 294 can display windows, photos, videos, web pages, or files. Furthermore, it will be appreciated 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 stylus, etc.) on an application icon, in response to the touch operation, the processor 210 opens a user interface corresponding to the application icon and displays the user interface 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, the processor 210 performs a corresponding control operation on the application.

[0206] In the embodiment of the present application, the display screen 294 can be a single 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 executes 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.

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

[0208] Taking a smartwatch as an example, as shown in Figure 2B, the smartwatch has a square display. In a first display mode, the smartwatch displays the user interface in a first display area of ​​the display; in a second display mode, the smartwatch displays the user interface in a second display area of ​​the display. The first display area is square, matching the size and shape of the display; the second display area is circular. The first and second display areas differ in size and / or shape.

[0209] 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 through a partial area of ​​the display screen 294.

[0210] 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 one camera 293 may serve 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. 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.

[0211] 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, program codes 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 .

[0212] The internal memory 221 may also store one or more computer programs for executing the methods 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 the one or more processors 210. The one or more computer programs include instructions, which may be used to execute the various steps in the following embodiments.

[0213] 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.

[0214] 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.

[0215] A touch sensor, also known as a "touch panel," can be provided on the display screen 294. The touch sensor is configured to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 294. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 200, at a location different from that of the display screen 294.

[0216] 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.

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

[0218] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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.

[0219] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 270A, the receiver 270B, etc.) or displays an image or video through the 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.

[0220] 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 technology (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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 can also receive the signal to be transmitted from the processor 210, frequency modulate it, 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 an access point through the wireless communication module 260, so that instructions and data can be sent to network devices or other electronic devices through the access point.

[0221] 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 jack 270D, and the application processor. For example, music playback, recording, etc. The electronic device 200 can receive input from the key 290 and generate key signal input related to the user settings and function control of the electronic device 200. The electronic device 200 can use the motor 291 to generate a vibration prompt. 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 connected to and separated from the electronic device 200 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295.

[0222] It should be understood that in actual applications, the electronic device 200 shown in FIG2A is only an example, and the electronic device 200 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. 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.

[0223] It should also be noted that in the embodiments provided herein, the structures of the first electronic device and the second electronic device can refer to the electronic device 200 shown in FIG2A . Furthermore, the structures of the first electronic device and the second electronic device may differ, and either the first electronic device or the second electronic device may have more or fewer components than shown in FIG2A , or may have different component configurations, which will not be described in detail herein. Furthermore, even if the two electronic devices have the same components, the same components within the two electronic devices may have performance differences.

[0224] 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, and exemplifies the software structure of the electronic device as shown in FIG3 .

[0225] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. As shown in Figure 3, this software architecture can be divided into four layers: the application layer, the application framework (FWK), the Android runtime and system libraries, and the kernel layer. Electronic devices may also include a hardware layer.

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

[0227] In an embodiment of the present application, the application layer may further include a distributed control service application for an application, which is used to implement the distributed control method for the application provided in the embodiment of the present application. For example, the service application supports an electronic device to create a control for 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 locally establish a control for an application on another electronic device, thereby enabling distributed control of the application on the other electronic device.

[0228] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer may include a window manager, content provider, view system, telephony manager, resource manager, notification manager, etc.

[0229] A window manager provides window management services. It can obtain the display size, determine whether a status bar is present, lock the screen, and take screenshots. It also provides multiple management functions to control parameters such as the transparency, position, and size of windows or interfaces on the display.

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

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

[0232] The phone manager is used to provide communication functions for terminal devices. The notification manager enables applications to display notification information in the status bar, which can be used to convey informational messages and can disappear automatically after a short stay without user interaction.

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

[0234] The Android system's core libraries consist of two parts: one containing the Java language's callable functions and the other containing the Android system's core libraries. The application layer and the application framework layer run in a virtual machine. For example, the virtual machine executes Java files from the application and framework layers as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0235] 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 provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. 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. The 2D graphics engine is a drawing engine for 2D drawing.

[0236] The kernel layer provides the operating system's core system services, such as security, memory management, process management, network protocol stacks, and driver models. These services are all implemented within the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer contains many drivers related to electronic devices, primarily display drivers; keyboard drivers for input devices; Flash drivers for memory-based devices; camera drivers; audio drivers; Bluetooth drivers; and Wi-Fi drivers.

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

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

[0239] To increase the flexibility of application management in electronic devices, embodiments of the present application provide a distributed application control method. This method is described below with reference to the accompanying drawings. This method can be applied to a communication system including a first electronic device and a second electronic device as shown in FIG1A , such as the application scenario shown in FIG1B . The first electronic device and the second electronic device are in communication connection.

[0240] Before introducing the solutions provided by the embodiments of the present application, some definitions involved in the embodiments of the present application are explained:

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

[0242] The second electronic device is an electronic device that controls the application installed on the first electronic device in a distributed manner.

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

[0244] A second user is a user who uses and operates the second electronic device.

[0245] 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.

[0246] 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.

[0247] The second 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.

[0248] 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.

[0249] It should be noted that when the second electronic device has multiple display modes, each display mode has a corresponding display area. The shape or size of the display areas corresponding to different display modes may vary. 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.

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

[0251] 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.

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

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

[0254] The first operation is an operation performed by the first user on the 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 the second electronic device).

[0255] The second operation is an operation performed by 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 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.

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

[0257] 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.

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

[0259] In short, this application does not limit the specific operation methods of the above operations, and they can be explained as examples when introducing the embodiments of this application later.

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

[0261] 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 by the second electronic device to display the second user interface.

[0262] 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.

[0263] Fourth message: In the scenario where the second message is generated by the first electronic device based on the first user interface and the first interface layout strategy, the fourth message is generated by the first electronic device based on the first user interface and the second interface layout strategy and sent to the second electronic device.

[0264] 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.

[0265] The method provided by the embodiment of the present application will be described below with reference to the flowchart shown in Figure 4. It should be noted that the prerequisite for implementing this solution is that the first electronic device has an application installed.

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

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

[0268] 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.

[0269] 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.

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

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

[0272] Method 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.

[0273] Method 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.

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

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

[0276] 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.

[0277] It should be noted that while the application is running, the process list of the first electronic device includes the process of the application. The first user can perform an operation on the first electronic device to view running programs (for example, long pressing a function key, or swiping upwards from the bottom of the first electronic device with a finger, or swiping from the side of the first electronic device to the opposite side with a finger, etc.), and can also view the user interface of the application.

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

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

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

[0281] In one embodiment, the second electronic device may display the application's running information 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 can display the application's running information based on the running data. The running data may indicate the running information.

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

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

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

[0285] 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.

[0286] 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 simultaneously, and this application does not limit this.

[0287] It should also be noted that the first electronic device may have multiple applications installed. 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 on the second electronic device to cause the first electronic device to run the application.

[0288] 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 server can perform subsequent processing.

[0289] It should be noted that the second user can perform a 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 a sixth operation on the control to update or delete the application corresponding to the control on the first electronic device.

[0290] In summary, an embodiment of the present application provides a method for distributed control of 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 second user on the control on the second electronic device. Through this solution, 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 and 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 in 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.

[0291] In addition, after the first electronic device runs the application in response to the second user's second operation on the control on the second electronic device, 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 collaboration of the two electronic devices. In summary, the solution provided by the present application can realize the functional collaboration and functional expansion of electronic devices without considering the software and hardware resource constraints of electronic devices, thereby avoiding causing large power consumption and memory overhead to electronic devices.

[0292] In an 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, as shown in FIG1B , 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, the second electronic device with poor performance can distribute the control of the application of the first electronic device with better performance. Furthermore, the second electronic device with poor performance can also realize the functions of the first electronic device with better performance, and can realize functional collaboration or functional expansion between electronic devices with different performance without optimizing the software and hardware resources of the second electronic device.

[0293] In one implementation of the embodiment shown in FIG4 , the first electronic device can implement distributed control of an application through the interactive process shown in FIG5 . In this implementation, steps S501-S502 implement S401, creating a control for the application installed on the first electronic device on the second electronic device; and steps S503-S504 implement S402, where the second electronic device operates the control to implement distributed control of the application on the first electronic device. The following describes these specific steps.

[0294] S501: After detecting a first operation by a first user on the first electronic device, the first electronic device sends a first message to a 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.

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

[0296] 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.

[0297] Method 2: The first operation is that the first user drags the application icon to the target area on the first electronic device, where 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.

[0298] The target area is used to trigger distributed control of applications, meaning that all applications within the target area can be distributedly controlled. Optionally, the target area can be associated with a second electronic device, allowing the second electronic device to control applications on the first electronic device in a distributed manner. Specifically, when the first electronic device detects that an application has been dragged to the target area, a control for that application is created on the second electronic device.

[0299] Take the scenario where the first electronic device is a smartphone and the second electronic device is a smartwatch as an example. The target area can be any set area (any corner, any side, etc.) of the smartphone's display screen. Optionally, the first user can activate the target area by turning on the distributed control function of the smartphone. For example, as shown in FIG6A , the target area The map, phone and three applications are opened by the first user by dragging them to the target area.

[0300] For another example, the target area is a window of a distributed control folder, which is used to trigger distributed control of an application. As shown in FIG6B , the target area is a window of a “My Watch” folder.

[0301] The location of the application icon with a dotted border in FIG6A and FIG6B is the location of the application before it is dragged to the target area. After dragging the map, phone and phone applications to the target area, the smart watch can display the icons of the three applications.

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

[0303] 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 setting user interface of the control mode is shown in Figure 6C or Figure 6D.

[0304] In one implementation, after the user opens the "Settings" application, the user can open the Setting interface; after that, the user can directly turn on or off the distributed control mode. When the user turns on the distributed control mode, the smartphone can create a controls.

[0305] In another implementation, when the user opens the Settings application and turns on After setting the interface, the user can further open the Distributed control settings interface; in this interface, users can turn on or off Distributed control mode; when the user opens When using the distributed control method, users can also choose to implement multiple electronic devices connected to the smartphone. An electronic device with distributed control (such as the smart watch in Figure 6D).

[0306] 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.

[0307] Continuing to take the first electronic device as a smartphone as an example, The shortcut menu of can be shown in FIG6E. For example, the user can Long press or tap the icon multiple times to open shortcut menu.

[0308] 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.

[0309] Continuing with the scenario where the first electronic device is a smartphone and the second electronic device is a smartwatch, as an example, as shown in FIG6F , the user selects the distributed control by executing the selection on the smartwatch. 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.

[0310] 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.

[0311] Optionally, during the above steps S501-S502, the first message may include application information and / or 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 may be generated by the first electronic device based on the icon of the application.

[0312] In addition, the first message also includes application information, so that the second electronic device can create the control based on the application information to establish an association between the control and the application on the first electronic device. Exemplarily, the application information may include at least one of the following: an identification of the application, control instructions for 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.).

[0313] 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. 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.

[0314] 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 this application.

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

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

[0317] 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 and will not be repeated here.

[0318] Based on the above steps, after detecting the first operation, the first electronic device can create an application control on the second electronic device through communication interaction. After detecting the second operation on the control, the second electronic device can also communicate with the first electronic device to cause it to run the application. Therefore, through the above interaction process, distributed control of the application on the first electronic device can be achieved.

[0319] In one implementation of the embodiment shown in FIG4 , the first electronic device and the second electronic device may further implement functional collaboration by enabling the second electronic device to display the user interface of the application through the following interactive process.

[0320] S701: The second electronic device enables the first electronic device to run an application 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.

[0321] 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.

[0322] 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 it may display part or all of the first user interface based on the size or shape of the first display area, which is not limited in this application. The first display area is the area of ​​the display screen of the first electronic device used to display the user interface.

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

[0324] 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.

[0325] 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.

[0326] 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.

[0327] Based on this, there are differences in the configurations used to display the user interface between the first electronic device and the second electronic device. Therefore, during 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.

[0328] Optionally, 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 based on 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 based on the second message and the first interface layout strategy.

[0329] 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 the 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.

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

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

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

[0333] Method 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 method A1 can be implemented when the size of the first user interface is larger than the size of the second display area.

[0334] In this method 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.

[0335] The initial interface can be the application startup interface, or the user interface before the application's user interface changes (while the first user interface is the user interface after the application's user interface changes). The focus area in the first user interface is the area that the user needs to focus on and pay special attention to. 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.

[0336] 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 further scale the first target area to obtain a second user interface having the same size as the second display area.

[0337] Method A2: The second electronic device scales the first user interface to obtain a second user interface. To ensure the display quality of the second user interface, Method A2 can be executed 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.

[0338] The specific value of the threshold value can be set by the first interface layout policy, which is not limited by this application. In order to ensure that the content displayed in the second user interface is not deformed due to scaling, method A2 can be implemented 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.

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

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

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

[0342] 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.

[0343] 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 both determine the first interface layout strategy based on the display configuration information and determine the aspect ratio of the second display area based on the display configuration information to generate the first user interface.

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

[0345] 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.

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

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

[0348] Method 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 method A1 in implementation method 1, and will not be repeated here.

[0349] 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.

[0350] Method 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 Method A2 in Implementation Method 1 and will not be repeated here.

[0351] 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.

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

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

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

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

[0356] 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 policy.

[0357] Optionally, the first electronic device may calculate the weight of each image unit in the multiple image units according to a set component ranking algorithm, and select at least one first image unit in the multiple image units whose weight is higher than a set threshold.

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

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

[0360] 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: resizing, repositioning, coloring, angle adjustment, or transparency adjustment. 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.

[0361] For example, the initial coordinates of an 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 (x', y') of the image unit meet the following formula:

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

[0363] For another example, the size of a certain image unit is (a, b). According to the first interface layout strategy, the image unit needs to be resized, and the target display ratio is (S1, S2). After the first electronic device resizes the image unit, the target size of the image unit is (a', b') which meets the following formula:

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

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

[0366] In implementation 1 or implementation 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 using a traditional screen projection technology.

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

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

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

[0370] 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.

[0371] 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 based on the first interface layout strategy. In other implementation scenarios, the first electronic device may decide whether to discard some image units based on the first interface layout strategy and select the at least one second image unit to be displayed on the second electronic device from the multiple image units.

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

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

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

[0375] S3-2-2: The second electronic device performs image processing on the at least one third image unit. The image processing of any third image unit includes at least one of the following operations: resizing, repositioning, color adjustment, angle modulation, or transparency adjustment. For a detailed description of this step, refer to the description of step 2-3-1 in Method B3 of Implementation Method 2 above and will not be repeated here.

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

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

[0378] Method C1: When at least one second image unit includes a dynamic image unit, the first electronic device may perform video encoding on the dynamic image unit to generate encoded video data for the dynamic image unit, and transmit the encoded video data to the second electronic device. After receiving the encoded video data from the first electronic device, the second electronic device may perform video decoding on the encoded video data to obtain the dynamic image unit.

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

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

[0381] 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 based on the data information.

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

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

[0384] In method C2, the first electronic device can directly transmit the static image unit via 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 (such as numbers or feature data after image recognition) 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 power consumption of the first electronic device and the second electronic device.

[0385] 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.

[0386] For another example, the first electronic device and the second electronic device may pre-store multiple static image units, wherein each static image unit has a unique number. The multiple static image units in the second electronic device can 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 the application or when the two establish a connection. After the first electronic device selects the at least one second image unit from the multiple image units obtained after the first user interface is split, it can determine the number of the static image unit in the at least one second image unit based on the multiple static image units pre-stored, and send the number of the static image unit to the second electronic device. In this way, the second electronic device can determine the corresponding static image data based on the number of the received static image unit.

[0387] For another example, if at least one image unit selected by the first electronic device includes a graphic code such as a barcode or a QR 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 based on the set graphic code generation rules.

[0388] 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 screen projection technology. For another example, the first electronic device can transmit the image data of the static image unit through 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.

[0389] By using 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, thereby presenting it to the second user. In this way, the second user can experience the service provided by the second electronic device.

[0390] In addition, to further enhance 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 second user's control operation on the second electronic device back to the first electronic device, triggering the first electronic device to execute the corresponding operation instruction. For the specific process, please refer to steps S704-S705 in Figure 7.

[0391] S704: After detecting 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.

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

[0393] 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 that location. Based on this, in the embodiments of the present application, this can be achieved through the following two solutions:

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

[0395] 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.

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

[0397] The first electronic device determines a second operation position for a fifth operation based on the first operation position. The second operation position is the position where the fifth operation is mapped to the first user interface. The first electronic device then executes an operation instruction corresponding to the fifth operation on the first user interface based on the second operation position.

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

[0399] 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.

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

[0401] After detecting the fifth operation of the user in the second display area, the second electronic device determines a first operation position of the fifth operation, and then determines a second operation position of the second operation based on the first operation position.

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

[0403] 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.

[0404] 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 can execute 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.

[0405] 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 perform the corresponding process in accordance with 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 a 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 refer to step S706 in Figure 7.

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

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

[0408] 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 can determine the second interface layout policy for the third display area of ​​the second electronic device. The first electronic device may then send a fourth message to the second electronic device based on the first user interface and the second interface layout policy, so that the second electronic device can display the third user interface based on the fourth message. The specific process can be referred to the description of steps S702-S703 and will not be repeated here.

[0409] In the two aforementioned implementations, the second interface layout strategy is configured for the size or shape of the third display area of ​​the application and the second electronic device. The third user interface includes at least a portion of the display content of the first user interface. The third user interface may be different from the second user interface, and the third display area may be different in size and / or shape from the first and second display areas.

[0410] 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.

[0411] In conjunction with the embodiments shown in Figures 4 and 5 above, and based on the communication system shown in Figure 1B, the present application further provides an embodiment, as shown in Figure 8. In this embodiment, application A is installed in the smartphone, but application A may not be installed in the smartwatch. The following describes the distributed control method for applications provided in the embodiments of the present application with reference to the accompanying figures.

[0412] As shown in Figure 8, based on functional logic, a smartphone may include, but is not limited to, the following modules: Application A, a distributed control module, a command parsing module, and a WiFi / Bluetooth module. A smartwatch may include, but is not limited to, the following modules: a WiFi / Bluetooth module, a distributed control module, an event parsing module, and a watch display. The following describes the functions of each module in conjunction with the specific process of the distributed control method for applications provided in the embodiments of this application.

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

[0414] S802: Based on the operation in S801, the distributed control module in the smartphone generates control creation information and sends the control creation information to the smartwatch via the smartphone's WiFi / Bluetooth module. After receiving the control creation information, the WiFi / Bluetooth module in the smartwatch sends it to the distributed control module in the smartwatch.

[0415] Optionally, the create control information may include information about application A, so that an association exists between the control created by the smartwatch and application A. For information about 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 create control information may also include an icon for the control of application A.

[0416] 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.

[0417] S804: The user performs a start operation on the control of application A displayed on the watch display. 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, or drag.

[0418] S805: After detecting the startup operation, the watch display generates first event information. The first event information is used to indicate the startup operation. The watch display sends the first event information to the event analysis module.

[0419] S806: The event parsing module parses the received first event information and generates user command information. This user command information is used to instruct the smartphone to run application A. The event parsing module sends this user command information to the smartwatch's distributed control module, which then transmits the user command information to the smartphone via the WiFi / Bluetooth module. After receiving the user command information, the smartphone's WiFi / Bluetooth module forwards it to the command parsing module, which then sends the user command information to the distributed control module.

[0420] The user command information is used to instruct the smartphone to run application A.

[0421] Since application A is not installed in the smart watch, the smart watch will not run application A after detecting the startup operation on the watch display.

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

[0423] Optionally, the distributed control module can, but is not limited to, run the application A in any one of the methods 1 to 5 described in S402 in the embodiment shown in FIG4 . The specific process can be referred to the description in S402 and will not be repeated here.

[0424] 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.

[0425] In combination with the methods provided in the above embodiments, based on the communication system shown in Figure 1B, the present application also provides several embodiments of functional collaboration methods, as shown in Figures 9, 10, 12 and 13. Among them, application A is installed in the smartphone, while the control of application A is installed in the smart watch, but application A is not installed. The process of installing or creating the control of application A on the smart watch can refer to the corresponding description in the embodiments shown in Figure 5 or Figure 8. The area in the smartphone display screen used to display the user interface is the first display area, and the area in the smart watch display screen used to display 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, and other information of the second display area).

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

[0427] Example 1: As shown in Figure 9, according to logical division, a smartphone may include, but is not limited to, the following modules: Application A, virtual screen, interface processing module, coordinate conversion module, screen projection source, and command parsing module. A smartwatch may include, but is not limited to, the following modules: watch display, event parsing module, and screen projection destination. The following describes the functions of each module in conjunction with the specific process of the functional collaboration method provided in Example 1.

[0428] S901: The watch display screen displays a control of application A. The user may start the control of application A. 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, or drag.

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

[0430] S903: 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 command parsing module of the smartphone through the communication connection between the smartwatch and the smartphone.

[0431] Since application A is not installed in the smart watch, the smart watch will not run application A after detecting the startup operation on the watch display.

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

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

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

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

[0436] 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 a part for processing.

[0437] Optionally, the interface processing module can determine the processing mode as scaling or selecting local processing according to the first interface layout strategy. Wherein, the description of the first interface layout strategy can refer to the description of the first interface layout strategy in the embodiment shown in Figure 7, which will not be repeated here.

[0438] In one embodiment, the interface processing module performs local selection 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 based on the first interface layout strategy. The first target area is the same size or shape as the second display area.

[0439] 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.

[0440] 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 based on the display configuration information of the second display area; and generate the first user interface that meets the above conditions on the virtual screen based on the aspect ratio of the second display area.

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

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

[0443] 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.

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

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

[0446] S913: The event parsing module parses the received second event information and generates user operation information. The user operation information indicates the control operation. The event parsing module transmits the user operation information to the command parsing module of the smartphone via the communication connection between the smartwatch and the smartphone. The user operation information includes a first operation location. The first operation location is the location of the user's control operation in the second user interface.

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

[0448] 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 based on the first interface layout strategy. The second operation position is the position that maps the control operation to the first user interface. The coordinate conversion module sends the second operation position to the command parsing module.

[0449] S915: The command parsing module updates the second operation position obtained from the coordinate conversion module into user operation information. The updated user operation information is then sent to application A. Application A then executes the operation instruction corresponding to the control operation on the first user interface based on the updated user operation information.

[0450] Example 2: As shown in Figure 10, according to logical division, a smartphone may include, but is not limited to, the following modules: Application A, virtual screen, coordinate conversion module, screen projection source, and command parsing module. A smartwatch may include, but is not limited to, the following modules: watch display, event parsing module, interface processing module, and screen projection destination. The following describes the functions of each module in conjunction with the specific process of the functional collaboration method provided in Example 2.

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

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

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

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

[0455] 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 a local processing.

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

[0457] 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.

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

[0459] The following uses the application scenario shown in FIG11A as an example to illustrate the methods provided in the above-mentioned embodiments 1 and 2. Various applications are installed in a smartphone, such as the main interface of the smartphone in FIG11A, which includes a clock, calendar, weather, information, Various applications such as maps and phone calls. Controls for applications such as maps and phone calls are shown in the user interface of the smart watch in Figure 11A. Icons for apps like Maps and Phone.

[0460] Example 1:

[0461] When the user After the application's controls are activated, the smartphone runs The smartphone can use the method provided in Example 1 to scale the first user interface to obtain a second user interface, and transmit the second user interface to the smartwatch. Alternatively, the smartphone can use the method provided in Example 2 to transmit the first user interface to the smartwatch, and the smartwatch can scale the first user interface to obtain the second user interface. The first user interface and the second application interface are shown in (a) of Figure 11B.

[0462] Finally, the display status of the smartphone and smartwatch is shown in (b) of FIG11B. The smartphone may not display The app's UI is black (e.g., the screen is black), while the smartwatch displays The secondary user interface of the application.

[0463] Example 2:

[0464] When a user activates the map application control on the smartwatch, the smartphone runs the map application and activates the navigation function, generating a first user interface on the smartphone's virtual screen or displaying 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 then transmit the second user interface to the smartwatch. Alternatively, the smartphone can use the method provided in Example 2 to transmit the first user interface to the smartwatch, and the smartwatch can select a local area in the first user interface to obtain the second user interface. The first user interface and the second user interface are shown in (a) of Figure 11C.

[0465] Finally, the display state of the smart watch is shown in (b) of Figure 11C. The smartphone may not display the user interface of the map application (for example, in a black screen state), while the smart watch displays the second user interface of the map application.

[0466] Example 3: As shown in Figure 12, according to the logical division, the smartphone may include, but is not limited to, the following modules: Application A, virtual screen, interface splitting module, coordinate conversion module, screen projection source, other transmission source, and command parsing module. The smartwatch may include, but is not limited to, the following modules: watch display, event parsing module, interface reorganization module, screen projection destination, and other transmission destination. The following describes the function of each module in conjunction with the specific process of the functional collaboration method provided in this Example 3.

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

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

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

[0470] 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.

[0471] This embodiment is described by taking the example of the interface splitting module transmitting the multiple image units to the smart watch.

[0472] 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.

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

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

[0475] 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.

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

[0477] For example, the other transmission source end can transmit the image data of the static image unit through 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.

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

[0479] 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.

[0480] Optionally, during the execution of S1214 by the interface reorganization module, at least one image unit to be displayed on the smartwatch may be selected from the plurality of image units according to the first interface layout strategy; image processing may then be performed on the selected at least one image unit according to the first interface layout strategy; and finally, the at least one image unit after image processing may be combined into a second user interface. The specific process of the interface reorganization module executing S1214 may be referred to as steps S3-2-1 to S3-2-3 in implementation method 3 of the embodiment shown in FIG7 , and will not be further described here.

[0481] 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.

[0482] S1216-S1220 are the same as S911-S915 in Example 1. The same steps can be referenced to each other and will not be repeated here.

[0483] Example 4: As shown in Figure 13, according to logical division, a smartphone may include, but is not limited to, the following modules: Application A, virtual screen, interface splitting and reassembling module, coordinate conversion module, screen projection source, and command parsing module. A smartwatch may include, but is not limited to, the following modules: watch display, event parsing module, and screen projection destination. The following describes the functions of each module in conjunction with the specific process of the functional collaboration method provided in Example 4.

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

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

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

[0487] Optionally, the interface splitting and reassembling module may select at least one image unit to be displayed on the smartwatch from the plurality of image units according to the first interface layout strategy; then perform image processing on the at least one selected 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 reassembling module executing S1307 can be referred to steps S2-2 to S2-3 in implementation method 2 of the embodiment shown in FIG7 , and will not be further described here.

[0488] S1308: The interface is split and reassembled to send the second user interface to the projection source end.

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

[0490] 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.

[0491] S1311-S1315 are the same as S911-S915 in Example 1. The same steps can be referenced to each other and will not be repeated here.

[0492] Continuing with the application scenario shown in FIG. 11A as an example, the methods provided in the above-mentioned third and fourth embodiments are exemplarily described.

[0493] Example 3:

[0494] When the user performs a startup operation on the phone application control on the smartwatch, the smartphone runs the phone application. After the user operates the smartphone or smartwatch, the phone application provides the user with call services. At this point, the smartphone can generate a first user interface on the virtual screen. The smartphone or smartwatch can then use the process shown in the third or fourth embodiment above to split the first user interface, select image units, perform image processing, and then reassemble the interface, and combine at least one image unit after image processing into a second user interface. The specific process can be seen in Figure 14A.

[0495] Finally, the display state of the smartwatch is shown in Figure 14B. At this time, the smartwatch displays the second user interface, while the smartphone may not display the first user interface. To enhance the contrast, Figure 14B also shows the display state of the smartphone in normal state (the figure takes the smartphone displaying the first user interface as an example).

[0496] Example 4:

[0497] When the user After the application's controls are activated, the smartphone runs App, and users can use it to After the application is operated, the WeChat application provides the user with a user information code service. At this point, the smartphone can generate a first user interface on the virtual screen. The smartphone or smartwatch can then use the process shown in the third or fourth embodiment above to split the first user interface, select image units, perform image processing, and then reassemble the interface, combining at least one image unit after image processing into a second user interface. The specific process can be seen in Figure 15A.

[0498] Finally, the display state of the smartwatch is shown in Figure 15B. At this time, the smartwatch displays the second user interface, while the smartphone may not display the first user interface. To enhance the contrast, Figure 15B also shows the display state of the smartphone in normal state (the figure takes the smartphone displaying the first user interface as an example).

[0499] 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 ease of description, the above embodiments and accompanying drawings directly refer to the transmission of user interfaces or image units. However, the above embodiments do not impose any restrictions on the form of transmission of user interfaces or image units between modules. The other embodiments are similar.

[0500] Through any of the above embodiments 1 to 4, the user can run application A in the smartphone by performing operations on the controls 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 smartphone, 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 smartphone can be extended to the smart watch, realizing the functional collaboration of the smartphone and the smart watch. The solution provided by this embodiment can realize the functional collaboration and functional expansion of electronic devices without considering the constraints of the smart watch on software and hardware resources, avoiding causing large power consumption and memory overhead to the smart watch.

[0501] It should also be noted that each step involved in the above embodiments can be performed by a corresponding device, or by a component such as a chip, processor, or chip system within the device, and the embodiments of the present application do not limit this. The above embodiments are only described as being performed by a corresponding device. 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.

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

[0503] 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 each function. It should be readily apparent to 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.

[0504] 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.

[0505] It should be noted that the "steps" in the embodiments of this application are merely illustrative and serve as a method of expression for a better understanding of the embodiments. They do not constitute a substantial limitation on the execution of the solutions of this application. For example, the "steps" can also be understood as "features." Furthermore, the steps do not constitute any limitation on the execution order of the solutions of this application. Any changes to the order of steps, or any operations such as step merging or splitting that do not affect the implementation of the overall solution, resulting in new technical solutions, are also within the scope of this application.

[0506] Based on the same technical concept, the present application also provides an electronic device that can implement the methods provided in the above embodiments. Referring to FIG16 , the electronic device 1600 includes a communication unit 1601 and a processing unit 1602. Optionally, the electronic device 1600 may also include a display screen 1603.

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

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

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

[0510] In one embodiment, the electronic device 1600 is used to implement the functions of the first electronic device in the embodiment shown in Figure 4, Figure 5, or Figure 7. An application is installed in the first electronic device, 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 in response to a first operation of the first user on the first electronic device. The processing unit 1602 is used to:

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

[0512] 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, drag; or

[0513] 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 on 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; or

[0514] 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

[0515] The first operation is the first user selecting 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 by the first user, and the third request is used to trigger display of the shortcut menu of the application; or

[0516] 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.

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

[0518] 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.

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

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

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

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

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

[0524] 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.

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

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

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

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

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

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

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

[0532] receiving, through the communication unit 1601, 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;

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

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

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

[0536] 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 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.

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

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

[0539] sending a fourth message to the second electronic device through the communication unit 1601 according to 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;

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

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

[0542] The first user interface is generated on a virtual screen.

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

[0544] 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.

[0545] 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.

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

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

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

[0549] 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.

[0550] 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, drag; or

[0551] 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 on 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; or

[0552] 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

[0553] The first operation is the first user selecting 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 by the first user, and the third request is used to trigger display of the shortcut menu of the application; or

[0554] 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.

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

[0556] 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;

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

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

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

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

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

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

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

[0564] receiving, through 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;

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

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

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

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

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

[0570] 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:

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

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

[0573] After detecting the 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.

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

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

[0576] 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 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.

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

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

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

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

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

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

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

[0584] 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.

[0585] 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.

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

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

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

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

[0590] It should be noted that the division of modules in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0591] 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 for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0592] Based on the same technical concept, this application also provides an electronic device that can implement the methods provided in each of the above embodiments. Referring to FIG. 17 , electronic device 1700 includes at least one processor 1701, memory 1702, a transceiver 1703, and a display 1704. For example, these components can be connected via one or more communication buses.

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

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

[0595] 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.

[0596] Based on the above embodiments, an embodiment of the present application further provides 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.

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

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

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

[0600] Based on the above embodiments, 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 one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.

[0601] 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 the second user. Through this solution, 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 and 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.

[0602] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can 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 can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0603] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart 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 functions specified in one or more flow charts and / or one or more boxes in the block diagram.

[0604] 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 operate in a specific manner, so that the instructions stored in the computer-readable memory produce a 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.

[0605] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that 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.

[0606] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is 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.

Citation Information

Patent Citations

  • Application program control method and electronic equipment

    CN111026482A

  • Electronic equipment, processing method and downloading method of application program of electronic equipment and medium

    CN115185416A

  • Systems and methods for communicating notifications and textual data associated with applications

    US20160306607A1

Cited By

  • Display method, electronic device, storage medium and program product

    WO2026086469A1