Service circulation method and device
Through the business transfer method between the master device and the slave device, application connection and screen projection between multiple electronic devices are realized, which solves the problem of difficult business transfer in the existing technology and improves the user experience and transfer success rate. .
Patent Information
- Application Number
- CN202310201539.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology is difficult to realize business flow between multiple electronic devices, resulting in poor user experience.
By implementing the business flow method between the master device and the slave device, the master device displays the application icon and transfers it to the slave device through drag and drop operation, determines whether the slave device supports application connection or screen projection, and performs corresponding data transmission and Business status management to achieve business flow.
It achieves seamless business flow between multiple electronic devices, improves user experience, avoids failure of connection and screen casting processes, and simplifies user operations.
Smart Images

Figure CN118535110A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a service flow method and device. Background Art
[0002] Currently, the same user may have multiple electronic devices, including mobile phones, tablet computers, computers, televisions, monitors, etc. In this case, the user has a demand for business flow between multiple electronic devices, so how to achieve business flow between multiple electronic devices has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a service flow method and device, which can perform service flow between multiple electronic devices and improve user experience.
[0004] In a first aspect, an embodiment of the present application provides a business flow method, including: a master device displays a first interface of a first application; receives a first operation of a user, and in response to the first operation satisfying a preset condition, the master device displays a second interface, the second interface including an application icon of the first application and a device icon of a first slave device; when the master device determines that the application icon of the first application is close to the device icon of the first slave device, the business flow is triggered, and the business flow includes: the master device determines whether the first slave device supports application continuation; if it is determined that the first slave device supports application continuation, the master device initiates a continuation process to the first slave device, and sends the continuation data to the first slave device, the continuation data is used to indicate the processing progress of the first application; the master device exits the first application.
[0005] Based on the method provided in the embodiment of the present application, the user can select the first slave device by dragging the application icon of the first application to the vicinity of the device identifier of the first slave device, so that the master device can initiate a connection process to the first slave device to connect the first application to the first slave device, thereby realizing business flow between multiple electronic devices (for example, the master device and the first slave device), which is easy to operate and can improve user experience.
[0006] In a possible implementation, the master device initiates a connection process to the first slave device, including: the master device queries the current service connection status; if the current service connection status indicates that the master device is not currently performing other services that conflict with the application connection, the master device initiates the connection process to the first slave device; or if the current service connection status indicates that the master device is currently performing other services that conflict with the application connection, the master device queries the conflict rules, if the conflict rules indicate that other services should be preempted, the master device disconnects other services, and the master device initiates the connection process to the first slave device. That is, before the master device initiates the connection process to the first slave device, it can query the current service connection status to determine whether the master device is currently performing other services that conflict with the application connection. If the master device is not currently performing other services that conflict with the application connection, the master device can directly initiate the connection process to the first slave device; if the master device is currently performing other services that conflict with the application connection, the master device can further query the conflict rules. If the conflict rules indicate that other services can be preempted, the master device can disconnect other services before initiating the connection process to the first slave device. In this way, the failure of the connection process initiation can be avoided as much as possible.
[0007] In a possible implementation, the method further includes: if it is determined that the first slave device does not support application continuation, the master device queries the capability of the first slave device, and the capability of the first slave device is used to indicate whether the first slave device supports heterogeneous screen projection or homogeneous screen projection; if the first slave device supports homogeneous screen projection, the master device initiates a homogeneous screen projection process and sends the projection data to the first slave device; if the first slave device supports heterogeneous screen projection, the master device initiates a heterogeneous screen projection process and sends the projection data to the first slave device. That is, when the master device determines that the first slave device does not support application continuation, it can query whether the first slave device supports heterogeneous screen projection or homogeneous screen projection. If the first slave device supports homogeneous screen projection, the master device can initiate a homogeneous screen projection process; if the first slave device supports heterogeneous screen projection, the master device initiates a heterogeneous screen projection process. In this way, when the first slave device does not support application continuation, the first application can still be projected to the first slave device without the need for additional user operations, so that the user can continue to use the first application on the first slave device, which can improve the user experience.
[0008] In one possible implementation, before the master device initiates the same-source screen projection process or the different-source screen projection process, the method also includes: the master device queries the current service connection status; if the current service connection status indicates that the master device is not currently performing other services that conflict with the same-source screen projection process or the different-source screen projection process; or if the current service connection status indicates that the master device is currently performing other services that conflict with the same-source screen projection process or the different-source screen projection process, the master device queries the conflict rules, if the conflict rules indicate to preempt other services, the master device disconnects other services, and the master device initiates the same-source screen projection process or the different-source screen projection process to the first slave device. That is, before the master device initiates screen projection to the first slave device (same-source screen projection or different-source screen projection), it can query the current service connection status to determine whether the master device is currently performing other services that conflict with the screen projection service. If the master device is not currently performing other services that conflict with the screen projection service, the master device can directly initiate the screen projection process to the first slave device; if the master device is currently performing other services that conflict with the screen projection service, the master device can further query the conflict rules. If the conflict rules indicate that other ongoing services can be preempted, the master device can disconnect other services and then initiate the connection process to the first slave device. In this way, the failure of initiating the screen projection process can be avoided as much as possible.
[0009] In one possible implementation, the main device includes a UI module, a service scheduling management module, a collaborative service application, and a communication module. The main device determines whether the first slave device supports application continuation, including: the UI module sends a card fusion instruction to the service scheduling management module, and the card fusion instruction includes at least one of the service type, the device ID of the first slave device, and the application information of the first application; the service scheduling management module sends an application continuation instruction to the collaborative service application, and the application continuation instruction is used to instruct the continuation of the first application, and the application continuation instruction includes at least one of the service type, the device ID of the first slave device, and the application information of the first application; the collaborative service application determines whether the first application installed on the main device is in a valid continuation state; if the first application is in a valid continuation state, the collaborative service application determines whether the first slave device Whether application continuation is supported; the collaborative service application sends a broadcast message through the communication module, and the broadcast message includes at least one of the package name and version requirement information of the first application; the first slave device receives the broadcast message, and the first slave device makes a continuation condition judgment; the first slave device makes a continuation condition judgment including: judging whether the first slave device has installed the first application; if the first slave device has installed the first application, judging whether the first application meets the version requirement information, and whether the signature of the first application has been authenticated; if the first slave device has installed the first application, the first application meets the version requirement information, and the signature authentication of the first application has been passed, and a response message is sent to the master device, and the response message is used to indicate that the first slave device supports application continuation; the collaborative service application receives the response message through the communication module, and determines that the first slave device supports application continuation according to the response message. In this way, it can be judged whether the first slave device supports application continuation. If the first slave device supports application continuation, a continuation process can be initiated to the first slave device, and the continuation data can be sent to the first slave device to realize the business flow between multiple electronic devices (for example, the master device and the first slave device).
[0010] In a possible implementation, the master device also includes a service status management module, and the master device initiates a connection process to the first slave device, including: the collaborative service application notifies the service scheduling management module that the first slave device supports application connection; the service scheduling management module queries the service status management module for the current service connection status, and the current service connection status indicates that the master device is not currently performing other services that conflict with the application connection; the service scheduling management module sends a connection scheduling request to the collaborative service application, and the connection scheduling request includes the device ID of the first slave device and the package name of the first application; the collaborative service application sends connection data to the first slave device through the communication module, and the connection data is used to indicate the processing progress of the first application. In this way, the collaborative service application can send the connection data to the first slave device through the communication module to realize the service flow between multiple electronic devices (for example, the master device and the first slave device).
[0011] In one possible implementation, the master device also includes a service status management module, and the master device initiates a connection process to the first slave device, including: the collaborative service application notifies the service scheduling management module that the first slave device supports application connection; the service scheduling management module queries the service status management module for the current service connection status, and the current service connection status indicates that the master device is currently performing other services that conflict with the application connection; the service scheduling management module queries the conflict rules; if the conflict rules are used to indicate conflict preemption, the service scheduling management module sends a service disconnection request to the collaborative service application, and the service disconnection request is used to disconnect other services; if the service scheduling management module determines that the service disconnection is successful, it sends a connection scheduling request to the collaborative service application, and the connection scheduling request includes the device ID of the first slave device and the package name of the first application; the collaborative service application sends connection data to the first slave device through the communication module, and the connection data is used to indicate the processing progress of the first application. In this way, before the collaborative service application sends the connection data to the first slave device through the communication module, if the service scheduling management module determines that the master device is performing other services that conflict with the application connection, the service scheduling management module can further query the conflict rules. If the conflict rules indicate that other ongoing services can be preempted, the service scheduling management module can request the collaborative service application to disconnect other ongoing services. If the service scheduling management module determines that the service is disconnected successfully, it will send a connection scheduling request to the collaborative service application so that the collaborative service application can send the connection data to the first slave device through the communication module. In this way, the failure of the connection process initiation can be avoided as much as possible.
[0012] In a possible implementation, the main device also includes a UI module, and the method further includes: coordinating with the service application to refresh the connection status; if the connection status indicates a successful connection, the service status management module notifies the UI module of the successful connection; the UI module plays a successful animation and exits the first application; if the connection status indicates a failed connection, the service status management module notifies the UI module of the failed connection; the UI module refreshes the application icon of the first application to the vicinity of the position of the main device. That is, after the connection is successful, the UI module can play a successful animation and exit the first application to prompt the user that the connection is successful; after the connection fails, the UI module can refresh the application icon of the first application to the vicinity of the position of the main device to prompt the user that the connection has failed.
[0013] In one possible implementation, the master device includes a collaborative service application, a service scheduling management module, a service status management module and a communication module, and the master device initiates a same-source screen projection process including: the collaborative service application determines that the first slave device does not support application continuation; the collaborative service application notifies the service scheduling management module that the first slave device does not support application continuation; the service scheduling management module queries the service status management module for the current service connection status; if the current service connection status indicates that the master device is not currently performing other services that conflict with the application continuation, the service scheduling management module sends a same-source screen projection request to the collaborative service application, and the same-source screen projection request includes the device ID of the first slave device; the collaborative service application sends the same-source screen projection data to the first slave device through the communication module, and the same-source screen projection data includes the first application's Encoded data; if the current service connection status indicates that the main device is currently conducting other services that conflict with the application continuation, the service scheduling management module queries the configuration file of the first slave device to determine the capabilities of the first slave device, and the capabilities of the first slave device indicate that the first slave device supports same-source screen projection; the service scheduling management module queries the conflict rules; if the conflict rules indicate the preemption of other services, the service scheduling management module sends a service disconnection request to the collaborative service application, and the service disconnection request is used to disconnect other services; if the service scheduling management module determines that the service disconnection is successful, it sends a same-source screen projection request to the collaborative service application, and the same-source screen projection request includes the device ID of the first slave device; the collaborative service application sends the same-source screen projection data to the first slave device through the communication module, and the same-source screen projection data includes the encoded data of the first application. In this way, even if the first slave device does not support application continuation, the first application can still be projected to the first slave device without the need for additional user operations, so that the user can continue to use the first application on the first slave device, which can improve the user experience.
[0014] In a possible implementation, the first slave device is a television.
[0015] In one possible implementation, the main device includes a collaborative service application, a service scheduling management module, a service status management module and a communication module. The main device initiates a heterogeneous screen projection process including: the collaborative service application determines that the first slave device does not support application continuation; the collaborative service application notifies the service scheduling management module that the first slave device does not support application continuation; the service scheduling management module queries the service status management module for the current service connection status; if the current service connection status indicates that the main device is not currently performing other services that conflict with the application continuation, the service scheduling management module sends a heterogeneous screen projection request to the collaborative service application, and the heterogeneous screen projection request includes the device ID of the first slave device and the package name of the first application; the collaborative service application sends heterogeneous screen projection data to the first slave device through the communication module, and the heterogeneous screen projection data includes the first application. coded data; if the current service connection status indicates that the main device is currently conducting other services that conflict with the application, the service scheduling management module queries the configuration file of the first slave device to determine the capabilities of the first slave device, and the capabilities of the first slave device indicate that the first slave device supports heterogeneous screen projection; the service scheduling management module queries the conflict rules; if the conflict rules indicate to preempt other services, the service scheduling management module sends a service disconnection request to the collaborative service application, and the service disconnection request is used to disconnect other services; if the service scheduling management module determines that the service disconnection is successful, a heterogeneous screen projection request is sent to the collaborative service application, and the heterogeneous screen projection request includes the device ID of the first slave device and the package name of the first application; the collaborative service application sends the heterogeneous screen projection data to the first slave device through the communication module, and the heterogeneous screen projection data includes the coded data of the first application. That is, before initiating screen projection to the first slave device (same-source screen projection or different-source screen projection), you can query the current service connection status to determine whether the master device is currently performing other services that conflict with the screen projection service. If the master device is not currently performing other services that conflict with the screen projection service, you can directly initiate the screen projection process to the first slave device; if the master device is currently performing other services that conflict with the screen projection service, you can further query the conflict rules. If the conflict rules indicate that other ongoing services can be preempted, you can disconnect other services and then initiate the connection process to the first slave device. In this way, you can avoid failure in initiating the screen projection process as much as possible.
[0016] In a possible implementation, the first slave device is any one of a mobile phone, a notebook computer, and a tablet computer.
[0017] In one possible implementation, before the collaborative service application sends heterogeneous screen projection data to the first slave device through the communication module, the method also includes: the collaborative service application determines whether the screen projection application installed on the main device and the screen projection application installed on the first slave device have both been started; if the screen projection application installed on the main device and the screen projection application installed on the first slave device have both been started, the collaborative service application initiates heterogeneous screen projection; if the screen projection application installed on the main device and / or the screen projection application installed on the first slave device are not started, the collaborative service application starts the screen projection application installed on the main device and / or the screen projection application installed on the first slave device to initiate heterogeneous screen projection.
[0018] In a possible implementation, the main device also includes a UI module, and the method also includes: coordinating with the business application to refresh the screen projection status, the screen projection status is used to indicate whether the screen projection is successful; the business scheduling management module determines that the screen projection is successful, and notifies the UI module of the screen projection success; the UI module plays a successful animation and exits the first application; if the business scheduling management module determines that the screen projection fails, it notifies the UI module of the screen projection failure; the UI module refreshes the application icon of the first application to the vicinity of the position of the main device. That is, after the screen projection is successful, the UI module can play a successful animation and exit the first application to prompt the user that the screen projection is successful; after the screen projection fails, the UI module can refresh the application icon of the first application to the vicinity of the position of the main device to prompt the user that the screen projection fails.
[0019] In a possible implementation, the main device also includes a device data synchronization module, and the method also includes: after the collaborative business application receives a service disconnection request, it disconnects other services; the collaborative business application writes the business status into the device data synchronization module; the business scheduling management module reads the business status from the device data synchronization module, and the business status is that the service disconnection is successful.
[0020] In a possible implementation, the method further includes: if the service status is service disconnection failure, the service scheduling management module notifies the UI module of the service disconnection failure; and the UI module refreshes the application icon of the first application to around the position of the main device.
[0021] In a possible implementation, the main device includes a desktop application, a UI module, a business status management module, and a device management module. The main device receives a first operation from a user. In response to the first operation satisfying a preset condition, the main device displays a second interface including: the desktop application receives the first operation, where the first operation includes a three-finger swipe up operation; the desktop application sends application information to the UI module, where the application information includes a task serial number Task of the first application. ID; the UI module requests the device information and business status of the online device from the business status management module, the online device includes the first slave device, the device information includes the type and name of the device, the business status is used to indicate whether the online device is performing other services, and the other services include at least one of continuation, same-source screen projection, and heterogeneous screen projection; the business status management module requests the device information and business status of the online device from the device management module; the device management module obtains the device information and business status of the online device; the device management module returns the device information and business status of the online device to the business status management module; the business status management module returns the device information and business status of the online device to the UI module; the UI module caches the application information and draws the application icon of the first application; the UI module constructs the second interface according to the device information and business status of the online device; if the first operation meets the preset conditions, the desktop application plays dynamic special effects, and the UI module displays the second interface.
[0022] In one possible implementation, when the master device determines that the application icon is close to the device icon, triggering business flow includes: the desktop application sends a hand-following event to the UI module, and the hand-following event includes the position coordinates of the user's finger on the touch screen of the master device; the UI module draws the application icon of the first application according to the hand-following event; if the first operation is interrupted, the desktop application sends a hand-raising event to the UI module, and the hand-raising event is used to indicate that the user's finger has left the touch screen; the UI module refreshes the application icon of the first application to the vicinity of the position of the master device; the desktop application receives a second operation, and the second operation is used to move the display position of the application icon of the first application; when the UI module determines that the application icon of the first application is close to the device icon of the first slave device, triggering business flow; if the first operation is not interrupted, in response to the user moving the application icon of the first application close to the device icon of the first slave device based on the first operation, the UI module triggers business flow.
[0023] In a second aspect, the present application provides a chip system, which includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by lines. The above chip system can be applied to an electronic device including a communication module and a memory. The interface circuit is used to receive a signal from the memory of the electronic device and send the received signal to the processor, and the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device can execute the method described in the first aspect and any possible design thereof.
[0024] In a third aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device (such as a mobile phone), the electronic device executes the method described in the first aspect and any possible design thereof.
[0025] In a fourth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible design thereof.
[0026] In a fifth aspect, an embodiment of the present application provides a business flow device, including a processor, the processor and a memory are coupled, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the device implements the method described in the first aspect and any possible design thereof. The device can be an electronic device or a server device; or it can be a component of an electronic device or a server device, such as a chip.
[0027] In the sixth aspect, an embodiment of the present application provides a business flow device, which can be divided into different logical units or modules according to functions, and each unit or module performs different functions, so that the device executes the method described in the above-mentioned first aspect and any possible design method thereof.
[0028] It can be understood that the beneficial effects that can be achieved by the chip system described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the devices described in the fifth aspect and the sixth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0030] Figure 2A A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0031] Figure 2B A schematic diagram of the architecture of a business flow system provided in an embodiment of the present application;
[0032] Figure 3A A schematic diagram of an interface display provided in an embodiment of the present application;
[0033] Figure 3B A schematic diagram of another interface display provided in an embodiment of the present application;
[0034] Figure 4AA schematic diagram of another interface display provided in an embodiment of the present application;
[0035] Figure 4B A schematic diagram of another interface display provided in an embodiment of the present application;
[0036] Figure 4C A schematic diagram of another interface display provided in an embodiment of the present application;
[0037] Figure 4D A schematic diagram of another interface display provided in an embodiment of the present application;
[0038] Figure 4E A schematic diagram of another interface display provided in an embodiment of the present application;
[0039] Figure 4F A schematic diagram of another interface display provided in an embodiment of the present application;
[0040] Figure 4G A schematic diagram of another interface display provided in an embodiment of the present application;
[0041] Figure 4H A schematic diagram of another interface display provided in an embodiment of the present application;
[0042] Fig. 4I A schematic diagram of another interface display provided in an embodiment of the present application;
[0043] Figure 4J A schematic diagram of another interface display provided in an embodiment of the present application;
[0044] Figure 4K A schematic diagram of another interface display provided in an embodiment of the present application;
[0045] Figure 4L A schematic diagram of another interface display provided in an embodiment of the present application;
[0046] Figure 4M A schematic diagram of another interface display provided in an embodiment of the present application;
[0047] Figure 4N A schematic diagram of another interface display provided in an embodiment of the present application;
[0048] Fig.4O A schematic diagram of another interface display provided in an embodiment of the present application;
[0049] Figure 5A A schematic diagram of the interaction between modules involved in a business flow method provided in an embodiment of the present application;
[0050] Figure 5B A schematic diagram of a hand-following event transmission provided in an embodiment of the present application;
[0051] Figure 5C A schematic diagram of interaction between modules involved in another business flow method provided in an embodiment of the present application;
[0052] Figure 5D A schematic diagram of interaction between modules involved in another business flow method provided in an embodiment of the present application;
[0053] Figure 6 A flowchart of a business flow method provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of a chip system structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the description of the following embodiments clear and concise, a brief introduction to the relevant concepts or technologies is first given:
[0056] Business flow: A technology that enables seamless flow of applications (hereinafter referred to as applications) between multiple electronic devices (hereinafter referred to as devices). Business flow methods may include, for example, same-source screen projection, application continuation (hereinafter referred to as continuation), and heterogeneous screen projection.
[0057] Continuation: When a user runs an application on electronic device A (for example, running a video application to watch a video, running a document editing application to edit a document), the interface of electronic device B may prompt the user to open the application running on electronic device A on electronic device B, thereby transferring to electronic device B for continued operation. Alternatively, the user runs an application on electronic device A, and when the user opens the application on electronic device B, the progress of the application on electronic device B is the same as that on electronic device A. In other words, electronic device B synchronizes the progress of the application running on electronic device A. For example: a document application is running on electronic device A, and the document application can be a memo, word, etc. The user is editing a document on electronic device A. When electronic device B and electronic device A are close to each other, a prompt message is displayed on electronic device B, and the user clicks the prompt message on electronic device B. In response to the user's click operation, electronic device B opens the document application and displays the location where the user is editing, thereby transferring to electronic device B to continue editing, etc.
[0058] Heterogeneous screen projection (single-window application projection): Electronic device A uses two-way encoding, one of which sends the default interface to display (i.e., displayed on the display screen of electronic device A). The other encoding sends the standard video stream corresponding to the projection application interface rendered on the virtual screen to electronic device B. It should be understood that, taking heterogeneous screen projection of application A as an example, the user can close the window of application A on electronic device B, switch the interface displayed in the window of application A, and other controls, but cannot control other applications in electronic device A.
[0059] Same-source screen projection: The content (for example, videos, photos, etc.) on the screen of electronic device A is projected to the screen of electronic device B for display. For example, cast+ screen projection technology adopts the same-source screen projection method. In the same-source screen projection scenario, both electronic device A and electronic device B display the interface sent by electronic device A. Alternatively, it can be understood that the interfaces of multiple applications launched on electronic device A are projected to electronic device B in the form of an extended screen. In the same-source screen projection mode, electronic device A uses one-way encoding to send the projection application interface rendered on the virtual screen and the video stream corresponding to the default interface to electronic device B, so as to display the default interface and the interface of one or more projection applications launched on electronic device A in the form of a free floating window on the display screen of electronic device B. Among them, the default interface can be understood as the interface sent by electronic device A. In some embodiments, electronic device B can reversely control electronic device A. For example, the PC can reversely control the mobile phone.
[0060] It should be noted that the same-source screen projection method can ensure the continuity of the application; while the different-source screen projection method requires restarting the application when switching between different screens.
[0061] Currently, the same user may own multiple electronic devices, and the user has a need to transfer business between the multiple electronic devices. Therefore, how to achieve business transfer between the multiple electronic devices has become a technical problem that needs to be solved urgently.
[0062] An embodiment of the present application provides a service flow method, which can perform service flow between multiple electronic devices, for example, the service flow of a master device can be transferred to a slave device. Among them, the master device includes the device currently held by the user, and the user can perform operations on the master device to initiate service flow to other devices. The slave device includes a device located near the master device and logged in to the same account as the master device. The master device and the slave device are generally electronic devices produced by the same manufacturer. For example: the master device can be a mobile phone produced by manufacturer A, and the slave device can be a tablet computer, a large-screen device, etc. produced by manufacturer A. The account logged in by the master device and the slave device can be the account applied by the user from the device manufacturer.
[0063] Figure 1The structure of the electronic device 100 provided in the embodiment of the present application is schematically shown. The structure of the master device or the slave device may be the same as the structure of the electronic device 100.
[0064] like Figure 1 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0065] Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0066] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0067] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0068] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0069] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0070] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0071] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0072] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also power the electronic device through the power management module 141 .
[0073] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
[0074] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0075] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network.
[0076] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0077] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
[0078] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0079] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0080] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0081] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), a light-emitting diode (LED), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, Micro LED, Micro OLED, quantum dot light emitting diodes (QLED), etc.
[0082] The electronic device 100 can realize the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0083] The camera 193 may include 1 to N cameras. For example, the electronic device may include 2 front cameras and 4 rear cameras. Among them, the front camera may include a TOF camera. The TOF camera includes TX and RX, TX can be used to transmit light signals (infrared light or laser pulses), and RX can be used to receive imaging. TX can be, for example, an infrared light transmitter. RX can be, for example, a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor.
[0084] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0085] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in an external memory card. The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 can execute various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 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.
[0086] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0087] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones.
[0088] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive the button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
[0089] The methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0090] The software system of the electronic device 100 may 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 invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0091] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, an Android runtime (Android Runtime) and a system library, a hardware abstraction layer (HAL) and a kernel layer. It should be noted that the embodiments of the present application are illustrated by taking the Android system as an example. In other operating systems (such as Hongmeng system, IOS system, etc.), as long as the functions implemented by each functional module are similar to those of the embodiments of the present application, the solutions of the present application can also be implemented.
[0092] Among them, the application layer can include a series of application packages.
[0093] like Figure 2A As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, lock screen application, setting application, etc. Of course, the application layer may also include other application packages, such as payment application, shopping application, banking application, chat application or financial application, etc., which are not limited in this application.
[0094] The application framework layer provides an application programming interface (API) and a programming framework for the application programs in the application layer. The application framework layer includes some predefined functions. For example, it may include an activity manager, a window manager, a content provider, a view system, a resource manager, a notification manager, etc., and the embodiments of the present application do not impose any restrictions on this.
[0095] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0096] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0097] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0098] OpenGL ES is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0099] SGL is a graphics engine for 2D graphics.
[0100] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0101] The HAL layer is an encapsulation of the Linux kernel driver, providing an interface to the upper layer and shielding the implementation details of the low-level hardware.
[0102] The HAL layer may include Wi-Fi HAL, audio HAL, camera HAL, etc.
[0103] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0104] The hardware layer includes displays, cameras, sensors, etc.
[0105] It should be noted that, in the embodiment of the present application, the application layer may include a business flow system. Figure 2B As shown, the business flow system may include a business layer, a control layer and a capability layer.
[0106] The business layer includes collaborative business applications and desktop (Launcher) applications. Collaborative business applications can perform heterogeneous screen projection, continuation, homogeneous screen projection and other processing. Desktop applications can perform gesture response, flow user interface (UI) loading and gesture interaction UI loading and other processing.
[0107] Optionally, the collaborative business application may include the control center SDK ( Figure 2B The control center SDK is used to provide services for use, accept scheduling and perform service processing. Among them, services refer to services that need to be transferred.
[0108] The control layer includes a flow center application, which may include a communication module, a device management module, a service status management module, a service scheduling management module, a UI module (also referred to as a UI display module), and a setting management module. A module may also be referred to as a component, which is not limited in this application. The functions of each module are briefly described below.
[0109] The UI module is used to display a full-screen UI interface for the flow center application. The full-screen UI interface can be, for example, a control center interface (second interface). The control center interface can refer to the following Figure 3A .
[0110] The communication module is used for cross-device transmission, for example, cross-device instruction distribution and cross-device query.
[0111] The device management module is used to manage online devices, which include one or more near-field devices logged in to the same account. The device management module can also manage the connection status (network connection status of online devices) and the capability set of all devices. Among them, the device capability set is a set used to characterize the capabilities of the device. According to the device capability set, the functions supported by the device can be determined (for example, whether the connection function is supported).
[0112] The service status management module can manage the service set of the device (e.g., the main device) (e.g., connection, same-source screen projection, different-source screen projection, etc.), and can manage the service status of all online devices (e.g., whether the online device is performing connection, same-source screen projection, different-source screen projection, etc.). The service status management module can include Profile SDK ( Figure 2BThe Profile SDK is an SDK for writing and reading Profiles (the Profile may include the service status of the device).
[0113] The service scheduling management module is used to manage the service connection and disconnection of the device, service flow mode switching (for example, switching between continuation, same-source screen projection, and different-source screen projection) and service conflict processing (conflict processing between continuation, same-source screen projection, and different-source screen projection).
[0114] The settings management module is used to manage the relevant settings of the circulation center application. For example, manage the privacy agreement, enable Bluetooth and WLAN, log in to the account, etc. (such as Fig. 4I As shown). Optionally, the setting management module can also manage the user's settings for applications, for example, setting to allow one or more applications to perform business flow. Furthermore, the specific type of business flow allowed for one or more applications can be set, such as continuation, same-source projection, different-source projection, etc.
[0115] The capability layer includes the device connection module (Magic Link) and the device data synchronization module (Device Profile). Among them, Magic Link is used for device discovery (for example, discovering other devices in the same LAN), service discovery compatibility, device connection (for example, establishing a communication connection with other devices in the same LAN) and data transmission. Device Profile can be used to obtain the online and offline information, capability information and service status (service status can also be called service status) of devices with the same account, and can synchronize device data.
[0116] It should be noted that the device management module in the control layer can call the capabilities of the device data synchronization module in the capability layer to obtain the online and offline information, capability information, etc. of the online devices. The business status management module in the control layer can call the capabilities of the device data synchronization module in the capability layer to obtain the business status of the online devices. The business scheduling management module in the control layer can call the capabilities of the device data synchronization module in the capability layer to obtain the business status of the online devices. The collaborative business application in the business layer can call the capabilities of the device data synchronization module in the capability layer to perform heterogeneous screen projection, connection, homogeneous screen projection and other processing. The communication module in the control layer can call the capabilities of the device connection module in the capability layer to perform cross-device transmission and other processing.
[0117] The technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Wherein, in the description of the present application, unless otherwise specified, "at least one" refers to one or more, and "a plurality of" refers to two or more than two. In addition, in order to facilitate the clear description of the technical scheme of the embodiment of the present application, in the embodiment of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit necessarily different.
[0118] For ease of understanding, the business flow method provided in the embodiment of the present application is specifically introduced below with reference to the accompanying drawings.
[0119] Combine the following Figure 3A The control center interface provided in the embodiment of the present application is described. Figure 3A As shown, the control center interface includes a device identifier 301 of the master device, a device identifier 302 of the slave device, and an application icon 303. The device identifier may be a device identifier of a tablet computer, a device identifier of a large-screen device (TV), a device identifier of a PC, a device identifier of a mobile phone, etc. The application icon 303 indicates the identifier of application A (the first application) being run by the master device.
[0120] The device identification 301 of the master device and the device identification 302 of the slave device may be graphical identifications, such as icons, or other skeuomorphic elements.
[0121] In some embodiments, in the control center interface, the device identification 301 of the master device and the device identification 302 of the slave device can be different colors to facilitate user distinction. For example, the device identification 301 of the master device can be blue, and the device identification 302 of the slave device can be white (or transparent). In addition, in the control center interface, the device identification 301 of the master device and the device identification 302 of the slave device can be different sizes to facilitate user distinction. For example, the size of the device identification 301 of the master device can be larger than the size of the device identification 302 of the slave device.
[0122] The device identification 301 of the master device may be located in the central area of the control center interface, for example, in the center, the lower center area, the upper center area, etc. of the control center interface 300, and this application does not limit this. The device identification 302 of the slave device may be distributed around the device identification of the master device. In some embodiments, the device identification 302 of the slave device is located below the device identification 301 of the master device.
[0123] Exemplarily, the device identification 301 of the master device is located in the upper center area of the control center interface. The device identifications 302 of each slave device, such as the device identification of a tablet computer, the device identification of a large-screen device, the device identification of a PC, and the device identification of a mobile phone, can be evenly distributed in a semicircle below the device identification 301 of the master device.
[0124] The application icon 303 may be a graphical identifier, such as an icon, or other skeuomorphic elements, etc. For example, the application icon may be used as the application icon 303, or the application name may be used as the application icon 303, which is not limited in the embodiment of the present application.
[0125] In some embodiments, the control center interface may also include a device name 304 of each slave device, and the device name 304 may be displayed in conjunction with its corresponding device identifier 302, for example, the device name may be displayed above, below, or in other locations of its corresponding device identifier 302. In the embodiment of the present application, the device name 304 may be the product name of the slave device, such as Honor TV, Honor Pad, Honor Magic Book, etc. The device name 304 may also be a user-defined name, such as Xiao Li's Honor tablet, Honor Smart Screen in the living room, etc., which is not limited in the embodiment of the present application.
[0126] It is understandable that the application icon 303 is distributed around the device identification 301 of the main device, for example, it can be distributed above the device identification 301 of the main device, or distributed below the device identification 301 of the main device, etc., and the implementation of this application does not limit this.
[0127] In some embodiments, the control center interface further includes one or more function buttons, such as a details button 305, an exit button 306, etc. The user can learn how to use the control center interface by clicking the details button 305. The user can exit the control center interface by clicking the exit button 306. The user can also exit the control center interface by a quick operation such as a side swipe operation.
[0128] In an embodiment of the present application, when the user drags the application icon 303 to the vicinity of the device identifier 302 of any slave device, the master device transfers the business of the application corresponding to the application icon (the ongoing business of the application on the device) to the corresponding slave device based on the type of the slave device, the status of the application installed on the slave device, etc.
[0129] In the embodiment of the present application, the user can enter the control center interface through a quick operation. The quick operation can be a three-finger swipe up, or other types of quick operations, which are not limited in the embodiment of the present application. Figure 3B A method of entering the control center interface is described.
[0130] For example, the main device is a mobile phone, and the shortcut operation is a three-finger swipe up. Figure 3B As shown in the figure, the main device is running a video application and playing a video. When the user places three fingers on the Figure 3B When the interface shown in (a) of FIG. 1 slides upward, if the master device determines that the distance corresponding to the upward sliding operation exceeds the first threshold, the master device receives the operation of entering the control center interface, and the master device enters Figure 3B The control center interface shown in (b) of FIG. 1 includes a device identifier 301 of a master device, a device identifier 302 of a slave device, and an application icon 303 .
[0131] In some embodiments, if the master device determines that the distance corresponding to the swipe up operation exceeds the first threshold, the master device receives the operation of entering the control center interface. If the master device determines that the distance corresponding to the swipe up operation does not exceed the first threshold, the master device does not receive the operation of entering the control center interface, does not enter the control center interface, and returns to the interface of running the application.
[0132] In the embodiment of the present application, the first threshold may be 20 pixels (px) or any other value, which is not limited here.
[0133] In some embodiments, the master device may display a dynamic special effect based on the three-finger swipe up operation during the process of receiving the three-finger swipe up operation. The dynamic special effect may be a zooming dynamic effect, for example, the interface receiving the three-finger swipe up operation is zoomed in a certain proportion until the form shown by the application icon 303 is displayed, and the device identifications of the master device and the slave device are displayed. The dynamic special effect may also be any other type of dynamic effect, which is not limited in the embodiments of the present application.
[0134] Exemplarily, after the master device receives the three-finger upward swipe operation, Figure 3B In the interface shown in (c), enter Figure 3B The control center interface shown in (b).
[0135] It is understandable that the user can enter the control center interface through pre-set shortcut operations on any interface. Figure 3B In the embodiment shown, since the main device runs a foreground application before entering the control center interface, the control center interface includes an application icon. If the main device runs multiple foreground applications before entering the control center interface, the control center interface may include multiple application icons.
[0136] In another possible implementation, when the main device is running application A, the main device detects that the user opens the notification center, such as swiping down from the top to open a drop-down menu of the notification center. The drop-down menu may include a card for the user to enter the control center. When the main device detects that the user clicks on the card, it may display the following: Figure 3AThe control center interface shown, or another control center interface may be displayed, which does not include the logo of application A.
[0137] Combine the following Figure 4A-4F Describe the business flow function of the control center.
[0138] In an embodiment of the present application, if a foreground application is running before the main device enters the control center interface, the control center interface may include an application icon to implement business flow.
[0139] It is understandable that the service flow modes implemented by the master device and the slave device are different due to the differences in the types of slave devices, the applications corresponding to the application icons, etc. The service flow modes include: heterogeneous screen projection, homogeneous screen projection, and continuation.
[0140] For example, Figure 4A A schematic diagram of an interface for a business flow provided in an embodiment of the present application is provided. Taking the master device as a mobile phone, the slave device as a computer, the master device installed with application A, the slave device not installed with application A, and application A being a video application as an example, the business flow method of the embodiment of the present application is described.
[0141] When the phone displays the application interface corresponding to application A, it receives a three-finger upward swipe operation from the user. Figure 4A Enter the interface shown in (a) Figure 4A The control center interface shown in (b) of FIG. 1 includes a device identifier 301 of the mobile phone, an A application icon 601 and a device identifier 602 of the computer.
[0142] The user can drag the A application icon 601 toward the computer's device identifier 602 by dragging. When the user drags the A application icon 601 to the vicinity of the computer's device identifier 602, the computer's device identifier 602 automatically absorbs the A application icon 601 (such as Figure 4A ).
[0143] When the drag operation ends at a position near the device identifier 602 of the computer, the mobile phone initiates a service flow to the computer, and the mobile phone enters Figure 4A In the interface shown in (d) in FIG. 6 , the identifier in the device identifier 602 of the computer is changed to a connection identifier, so as to give the user a visual feedback of the status of the ongoing business flow.
[0144] For example, when the distance between the user dragging application icon A 601 and the computer's device identifier 602 is less than the second threshold, the computer's device identifier 602 automatically absorbs application icon A 601. When the distance between the position at the end of the dragging operation and the computer's device identifier 602 is less than the second threshold, the mobile phone initiates a service flow to the computer.
[0145] In the embodiment of the present application, the second threshold value may be 20 pixels (px) or any other value, which is not limited here.
[0146] Since application A is not installed in the computer, the mobile phone projects the content displayed by application A (for example, videos, photos, etc.) to the computer screen for display, thereby realizing single-window application screen projection, that is, heterogeneous screen projection.
[0147] When the business flow between the mobile phone and the computer is successful, the mobile phone enters Figure 4A In the interface shown in (e), the A application icon 601 is not displayed in the interface. Adaptively, the computer displays a projection window 603, which displays the content of the A application (such as Figure 4B shown).
[0148] When the mobile phone exits the control center after the service flow is completed, the interface of application A is no longer displayed. Figure 4A When the interface shown in (e) receives the user clicking the exit button 306, the mobile phone Figure 4A Enter the interface shown in (e) Figure 4A The interface shown in (f) in . Figure 4A The interface shown in (f) is the desktop of the mobile phone. Figure 4A When the interface shown in (e) receives a side-swipe operation from the user, the mobile phone Figure 4A Enter the interface shown in (e) Figure 4A The interface shown in (f) in . Figure 4A The interface shown in (f) is the desktop of the mobile phone. The side sliding operation can be a left sliding operation or a right sliding operation, which is not limited here.
[0149] For example, Figure 4C A schematic diagram of an interface for business flow provided in an embodiment of the present application. Taking the master device as a mobile phone, the slave device as a computer, the master device and the slave device both having application B installed, and application B being a note application as an example, the business flow method in the embodiment of the present application is described.
[0150] When the phone displays the application interface corresponding to application B, it receives a three-finger upward swipe operation from the user. Figure 4C Enter the interface shown in (a) Figure 4C The control center interface shown in (b) of FIG. 1 includes a device identifier 301 of the mobile phone, an application icon 604 of B, and a device identifier 602 of the computer.
[0151] The user can drag the B application icon 604 toward the computer's device identifier 602 by dragging. When the user drags the B application icon 604 to the vicinity of the computer's device identifier 602, the computer's device identifier 602 automatically absorbs the B application icon 604 (e.g., Figure 4C ).
[0152] When the drag operation ends at a position near the device identifier 602 of the computer, the mobile phone initiates a service flow to the computer, and the mobile phone enters Figure 4C In the interface shown in (d) in FIG. 6 , the identifier in the device identifier 602 of the computer is changed to a connection identifier, so as to give the user a visual feedback of the status of the ongoing business flow.
[0153] For example, when the distance between the user dragging the B application icon 604 and the computer's device identifier 602 is less than a first threshold, the computer's device identifier 602 automatically absorbs the B application icon 604. When the distance between the position at the end of the dragging operation and the computer's device identifier 602 is less than the first threshold, the mobile phone initiates a service flow to the computer.
[0154] Since the computer has application B installed, both the application B installed in the computer and the application B installed on the mobile phone support continuation. The mobile phone exits the editing state of application B and controls the computer to open application B and display the application interface corresponding to application B. The progress of the tasks in the application interface corresponding to application B displayed on the computer is the same, so as to achieve the display content continuation. In other words, the master device synchronizes the progress or location information of application B running on the master device to the slave device. When the slave device opens application B, it can directly display the corresponding progress or location to achieve continuation.
[0155] It is understandable that if the B application is not installed in the computer, or the B application installed in the computer does not support continuation, or the B application installed on the mobile phone does not support continuation, the mobile phone exits the editing state of the B application and projects the content displayed by the B application (for example: videos, photos, etc.) to the computer screen for display, so as to realize single-window application screen projection, that is, heterogeneous screen projection.
[0156] When the business flow between the mobile phone and the computer is completed, the mobile phone enters Figure 4C In the interface shown in (e), the B application icon 604 is not displayed in the interface. Adaptively, the computer opens the B application and displays the application interface corresponding to the B application (such as Figure 4D shown).
[0157] When the mobile phone exits the control center after the transfer is completed, the interface of application B is displayed. Figure 4C Enter the interface shown in (e) Figure 4C The interface shown in (f) in . Figure 4CThe interface shown in (f) is the application interface corresponding to application B, for example, the main interface of application B. Application B in the mobile phone does not exit the foreground, but changes the displayed interface according to the logic of application continuation.
[0158] In some embodiments, if the mobile phone is performing business flow and application B is in the editing state, the mobile phone exits the editing state and then performs business flow.
[0159] It is understandable that the mobile phone can exit the control center through the exit button 306 or through a side sliding operation. The embodiment of the present application does not limit the specific operation of exiting the control center.
[0160] For example, Figure 4E A schematic diagram of an interface for a service flow provided in an embodiment of the present application. Taking the master device as a mobile phone, the slave device as a large-screen device, and application A as a video application as an example, a service flow method in another embodiment of the present application is described.
[0161] When the phone displays the application interface corresponding to application A, it receives a three-finger upward swipe operation from the user. Figure 4E Enter the interface shown in (a) Figure 4E The control center interface shown in (b) of FIG. 1 includes a device identifier 301 of the mobile phone, an A application icon 601 and a device identifier 605 of the large-screen device.
[0162] The user can drag the A application icon 601 toward the device identifier 605 of the large-screen device through a drag operation. When the user drags the A application icon 601 to the vicinity of the device identifier 605 of the large-screen device, the device identifier 605 of the large-screen device automatically absorbs the A application icon 601 (such as Figure 4E ).
[0163] When the drag operation ends at a position near the device identifier 605 of the large-screen device, the mobile phone initiates a service flow to the large-screen device, and the mobile phone enters Figure 4E In the interface shown in (d) in FIG. 6 , the identifier in the device identifier 605 of the large-screen device is changed to a connection identifier, so as to visually feedback the status of the ongoing business flow to the user.
[0164] Exemplarily, when the distance between the user dragging application icon A 601 and the device identifier 605 of the large-screen device is less than the second threshold, the device identifier 605 of the large-screen device automatically absorbs application icon A 601. When the distance between the position at the end of the dragging operation and the device identifier 605 of the large-screen device is less than the second threshold, the mobile phone initiates a service flow to the large-screen device.
[0165] Since the slave device is a large-screen device, the mobile phone projects the content displayed on the mobile phone (for example, videos, photos, etc.) to the screen of the large-screen device for display, thereby realizing same-source screen projection.
[0166] When the business flow between the mobile phone and the large-screen device is completed, the mobile phone enters Figure 4E The interface shown in (e) does not display the A application icon 601. Adaptively, the content displayed on the large-screen device is the same as the content displayed on the mobile phone (such as Figure 4F ).
[0167] When the mobile phone exits the control center after the flow is completed, the mobile phone Figure 4E Enter the interface shown in (e) Figure 4E The application interface of application A is shown in (f) in FIG. Adaptively, the content displayed on the large-screen device is the same as that displayed on the mobile phone (e.g. Figure 4F , as shown in (b) in the figure).
[0168] It is understandable that the mobile phone can exit the control center through the exit button 306 or through a side sliding operation. The embodiment of the present application does not limit the specific operation of exiting the control center.
[0169] It is understandable that when the mobile phone and the large-screen device are conducting business flow, the state of the application conducting the business flow remains unchanged. For example, taking the note application as an example, if the note application is in the editing state, the mobile phone is still in the editing state after exiting the control center interface.
[0170] Above Figure 4A-4F The example of running an application in the foreground of the main device during business flow is used for explanation. In addition, the main device can perform business flow in a split-screen display scenario, or in a small window application display scenario, which is not limited in this application.
[0171] In some embodiments, if the master device and the slave device are transferring services, the user initiates the service transfer again on the master device, such as Figure 4G As shown, if a slave device (eg, the first slave device) is already performing collaborative services or transferring services with the master device, the device identification 602 of the slave device may be displayed as a connection state (fusion state) to prompt the user.
[0172] It is understandable that the service flow may fail due to a variety of reasons. Reasons include but are not limited to: the slave device is locked, the slave device is dormant, the slave device does not support the flow, the application does not support the flow, network abnormalities, etc. For example, Figure 4H A schematic diagram of an interface of a control center provided in an embodiment of the present application. Figure 4HThe interface shown in (a) includes: a device identifier 301 of the main device, an A application icon 601 and a device identifier 602 of the computer.
[0173] The user can drag the A application icon 601 toward the computer's device identifier 602 by dragging. When the user drags the A application icon 601 to the vicinity of the computer's device identifier 602, the computer's device identifier 602 automatically absorbs the A application icon 601 (such as Figure 4H , as shown in (b) in the figure).
[0174] When the drag operation ends at a position near the device identifier 602 of the computer, the master device initiates a service flow to the computer, and the master device enters Figure 4H In the interface shown in (c) of FIG. 6 , the identifier in the device identifier 602 of the computer is changed to a connection identifier, so as to visually feedback the status of the ongoing business flow to the user.
[0175] For example, when the distance between the user dragging application icon A 601 and the computer's device identifier 602 is less than the second threshold, the computer's device identifier 602 automatically absorbs application icon A 601. When the distance between the position at the end of the dragging operation and the computer's device identifier 602 is less than the second threshold, the host device initiates a service flow to the computer.
[0176] If the service flow fails, the master device enters Figure 4H Enter the interface shown in (c) Figure 4H The interface shown in (d) in FIG. 3 includes: a device identifier 301 of the main device, an A application icon 601 and a device identifier 602 of the computer.
[0177] On the basis of the above embodiment, if the service transfer fails, a prompt message may be displayed on the control center interface of the main device to prompt the user that the transfer has failed.
[0178] For example, Figure 4H The control center interface shown in (d) further includes: a prompt message 901. The prompt message 901 is used to prompt the user that the service transfer fails.
[0179] The prompt message 901 may be a text message, for example, “Connection failed”.
[0180] The prompt message 901 may be displayed in the form of a bubble or a toast message. The embodiment of the present application does not limit the specific display form of the prompt message 901.
[0181] The prompt message 901 may disappear after being displayed for a period of time, or after receiving any operation. In this way, the obstruction of the control center interface by the prompt message 901 can be reduced. The embodiment of the present application does not limit the disappearance method of the displayed prompt message 901.
[0182] In some embodiments, the prompt message 901 is also used to prompt the user the reason for the transfer failure. In this way, the user can adjust the slave device based on the failure reason to facilitate the service transfer again, thereby improving the user experience.
[0183] For example, the text corresponding to the prompt message 901 may be: "Connection failed, please unlock the other end and try again", "Business transfer to the slave device is not supported temporarily", "Application transfer to the slave device is not supported temporarily", "Network connection is unstable, please try again later", etc. The specific content of the prompt message 901 is not limited in the embodiment of the present application.
[0184] In the embodiment of the present application, before the main device enters the control center interface, the main device also displays a guidance interface to prompt the user to agree to the privacy agreement, turn on Bluetooth and WLAN, log in to the account, etc. For example, Fig. 4I This is a schematic diagram of an interface of a master device provided in an embodiment of the present application. Take the first time the master device enters the control center as an example.
[0185] like Fig. 4I As shown in the figure, if the main device receives the user's three-finger upward swipe operation, the main device enters Fig. 4I The interface shown in (a) of FIG. 1 includes: a guidance pop-up window 1701. When the user clicks the consent button 1702, the main device enters Fig. 4I The interface shown in (b) in FIG. 1 shows a privacy agreement and an agreement control 1703. When the user clicks the agreement control 1703, the main device enters Fig. 4I The interface shown in (c) includes: a login control.
[0186] When the user clicks the login control 1704, the main device enters Fig. 4I The interface shown in (d) in FIG. 1 includes an opening control 1705. When the user clicks the opening control 1705, the main device enters the control center interface.
[0187] If the main device has Bluetooth and WLAN turned on when the user clicks the login control 1704, the main device enters the control center interface and does not display Fig. 4I The interface shown in (d).
[0188] Combine the following Figure 4J-Figure 4OThe device collaboration function of the control center is described. Device collaboration is a distributed technology applied to multiple electronic devices. For example, a master device and a slave device can be connected collaboratively. Based on the device collaboration technology, multiple electronic devices (for example, a master device and a slave device) can collaborate across systems and devices to achieve resource sharing and collaborative operation.
[0189] It can be understood that when the master device enters the control center page through the above two methods, the control center may have the following three situations: in the first situation, the master device has searched for one or more slave devices; in the second situation, the master device has not searched for the slave device; in the third situation, the master device is in collaboration.
[0190] Combine the following Figure 4J The control center pages corresponding to the three situations are described.
[0191] Case 1: If the master device has searched for one or more slave devices, the control center page will be displayed as follows: Figure 4J The control center page includes a device identifier 301 of the master device and a device identifier 302 of the slave device. The positions, shapes, etc. of the device identifier 301 of the master device and the device identifier 302 of the slave device can refer to the above Figure 3A The corresponding instructions are given in , which will not be repeated here.
[0192] For example, when the user Figure 4A When the entry button 410 is clicked on the notification center page shown in (b) of FIG. 1 , the main device receives the operation of opening the control center and enters Figure 4J The control center page shown in (a) in the figure.
[0193] Based on the above embodiment, the control center page also displays a prompt message 1001. The prompt message 1001 is used to prompt the user to understand the collaborative function. In some embodiments, the prompt message 1001 may disappear after receiving the user operation, or after a period of time (for example, 15S).
[0194] The master device may display the prompt message 1001 when entering the control center page for the first N times, or may display the prompt message 1001 only when entering the control center page for the first time. The embodiment of the present application does not specifically limit the display conditions and disappearance conditions of the prompt message 1001.
[0195] Case 2: If the master device fails to search for the slave device, the control center page will be displayed as follows: Figure 4J As shown in (b) in FIG. 1 , the control center page includes a device identifier 301 of the master device, but does not include a device identifier 302 of the slave device.
[0196] For example, when the user Figure 4CWhen the entry button 410 is clicked on the notification center page shown in (a) of FIG. 1 , the main device receives the operation of opening the control center and enters Figure 4J The control center page shown in (b) in the figure.
[0197] In some embodiments, the control center page also displays a prompt message 1002. The prompt message 1002 is used to prompt the user why the slave device is not found. The reasons include but are not limited to: the nearby device is not logged in to the same account and the smart interconnection service is turned on, the nearby device does not turn on Bluetooth and WLAN, the nearby device does not support collaboration with the local device, etc.
[0198] In a possible implementation, if the master device fails to search for a slave device within a preset time period of displaying the control center page, a prompt message 1002 is displayed; when a slave device is searched and the device identification 302 of the slave device is displayed, the prompt message 1002 disappears.
[0199] It is understandable that when the master device searches for the slave device, the master device can Figure 4J The page shown in (b) in the figure enters the Figure 4J The page shown in (a) in .
[0200] The third case: If the master device is in collaboration, the control center page is as follows Figure 4J As shown in (c) in FIG.
[0201] The collaborative logo 1003 may be a graphical logo, such as an icon, or other skeuomorphic elements, etc. For example, the device logo of the main device and the device logo of the collaborative device may be merged to form the collaborative logo 1003. The specific shape of the collaborative logo is not limited in the embodiment of the present application.
[0202] In some embodiments, if the main device is in collaboration, the control center page also includes a collaboration type card 1004 , and the collaboration type card 1004 includes multiple buttons, for example: a multi-screen collaboration button 1005 and a disconnect button 1006 .
[0203] It should be noted that the buttons displayed on the collaboration type card are related to the collaboration types supported between the master device and the slave device. For example, when the master device is a mobile phone and the slave device is any device such as a PC, a PAD, or a large-screen device, the collaboration between the master device and the slave device is the same-source screen projection. The collaboration type card 1004 displayed on the control center page may include a multi-screen collaboration button 1005, a disconnect button 1006 (such as Figure 4J ).
[0204] When the master device is a PC and the slave device is a tablet, the collaboration between the master device and the slave device can be any one of screen extension, screen mirroring, and keyboard and mouse sharing. The collaboration type card 1004 displayed on the control center page may include a screen extension button 1007, a screen mirroring button 1008, a keyboard and mouse sharing button 1009, and a disconnect button 1006 (such as Figure 4J (as shown in (d) in the figure).
[0205] When the user clicks the screen extension button 1007, the collaboration type between the master device and the slave device is switched to screen extension; when the user clicks the screen mirroring button 1008, the collaboration type between the master device and the slave device is switched to screen mirroring; when the user clicks the keyboard and mouse sharing button 1009, the collaboration type between the master device and the slave device is switched to keyboard and mouse sharing.
[0206] Combine the following Figure 4K and Figure 4L The connection process and disconnection process between the master device and the slave device are described.
[0207] For example, when the user Figure 4K When the device identifier 602 of the computer in the page shown in (a) is dragged to the vicinity of the device identifier 301 of the main device, the device identifier 301 of the main device automatically absorbs the device identifier 602 of the computer (such as Figure 4K When the drag operation ends at a position near the device identifier 301 of the master device, the master device and the computer begin to establish a collaborative connection, and the master device enters Figure 4K In the interface shown in (c) of FIG. 6 , the identifier in the device identifier 602 of the computer is changed to a connection identifier, so as to give the user a visual feedback of the status of the ongoing collaborative connection.
[0208] Exemplarily, when the distance between the device ID 602 of the computer dragged by the user and the device ID 301 of the main device is less than the third threshold, the device ID 301 of the main device automatically absorbs the device ID 602 of the computer. When the distance between the position at the end of the dragging operation and the device ID 301 of the main device is less than the third threshold, the main device and the computer begin to establish a collaborative connection.
[0209] In the embodiment of the present application, the third threshold value may be 20 pixels (px) or any other value, which is not limited here.
[0210] When the collaborative connection between the main device and the computer is established, the main device enters Figure 4K The page shown in (d) includes a collaboration logo 1003 and a collaboration type card 1004.
[0211] If the main device cooperates with the computer, the computer displays a cooperation window 1101, and the content displayed in the window is the same as that displayed by the main device.
[0212] If the collaborative connection between the main device and the computer fails, the main device enters Figure 4K The page shown in (e) includes the device identification 301 of the main device and the device identification 602 of the computer.
[0213] In some embodiments, if the collaborative connection fails to be established, a prompt message may be displayed on the control center page of the master device to prompt the user that the collaborative connection has failed to be established.
[0214] For example, Figure 4K The page shown in (e) also includes: prompt message 1101. Prompt message 1101 is used to prompt the user that the collaborative connection establishment failed. Prompt message 1101 can be a text message, for example, "Connection failed". Prompt message 1101 can be displayed in the form of a bubble or in the form of a toast message. The embodiment of the present application does not limit the specific display form of prompt message 1101.
[0215] The prompt message 1101 may disappear after being displayed for a period of time, or after receiving any operation. In this way, the obstruction of the control center page by the prompt message 1101 can be reduced. The embodiment of the present application does not limit the disappearance method of the displayed prompt message 1101.
[0216] In some embodiments, the prompt message 1101 is also used to prompt the user the reason for the transfer failure. In this way, the user can adjust the slave device based on the failure reason to facilitate task transfer again, thereby improving the user experience.
[0217] For example, the text corresponding to the prompt message 1101 may be: "Connection failed, please unlock the other end and try again", "Task transfer to the slave device is not supported temporarily", "Application transfer to the slave device is not supported temporarily", "Network connection is unstable, please try again later", etc. The embodiment of the present application does not limit the specific content of the prompt message 1101.
[0218] Combine the following Figure 4L The disconnection process between the master device and the slave device is described.
[0219] In some embodiments, when the user drags Figure 4L In the interface shown in (a) of FIG. 1 , when the device identifier of the computer in the collaborative identifier 1003 is away from the vicinity of the device identifier 301 of the main device, the device identifier 301 of the main device cancels the adsorption of the device identifier 602 of the computer, and the position of the device identifier 602 of the computer is related to the position of the drag operation (e.g., Figure 4LWhen the drag operation ends at a position not near the device identifier 301 of the master device, the master device disconnects from the computer and enters Figure 4L In the interface shown in (c), the computer's device identifier 602 is located at the end of the device sequence.
[0220] Exemplarily, when the distance between the device ID 602 of the computer dragged by the user and the device ID 301 of the main device is greater than or equal to the third threshold, the device ID 301 of the main device cancels the adsorption of the device ID 602 of the computer. When the distance between the position at the end of the dragging operation and the device ID 301 of the main device is greater than or equal to the third threshold, the main device disconnects the collaborative connection with the computer.
[0221] In a possible implementation, when the master device is in collaboration, the control center page continues to display the collaboration type card 1004 until the collaboration is disconnected. Figure 4K When the disconnect button 1006 shown in (d) is pressed, the main device is disconnected from the computer and the main device enters Figure 4L The page shown in (c) in FIG. 1 includes the device identification 301 of the master device and the device identification 602 of the computer. The device identification 602 of the computer is located at the end of the slave device sequence.
[0222] Based on the above embodiment, when the user drags the device identifier of the slave device at the bottom to the vicinity of the collaborative identifier 1003, the master device disconnects the collaboration and establishes a collaborative connection with the slave device corresponding to the device identifier of the dragged slave device.
[0223] For example, Figure 4M As shown, taking the establishment of collaboration between the master device and the slave device 2 as an example, when the user drags the device identifier 1201 of the slave device 1 to the vicinity of the collaboration identifier 303, the master device disconnects the collaboration of the slave device 2 and establishes collaboration with the slave device 1. Figure 4M Enter the page shown in (a) Figure 4M The page shown in (b) in .
[0224] Combine the following Figure 4N and Fig.4O Describe the scenarios where task flow and collaboration scenarios conflict.
[0225] In the embodiment of the present application, when the master device is in collaboration, upon receiving the user's operation of entering the control center page, the control center page displays the collaboration type card 1004, and does not display the task identifier 303 (such as Figure 4N When the collaborative connection between the master device and the slave device is disconnected, the control center page displays the task identifier 303, as shown in (b) in FIG. Figure 4NWhen the master device is in collaboration, it receives the user's operation of entering the control center page, and the control center page displays the task identifier 303, such as Figure 4N As shown in (c) in .
[0226] For example, Figure 4N As shown, when the master device is in collaboration, Figure 4N When the interface shown in (a) receives a three-finger upward swipe operation, the main device enters Figure 4N The page shown in (b) in FIG. 1 includes a collaboration type card 1004 but does not include a task identifier 303. When the user clicks the disconnect button 1006, the primary device displays Figure 4N The page shown in (c) in FIG.
[0227] In the embodiment of the present application, when the master device is not in collaboration and a foreground application is running, the control center page displays a task identifier 303 when a user enters the control center page. The user can drag the device identifier of the slave device to the vicinity of the device identifier of the master device to achieve collaborative connection between the master device and the slave device.
[0228] For example, Fig.4O As shown, when the master device is Figure 4N When the interface shown in (a) receives a three-finger upward swipe operation, the main device enters Fig.4O The page shown in (a) in FIG. 1 includes the device identifier 301 of the main device, the task identifier 303 and the device identifier 602 of the computer, but does not include the collaboration type card 1004. When the user drags the device identifier 602 of the computer to the vicinity of the device identifier 301 of the main device, the device identifier 301 of the main device automatically absorbs the device identifier 602 of the computer.
[0229] When the drag operation ends at a position near the device identifier 301 of the master device, the master device establishes a collaborative connection with the computer, and the master device enters Fig.4O The page shown in (c) in .
[0230] In some embodiments, during the dragging process, the master device does not display the task indicator 303 (eg, Fig.4O As shown in (b) in the figure), when the master device determines the coordination mode with the slave device, the currently running business is not considered, but the coordination mode is determined with reference to Table 2 below.
[0231] The above embodiment is described by taking the mobile phone as the main device as an example. The main device may also be a computer, a pad, etc. The service flow mode, interface display, etc. of other devices such as computers and pads as the main device can refer to the above description of the mobile phone as an example, and will not be repeated here.
[0232] The following describes the software modules of the main device involved in the business flow method provided in the embodiment of the present application and the interactions between the modules.
[0233] The present application embodiment provides a business flow method, such as Figure 5A As shown, including:
[0234] 501. The desktop application receives a first operation.
[0235] When the electronic device displays the first interface of the first application, the desktop application receives the first operation. The first application may be a video application, a document editing application, or other types of applications, which are not limited in the present embodiment. Figure 3B As shown in (a) in .
[0236] The first operation is used to start the flow center application to enter the control center interface. The first operation can be a quick gesture operation, a voice operation, or other types of operations, which are not limited in the embodiments of the present application. The quick gesture operation can be any of the following operations: a three-finger swipe up operation, a double-click operation, a three-finger swipe down operation, and a triple-click operation. This application takes the quick gesture operation of a three-finger swipe up operation as an example for explanation.
[0237] 502. The desktop application sends application information to the UI module.
[0238] The application information may include a task serial number (Task ID) of the first application.
[0239] 503a. The UI module starts the circulation center application and sets the identification bit of the circulation center application.
[0240] The identification bit of the circulation center application indicates that the circulation center application has been started.
[0241] 503b. The UI module requests the service status management module for device information and service status of the online device.
[0242] 504a. The service status management module requests the device management module for device information and service status of online devices.
[0243] The service status management module may perform initialization loading and request the device information and service status of the online device from the device management module.
[0244] The business status management module can register business status monitoring with the device management module to obtain the business status of the online device (for example, whether the online device is performing continuation (application continuation), same-source screen projection, heterogeneous screen projection and other flow services).
[0245] 504b. The device management module obtains device information and service status of the online device.
[0246] The device management module can call the capabilities of the device data synchronization module to obtain the device information and service status of online devices.
[0247] Among them, the device information of the online device includes the type and name of the online device. The type of the online device may include a tablet computer, a large-screen device (TV), a PC, a mobile phone, etc. The name of the online device may be, for example, Honor TV, Honor Pad, Honor Magic Book, etc. The name of the online device may also be a user-defined name, for example: Xiao Li's Honor tablet, Honor smart screen in the living room, etc.
[0248] The business status of the online device includes whether the online device is performing business flow (for example, whether the online device is connecting with the main device, same-source screen projection, different-source screen projection, etc.).
[0249] 504c. The device management module returns the device information and service status of the online device to the service status management module.
[0250] It should be noted that steps 504a-504c may be executed periodically, or may be executed in response to a first operation of the user.
[0251] 505a. The service status management module returns the device information and service status of the online device to the UI module.
[0252] 505b. The UI module queries the business status management module whether there is a control center scheduling service.
[0253] Among them, the control center scheduling service refers to the flow business (for example, continuation, same-source screen projection, different-source screen projection, etc.) scheduled by the flow center application. The existence of the control center scheduling service means that the flow business between the master device and the slave device (for example, the first slave device) is in progress (that is, before receiving the user's first operation, the master device has established a collaborative connection or business flow with the slave device). The absence of the control center scheduling service means that no collaborative connection or business flow is established between the master device and the slave device.
[0254] 505c. The business status management module notifies the UI module that the control center scheduling service does not exist.
[0255] 506. The UI module caches application information and draws application icons.
[0256] The UI module caches application information of the first application, and draws an application icon of the first application according to the application information of the first application.
[0257] In the embodiment of the present application, the application icon refers to an identifier for identifying an application program, and the application icon may also be referred to as an application identification card. Different applications may correspond to different application icons (ie, application identification cards).
[0258] 507. The UI module constructs the UI interface of the flow center application according to the device information and business status of the online device.
[0259] The UI interface of the flow center application can be a control center interface. Before displaying the control center interface, the UI module can determine the elements to be displayed in the control center interface based on the acquired device information and service status of the online device. For example, the shape of the device icon in the control center interface can be determined based on the type of the online device.
[0260] It is understandable that, in step 507, the UI module is only preparing data for displaying the control center interface and has not yet started to display the corresponding interface.
[0261] 508. If the first operation does not meet the preset condition, the desktop application sends an application exit request to the UI module.
[0262] Taking the first operation as a three-finger swipe up operation as an example, if the desktop application determines that the distance corresponding to the three-finger swipe up operation does not exceed the first threshold, the desktop application sends an application exit request to the UI module. The application exit request may include the task ID of the first application.
[0263] 509. The UI module exits the circulation center application.
[0264] 510a: If the first operation meets a preset condition, the desktop application plays a dynamic special effect.
[0265] Taking the first operation as a three-finger swipe up operation as an example, if the desktop application determines that the distance corresponding to the three-finger swipe up operation exceeds the first threshold, the desktop application plays a dynamic special effect (the entry special effect of the flow center application).
[0266] For example, the dynamic special effect may be a zooming dynamic effect, for example, the interface receiving the three-finger swipe up operation is zoomed in a certain proportion (such as Figure 3B It may also be any other type of animation, which is not limited in this embodiment of the present application.
[0267] 510b. The UI module displays the control center interface.
[0268] For example, the control center interface can be as follows Figure 3AAs shown, the control center interface can display application icons 303 and slave device identifiers 302. Moreover, each slave device identifier 302 is not a connection identifier, indicating that there is no control center scheduling service, that is, the master device has not established a connection with any slave device and performed service flow.
[0269] In addition, after step 505b, if the service status management module notifies the UI module that there is a control center scheduling service. Figure 4M As shown in (a) of FIG. 1 , the control center page includes a collaborative logo 1003, indicating that there is a control center scheduling service. At this time, the application icon (the logo card of application A (the first application)) may not be displayed. Or, as Figure 4G As shown, if device 02 and the main device are already performing collaborative services, the device identifier corresponding to device 02 may be a connection identifier, indicating that there is a control center scheduling service.
[0270] 511. The desktop application sends a hand-following event to the UI module.
[0271] Taking the first operation as a three-finger swipe up operation as an example, if the first operation is not interrupted, that is, the user's fingers do not leave the touch screen, the desktop application can continue to send hand tracking events to the UI module. The hand tracking events include the position coordinates of the user's fingers on the touch screen.
[0272] 512. The UI module draws the application icon according to the hand-following event.
[0273] The UI module displays the application icon in real time according to the dragging of the application icon by the user's finger. The position of the application icon changes with the change of the position of the user's finger.
[0274] In one possible case (case 1), the user may interrupt the first operation. Taking the first operation as a three-finger upward swipe operation as an example, if the first operation is interrupted, that is, the user's fingers leave the touch screen, steps 513-517 may be executed.
[0275] 513. In response to the user interrupting the operation on the touch screen, the desktop application sends a hand raising event to the UI module.
[0276] That is, in response to the termination of the first operation (for example, the user raises his hand, that is, it is detected that the user's finger leaves the touch screen), the desktop application can send a hand-raising event to the UI module.
[0277] At the same time, the desktop application stops delivering hand tracking events.
[0278] 514. The UI module refreshes the application icon to the vicinity of the main device.
[0279] After the UI module receives the hand-raising event, the UI module may refresh the display position of the application icon to around (near) the position of the logo of the main device.
[0280] 515. The desktop application receives a second operation, where the second operation is used to move a display position of the application icon.
[0281] After the user interrupts the first operation, the display position of the application icon can be moved by the second operation. The second operation can be a sliding operation or a dragging operation. For example, it can be a single-finger sliding operation, a two-finger sliding operation, or a three-finger sliding operation, etc., which is not limited in this application.
[0282] 516. The desktop application sends a hand-following event to the UI module.
[0283] In response to the user's operation of sliding / dragging the application icon, the desktop application can continuously send hand-following events to the UI module, wherein the hand-following events include the position coordinates of the user's finger on the touch screen.
[0284] 517. The UI module draws an application icon according to the hand-following event, and triggers a service flow when it is determined that the application icon is close to a device icon of a slave device (a first slave device, such as a computer).
[0285] For example, Figure 4A As shown, the user can drag the A application icon 601 toward the computer's device identifier 602 by dragging. When the user drags the A application icon 601 to the vicinity of the computer's device identifier 602, the computer's device identifier 602 automatically absorbs the A application icon 601 (as shown in FIG. Figure 4A When the drag operation ends at a position near the device identifier 602 of the computer, the master device initiates a service flow to the computer, and the master device enters Figure 4A In the interface shown in (d) in FIG. 6 , the identifier in the device identifier 602 of the computer is changed to a connection identifier, so as to give the user a visual feedback of the status of the ongoing business flow.
[0286] Below through Figure 5B The data interaction of hand-following operation is described. Figure 5BAs shown, after the desktop application (Launcher) starts the main interface (first interface) of the first application, the desktop application can receive the user's first operation (for example, a three-finger swipe up operation), and the desktop application continues to transmit the coordinates of the hand-following event (move event) to the UI module through a process callback (callback). The UI module displays the application icon according to the coordinates of the move event, that is, the position of the application icon changes with the position of the user's finger. Then, in response to the termination of the first operation (for example, the user raises his hand), the desktop application can send a hand-raising event (up event) to the UI module. The UI module displays the application icon according to the coordinates of the hand-raising event. If the distance between the application icon and the device identifier exceeds the second threshold when the user raises his hand, the application icon is refreshed to the vicinity of the main device. If the distance between the application icon and the device identifier is less than the second threshold when the user raises his hand, the device identifier is changed to a connection identifier.
[0287] In another possible case (case 2), the user does not interrupt the first operation. Taking the first operation as a three-finger swipe up operation as an example, if the first operation is not interrupted, that is, the user's fingers have not left the touch screen, steps 518-519 can be executed.
[0288] 518. If the user drags the application icon to the device node with three fingers and then raises his hand (detects that the user's fingers leave the touch screen), in response to the user's hand-raising operation, the desktop application sends a hand-raising event to the UI module and ends the transmission of the hand-following event.
[0289] 519. When the UI module determines that the application icon is close to the device icon, the business flow is triggered.
[0290] Before step 517 or step 519, that is, after triggering the service flow, the method provided by the present application may further include the following steps:
[0291] 520. The UI module sends a card fusion instruction to the business scheduling management module.
[0292] The card fusion instruction includes at least one of a service type, a device ID, and application information.
[0293] The service type may be service transfer, and the device ID refers to an identifier of a slave device corresponding to a device icon to which the application icon is close. The application information includes a package name of the first application.
[0294] 521. The service scheduling management module sends a service connection instruction to the collaborative service application. The service connection instruction is used to instruct to connect the current service (eg, video playback service) of the first application.
[0295] The service connection instruction includes service type (service flow), device ID, application information, etc.
[0296] 522. The collaborative business application determines whether the connection is currently supported.
[0297] The collaborative service application (connection service) of the master device determines whether the first application installed on the master device is in a valid connection state, and can determine whether the slave device supports the connection. The collaborative service application of the master device can send a broadcast message through the communication module and can receive a response from the slave device. According to the response from the slave device, it can be determined whether the slave device supports the connection. The specific process can be referred to steps 6005-6100 below, which will not be repeated here.
[0298] It should be noted that when the slave device is any one of a mobile phone, a PC, and a tablet, the slave device is installed with a corresponding application (for example, the first application), and the applications installed on the master device and the slave device support continuation, the business flow mode between the master device and the slave device is continuation. When the slave device is a large-screen device, regardless of whether the slave device is installed with an application (the first application), the business flow mode between the master device and the slave device is same-source screen projection. When the slave device is any one of a mobile phone, a PC, and a tablet, and the slave device is not installed with a corresponding application, the business flow mode between the master device and the slave device is heterogeneous screen projection; when the slave device is any one of a mobile phone, a PC, and a tablet, the slave device is installed with a corresponding application, and the application installed on any of the master and slave devices does not support continuation, the business flow mode between the master device and the slave device is heterogeneous screen projection. In this way, when performing business flow, different business flow modes are adapted for different devices and applications, and intelligent business flow can be realized without the need for manual definition and selection by the user. The needs for business flow between multiple electronic devices can be met as much as possible without the user's perception, which can improve the user experience.
[0299] Exemplarily, the service flow mode between the master device and the slave device can refer to the following Table 1, which will not be repeated here.
[0300] Table 1 Business flow mode
[0301]
[0302] The collaborative business application may determine whether the connection is currently supported, including two situations: situation one and situation two.
[0303] Case 1, such as Figure 5C As shown, the collaborative business application determines that the connection is supported and steps 523-554 may be executed.
[0304] 523. The collaborative business application notifies the business scheduling management module of the current support connection.
[0305] 524. The service scheduling management module queries the service status management module for the current service connection status.
[0306] The current service connection status is used to indicate whether the main device is currently conducting other service flows that conflict with the subsequent service (for example, other screen projection is in progress), or is performing device collaboration, or is occupied by other channels.
[0307] Exemplarily, the collaboration types supported between the master device and the slave device may be as shown in Table 2.
[0308] Table 2 Collaboration between master and slave devices
[0309]
[0310] 525. The business scheduling management module queries the conflict rules.
[0311] The conflict rules can be stored in the form of a table (i.e., a conflict rule table). The conflict rule table (also called a service scheduling rule table) is used to indicate how to handle conflicts between existing services (other ongoing services, such as screen projection) and initiatable services (current services, such as follow-up services).
[0312] Illustratively, the conflict rule table may be as shown in Table 3.
[0313] Table 3 Conflict rules table
[0314] Existing business / business that can be initiated Same source screen projection Different source screen projection Continue Same source screen projection seize seize seize Different source screen projection seize seize seize Continue Conflict Bounce Conflict Bounce Conflict Bounce
[0315] It can be seen from Table 3 that when the existing service is same-source screen projection or different-source screen projection, the current service (i.e. the service initiated) is same-source screen projection, different-source screen projection or continuation, and the existing service can be preempted. When the existing service is continuation, the current service is same-source screen projection, different-source screen projection or continuation, and the existing service cannot be preempted, and can only be bounced back due to conflict. Among them, preemption (conflict preemption) means disconnecting the existing service and initiating the current service. Conflict pop-up means keeping the existing service and stopping initiating the current service (current service fails).
[0316] Optionally, the existing services or initiable services in the conflict rule table may include more services, such as screen extension, screen mirroring, keyboard and mouse sharing, etc., which are not limited in this application.
[0317] 526. The service scheduling management module determines whether the connection can be made according to the conflict rule table.
[0318] If it is determined that a conflict bounce is required according to the conflict rule table, scheduling method 1 can be executed; if preemption is required according to the conflict rule table, scheduling method 3 can be executed. If the current service connection status indicates that the main device is not currently performing other service flows (for example, screen projection), no device collaboration is being performed, and no other channels are occupied, scheduling method 2 can be executed.
[0319] Scheduling mode 1: the service scheduling management module determines that the connection cannot be continued (conflict bounce is required), and steps 527-529 can be executed.
[0320] 527. The business scheduling management module determines that the connection cannot be continued.
[0321] 528. The business scheduling management module returns a connection failure to the UI module.
[0322] 529. The UI module pops up the application icon of the first application on the control center interface.
[0323] For example, Figure 4H As shown in (d) in FIG. 8 , the application icon 601 of application A (an example of the first application) may be bounced back to the vicinity of the device logo of the main device. Figure 4H The control center interface shown in (d) may also include: a prompt message 901. The prompt message 901 is used to prompt the user that the service flow fails.
[0324] Scheduling mode 2: the service scheduling management module determines that the connection can be established directly (i.e., the connection can be continued), and executes steps 530-539.
[0325] 530. The business scheduling management module determines that the connection can be established directly.
[0326] 531. The business scheduling management module sends a connection scheduling request to the collaborative business application.
[0327] The connection scheduling request includes the device ID of the slave device (device to be connected) and the package name of the first application.
[0328] 532. Collaborative business application initiates the follow-up process.
[0329] The collaborative service application may send connection data to the slave device through the communication module, and the connection data is used to indicate the processing progress of the first application.
[0330] Exemplarily, in a video playback scenario (the first application is a video playback application), the connection data may include information such as video playback progress data.
[0331] It is understandable that in different application scenarios, the connection data may include other content, which is not limited in the embodiments of the present application.
[0332] 533. Collaborate with business applications to refresh status.
[0333] That is, the collaborative service application refreshes the connection status, and the connection status is used to indicate whether the connection service is initiated successfully (that is, whether the current service of the first application is connected successfully).
[0334] If the connection status indicates that the connection is successful, steps 534 to 536 may be executed. If the connection status indicates that the connection fails, steps 537 to 539 may be executed.
[0335] 534. The business status management module determines that the connection is successful.
[0336] 535. The business status management module notifies the UI module of the successful connection.
[0337] 536. The UI module plays the animation successfully and exits the first application.
[0338] A successful special effect can be a rotation effect. For example, Figure 4E As shown in (d) in the diagram, the device identifier 605 of the large screen device is changed into a connection identifier, and the connection identifier can rotate around a preset center point. The success special effect can also be any other type of dynamic effect, which is not limited in the embodiment of the present application.
[0339] 537. The business status management module determines that the connection fails.
[0340] 538. The business status management module notifies the UI module of the connection failure.
[0341] 539. The UI module pops up the application icon of the first application on the control center interface.
[0342] Scheduling mode 3: the service scheduling management module determines that service preemption is required, and steps 540-554 may be executed.
[0343] 540. The service scheduling management module sends a service disconnection request to the collaborative service application.
[0344] The service disconnection request is used to disconnect the existing service (i.e., other services that conflict with the continuing service, such as the screen projection service of other devices or applications).
[0345] 541. Collaborate with business applications to refresh business status.
[0346] After receiving the service disconnection request, the collaborative service application disconnects the existing service and refreshes the service status.
[0347] Collaborative business applications can write business status to the device data synchronization module.
[0348] If the service status is service disconnection failure, steps 542-544 may be executed.
[0349] 542. The service scheduling management module determines that the service disconnection fails.
[0350] The service scheduling management module can read the service status from the device data synchronization module. The service status is service disconnection failure.
[0351] 543. The service scheduling management module notifies the UI module of the service disconnection failure.
[0352] 544. The UI module pops up the application icon of the first application on the control center interface.
[0353] If the service status is that the service is disconnected successfully, steps 545-548 may be executed.
[0354] 545. The business scheduling management module determines that the business is disconnected successfully.
[0355] The service scheduling management module can read the service status from the device data synchronization module. The service status is that the service is disconnected successfully.
[0356] 546. The business scheduling management module sends a connection scheduling request to the collaborative business application.
[0357] The connection scheduling request includes the device ID of the slave device and the package name of the first application.
[0358] 547. Collaborative business application initiates the follow-up process.
[0359] 548. Collaborate with business applications to refresh status.
[0360] 549. The business status management module determines that the connection is successful.
[0361] 550. The service status management module notifies the UI module of the successful connection.
[0362] 551. The UI module plays the animation successfully and exits the first application.
[0363] 552. The service status management module determines that the connection fails.
[0364] 553. The business status management module notifies the UI module of the connection failure.
[0365] 554. The UI module pops up the application icon of the first application on the control center interface.
[0366] Steps 547-554 may refer to steps 532-539 and are not elaborated here.
[0367] Case 2: Figure 5D As shown, the collaborative business application determines that the connection is not supported and can execute steps 555-576.
[0368] 555. The collaborative business application notifies the business scheduling management module that the connection is not currently supported.
[0369] 556a. The service scheduling management module queries the service status management module for the current service connection status.
[0370] 556b. The service scheduling management module queries the Profile of the slave device to determine the capability of the slave device.
[0371] The business scheduling management module queries the Profile of the online device (slave device) through the device data synchronization module to determine the capabilities of the slave device. The capabilities of the slave device include whether the slave device supports heterogeneous screen projection and homogeneous screen projection.
[0372] 557. The business scheduling management module queries the conflict rule table.
[0373] The service scheduling management module can determine the services that can be initiated based on the capabilities of the slave device. If the slave device supports heterogeneous screen projection, the services that can be initiated include heterogeneous screen projection. If the slave device supports homogeneous screen projection, the services that can be initiated include homogeneous screen projection.
[0374] The service scheduling management module queries the conflict rule table based on the services that can be initiated and the current service connection status (i.e., whether there is an existing service in progress). If it is determined according to the conflict rule table that a conflict bounce is required (for example, the service that can be initiated is a heterogeneous screen projection, and the existing service is a continuation service), scheduling method 1) can be executed; if preemption is required according to the conflict rule table, scheduling method 3 can be executed. If there is no existing service in progress, scheduling method 2) can be executed.
[0375] Scheduling method 1), the service scheduling management module determines that the connection cannot be made, and steps 558-560 can be executed.
[0376] 558. The business scheduling management module determines that the connection cannot be made.
[0377] That is, the service scheduling management module determines that the master device cannot connect to the slave device.
[0378] 559. The business scheduling management module notifies the UI module that the connection cannot be made.
[0379] 560. The UI module pops up the application icon of the first application on the control center interface.
[0380] Scheduling method 2), the service scheduling management module determines that a direct connection is possible, and steps 561-576 can be executed.
[0381] 561. The business scheduling management module determines that a direct connection can be made.
[0382] That is, the service scheduling management module determines that the master device can be directly connected to the slave device.
[0383] When the service scheduling management module determines that a direct connection can be made, if the slave device is a large-screen device (TV), steps 562-567 can be executed.
[0384] 562. The business scheduling management module sends a same-source screen projection request to the collaborative business application.
[0385] Among them, the same-source screen projection request includes the device ID of the slave device.
[0386] 563a. Collaborative business applications initiate same-source screen projection.
[0387] The collaborative service application can send the same-source screen projection data to the slave device through the communication module. The same-source screen projection data may include the encoded data of the first application.
[0388] Exemplarily, in a video playback scenario, the same-source projection data may include a video code, wherein the video code may enable the slave device to obtain a video corresponding to the video code from a database of the video playback application.
[0389] 563b. Collaborate with business applications to refresh status.
[0390] That is, the collaborative business application refreshes the screen projection status, and the screen projection status is used to indicate whether the screen projection is successful (that is, whether the current business of the first application is successfully projected).
[0391] 564. The business scheduling management module determines that the screen projection is successful and notifies the UI module of the success of the screen projection.
[0392] 565. The UI module plays the animation successfully and exits the first application.
[0393] 566. The business scheduling management module determines that the screen projection fails and notifies the UI module of the screen projection failure.
[0394] 567. The UI module pops up the application icon of the first application on the control center interface.
[0395] It can be understood that step 564-step 565 and step 566-step 567 are executed alternatively.
[0396] When the service scheduling management module determines that a direct connection can be made, if the slave device is not a large-screen device, steps 568-576 can be executed.
[0397] 568. The business scheduling management module sends a heterogeneous screen projection request to the collaborative business application.
[0398] Among them, the heterogeneous screen projection request includes the device ID of the slave device and the package name of the first application.
[0399] 569. Collaborative business applications determine whether the screen projection application has been started.
[0400] The collaborative business application can determine whether the screen projection application of the master device and the slave device are both started.
[0401] 570. If the screen projection application has been started, the collaborative business application initiates heterogeneous screen projection.
[0402] 571. If the screen projection application is not started, the collaborative business application starts the screen projection application and initiates heterogeneous screen projection.
[0403] 572. Collaborate with business applications to refresh status.
[0404] That is, the collaborative business application refreshes the screen projection status, and the screen projection status is used to indicate whether the screen projection is successful (that is, whether the current business of the first application is successfully projected).
[0405] If the screen projection status indicates that the screen projection is successful, you can execute steps 573-574.
[0406] 573. The business scheduling management module determines that the screen projection is successful and notifies the UI module of the success of the screen projection.
[0407] 574. The UI module plays the animation successfully and exits the first application.
[0408] If the screen projection status indicates that the screen projection is successful, steps 575-576 can be executed.
[0409] 575. The business scheduling management module determines that the screen projection fails and notifies the UI module of the screen projection failure.
[0410] 576. The UI module pops up the application icon of the first application on the control center interface.
[0411] It can be understood that step 573-step 574 and step 575-step 576 can be executed alternatively.
[0412] Scheduling method 3), the service scheduling management module determines that there is a conflict preemption.
[0413] The service scheduling management module sends a service disconnection request to the collaborative service application to disconnect the existing service. Then, the same-source screen projection or heterogeneous-source screen projection can be initiated. The specific process can refer to steps 562-567 or steps 568-576, which will not be repeated here.
[0414] It should be noted that there is no necessary execution order between step 501 to step 576, and this embodiment does not specifically limit the execution order between the steps.
[0415] Based on the method provided in the embodiment of the present application, business flow can be carried out between multiple electronic devices. For example, the business of the main device can be connected or the screen can be projected (same-source screen projection or different-source screen projection) to the slave device, which can improve the user experience.
[0416] Figure 5A-5DThe business flow method provided in the present application is described by the interaction between modules of the main device. The business flow method provided in the present application is described below with the main device as the execution subject.
[0417] like Figure 6 As shown, the embodiment of the present application provides a flow chart of a business flow method, including:
[0418] 6001. In response to the user's first operation (eg, a three-finger swipe up operation), the main device starts a flow center application.
[0419] The specific process can be referred to steps 501-503a, which will not be described in detail here.
[0420] 6002. The master device reads the business status of the local device and the slave device, and displays the control center interface according to the business status of the local device and the slave device.
[0421] The specific process can be referred to steps 503b-507, which will not be described in detail here.
[0422] 6003. In response to the user's operation, the application icon is merged with the device icon of the slave device, triggering business flow.
[0423] For details, please refer to steps 510a-517 or steps 518-519, which will not be elaborated here.
[0424] 6004. The service scheduling management module of the main device sends a service connection instruction to the collaborative service application.
[0425] The service connection instruction includes service type (service flow), device ID, application information, etc.
[0426] 6005. The collaborative business application calls the continuation service to determine whether the continuation is currently supported.
[0427] The specific process may include steps 6006-6100.
[0428] 6006. The collaborative business application receives the startup broadcast sent by the flow center application.
[0429] The circulation center application can start (pull up) the collaborative business application by sending a start broadcast through the UI module. The collaborative business application starts after receiving the start broadcast sent by the circulation center application.
[0430] 6007. Collaborative business applications check the current application connection status.
[0431] That is, the collaborative business application determines whether the first application is in use. If the first application is in use, step 6008 may be executed.
[0432] 6008. Collaborative business applications determine whether the application connection status is valid.
[0433] That is, the collaborative business application checks whether the first application is currently in a connectable state. For example, taking the first application as a video playback application, if the first application is currently in a video playback state, the first application is considered to be in a connectable state (that is, the application connection state is valid). For another example, taking the first application as a text editing application, if the first application is currently in an editing state, the first application is considered to be in a connectable state (that is, the application connection state is valid).
[0434] If it is determined that the connection status is valid, step 6009 may be executed. If it is determined that the connection status is invalid, the service transfer process is terminated.
[0435] 6009. The collaborative business application sends a broadcast message (green ring broadcast) through the communication module.
[0436] The green ring broadcast (also called continuous broadcast) is a near-field broadcast request, that is, broadcast information sent to online devices within the surrounding near-field range. The green ring broadcast may carry information such as the package name and version requirements of the first application.
[0437] After the slave device (for example, device N) receives the green ring broadcast, it can make a connection condition judgment. The connection condition judgment includes: if the device type of the slave device (for example, device N) is a large-screen device (TV), it is determined that the slave device (for example, device N) does not support the connection. If the slave device (for example, device N) is not a large-screen device, the slave device (for example, device N) determines whether it has installed the first application based on the package name of the first application carried in the green ring broadcast. If it is determined that the first application is installed, it can be determined whether the first application installed by itself meets the corresponding version requirements based on the version requirement information carried in the green ring broadcast. If it is determined that the first application installed by itself meets the corresponding version requirements, the application signature of the first application can be authenticated. For example, device N can download the signature of the first application from the cloud server according to the package name of the first application, and compare the downloaded signature with the local signature. If they are the same, it is considered that the authentication is passed.
[0438] Optionally, if the slave device determines that it has installed the first application, it may also be determined whether the first application has registered for the connection service.
[0439] 6100. The collaborative business application receives a response message sent from the device through the communication module.
[0440] If the slave device determines that it has installed the first application, the first application has registered for the continuation service, the first application meets the corresponding version requirements, and the signature authentication of the first application is passed, it is considered that it meets the continuation conditions (that is, it can continue the first application with the master device), and can send an affirmative response message to the master device. The affirmative response message is used to indicate that the slave device meets the continuation conditions (that is, it supports continuation). The affirmative response message can carry its own device type, device identification and other information.
[0441] If the slave device determines that it does not meet the connection conditions, it can send a negative response message to the master device. The negative response message is used to indicate that the slave device meets the connection conditions (i.e., supports connection). Alternatively, the slave device does not send a negative response message to the master device, and the master device determines that it has not received a positive response message sent by the slave device, and believes that the slave device does not meet the connection conditions and cannot connect with the master device.
[0442] In the embodiment of the present application, steps 6006-6100 may be executed after step 6001, or may be executed after steps 6002-6005. That is, steps 6006-6100 and steps 6002-6005 may be executed simultaneously, or steps 6006-6100 may be executed after steps 6002-6005. If steps 6006-6100 and steps 6002-6005 are executed simultaneously, the processing speed may be increased (the processing speed of the collaborative business application determining whether the connection is currently supported may be increased), and the processing time may be saved.
[0443] 6101. The collaborative business application notifies the business scheduling management module whether the connection is currently supported.
[0444] 6102. The business scheduling management module determines whether the continuation is supported.
[0445] If it is determined that the connection is supported, steps 6103 and 6104 may be executed.
[0446] 6103. The master device performs conflict determination and preemption.
[0447] Please refer to steps 524-554.
[0448] 6104. The master device initiates a connection process to the slave device.
[0449] The specific process can be referred to step 532 and will not be described in detail here.
[0450] If it is determined that the connection is not supported, step 6105 can be executed.
[0451] 6105. The business scheduling management module determines whether screen projection is supported.
[0452] If it is determined that screen projection is supported, step 6106 can be executed. If it is determined that screen projection is not supported, the process can be ended and the user is prompted that the service flow has failed.
[0453] 6106. The business scheduling management module determines whether heterogeneous screen projection is supported.
[0454] For the specific process, please refer to steps 556a and 556b.
[0455] If it is determined that heterogeneous screen projection is supported, steps 6107 and 6108 may be performed. If it is determined that heterogeneous screen projection is not supported, steps 6109 and 6110 may be performed.
[0456] 6107. The master device performs conflict determination and preemption.
[0457] The specific process can be referred to step 557 and will not be described in detail here.
[0458] 6108. An electronic device initiates screen projection from a different source.
[0459] The specific process can be referred to steps 568-576, which will not be elaborated here.
[0460] 6109. The master device performs conflict determination and preemption.
[0461] The specific process can be referred to step 557 and will not be described in detail here.
[0462] 6110. An electronic device initiates same-source screen projection.
[0463] The specific process can be referred to steps 562-563, which will not be elaborated here.
[0464] Based on the method provided in the embodiment of the present application, business flow can be carried out between multiple electronic devices. For example, the business of the main device can be connected or the screen can be projected (same-source screen projection or different-source screen projection) to the slave device, which can improve the user experience.
[0465] Some embodiments of the present application provide an electronic device, which may include: a touch screen, a memory, and one or more processors. The touch screen, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can perform the various functions or steps performed by the main device in the above method embodiment. The structure of the electronic device can refer to Figure 1 The structure of the electronic device 100 is shown.
[0466] The present application also provides a chip system (eg, a system on a chip (SoC)), such as Figure 7As shown, the chip system includes at least one processor 701 and at least one interface circuit 702. The processor 701 and the interface circuit 702 can be interconnected via lines. For example, the interface circuit 702 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 702 can be used to send signals to other devices (such as a processor 701 or a touch screen of an electronic device). Exemplarily, the interface circuit 702 can read instructions stored in the memory and send the instructions to the processor 701. When the instructions are executed by the processor 701, the electronic device can execute the various steps performed by the main device in the above embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0467] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the main device in the above-mentioned method embodiment.
[0468] An embodiment of the present application also provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes each function or step executed by the main device in the above method embodiment.
[0469] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0470] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0471] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0472] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0473] 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 readable storage medium. Based on this understanding, the technical solution of the embodiment 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, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0474] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A business flow method, characterized in that: include: The main device displays a first interface of a first application; receiving a first operation of a user, and in response to the first operation satisfying a preset condition, the master device displays a second interface, where the second interface includes an application icon of the first application and a device icon of the first slave device; When the master device determines that the application icon of the first application is close to the device icon of the first slave device, a service flow is triggered, and the service flow includes: The master device determines whether the first slave device supports application continuation; If it is determined that the first slave device supports application continuation, the master device initiates a continuation process to the first slave device and sends continuation data to the first slave device, where the continuation data is used to indicate the processing progress of the first application; The master device exits the first application.
2. The method according to claim 1, characterized in that: The process of the master device initiating a connection to the first slave device includes: The master device queries the current service connection status; If the current service connection state indicates that the master device is not currently performing other services that conflict with the application connection, the master device initiates a connection process to the first slave device; or If the current service connection status indicates that the master device is currently performing other services that conflict with the application connection, the master device queries the conflict rules. If the conflict rules indicate to preempt the other services, the master device disconnects the other services and initiates a connection process to the first slave device.
3. The method according to claim 1, characterized in that The method further comprises: If it is determined that the first slave device does not support application continuation, the master device queries the capability of the first slave device, where the capability of the first slave device is used to indicate whether the first slave device supports heterogeneous screen projection or homogeneous screen projection; If the first slave device supports same-source screen projection, the master device initiates a same-source screen projection process and sends the projection data to the first slave device; If the first slave device supports heterogeneous screen projection, the master device initiates a heterogeneous screen projection process and sends the projection data to the first slave device.
4. The method according to claim 3, characterized in that Before the master device initiates a same-source screen projection process or a different-source screen projection process, the method further includes: The master device queries the current service connection status; If the current service connection status indicates that the master device is not currently performing other services that conflict with the same-source screen projection process or the different-source screen projection process; or If the current service connection status indicates that the master device is currently performing other services that conflict with the same-source screen projection process or the different-source screen projection process, the master device queries the conflict rules. If the conflict rules indicate to preempt the other services, the master device disconnects the other services, and the master device initiates the same-source screen projection process or the different-source screen projection process to the first slave device.
5. The method according to claim 1 or 2, characterized in that: The master device includes a UI module, a service scheduling management module, a collaborative service application, and a communication module. The master device determines whether the first slave device supports application continuation including: The UI module sends a card fusion instruction to the service scheduling management module, where the card fusion instruction includes at least one of a service type, a device ID of the first slave device, and application information of the first application; The service scheduling management module sends an application connection instruction to the collaborative service application, where the application connection instruction is used to instruct to connect the first application, and the application connection instruction includes at least one of the service type, the device ID of the first slave device, and the application information of the first application; The collaborative service application determines whether the first application installed on the main device is in a valid connection state; If the first application is in a valid connection state, the collaborative service application determines whether the first slave device supports application connection; The collaborative service application sends a broadcast message through the communication module, wherein the broadcast message includes at least one of the package name and version requirement information of the first application; The first slave device receives the broadcast message, and the first slave device determines a connection condition; The first slave device performing connection condition judgment includes: Determine whether the first slave device has installed the first application; if the first slave device has installed the first application, determine whether the first application complies with the version requirement information and whether the signature of the first application has been authenticated; If the first slave device installs the first application, the first application complies with the version requirement information, and the signature authentication of the first application passes, a response message is sent to the master device, where the response message is used to indicate that the first slave device supports application continuation; The collaborative service application receives the response message through the communication module, and determines, according to the response message, that the first slave device supports application continuation.
6. The method according to claim 5, characterized in that The master device further includes a service status management module, and the master device initiates a connection process to the first slave device including: The collaborative service application notifies the service scheduling management module that the first slave device supports application continuation; The service scheduling management module queries the service status management module for a current service connection status, wherein the current service connection status indicates that the master device is not currently performing other services that conflict with the application connection; The service scheduling management module sends a connection scheduling request to the collaborative service application, where the connection scheduling request includes the device ID of the first slave device and the package name of the first application; The collaborative service application sends connection data to the first slave device through the communication module, and the connection data is used to indicate the processing progress of the first application.
7. The method according to claim 5, characterized in that The master device further includes a service status management module, and the master device initiates a connection process to the first slave device, including: The collaborative service application notifies the service scheduling management module that the first slave device supports application continuation; The service scheduling management module queries the service status management module for a current service connection status, wherein the current service connection status indicates that the master device is currently performing other services that conflict with the application connection; The business scheduling management module queries conflict rules; If the conflict rule is used to indicate conflict preemption, the service scheduling management module sends a service disconnection request to the collaborative service application, and the service disconnection request is used to disconnect the other services; If the service scheduling management module determines that the service is disconnected successfully, a connection scheduling request is sent to the collaborative service application, where the connection scheduling request includes the device ID of the first slave device and the package name of the first application; The collaborative service application sends connection data to the first slave device through the communication module, and the connection data is used to indicate the processing progress of the first application.
8. The method according to claim 6 or 7, characterized in that: The main device further includes a UI module, and the method further includes: The collaborative service application refreshes the connection status; If the connection status indicates that the connection is successful, the service status management module notifies the UI module of the success of the connection; The UI module plays the animation successfully and exits the first application; If the connection status indicates a connection failure, the service status management module notifies the UI module of the connection failure; The UI module refreshes the application icon of the first application to around the position of the main device.
9. The method according to claim 3 or 4, characterized in that: The master device includes a collaborative service application, a service scheduling management module, a service status management module and a communication module. The master device initiates a same-source screen projection process including: The collaborative service application determines that the first slave device does not support application continuation; The collaborative service application notifies the service scheduling management module that the first slave device does not support application continuation; The service scheduling management module queries the service status management module for the current service connection status; If the current service connection status indicates that the master device is not currently performing other services that conflict with the application, the service scheduling management module sends a same-source screen projection request to the collaborative service application, and the same-source screen projection request includes the device ID of the first slave device; The collaborative service application sends same-source screen projection data to the first slave device through the communication module, where the same-source screen projection data includes the encoded data of the first application; If the current service connection status indicates that the master device is currently performing other services that conflict with the application connection, the service scheduling management module queries the configuration file of the first slave device to determine the capability of the first slave device, and the capability of the first slave device indicates that the first slave device supports same-source screen projection; The service scheduling management module queries the conflict rule; If the conflict rule indicates to preempt the other service, the service scheduling management module sends a service disconnection request to the collaborative service application, where the service disconnection request is used to disconnect the other service; If the service scheduling management module determines that the service is disconnected successfully, a same-source screen projection request is sent to the collaborative service application, where the same-source screen projection request includes the device ID of the first slave device; The collaborative service application sends same-source screen projection data to the first slave device through the communication module, and the same-source screen projection data includes the encoded data of the first application.
10. The method according to claim 9, characterized in that The first slave device is a television.
11. The method according to claim 3 or 4, characterized in that: The master device includes a collaborative service application, a service scheduling management module, a service status management module and a communication module. The master device initiates a heterogeneous screen projection process including: The collaborative service application determines that the first slave device does not support application continuation; The collaborative service application notifies the service scheduling management module that the first slave device does not support application continuation; The service scheduling management module queries the service status management module for the current service connection status; If the current service connection status indicates that the master device is not currently performing other services that conflict with the application, the service scheduling management module sends a heterogeneous screen projection request to the collaborative service application, and the heterogeneous screen projection request includes the device ID of the first slave device and the package name of the first application; The collaborative service application sends heterogeneous screen projection data to the first slave device through the communication module, where the heterogeneous screen projection data includes the encoded data of the first application; If the current service connection status indicates that the master device is currently performing other services that conflict with the application connection, the service scheduling management module queries the configuration file of the first slave device to determine the capability of the first slave device, and the capability of the first slave device indicates that the first slave device supports heterogeneous screen projection; The service scheduling management module queries the conflict rule; If the conflict rule indicates to preempt the other service, the service scheduling management module sends a service disconnection request to the collaborative service application, where the service disconnection request is used to disconnect the other service; If the service scheduling management module determines that the service is disconnected successfully, a heterogeneous screen projection request is sent to the collaborative service application, where the heterogeneous screen projection request includes the device ID of the first slave device and the package name of the first application; The collaborative service application sends heterogeneous screen projection data to the first slave device through the communication module, and the heterogeneous screen projection data includes encoded data of the first application.
12. The method according to claim 11, characterized in that The first slave device is any one of a mobile phone, a laptop computer, and a tablet computer.
13. The method according to claim 11, characterized in that Before the collaborative service application sends the heterogeneous screen projection data to the first slave device through the communication module, the method further includes: The collaborative service application determines whether the screen projection application installed on the master device and the screen projection application installed on the first slave device are both started; If the screen projection application installed on the master device and the screen projection application installed on the first slave device are both started, the collaborative service application initiates heterogeneous screen projection; If the screen projection application installed on the master device and / or the screen projection application installed on the first slave device is not started, the collaborative service application starts the screen projection application installed on the master device and / or the screen projection application installed on the first slave device to initiate heterogeneous screen projection.
14. The method according to any one of claims 9 to 13, characterized in that: The main device further includes a UI module, and the method further includes: The collaborative service application refreshes the screen projection status, where the screen projection status is used to indicate whether the screen projection is successful; The service scheduling management module determines that the screen projection is successful, and notifies the UI module of the success of the screen projection; The UI module plays the animation successfully and exits the first application; If the service scheduling management module determines that the screen projection fails, the UI module is notified of the screen projection failure; The UI module refreshes the application icon of the first application to around the position of the main device.
15. The method according to any one of claims 7, 9 or 11, characterized in that: The master device further includes a device data synchronization module, and the method further includes: After receiving the service disconnection request, the collaborative service application disconnects the other services; The collaborative business application writes the business status into the device data synchronization module; The service scheduling management module reads the service status from the device data synchronization module, and the service status is that the service is disconnected successfully.
16. The method according to claim 15, characterized in that The method further comprises: If the service status is service disconnection failure, the service scheduling management module notifies the UI module of the service disconnection failure; The UI module refreshes the application icon of the first application to around the position of the main device.
17. The method according to any one of claims 5 to 16, characterized in that: The main device includes a desktop application, a UI module, a service status management module, and a device management module, and the receiving of a first operation of a user, and in response to the first operation satisfying a preset condition, the main device displays a second interface, comprising: The desktop application receives the first operation, where the first operation includes a three-finger swipe up operation; The desktop application sends application information to the UI module, where the application information includes a task serial number Task ID of the first application; The UI module requests the device information and service status of the online device from the service status management module, the online device includes the first slave device, the device information includes the type and name of the device, the service status is used to indicate whether the online device is performing other services, and the other services include at least one of connection, same-source screen projection, and different-source screen projection; The service status management module requests the device management module for device information and service status of online devices; The device management module obtains device information and service status of online devices; The device management module returns device information and service status of online devices to the service status management module; The service status management module returns the device information and service status of the online device to the UI module; The UI module caches the application information and draws an application icon of the first application; The UI module constructs the second interface according to the device information and service status of the online device; If the first operation meets a preset condition, the desktop application plays a dynamic special effect, and the UI module displays the second interface.
18. The method according to claim 17, characterized in that When the master device determines that the application icon is close to the device icon, triggering the service flow includes: The desktop application sends a hand-following event to the UI module, where the hand-following event includes the position coordinates of the user's finger on the touch screen of the master device; The UI module draws the application icon of the first application according to the hand-following event; If the first operation is interrupted, the desktop application sends a hand-raising event to the UI module, where the hand-raising event is used to indicate that the user's finger leaves the touch screen; The UI module refreshes the application icon of the first application to the vicinity of the position of the main device; The desktop application receives a second operation, where the second operation is used to move a display position of an application icon of the first application; When the UI module determines that the application icon of the first application is close to the device icon of the first slave device, triggering the service flow; If the first operation is not interrupted, in response to the user moving the application icon of the first application close to the device icon of the first slave device based on the first operation, the UI module triggers the service flow.
19. An electronic device, characterized in that: The electronic device comprises: a wireless communication module, a memory and one or more processors; the wireless communication module, the memory and the processor are coupled; The memory is used to store computer program codes, and the computer program codes include computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-18.
20. A computer-readable storage medium, characterized in that: including computer instructions; When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 18.
21. A chip system, characterized in that: The chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected via lines; The chip system is applied to an electronic device including a communication module and a memory; the interface circuit is used to receive a signal from the memory and send the signal to the processor, the signal including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-18.
Citation Information
Cited By
Object operation method and related equipment
CN119414999A
An object operation method and related device
CN119414999B
