Task circulation method and electronic equipment
By performing three-finger up-sliding operation on the desktop of an electronic device, and adding file printing and transmission functions during task circulation, the problem of single task circulation scenarios in the existing technology is solved, and the user experience and usability of task circulation is improved.
Patent Information
- Application Number
- CN202410042486.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, task flow scenarios can only realize application continuation and heterogeneous screen projection, which cannot meet the various needs of users, resulting in insufficient user experience.
By sliding up the three-finger on the desktop of an electronic device, homogeneous screen projection is achieved, and file printing and file transfer functions are added during task circulation, expanding the application scenarios of task circulation and improving the availability of task circulation.
It improves the usability and user experience of task circulation, realizes multi-intention interaction that triggers task circulation on the desktop, and meets various user needs.
Smart Images

Figure CN120335703A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and in particular, to a task transfer method and an electronic device. Background Art
[0002] Currently, electronic devices have been widely popularized, and many users have multiple electronic devices at the same time, such as mobile phones, tablets, etc. The same third-party application programs can be installed on these electronic devices. When a user uses a certain application on one device and wants to switch to another device to continue using the application midway, the application can be used on another device through the task transfer method.
[0003] However, the current task transfer scenario can only achieve application continuation and heterogeneous screen mirroring, with simple functions and unable to meet various needs of users during use. Summary of the Invention
[0004] To solve the above technical problems, this application provides a task transfer method to achieve multi-intent interaction of user task transfer, improve the usability of task transfer, and enhance the user experience.
[0005] In a first aspect, this application provides a task transfer method, which includes: in response to a first operation of a user on the screen of an electronic device, determining whether the display interface of the electronic device is the desktop when the user performs the first operation; when the display interface of the electronic device is the desktop when the user performs the first operation, determining whether the target transfer device supports homologous screen mirroring; the target transfer device is the device selected by the user during the process of performing the first operation for task transfer; when the target transfer device supports homologous screen mirroring, casting the desktop to the target transfer device.
[0006] In the embodiments of this application, the first operation is used to indicate a three-finger upward sliding operation. When the user performs a three-finger upward sliding operation on the desktop, the process of task transfer can also be triggered, achieving multi-intent interaction of user task transfer, improving the usability of task transfer, and enhancing the user experience.
[0007] According to the first aspect, or any one of the above implementation manners of the first aspect, the method further includes: when the display interface of the electronic device is not the desktop when the user performs the first operation, determining whether the current task environment supports printing based on the determined target transfer device; when it is determined that the current task environment supports printing, starting a target application, where the target application is an application with a printing management function. In the embodiments of this application, adding a file printing function in the application transfer scenario realizes multi-intent interaction of user task transfer, improves the usability of task transfer, and enhances the user experience.
[0008] According to the first aspect, or any implementation of the above first aspect, after determining whether the current task environment supports file transfer, the method further includes: when it is determined that the current task environment does not support printing, based on the determined target transfer device, determining whether the current task environment supports file transfer; when the current task environment supports file transfer, displaying task transfer options, where the task transfer options include application transfer options and file transfer options. In the embodiments of the present application, adding a file transfer function in the application transfer scenario realizes multi-intent interaction for the user's task transfer, improves the usability of task transfer, and enhances the user experience.
[0009] According to the first aspect, or any implementation of the above first aspect, after displaying the task transfer options, the method further includes: in response to a second operation by the user on the file transfer option, sending the file to be transferred to the target transfer device.
[0010] In the embodiments of the present application, when the user selects file transfer, entering the file transfer process and sending the file to be transferred to the target transfer device can realize multi-intent interaction for the user's task transfer, improve the usability of task transfer, and enhance the user experience.
[0011] According to the first aspect, or any implementation of the above first aspect, the method further includes: in response to a second operation by the user on the application transfer option, transferring the program interface of the first application to the target transfer device; the first application is the application corresponding to the display interface of the electronic device when the user performs the first operation.
[0012] In the embodiments of the present application, when the user selects application transfer, entering the application transfer process to realize the application transfer of the first application.
[0013] According to the first aspect, or any implementation of the above first aspect, the method further includes: when the current task environment does not support file transfer, transferring the program interface of the first application to the target transfer device; the first application is the application corresponding to the display interface of the electronic device when the user performs the first operation.
[0014] In the embodiments of the present application, when the current task environment does not support file transfer, entering the application transfer process to realize the application transfer of the first application.
[0015] According to the first aspect, or any implementation manner of the above first aspect, based on the determined target transfer device, determining whether the current task environment supports printing includes: determining that the current task environment supports printing when it is determined that a file path can be extracted from the program interface of the first application, the printing service of the electronic device is in an enabled state, the device type of the target transfer device is a printer, the device type corresponding to the printing service of the electronic device includes the device type of the target transfer device, and the device type corresponding to the printing service of the target transfer device includes the device type of the electronic device. In the embodiments of the present application, a printing function is added in task transfer, which can realize multi-intent interaction of user task transfer, improve the usability of task transfer, and enhance the user experience.
[0016] According to the first aspect, or any implementation manner of the above first aspect, based on the determined target transfer device, determining whether the current task environment supports file transfer includes: determining that the current task environment supports file transfer when it is determined that a file path can be extracted from the program interface of the first application, the printing service of the target transfer device is in an enabled state, the device type corresponding to the file transfer service of the electronic device includes the device type of the target transfer device, and the device type corresponding to the file transfer service of the target transfer device includes the device type of the electronic device. In the embodiments of the present application, a file transfer function is added in task transfer, which can realize multi-intent interaction of user task transfer, improve the usability of task transfer, and enhance the user experience.
[0017] According to the first aspect, or any implementation manner of the above first aspect, the above transfer method includes application continuation or heterogeneous screen mirroring.
[0018] In a second aspect, the present application provides an electronic device, which includes: one or more processors; a memory; and a computer program, where the computer program is stored in the memory, and when the computer program is executed by the one or more processors, it causes the electronic device to execute the instructions of the method in the first aspect or any possible implementation manner of the first aspect.
[0019] The second aspect and any implementation manner of the second aspect respectively correspond to the first aspect and any implementation manner of the first aspect. The technical effects corresponding to the second aspect and any implementation manner of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which will not be elaborated here.
[0020] In a third aspect, the present application provides a computer storage medium, including computer instructions, and when the computer instructions run on an electronic device, it causes the electronic device to execute the instructions of the method in the first aspect or any possible implementation manner of the first aspect.
[0021] The third aspect and any implementation manner of the third aspect respectively correspond to the first aspect and any implementation manner of the first aspect. For the technical effects corresponding to the third aspect and any implementation manner of the third aspect, reference may be made to the technical effects corresponding to the first aspect and any implementation manner of the first aspect above, which will not be elaborated herein. Description of the Drawings
[0022] Figure 1 Schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0023] Figure 2 Schematic software structure block diagram of an electronic device provided by an embodiment of the present application;
[0024] Figure 3 Schematic diagram of changes in the electronic device interface during the task flow provided by an embodiment of the present application;
[0025] Figure 4 Schematic diagram of the task flow architecture on the Android side provided by an embodiment of the present application;
[0026] Figure 5 Schematic diagram of the task flow architecture on the computer side provided by an embodiment of the present application;
[0027] Figure 6 Schematic flow chart of a task flow method provided by an embodiment of the present application Figure 1 ;
[0028] Figure 7 Schematic flow chart of a task flow method provided by an embodiment of the present application Figure 2 ;
[0029] Figure 8 Schematic diagram showing task flow options provided by an embodiment of the present application. Detailed Embodiments
[0030] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0031] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone.
[0032] In the description of the embodiments of the present application, the terms "first", "second", etc. in the specification and claims are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first target object, the second target object, etc. are used to distinguish different target objects, rather than to describe a specific order of the target objects.
[0033] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0034] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" refers to two or more. For example, a plurality of processing units refers to two or more processing units; a plurality of systems refers to two or more systems.
[0035] The embodiments of the present application provide a task transfer method, which can add multiple functions in the task transfer scenario, realize multi-intent interaction of user task transfer, and improve user experience.
[0036] The method provided by the embodiments of the present application can be applied to an electronic device. The electronic device can be a wearable electronic device (such as a watch), a portable computer (such as a mobile phone), a tablet computer, a laptop computer, a personal computer (PC), an augmented reality (AR) / virtual reality (VR) device, an in-vehicle computer, etc. The following embodiments do not make special restrictions on the specific form of the electronic device.
[0037] Before describing the technical solutions of the embodiments of the present application, the electronic device of the embodiments of the present application will be described first with reference to the accompanying drawings. Figure 1 FIG. 17 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. It should be understood that Figure 1 the illustrated electronic device 100 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown therein may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0038] 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, a headphone 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. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric 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.
[0039] 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 processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0040] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0041] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
[0042] The charging management module 140 is used to receive a charging input from a charger. Herein, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.
[0043] 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 the inputs 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, the wireless communication module 160, etc. The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.
[0044] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0045] 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 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The wireless communication module 160 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied to the electronic device 100.
[0046] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, such that electronic device 100 can communicate with a network and other devices via wireless communication technologies.
[0047] Electronic device 100 implements a display function via a GPU, display screen 194, application processor, etc. The GPU is a microprocessor for image processing, connected to display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0048] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0049] Electronic device 100 can implement a shooting function via an ISP, camera 193, video codec, GPU, display screen 194, application processor, etc.
[0050] Camera 193 is used to capture still images or videos. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0051] External memory interface 120 can be used to connect to an external memory card, such as a Micro SD card, to expand the storage capacity of electronic device 100. The external memory card communicates with processor 110 via external memory interface 120 to implement a data storage function. For example, files such as music and videos are saved in the external memory card.
[0052] The internal memory 121 can be used to store computer-executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. 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, application programs required for at least one function (such as a sound playback function, an image playback function, 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.). 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 magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0053] The pressure sensor 180A is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, etc. The capacitive pressure sensor may include at least two parallel plates having a conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations with the same touch position but different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than a first pressure threshold acts on the short message application icon, the instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
[0054] The touch sensor 180K is also called a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect a touch operation acting thereon or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, at a different position from the display screen 194.
[0055] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of this application, taking the Android system with a layered architecture as an example, the software structure of the electronic device 100 will be exemplarily described.
[0056] Figure 2 This is a block diagram of the software structure of an electronic device 100 provided by the embodiments of this application.
[0057] The layered architecture of the electronic device 100 divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0058] The application layer may include a series of application packages.
[0059] As Figure 2 shown, the application packages may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, intelligent interconnection, and desktop (Launcher).
[0060] Among them, intelligent interconnection is an application for realizing task transfer. In this article, task transfer means switching the task from the current device to other devices for continuous processing.
[0061] In the embodiments of this application, the desktop application includes a gesture recognition module and an interface control module. For the functions of the gesture recognition module and the interface control module, please refer to the subsequent description of this embodiment.
[0062] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0063] As Figure 2 shown, the application framework layer may include a window manager, a content provider, a view system, an input manager, a resource manager, an activity manager, etc.
[0064] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0065] In this embodiment of the present application, the window manager provides Task stack management, remote animation control capabilities, and application interface switching control capabilities. When the user triggers a three-finger upward swipe interaction, the system schedules the transition interface of the desktop application to enter the scene, that is, transfers the foreground window control right to the desktop through remote animation.
[0066] The content provider is used to store and obtain data, and make this data accessible to application programs. The data may include videos, images, audio, incoming and outgoing calls, browsing history and bookmarks, phone books, etc.
[0067] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build application programs. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon can include a view for displaying text and a view for displaying pictures.
[0068] The Input Manager (Input Manager Sevices) can provide a gesture event dispatching function. For example, in this embodiment, when the user performs a three-finger upward swipe operation, the Input Manager sends the motion event (MotionEvent) of these three fingers to the desktop application.
[0069] The resource manager provides various resources for application programs, such as localized strings, icons, pictures, layout files, video files, and so on.
[0070] The Activity Manager (Activity Manager Sevice) can include an application startup module and a lifecycle management module. The Activity Manager is used to provide activity management services. The Activity Manager can be used for the startup, switching, and scheduling of system components (such as activities, services, content providers, broadcast receivers), as well as the management and scheduling of application processes.
[0071] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
[0072] The core libraries contain two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android.
[0073] 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 functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0074] The system library may include multiple functional modules. For example: surface manager, Media Libraries, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc.
[0075] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0076] The media library supports the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0077] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0078] The 2D graphics engine is a drawing engine for 2D drawing.
[0079] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0080] It can be understood that Figure 2 The layers in the shown software structure and the components included in each layer do not constitute a specific limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which are not limited in the present application.
[0081] The present application will be described in detail below through embodiments.
[0082] Figure 3 It is a schematic diagram of the change of the electronic device interface during the task flow provided by the embodiment of the present application. Refer to Figure 3 , in Figure 3 (a) of, the interface 1 is fully displayed on the screen of the electronic device.
[0083] In some examples, the interface 1 may be the application program interface of application 1, and application 1 supports task flow.
[0084] In some other examples, the interface 1 may be the desktop of the electronic device.
[0085] In Figure 3In (b), the user performs a first operation on interface 1, such as a three-finger upward swipe operation. In response to the first operation performed by the user on interface 1, the electronic device displays a touch point icon 31 of finger 1 at the touch point position of finger 1 on the screen, a touch point icon 32 of finger 2 at the touch point position of finger 2 on the screen, and a touch point icon 33 of finger 3 at the touch point position of finger 3 on the screen. Among them, the touch point icon 31 of finger 1, the touch point icon 32 of finger 2, and the touch point icon 33 of finger 3 are located on the upper layer of the layer where interface 1 is located. It should be noted that Figure 3 The touch point icons shown in (b) of the figure are only for exemplary illustration, and the present embodiment does not limit the shape of the touch point icons. For example, in other embodiments, the touch point icons can also be in the shape of a square or a triangle, etc.
[0086] It should be noted that for the convenience of description, in the present embodiment, the whole process of a complete first operation is divided into a first stage and a second stage. The first stage is earlier than the second stage, and the end moment of the first stage is the same as the start moment of the second stage. Among them, the first stage refers to the time period from when the three fingers start touching the screen (the start moment of the first stage) to when a capsule is displayed on the screen (the end moment of the first stage), and the second stage refers to the time period from when the capsule is displayed on the screen (the start moment of the second stage) to when all fingers are lifted (the end moment of the second stage). Finger lift means that the finger leaves the screen and no longer touches the screen.
[0087] When the electronic device detects that fingers 1, 2, and 3 are sliding on the screen, during the time period 1 where the first stage is located, the electronic device displays animation 1 on the screen. Animation 1 is an animation that controls the window of interface 1 to gradually shrink and transition to the capsule 35 corresponding to application 1 according to the progress of the first operation.
[0088] For one frame of the animation 1, please refer to Figure 3 (c). In Figure 3 (c), window 34 is the window after the window of interface 1 shrinks. The content displayed in window 34 is interface 1. In animation 1, the size of the window of interface 1 shrinks from the full-screen window shown in Figure 3 (a) of the figure in proportion to the size of window 34 shown in Figure 3 (c).
[0089] For another frame of the animation 1, please refer to Figure 3 (d). In Figure 3 (d), window 34 transitions to capsule 35. Capsule 35 includes a capsule icon 351 and / or a capsule description 352.
[0090] In one example, the capsule 35 can be the capsule corresponding to Application 1. The capsule icon 351 can be the application icon of Application 1, and the capsule description 352 can be the application name of Application 1 (Application 1).
[0091] In another example, the capsule 35 can be the capsule corresponding to the desktop of the electronic device. The capsule icon 351 can be the icon indicating desktop sharing, and the capsule description 352 can be the text description of "screen sharing".
[0092] When the first stage of the first operation is completed, the electronic device ends the first animation, releases the window 34, and displays the interface 2 on the screen. As Figure 3 shown in Figure (e), at the moment when the first stage of the first operation is completed, the animation 1 ends, and the interface 2 is displayed on the screen. The interface 2 can be the interface of the intelligent interconnection application. The interface 2 includes the capsule 35 corresponding to Application 1 or the desktop, the icon 36 of the electronic device, and the icons 37 of at least one other device. Among them, the electronic device is the local device, and the other device is the alternative target device for task transfer. The layer where the capsule 35 is located can be above the layer where the interface of the intelligent interconnection application is located. The icon 36 of the electronic device and the icons 37 of at least one other device can be represented by corresponding device balls (the spherical view contains the device icon and the device name).
[0093] In this embodiment, the activity manager can generate the window 2 corresponding to the interface of the intelligent interconnection application (the content of the window 2 is the interface of the intelligent interconnection application, and does not include the capsule 35 before the capsule 35 is generated) at any moment after the three-finger swipe up starts and before the capsule 35 is displayed on the screen, and set the transparency of the window 2 to 0, so that the window 2 is not displayed before the capsule 35 is displayed on the screen. When the capsule 35 is generated, the electronic device sets the transparency of the window 2 to a first value (the first value is equal to or greater than 0), displays the window 2 on the mobile phone screen, and displays the capsule 1 on the upper layer of the window 2.
[0094] As Figure 3 shown in Figures (e) and (f), after the electronic device displays the interface 2 on the screen, the user can continue to slide the fingers 1, 2, and 3 on the screen. The electronic device responds to this continued sliding operation and displays the animation 2 on the screen, that is, drags the capsule 35 towards the device icon of the second electronic device, and when it reaches the device icon of the second electronic device, the capsule 35 is received into the device icon of the second electronic device. It should be noted that when there are multiple alternative target device icons on the interface 2, the user can select the target device by dragging the capsule 1 to slide to the target device icon.
[0095] Among them, reaching the target device icon may mean that the capsule 35 partially overlaps with the target device icon, or it may mean that the distance between the center point of the capsule 35 and the center point of the target device icon is less than a preset distance threshold. Of course, "reaching the target device icon" can also be defined as other meanings consistent with this embodiment, and this embodiment does not limit this.
[0096] It should be noted that in the embodiment of this application, if the foreground window animation has not reached the aforementioned animation 2 and the user raises all fingers, then the interface control module of the desktop controls interface 1 to return to the foreground application 1 or the initial state of the desktop. If the foreground window animation has reached the aforementioned animation 2, then after the user raises all fingers, it cannot return to the foreground application 1 and the initial state of the desktop. Instead, the interface control module of the desktop controls the entry into the task flow process of the intelligent interconnection application. Among them, in the displayed interface 2, the capsule 35 corresponding to the application 1 or the desktop will automatically be adsorbed to the device icon 36 of the electronic device. For example, it is adsorbed below the device icon 36 of the electronic device. At this time, the capsule 35 may further include a close control, and after clicking the close control, the interface of the intelligent interconnection application can be exited.
[0097] In this embodiment, the electronic device calls the intelligent interconnection module to complete the flow of the display tasks of interface 1 and interface 2. In other embodiments, other applications with task flow functions can also be used to complete the flow of the display tasks of interface 1 and interface 2, and this embodiment does not limit the specific application for completing the task flow.
[0098] In the embodiment of this application, task flow can be achieved between the electronic device (this device) and other devices (target devices). Among them, the task flow between the electronic device (this device) and other devices (target devices) is carried out through the built-in task flow architecture in the device. The following is based on Figure 4 and Figure 5 to illustrate this task flow architecture.
[0099] Figure 4 It is a schematic diagram of a task flow architecture on the Android side provided by the embodiment of this application. As Figure 4As shown in the figure, in this embodiment, the task transfer architecture on the Android side includes a desktop launcher (such as Launcher.apk), a transfer center module (such as HnControlCenter.apk), a shared service management module, a file transfer module (such as HonorShare.apk), a screen sharing module (such as PCA / DMSDP / AA, Airsharing, etc.), a follow-up service module (such as HnHandoff.apk), a MagicLink (such as HnNearBy.apk) module, etc. Among them, the transfer center module, the shared service management module, the file transfer module, the screen sharing module, the follow-up service module, etc. can be the structures that make up the Figure 2 intelligent interconnection application in the above.
[0100] Among them, the desktop launcher is used to recognize the user's gestures and is also used to control the screen to display the corresponding interface according to the user's gestures. For example, the desktop launcher can start the transfer center module in response to the user's three-finger swipe up operation.
[0101] The transfer center module is used to call the following modules to achieve task transfer.
[0102] The shared service management module is used to store and maintain device configuration information (Profile), and the configuration information includes device online / offline information, device capability information, device service status, etc.
[0103] The file transfer module is used to implement the file transfer service during the task transfer process.
[0104] The screen sharing module is used to implement services such as heterogeneous screen projection and homogeneous screen projection during the task transfer process.
[0105] The follow-up service module is used to implement services such as application continuation during the task transfer process.
[0106] The MagicLink module is used for functions such as same-account discovery, compatibility with legacy service discovery, connection and transmission, etc.
[0107] It can be understood that the task transfer architecture on the Android side can also add other modules according to actual applications, and specific limitations are not made in the embodiments of this application.
[0108] Figure 5 This is a schematic diagram of the task transfer architecture on the computer side (Windows) provided by the embodiments of this application. As Figure 4As shown, in this embodiment, the task flow architecture on the computer side includes a monitoring module, a control center module (such as ControlCenter.dll), a shared service management module, a screen sharing module (such as SynergyService.dll, or HnMirror.exe, or dmsdpClient.dll), a connection service module (such as HnHandoff.dll), a file transfer module (such as HonorFileShareService.dll) and a MagicLink module (such as Softbus.dll), etc.
[0109] The monitoring module is used to monitor the user's drag operation and control the screen to display a corresponding interface according to the drag operation. For example, the monitoring module can start the control center module in response to the user's drag operation.
[0110] The control center module is used to call the following modules to realize task flow.
[0111] The shared service management module is used to store and maintain device configuration information (Profile), which includes device online and offline information, device capability information, device service status, etc.
[0112] The file transfer module is used to implement the file transfer business during the task transfer process.
[0113] The screen sharing module is used to implement services such as heterogeneous screen projection and homogeneous screen projection during task flow.
[0114] The continuation business module is used to implement business such as application continuation during the task flow process.
[0115] The MagicLink module is used for same-account discovery, old business discovery compatibility, connection transmission and other modules.
[0116] It is understandable that the task flow architecture on the computer side may further add other modules according to actual applications, which is not specifically limited in the embodiments of the present application.
[0117] In the embodiment of the present application, based on the above-mentioned task flow architecture, the task flow method provided in the embodiment of the present application is described in detail.
[0118] Figure 6 A schematic diagram of a task transfer method provided in an embodiment of the present application Figure 1 .like Figure 6 As shown, the task flow method is applied to an electronic device, and the electronic device includes a desktop launcher, a flow center module, a shared service management module and a screen sharing module. The task flow method includes: steps S601 to S611.
[0119] Step S601: The user performs a first operation on the screen of the electronic device.
[0120] Among them, the first operation is indicated as a multi-finger upward sliding operation. For example, a three-finger upward sliding operation.
[0121] According to the foregoing Figure 3 In the detailed description of the change of the electronic device interface during the task flow process, for the convenience of description, in the embodiments of the present application, the whole process of a complete first operation is divided into a first stage and a second stage. The first stage is earlier than the second stage, and the end moment of the first stage is the same as the start moment of the second stage. Among them, the first stage refers to the time period from when three fingers start touching the screen (the start moment of the first stage) to when a capsule is displayed on the screen (the end moment of the first stage). The second stage refers to the time period from when the capsule is displayed on the screen (the start moment of the second stage) to when all fingers are lifted (the end moment of the second stage). Lifting a finger means that the finger leaves the screen and no longer touches the screen.
[0122] In the embodiments of the present application, when the user performs the first operation on the screen of the electronic device, the display interface of the electronic device can be the desktop or the interface of an application program.
[0123] Step S602: In response to the user's first operation, the desktop launcher sends a start instruction to the transfer center module.
[0124] Among them, the desktop launcher can monitor the first operation. The start instruction is used to pull up the transfer center module.
[0125] Step S603: In response to the start instruction, the transfer center module determines whether the display interface of the electronic device is the target interface when the user performs the first operation.
[0126] Among them, the target interface is indicated as the desktop of the electronic device.
[0127] In the embodiments of the present application, the transfer center module can determine whether the display interface of the electronic device is the target interface when the user performs the first operation through interaction with the desktop launcher.
[0128] It should be noted that the current task transfer targets application programs. Therefore, only in the interface of the application program that supports application transfer can corresponding operations trigger the task transfer process to achieve the task transfer of the application program. In the embodiments of the present application, the application scenarios of task transfer are extended. Performing a three-finger upward swipe operation on the desktop of the electronic device can also trigger the task transfer process, increasing the application scenarios of task transfer, improving the usability of task transfer, and enhancing the user experience. Since the task transfer can be triggered both in the interface of the application program and on the desktop in the implementation of the present application, it is necessary to determine whether the display interface of the electronic device is the target interface when the user performs the first operation to determine whether the task transfer targets the application program or the desktop.
[0129] Step S604: When the display interface of the electronic device is the target interface when the user performs the first operation, the transfer center module sends a first query instruction to the shared service management module.
[0130] Among them, the first query instruction is used to query whether the alternative device supports the same-source screen projection. The same-source screen projection means that after the page of the source device is projected onto the target device, when the user operates on the source device, the projected page on the target device will also change synchronously.
[0131] The alternative device is a device connected to the same wireless network as the electronic device (the local device). For example, when the local device is a mobile phone, the alternative device can be a tablet computer connected to the same wireless access point as the mobile phone, or another mobile phone connected to the same wireless access point as the mobile phone. The first query instruction includes the device identifier of the alternative device.
[0132] In a possible implementation manner, the shared service management module stores and maintains the configuration information (Profile) corresponding to the alternative device, and the configuration information is used to indicate the device online / offline information, device capability information, device service status, etc. of the alternative device.
[0133] In a possible implementation manner, after the alternative device goes online (after being connected to the same wireless network as the local device), it synchronizes the configuration information with the local device.
[0134] Step S605: The shared service management module returns a first query result to the transfer center module.
[0135] Among them, the first query result includes information on whether each alternative device supports the same-source screen projection.
[0136] Step S606: In the second stage of the first operation, the transfer center configures the display status of the device ball corresponding to the alternative device in the second interface according to the first query result.
[0137] Among them, in the second stage of the first operation, the second interface (interface 2 shown in (e) of Figure 3 is displayed in the display interface of the electronic device. This second interface is a smart interconnection application interface.
[0138] In a possible implementation, in the second stage of the first operation, according to the first query result, the transfer center configures the display status of the device balls corresponding to the alternative devices in the second interface, including: configuring the device balls corresponding to the alternative devices that do not support the same-source screen mirroring to be gray.
[0139] Among them, the transfer center can lower the color saturation of the device balls corresponding to the alternative devices that do not support the same-source screen mirroring, so as to configure the device balls to be gray; and, without changing the color saturation of the device balls corresponding to the alternative devices that support the same-source screen mirroring.
[0140] In this implementation, the user can intuitively see in the second interface which alternative devices are devices that support the same-source screen mirroring and which alternative devices are devices that do not support the same-source screen mirroring, so as to effectively select the alternative devices that support the same-source screen mirroring for desktop transfer.
[0141] Step S607: The transfer center determines the target transfer device selected by the user in the second stage of the first operation.
[0142] Among them, the target transfer device is the target device selected by the user from the alternative devices for task transfer.
[0143] In the embodiment of the present application, in the second stage of the first operation, the display interface of the electronic device is the second interface, which includes the capsule corresponding to the target interface and the device balls corresponding to each alternative device. The user can drag the capsule corresponding to the target interface to the device ball corresponding to the alternative device, so as to select the target transfer device.
[0144] Step S608: The transfer center determines whether the target transfer device supports the same-source screen mirroring according to the first query result.
[0145] Among them, the first query result includes information on whether each alternative device supports the same-source screen mirroring.
[0146] Step S609: When the target transfer device supports the same-source screen mirroring, the transfer center sends a first collaboration instruction to the screen sharing module.
[0147] Among them, the first collaboration instruction is used to instruct the screen sharing module to perform the process of the same-source screen mirroring.
[0148] Step S610: The screen sharing module responds to the first collaboration instruction and projects the target interface to the target transfer device.
[0149] In a possible implementation, after the screen sharing module projects the target interface onto the target transfer device in response to the first collaboration instruction, if the user performs a second operation on the desktop of the electronic device and the display interface of the electronic device changes according to this second operation, the projected screen page in the target transfer device also changes synchronously.
[0150] In the embodiments of the present application, the process of the screen sharing module performing homogenous screen projection can be carried out according to the homogenous screen projection process in actual applications, and will not be elaborated in the embodiments of the present application.
[0151] Step S611: When the target transfer device does not support homogenous screen projection, the transfer center module controls an error prompt to be displayed in the second interface, and controls the capsule corresponding to the target interface in the second interface to attach to the device sphere corresponding to the local device.
[0152] In a possible implementation, when the selected target transfer device does not support homogenous screen projection, the electronic device cannot transfer the desktop to the target transfer device. Therefore, the transfer center module controls an error prompt to be displayed in the second interface, such as "This device does not support homogenous screen projection", "Please select a device that is not grayed out", etc.
[0153] In the embodiments of the present application, performing a three-finger upward swipe operation on the desktop of the electronic device can also trigger the task transfer process, thereby expanding the application scenarios of task transfer, increasing the applications where task transfer can be used, improving the usability of task transfer, and enhancing the user experience.
[0154] When a first operation is performed on the page of an application program and the application program supports task transfer, the task transfer process will be triggered. In the embodiments of the present application, in the task transfer process triggered in the application program, in addition to the existing application continuation and heterogeneous screen projection, functions such as file printing and file transfer are also added to achieve multi-intent interaction of the user's task transfer, improve the usability of task transfer, and enhance the user experience.
[0155] Figure 7 It is a schematic flowchart of a task transfer method provided by the embodiments of the present application Figure 2 . As Figure 7 shown, this task transfer method is applied to an electronic device, which includes a desktop launcher, a transfer center module, a shared service management module, a continuation service module, a file transfer module, and a screen sharing module. This task transfer method includes: Step S701 - Step S721.
[0156] Step S701: The user performs a first operation on the screen of the electronic device.
[0157] Among them, the first operation instruction is a multi-finger upward swipe operation, for example, a three-finger upward swipe operation.
[0158] According to the foregoing Figure 3 As can be seen from the detailed description of the change of the electronic device interface during the task flow process in the foregoing, for the convenience of description, in the embodiments of the present application, the whole process of a complete first operation is divided into a first stage and a second stage. The first stage is earlier than the second stage, and the end time of the first stage is the same as the start time of the second stage. Among them, the first stage refers to the time period from when three fingers start to touch the screen (the start time of the first stage) to when a capsule is displayed on the screen (the end time of the first stage). The second stage refers to the time period from when a capsule is displayed on the screen (the start time of the second stage) to when all fingers are lifted (the end time of the second stage). Lifting a finger means that the finger leaves the screen and no longer touches the screen.
[0159] In the embodiments of the present application, when the user performs a first operation on the screen of the electronic device, the display interface of the electronic device can be the desktop or the interface of an application program.
[0160] Step S702: In response to the user's first operation, the desktop launcher sends a start instruction to the transfer center module.
[0161] Step S703: In response to the start instruction, the transfer center module determines whether the display interface of the electronic device is the target interface when the user performs the first operation.
[0162] Among them, the target interface indicates the desktop of the electronic device.
[0163] It should be noted that the current task transfer is for application programs. Therefore, only in the interface of an application program that supports application transfer, corresponding operations can trigger the task transfer process to achieve task transfer of the application program. In the embodiments of the present application, the application scenario of task transfer is extended. Performing a three-finger upward swipe operation on the desktop of the electronic device can also trigger the task transfer process, increasing the application scenario of task transfer and improving the usability of task transfer. Since in the embodiments of the present application, the task transfer can be triggered both in the interface of the application program and on the desktop, it is necessary to determine whether the display interface of the electronic device is the target interface when the user performs the first operation to determine whether the task transfer targets an application program or the desktop.
[0164] Step S704: When the display interface of the electronic device is not the target interface when the user performs the first operation, the transfer center module sends a second query instruction to the shared service management module.
[0165] Among them, when the display interface of the electronic device is not the target interface when the user performs the first operation, it means that when the user performs the first operation, the display interface of the electronic device is the interface of an application program.
[0166] The second query instruction is used to query whether the alternative device supports functions such as cross - source screen mirroring, file transfer, and printing service. The second query instruction includes the device identifier of the alternative device. The cross - source screen mirroring means that after the page of the source device is screen - mirrored to the target device, the user can continue to perform other operations on the source device without affecting the screen - mirrored page on the target device.
[0167] In a possible implementation, the shared service management module stores and maintains the configuration information (Profile) corresponding to the alternative device. The configuration information is used to indicate the device online / offline information, device capability information, device service status, etc. of the alternative device. Among them, the device capability information is used to indicate whether the device supports functions such as cross - source screen mirroring, file transfer, and printing service.
[0168] In a possible implementation, there are several conditions for determining whether screen mirroring is supported: whether the switch of the screen sharing service of the alternative device is turned on; whether the device type corresponding to the local screen sharing service includes the peer device type; whether the device type corresponding to the alternative device sharing service includes the local device type. Only when the switch of the screen sharing service of the alternative device is turned on, the device type corresponding to the local screen sharing service includes the peer device type, and the device type corresponding to the alternative device sharing service includes the local device type, the current device environment supports screen mirroring.
[0169] Step S705, the second query result returned by the shared service management module to the transfer center module.
[0170] Among them, the second query result includes the device capability information, device service status, etc. of each alternative device. Among them, the device capability information indicates whether the alternative device supports functions such as cross - source screen mirroring, file transfer, and printing service.
[0171] Step S706, when the user executes the first operation and the display interface of the electronic device is not the target interface, the transfer center module sends a third query instruction to the file transfer module.
[0172] Among them, the third query instruction is used to query whether a file path can be extracted from the display interface of the electronic device when the user executes the first operation. The file path indicates the storage path where the file is stored, and the file can be a picture or a document.
[0173] Step S707, the third query result returned by the file transfer module to the transfer center module.
[0174] Among them, the third query result is used to indicate whether a file path can be extracted from the display interface of the electronic device. The third query result indicates "yes" or "no". When the third query result indicates "yes", the third query result also includes the file path of the file.
[0175] In a possible implementation, when the user performs the first operation, the display interface of the electronic device is the chat interface of the chat application. When the chat interface contains pictures and / or documents, the third query result can indicate "yes", and the third query result contains the file storage path corresponding to the picture and / or the file storage path corresponding to the document.
[0176] In another possible implementation, when the user performs the first operation, the display interface of the electronic device is the application interface of the gallery application. When the application interface of the gallery application contains pictures, the third query result can indicate "yes", and the third query result contains the file storage path corresponding to the picture.
[0177] Step S708: In the second stage of the first operation, the transfer center configures the display state of the device balls corresponding to the alternative devices in the second interface according to the second query result.
[0178] Among them, in the second stage of the first operation, the second interface (the interface 2 shown in (e) of Figure 3 is displayed in the display interface of the electronic device. The second interface is the intelligent interconnection application interface. The second query result includes whether each alternative device supports functions such as heterogeneous screen mirroring, file transfer, and printing services.
[0179] In a possible implementation, in the second stage of the first operation, the transfer center configures the display state of the device balls corresponding to the alternative devices in the second interface according to the second query result, including: configuring the device balls corresponding to the alternative devices that do not support heterogeneous screen mirroring, file transfer, and printing services to be gray.
[0180] In this implementation, the user can intuitively see in the second interface which alternative devices do not support heterogeneous screen mirroring, file transfer, and printing services, so as to avoid selecting devices that do not support heterogeneous screen mirroring, file transfer, and printing services for application transfer.
[0181] Step S709: The transfer center determines the target transfer device selected by the user in the second stage of the first operation.
[0182] Among them, the target transfer device is the target device selected by the user from the alternative devices for task transfer.
[0183] In the embodiment of the present application, in the second stage of the first operation, the display interface of the electronic device is the second interface, and the second interface contains the capsule corresponding to the target interface and the device balls corresponding to each alternative device. The user can drag the capsule corresponding to the target interface to the device ball corresponding to the alternative device to select the target transfer device.
[0184] Step S710: The transfer center determines whether the current task environment supports printing based on the second query result, the third query result, and the local configuration file.
[0185] Among them, the current task environment refers to the current configuration of the electronic device (the local device), the current configuration of the target transfer device, and the type of the target transfer device, etc.
[0186] The local configuration file contains information such as the switch status of the printing service and the device type corresponding to the printing service.
[0187] In a possible implementation manner, determining whether the current task environment supports printing based on the second query result, the third query result, and the local configuration file includes: Step 1 to Step 6.
[0188] Step 1: Determine whether the electronic device (the local device) can extract the file path according to the third query result.
[0189] Step 2: Determine whether the switch of the printing service of the electronic device (the local device) is in the on state.
[0190] Step 3: Determine whether the device type of the target transfer device is a printer according to the second query result.
[0191] Step 4: Determine whether the device type corresponding to the printing service of the electronic device (the local device) includes the device type of the target transfer device.
[0192] Step 5: Determine whether the device type corresponding to the printing service of the target transfer device includes the device type of the electronic device (the local device) according to the second query result.
[0193] Step 6: Determine that the current task environment supports printing when the electronic device (the local device) can extract the file path, the switch of the printing service is in the on state, the device type of the target transfer device is a printer, the device type corresponding to the printing service of the electronic device (the local device) includes the device type of the target transfer device, and the device type corresponding to the printing service of the target transfer device includes the device type of the electronic device (the local device).
[0194] Step S711: When the current task environment supports printing, the transfer center sends a second cooperation instruction to the file transfer module.
[0195] Among them, the second cooperation instruction is used to make the file transfer module execute the file printing process. The second cooperation instruction contains the Uniform Resource Identifier (URI) corresponding to the file and the device identifier of the target transfer device (the identifier of the printer).
[0196] Step S712: In response to the second collaboration instruction, the file transfer module sends a print start instruction to the target application.
[0197] Among them, the target application can be an application with print management functions, such as a print assistant. After receiving the print start instruction, the print assistant enters the program page of the print assistant. The program page includes a print preview window, print management controls, etc. The print management controls can adjust print parameters, such as single-sided printing, double-sided printing, etc.
[0198] Step S713: When the current task environment does not support printing, the transfer center determines whether the current task environment supports file transfer according to the second query result, the third query result, and the local configuration file.
[0199] In a possible implementation manner, determining whether the current task environment supports file transfer according to the second query result, the third query result, and the local configuration file includes: Step 1 to Step 5.
[0200] Step 1: According to the third query result, determine whether the electronic device (local machine) can extract the file path.
[0201] Step 2: According to the second query result, determine whether the switch of the print service of the target transfer device is in the on state.
[0202] Step 3: Determine whether the device type corresponding to the file transfer service of the electronic device (local machine) includes the device type of the target transfer device.
[0203] Step 4: According to the second query result, determine whether the device type corresponding to the file transfer service of the target transfer device includes the device type of the electronic device (local machine).
[0204] Step 5: When the electronic device (local machine) can extract the file path, the switch of the print service of the target transfer device is in the on state, the device type corresponding to the file transfer service of the electronic device (local machine) includes the device type of the target transfer device, and the device type corresponding to the file transfer service of the target transfer device includes the device type of the electronic device (local machine), it is determined that the current task environment supports file transfer.
[0205] Step S714: When the current task environment supports file transfer, the transfer center controls the second interface to display task transfer options.
[0206] Among them, the task transfer options include a first option and a second option. The first option is, for example, "transfer file", and the second option is, for example, "transfer application".
[0207] Figure 8A schematic diagram showing the task transfer options provided by the embodiments of this application. Taking Figure 8 as an example, in the case where file transfer is supported in the current task environment, the steps for the transfer center to control the second interface to display the task transfer options will be described.
[0208] Refer to Figure 8 (a) in. The user performs a first operation on the first interface, which can be the program interface of the first application, such as the page after selecting pictures in the gallery; the first operation is, for example, a three-finger swipe up operation. In response to the first operation performed by the user on the first interface, the electronic device displays the touch point icon 81 of finger 1 at the touch point position of finger 1 on the screen, displays the touch point icon 82 of finger 2 at the touch point position of finger 2 on the screen, and displays the touch point icon 83 of finger 3 at the touch point position of finger 3 on the screen. Figure 8 In (a) of, the window 84 is the window after the window of the first interface is reduced. The content displayed in the window 84 is the first interface. As shown in the window 84, the user has selected 2 pictures in the gallery.
[0209] The user continues to perform the three-finger swipe up operation. When the first stage of the three-finger swipe up operation is completed, the electronic device ends the first animation and displays the second interface on the screen. Then, as shown in Figure 8 (b) of, the second interface is the interface of the intelligent interconnection application. The second interface includes a capsule 85, an icon 86 of the electronic device, and a corresponding device ball 87 of the target transfer device. As shown in Figure 8 (c) of, the user drags the capsule 85 to the corresponding device ball 87 of the target transfer device, then the transfer center controls the second interface to display the task transfer options, and the task transfer options can be displayed in the form of a pop-up window, as shown in the window 88 in Figure 8 (c) of. The task transfer options are used to instruct the user to select the task transfer content. Among them, the first option is to transfer the "gallery", and the second option is to transfer 2 files, and the 2 files are Figure 8 the 2 pictures selected by the user shown in the window 84 in (a).
[0210] Step S715: The transfer center module, in response to the second operation of the user on the first option in the task transfer options, sends a file transfer instruction to the file transfer module.
[0211] Among them, the second operation instruction is a click operation, a touch operation, etc. The file transfer instruction is used to instruct the file transfer module to transfer the file to be transferred. The file transfer instruction contains the file path of the file to be transferred.
[0212] Step S716: The file transfer module, in response to the file transfer instruction, sends the file to be transferred to the target transfer device.
[0213] Step S717: When the current task environment does not support file transfer, or in response to a user clicking on the second option in the task transfer options, the transfer center module sends a fourth query instruction to the follow-up business module.
[0214] The fourth query instruction is used to query whether the first application can be connected to the application. The first application is indicated as the application corresponding to the display interface of the electronic device when the user performs the first operation.
[0215] Step S718: The follow-up business module returns the fourth query result to the circulation center module.
[0216] The fourth query result is used to indicate whether the first application can be continued. The fourth query result includes supporting application continuation or not supporting application continuation.
[0217] Step S719: When the fourth query result indicates that application continuation is supported, the flow center module sends a continuation service start instruction to the continuation service module.
[0218] Step S720: The service continuation module executes the application continuation process in response to the service continuation start instruction.
[0219] In a possible implementation, the application continuation process can refer to the application continuation process in actual applications, which will not be described in detail in the embodiments of the present application.
[0220] Step S721: When the fourth query result indicates that application continuation is not supported, the flow center module sends a third coordination instruction to the screen sharing module.
[0221] Among them, the third collaborative instruction is used to instruct the screen sharing module to perform heterogeneous screen projection.
[0222] Step S722: The screen sharing module executes the heterogeneous screen projection process in response to the third collaborative instruction.
[0223] In a possible implementation, the screen sharing module responds to the third collaborative instruction and executes a heterogeneous screen projection process based on the first application and the target streaming device. After the heterogeneous screen projection is performed, the application interface of the first application is displayed in the target streaming device.
[0224] In the implementation of this application, through the above-mentioned steps S701-S721, the functions of file printing and file transfer can be added during the application flow, providing users with multi-intention interaction of task flow, increasing the application scenarios of task flow, and improving the user experience of using task flow services.
[0225] In the method provided by the embodiment of the present application, the steps executed by the electronic device can also be executed by a chip system included in the electronic device. Among them, the chip system can include a processor and a Bluetooth chip. The chip system can be coupled to the memory, so that when the chip system runs, it calls the computer program stored in the memory to implement the steps executed by the above-mentioned electronic device. Among them, the processor in the chip system can be an application processor or a processor other than an application processor.
[0226] This embodiment also provides a computer-readable medium, in which computer instructions are stored. When the computer instructions run on an electronic device, the electronic device is enabled to execute the above-related method steps to implement the method in the above embodiment.
[0227] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the above-related steps to implement the method in the above embodiment.
[0228] In addition, the embodiment of the present application also provides a device, which can specifically be a chip, a component or a module. The device can include a processor and a memory connected to each other. Among them, the memory is used to store computer execution instructions. When the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip executes the methods in the above method embodiments.
[0229] Among them, the electronic device, computer-readable medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.
[0230] Through the description of the above embodiments, those skilled in the art can understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0231] In several embodiments provided in this 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 merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.
[0232] The units described as separate components may or may not be physically separated. The components displayed as units may be one physical unit or multiple physical units, that is, they can be located in one place, or they can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0233] Any content in each embodiment of this application, as well as any content in the same embodiment, can be freely combined. Any combination of the above is within the scope of this application. 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 such an understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods in each embodiment of this application. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks or optical discs and other various media that can store program codes.
[0234] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A task transfer method, characterized in that, Applied to an electronic device, the method includes: In response to a first operation of a user on the screen of the electronic device, determine whether the display interface of the electronic device is the desktop when the user performs the first operation; When the display interface of the electronic device is the desktop when the user performs the first operation, determine whether the target transfer device supports same-source screen mirroring; the target transfer device is the device selected by the user for task transfer during the process of performing the first operation; When the target transfer device supports same-source screen mirroring, project the desktop to the target transfer device.
2. The method according to claim 1, wherein The method further includes: When the display interface of the electronic device is not the desktop when the user performs the first operation, based on the determined target transfer device, determine whether the current task environment supports printing; When it is determined that the current task environment supports printing, start the target application, where the target application is an application with a printing management function.
3. The method according to claim 2, wherein After determining whether the current task environment supports file transfer, the method further includes: When it is determined that the current task environment does not support printing, based on the determined target transfer device, determine whether the current task environment supports file transfer; When the current task environment supports file transfer, display task transfer options, where the task transfer options include an application transfer option and a file transfer option.
4. The method according to claim 3, wherein After displaying the task transfer options, the method further includes: In response to a second operation of the user on the file transfer option, send the file to be transferred to the target transfer device.
5. The method according to claim 3, wherein The method further includes: In response to a second operation of the user on the application transfer option, transfer the program interface of the first application to the target transfer device; the first application is the application corresponding to the display interface of the electronic device when the user performs the first operation.
6. The method according to claim 3, wherein The method further includes: When the current task environment does not support file transfer, transfer the program interface of the first application to the target transfer device; the first application is the application corresponding to the display interface of the electronic device when the user performs the first operation.
7. The method according to claim 2, characterized in that The determining whether the current task environment supports printing based on the determined target transfer device includes: When it is determined that a file path can be extracted from the program interface of the first application, the printing service of the electronic device is in an open state, the device type of the target transfer device is a printer, the device type corresponding to the printing service of the electronic device includes the device type of the target transfer device, and the device type corresponding to the printing service of the target transfer device includes the device type of the electronic device, determine that the current task environment supports printing.
8. The method according to claim 2, wherein The determining whether the current task environment supports file transfer based on the determined target transfer device includes: When it is determined that a file path can be extracted from the program interface of the first application, the printing service of the target transfer device is in an open state, the device type corresponding to the file transfer service of the electronic device includes the device type of the target transfer device, and the device type corresponding to the file transfer service of the target transfer device includes the device type of the electronic device, determine that the current task environment supports file transfer.
9. The method according to claim 5 or 6, characterized in that, The described transfer method includes applying continuous or heterogeneous screen mirroring.
10. An electronic device, characterized in that, The electronic device includes: One or more processors; A memory; And a computer program, where the computer program is stored on the memory, and when the computer program is executed by the one or more processors, the electronic device is caused to execute the task transfer method according to any one of claims 1-9.
11. A computer storage medium, characterized in that, It includes computer instructions, and when the computer instructions run on an electronic device, the electronic device is caused to execute the task transfer method according to any one of claims 1-9.
Citation Information
Patent Citations
Multi-screen interaction method and device
CN111316598A
Cross-device task migration method, device and system and storage medium
CN114816047A
Automatic printing method and electronic equipment
CN115268802A
Task circulation method and electronic equipment
CN116700914A
Printing method, electronic device and system
WO2023179561A1