Data transmission method and electronic equipment

By performing trigger operations and dragging transmission object identification in the electronic device interface, automatic transmission of files and applications between electronic devices is achieved, and the problem of low human-computer interaction efficiency in the prior art is solved, and transmission efficiency and accuracy are improved.

CN120335690APending Publication Date: 2025-07-18HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410042269.X
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

Technical Problem

In the prior art, file transmission between electronic devices requires users to operate multiple times between the sending device and the receiving device, resulting in low human-computer interaction efficiency.

Method used

Automatic transmission of files or applications is realized by performing a trigger operation in the interface of the first electronic device and dragging the transmission object identification around the identification of the second electronic device, and automatic transmission of files or applications is provided for user selection.

Benefits of technology

There is no need for users to operate back and forth between the sending device and the receiving device, which greatly improves the human-computer interaction efficiency of data transmission and ensures the accuracy of file transmission and the satisfaction of user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335690A_ABST
    Figure CN120335690A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and electronic equipment, and relates to the technical field of terminals. The method comprises the steps that a first interface is displayed, and the first interface comprises a first file; in response to a first triggering operation on the first interface, a second interface is displayed, the second interface comprises a first identifier of the first electronic equipment, a second identifier of the second electronic equipment and transmission object identifiers, and the transmission object identifiers are displayed around the first identifier; and after an operation of dragging the transmission object identifier to the periphery of the second identifier is received, transmitting the first file to the second electronic equipment. Therefore, data transmission from the sending device to the receiving device can be realized without back-and-forth operation between the sending device and the receiving device by a user, and the man-machine interaction efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of terminals, and in particular, to a data transmission method and an electronic device. Background Art

[0002] When using electronic devices such as mobile phones and tablets, it is usually necessary to transfer files between multiple electronic devices. For example, a mobile phone transfers a file to a tablet so that the file can be opened on the tablet.

[0003] In the prior art, file transfer can be achieved between electronic devices through social applications or sharing applications (such as Honor Share). Taking the file transfer device as a mobile phone and the receiving device as a tablet as an example: the user can download the same social application on both the mobile phone and the tablet and log in, and then the mobile phone transfers the file to the tablet through the social application; alternatively, the user can turn on the switch of the sharing application on both the mobile phone and the tablet, and then the mobile phone can search for the tablet through the sharing application and select the tablet to transfer the file. Thus, the mobile phone transfers the file to the tablet.

[0004] However, in the above prior art, the user needs to perform multiple operations between the transfer device and the receiving device to achieve the transfer of the file from the transfer device to the receiving device, and the whole process is cumbersome to operate and the human-computer interaction efficiency is low. Summary of the Invention

[0005] The present application provides a data transmission method and an electronic device, which can realize the data transmission from the sending device to the receiving device without the user having to operate back and forth between the sending device and the receiving device, greatly improving the human-computer interaction efficiency.

[0006] To achieve the above object, the present application adopts the following technical solutions:

[0007] The present application provides a data transmission method, which is applied to a first electronic device (as the sending device, see electronic device 1 in the following text). Specifically, the first electronic device displays a first interface, and the first interface includes a first file. In response to a first trigger operation on the first interface (which can be seen as trigger operation 1 in the following text, such as a three-finger upward swipe operation), the first electronic device displays a second interface. The second interface includes a first identifier of the first electronic device, a second identifier of a second electronic device (as the receiving device, see electronic device 2 in the following text), and a transfer object identifier (which can be seen as an application identifier or a file identifier in the following text), and the transfer object identifier is displayed around the first identifier. After receiving the operation of dragging the transfer object identifier to around the second identifier, the first electronic device transfers the first file to the second electronic device.

[0008] In summary, by adopting the present application, when a user performs a first trigger operation and a drag operation corresponding to a transfer object identifier in a first interface of a first electronic device, the first electronic device can be triggered to transfer a first file in the first interface to a second electronic device. The entire process does not require the user to operate back and forth between the first electronic device and the second electronic device, greatly improving the human-computer interaction efficiency for data transfer.

[0009] In a possible design of the first aspect, in response to dragging the transfer object identifier around a second identifier, the first electronic device can also transfer the target application to which the first interface belongs to the second electronic device, so that the target application can be subsequently used on the second electronic device.

[0010] Based on this, after receiving the operation of dragging the transfer object identifier around the second identifier, transferring the first file to the second electronic device further includes: in response to the operation of dragging the transfer object identifier around the second identifier, displaying a first option and a second option around the second identifier. The first option is used to trigger the first electronic device to transfer a file, and the second option is used to trigger the first electronic device to transfer an application. In response to the selection operation of the first option, transfer the first file to the second electronic device.

[0011] Correspondingly, the above method further includes: in response to the selection operation of the second option, transfer the target application to the second electronic device.

[0012] That is to say, the first electronic device can provide a first option and a second option for the user to select, and the first electronic device can determine whether to transfer a file or an application based on the user's selection. Thus, the user's needs can be accurately met.

[0013] In a possible design of the first aspect, the first electronic device can respond to the operation of dragging the transfer object identifier around the second identifier based on different situations of the user interface and different situations of the second electronic device. Among them, the first electronic device provides the first option and the second option only when the different situations of the user interface and the second electronic device meet the first condition.

[0014] Specifically, the above-mentioned displaying the first option and the second option around the second identifier in response to the operation of dragging the transfer object identifier around the second identifier includes: in response to the operation of dragging the transfer object identifier around the second identifier and when the first condition is met, displaying the first option and the second option around the second identifier.

[0015] Among them, the first condition includes: the second electronic device is not a printer or a headset. It can be understood that the main function of a printer is to print, and the main function of a headset is to play audio, and they do not have the function of running various applications. Correspondingly, when the second electronic device is not a printer or a headset, the first electronic device provides a second option to trigger the first electronic device to transfer a file. That is to say, the first electronic device can ensure that the second option is provided only when the second electronic device supports the function of running various applications.

[0016] Among them, the first condition further includes at least one of the following: the first interface is an interface including a single file (see the interface including a single file in the following text), and the first file is a file selected by the electronic device. If the first interface is an interface including a single file, it indicates that there is a unique first file and the user's intention is clear. If the first interface includes a file selected by the user, it indicates that there is a file that the user wants to operate and the user's intention is clear. Correspondingly, the first electronic device provides a first option to trigger the first electronic device to transfer a file. That is to say, the first electronic device can ensure that the first option is provided only when the user's intention is clear.

[0017] In a possible design manner of the first aspect, after displaying the first interface, the above method further includes: in response to a selection operation on the first file, selecting the first file. That is to say, after the user selects the first file, the first electronic device will select the first file.

[0018] In a possible design manner of the first aspect, if the first condition is not met, the response of the first electronic device will be different.

[0019] Specifically, the above method further includes: in response to an operation of dragging the transfer object identifier around the second identifier, and the second electronic device is a printer or a headset, transferring the first file to the second electronic device. That is to say, if the second electronic device is an electronic device that does not have the function of running various applications, the first electronic device will not provide the second option, but will directly transfer the first file to the second electronic device.

[0020] Specifically, the first interface is the application interface of the target application in the electronic device. The above method further includes: in response to an operation of dragging the transfer object identifier around the second identifier, when the first interface includes multiple files and the multiple files have not been selected by the electronic device, transferring the target application to the second electronic device. That is to say, if there is more than one file in the first interface and no file is selected, it indicates that the user's intention is not clear. The first electronic device will not provide the first option, but will directly transfer the target application to the second electronic device.

[0021] In a possible design of the first aspect, if a first triggering operation is performed on the desktop, the first electronic device does not provide the function of transmitting files or applications, but provides the function of screen sharing, so as to quickly realize screen sharing from the first electronic device to the second electronic device.

[0022] Specifically, before displaying the first interface, or after transmitting the first file to the second electronic device, the above method further includes: displaying the desktop of the electronic device. In response to the first triggering operation on the desktop, a third interface is displayed. The third interface includes a first identifier, a second identifier, and a service identifier of the screen sharing service, and the service identifier is displayed around the first identifier. It can be seen that the difference from the second interface is that the third interface provides the service identifier of the screen sharing service instead of the transmission object identifier. In response to the operation of dragging the service identifier around the second identifier, the screen of the first electronic device is shared with the second electronic device.

[0023] That is to say, the first electronic device can provide the service identifier of the screen sharing service for the first triggering operation on the desktop to quickly realize screen sharing.

[0024] In a possible design of the first aspect, for the lock screen interface or the negative first screen interface, the first electronic device does not respond to the user's first triggering operation and display the second interface for transmitting files or applications.

[0025] Specifically, in response to the first triggering operation on the first interface, displaying the second interface includes: in response to the first triggering operation on the first interface, when the first interface is not the lock screen interface and the negative first screen interface, displaying the second interface.

[0026] That is to say, the first electronic device will target the interfaces other than the lock screen interface and the negative first screen interface.

[0027] In a possible design of the first aspect, after transmitting a file or an application to the second electronic device, the transmission task ends, and the first electronic device can display the desktop so that the user can continue to use the first electronic device to complete other tasks. Specifically, the above method further includes: in response to the operation of dragging the transmission object identifier around the second identifier, displaying the desktop of the electronic device.

[0028] In a possible design of the first aspect, if the second electronic device is a printer, after transmitting the file to the second electronic device, the first electronic device returns to the first interface to continue browsing the file instead of displaying the desktop to start a new task.

[0029] Specifically, the operation of displaying the desktop of the electronic device in response to dragging the transmission object identifier around the second identifier includes: displaying the desktop of the electronic device in response to dragging the transmission object identifier around the second identifier and the second electronic device not being a printer. That is to say, only when the second electronic device is not a printer, the desktop will be displayed after transmission.

[0030] Correspondingly, the above method further includes: displaying a first interface in response to dragging the transmission object identifier around the second identifier and the second electronic device being a printer. That is to say, when the second electronic device is a printer, the first interface will be returned after transmission.

[0031] In a possible design of the first aspect, if the second electronic device is a printer, in response to dragging the transmission object identifier around the second identifier, the first electronic device may first provide a printing entry, and after the user confirms the printing, then transmit the file to the second electronic device.

[0032] Specifically, the operation of displaying the first interface in response to dragging the transmission object identifier around the second identifier and the second electronic device being a printer further includes: displaying a first interface including a printing entry in response to dragging the transmission object identifier around the second identifier and the second electronic device being a printer. The transmission of the first file to the second electronic device includes: transmitting the first file to the second electronic device in response to a trigger operation on the printing entry.

[0033] That is to say, the first electronic device will further transmit the first file to the second electronic device only after receiving the user's printing operation, thereby avoiding printing caused by accidental touch by the user.

[0034] In a possible design of the first aspect, the transmission object identifier includes the file identifier of the first file; or, the first interface is the application interface of the target application, and the transmission object identifier includes the application identifier of the target application.

[0035] In a second aspect, the present application further provides an electronic device, which includes a display screen, a memory, and one or more processors. The display 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 computer instructions are executed by the processor, the electronic device is enabled to execute the methods in the first aspect and any of its possible designs.

[0036] In a third aspect, the present application provides a chip system, which is applied to an electronic device including a display screen and a memory; the chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected by lines; the interface circuits are configured to receive signals from the memory of the electronic device and send the signals to the processors, and the signals include computer instructions stored in the memory; when the processors execute the computer instructions, the electronic device executes the method according to the first aspect and any one of its possible design manners.

[0037] In a fourth aspect, the present application provides a computer storage medium, which includes computer instructions, and when the computer instructions run on an electronic device, the electronic device is caused to execute the method according to the first aspect and any one of its possible design manners.

[0038] In a fifth aspect, the present application provides a computer program product, and when the computer program product runs on a computer, the computer is caused to execute the method according to the first aspect and any one of its possible design manners.

[0039] It can be understood that for the beneficial effects that can be achieved by the electronic device in the second aspect, the chip system in the third aspect, the computer storage medium in the fourth aspect, and the computer program product in the fifth aspect provided above, reference may be made to the beneficial effects in the first aspect and any one of its possible design manners, and details are not described herein again. Description of the Drawings

[0040] Figure 1 It is a flowchart of data transmission provided by an embodiment of the present application;

[0041] Figure 2 It is a schematic structural diagram of a communication system provided by an embodiment of the present application;

[0042] Figure 3 It is a schematic diagram of document transmission provided by an embodiment of the present application;

[0043] Figure 4 It is a schematic diagram of application transmission provided by an embodiment of the present application;

[0044] Figure 5 It is another schematic diagram of document transmission provided by an embodiment of the present application;

[0045] Figure 6 It is a schematic diagram of picture and gallery application transmission provided by an embodiment of the present application;

[0046] Figure 7 It is a schematic diagram of screen sharing provided by an embodiment of the present application;

[0047] Figure 8Schematic diagram after different electronic devices provided in the embodiments of this application receive a document;

[0048] Figure 9 Schematic diagram of interface response after data transmission is completed provided in the embodiments of this application;

[0049] Figure 10 Schematic diagram of data transmission to a printer provided in the embodiments of this application;

[0050] Figure 11 Schematic diagram of an application identifier provided in the embodiments of this application;

[0051] Figure 12 Hardware structure diagram of a mobile phone provided in the embodiments of this application. Detailed implementation manners

[0052] Next, in combination with the accompanying drawings in the embodiments of this application, the technical solutions in the embodiments of this application will be described. Among them, in the description of the embodiments of this application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit this application. As used in the specification and claims of this application, the singular forms "a", "the", "above-mentioned", "this" and "this one" are also intended to include expressions such as "one or more", unless there is a clear opposite indication in the context. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" mean one or more than two (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0053] The reference to "one embodiment" or "some embodiments" etc. described in this specification means that in one or more embodiments of this application, specific features, structures or characteristics described in combination with this embodiment are included. Thus, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "include", "comprise", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise stated. "First" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features.

[0054] In the embodiments of the present application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplarily" or "for example" in the embodiments of the present application should not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplarily" or "for example" is intended to present relevant concepts in a specific manner.

[0055] The data transmission method provided by the embodiments of the present application can be applied to scenarios where data is transmitted between electronic devices, such as scenarios where data such as documents, audio and video files, and pictures are transmitted.

[0056] In conventional technologies, file transmission can be achieved between electronic devices through social applications or sharing applications (such as Honor Share). However, it requires the user to perform multiple operations between the transmitting device and the receiving device to achieve the transmission of files from the transmitting device to the receiving device. The entire process is cumbersome to operate and the human-computer interaction efficiency is low.

[0057] Taking the case where the file transmitting device is a mobile phone, the receiving device is a tablet, and Honor Share is used to transmit files as an example, see Figure 1 , the process of the mobile phone transmitting a file to the tablet includes:

[0058] S1. The mobile phone turns on Honor Share. In response to the user's operation of turning on the Honor Share switch on the mobile phone, the mobile phone turns on Honor Share.

[0059] S2. The tablet turns on Honor Share. In response to the user's operation of turning on the Honor Share switch on the tablet, the tablet turns on Honor Share.

[0060] S3. The mobile phone searches for devices with Honor Share turned on and finds the tablet. After the mobile phone turns on Honor Share, the mobile phone can search for devices with Honor Share turned on and display a list of available devices. Moreover, after the tablet turns on Honor Share, the mobile phone can find the tablet. Correspondingly, the list of available devices includes the tablet.

[0061] S4. The mobile phone transmits the file to the tablet. In response to the user's selection operation on the tablet in the list of available devices, the mobile phone can transmit the file to the tablet.

[0062] S5. The tablet confirms the receipt of the file. After the mobile phone transmits the file to the tablet, the user needs to go to the corresponding folder on the tablet to confirm the receipt of the file before being able to view and use the file on the tablet.

[0063] So far, the process of transferring files from the mobile phone to the tablet ends. During this process, the operations performed by the user include: turning on the Honor Share switch on the mobile phone in S1, turning on the Honor Share switch on the tablet in S2, selecting the tablet in the list of available devices in S4, and searching for files in the tablet in S5. Obviously, the user needs to perform multiple operations back and forth between the mobile phone and the tablet, resulting in low human-computer interaction efficiency.

[0064] Based on the above problems, the embodiments of the present application provide a data transmission method, which can be applied to the communication system provided by the embodiments of the present application. The communication system includes multiple electronic devices. Any electronic device can be a mobile phone, a tablet (PAD), a large screen (i.e., a smart TV, also known as a smart screen), etc. Without limitation, the electronic device can also be a personal computer (PC), a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, a car machine, a printer, a headset, etc., which have near-field or far-field communication functions. Among them, the PC includes a desktop computer and a laptop computer. Below, the present application solution will be mainly described taking the PC as a laptop computer as an example.

[0065] Take Figure 2 the shown communication system as an example. The communication system includes a mobile phone 210, a tablet 220, a PC 230, and a large screen 240.

[0066] The same user account (such as an Honor account) is logged in to multiple electronic devices in the communication system, or user accounts with a trust relationship such as a family account or a workgroup account are logged in to multiple electronic devices. Below, the present application will be mainly described taking logging in to the same user account as an example.

[0067] It can be understood that multiple electronic devices logged in to the same user account can join the same trust ring through identity authentication.

[0068] Particularly, for a printer, if an electronic device in the trust ring has used the printer, the printer can also join the trust ring through identity authentication. Further, if the printer is in the white list, it can pass the identity authentication. Take Figure 2 the shown communication system as an example. If the mobile phone 210 has used the printer and the printer is in the white list, the printer can also join the Figure 2 shown communication system, that is, and Figure 2The electronic devices are in the same trust ring. In this way, even a printer that cannot log in to the same user account as electronic devices such as mobile phones, tablets, and PCs can be flexibly added to the trust ring so that the electronic devices in the trust ring can use the printing services provided by the printer.

[0069] Specifically, for headphones, if an electronic device in the trust ring connects to the headphones, the headphones can also be added to the trust ring. Still taking the Figure 2 shown communication system as an example, if the mobile phone 210 connects to the headphones, the headphones can also be added to the Figure 2 shown communication system. In this way, the headphones can be added to the trust ring more conveniently.

[0070] Multiple electronic devices can communicate through short-range communication or remote communication, such as data transmission for identity authentication, service transfer, etc.

[0071] Among them, short-range communication can include Bluetooth communication, Near Field Communication (NFC), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), etc. Correspondingly, if short-range communication between electronic devices is to be achieved, the electronic devices need to turn on the corresponding communication switches, such as turning on the Bluetooth switch, the WLAN switch, etc. It should be noted that if only the WLAN switch is turned on, it is necessary to ensure access to the WLAN network to achieve communication. Usually, before joining the trust ring, the electronic device can prompt to turn on Bluetooth and WLAN, so that it can use WLAN network communication when accessing the WLAN network, and even if it does not access the WLAN network, it can communicate through Bluetooth. Of course, in some technologies, when the WLAN switch is turned on but not accessing the WLAN network, the electronic device can also communicate through WLAN direct connection.

[0072] Remote communication means communicating when the devices are each connected to the network (such as connecting to mobile networks such as 3G, 4G, 5G, 6G, etc. and / or WLAN networks). Correspondingly, if remote communication between electronic devices is to be achieved, the electronic devices need to turn on the corresponding network switches (such as mobile communication switches, WLAN switches) and connect to the network.

[0073] After joining the trust ring, data can be transmitted between the various electronic devices in the trust ring, such as transmitting files, applications, etc.

[0074] When the data transmission method provided by the embodiment of the present application is adopted, when the display interface 1 of any electronic device (denoted as electronic device 1) is in use, in response to a trigger operation 1 by the user in interface 1, the electronic device can display the control center of the trust ring. The control center is used to control data transmission between multiple electronic devices in the trust ring. The control center includes the device identifiers of multiple electronic devices in the trust ring. Moreover, around the device identifier of electronic device 1 in the control center, there is also an application identifier, and the application identifier indicates the target application to which interface 1 belongs.

[0075] The trigger operation 1 can be a two-finger press operation, a two-finger swipe-up operation, a three-finger swipe-up operation, etc., and the present application does not make specific limitations on this either. In this article, mainly taking the trigger operation 1 as a three-finger swipe-up operation as an example, the solution of the present application is described.

[0076] Taking electronic device 1 as a mobile phone and interface 1 as Figure 3 the shown interface 301 as an example, interface 301 is the application interface of a document application, and the document "2023 Shenzhen Watch and Clock Fair Investment Promotion..." is being displayed in interface 1. In response to the user's three-finger swipe-up operation on interface 301, the mobile phone can display Figure 3 the shown interface 302. Interface 302 includes the control center 3021 of the trust ring. The control center 3021 includes the device identifiers of multiple electronic devices such as the identifier 3022 of the mobile phone and the identifier 3023 of the tablet. The control center 3021 also includes the application identifier 3024 of the document application, and the application identifier 3024 is displayed around the identifier 3022 of the mobile phone.

[0077] In response to dragging the application identifier to the vicinity of the device identifier of another electronic device (denoted as electronic device 2), electronic device 1 can transmit file 1 to electronic device 2, and file 1 is the file in interface 1.

[0078] Taking electronic device 2 as a tablet as an example, continue to refer to Figure 3 , in response to the user dragging the application identifier 3024 in the control center 3021 in interface 302 (such as dragging in the direction shown by the dotted arrow in interface 302) to the vicinity of the identifier 3023 of the tablet, the mobile phone can transmit the document "2023 Shenzhen Watch and Clock Fair Investment Promotion..." to the tablet. For example, before the mobile phone transmits the document "2023 Shenzhen Watch and Clock Fair Investment Promotion..." to the tablet, the tablet can display interface 303; after the mobile phone transmits the document "2023 Shenzhen Watch and Clock Fair Investment Promotion..." to the tablet, the tablet can display interface 304, and interface 304 includes a prompt 3041 for the document "2023 Shenzhen Watch and Clock Fair Investment Promotion...", indicating that the tablet has received the document "2023 Shenzhen Watch and Clock Fair Investment Promotion...".

[0079] In summary, by adopting the embodiments of the present application, when the user performs a three-finger upward sliding operation and a dragging operation on the application identifier in the interface 1 of the electronic device 1, the electronic device 1 can be triggered to transmit the file in the interface 1 to the electronic device 2. The entire process does not require the user to operate back and forth between the electronic device 1 and the electronic device 2, greatly improving the human-computer interaction efficiency of data transmission.

[0080] In some embodiments, in response to dragging the application identifier to the vicinity of the device identifier of the electronic device 2, the electronic device 1 can also transmit the target application to the electronic device 2, so that the target application can be used subsequently in the electronic device 2. A typical scenario is as follows: The mobile phone is playing a video, but now the user wants to use the mobile phone for work. By adopting this embodiment, the mobile phone can transmit the video player to the tablet, so that the video can continue to be played on the tablet, while the mobile phone can be used for work.

[0081] That is to say, in response to dragging the application identifier to the vicinity of the device identifier of the electronic device 2, both the transmission of File 1 from the electronic device 1 to the electronic device 2 and the transmission of the target application from the electronic device 1 to the electronic device 2 can be achieved. Based on this, in response to dragging the application identifier to the vicinity of the device identifier of the electronic device 2, the electronic device 1 can first provide an option for transmitting a file (denoted as Option 1) and an option for transmitting an application (denoted as Option 2).

[0082] Continuing with Figure 3 the above example, in response to the user dragging the application identifier 3024 in the control center 3021 of the interface 302 to the vicinity of the identifier 3023 of the tablet, the mobile phone can display the interface 401, which also includes the control center 3021. In the interface 401: In the control center 3021, the application identifier 3024 is displayed around the identifier 3023 of the tablet; and, an option box 4011 is also displayed around the identifier 3023 of the tablet. The option box 4011 includes "Transfer File" 4012 and "Transfer Application" 4013. Among them, "Transfer File" 4012 is Option 1, and "Transfer Application" 4013 is Option 2.

[0083] In response to the selection operation of Option 1, the electronic device 1 can transmit File 1 to the electronic device 2. In response to the selection operation of Option 2, the electronic device 1 can transmit the target application to the electronic device 2. In this way, the electronic device 1 can transmit the corresponding data to the electronic device 2 based on the user's selection to meet the user's needs.

[0084] Continuing with Figure 4 the above example, in response to the user's selection operation of "Transfer File" 4012, the mobile phone can transmit the document "2023 Shenzhen Watch Fair Investment Promotion..." to the tablet. For example, after the transmission is completed, the tablet can display the previous text Figure 3The interface 304 shown. In response to the user's selection operation on the "Transfer Application" 4013, the mobile phone can transmit a document application to the tablet. For example, before the mobile phone transmits the document application to the tablet, the tablet can display the interface 303 shown above Figure 3 ; after the mobile phone transmits the document application to the tablet, the tablet can display the interface 402, and the interface 402 is the application interface of the target application.

[0085] Here, it should be noted that: when the electronic device 1 transmits the target application to the electronic device 2, the electronic device 2 can display the application interface of the target application without installing the target application. Moreover, the electronic device 2 uses the transmitted target application to display the application interface of the target application without relying on the electronic device 1, so the electronic device 1 can perform other tasks.

[0086] In the following text, mainly in combination with this embodiment, that is, in response to dragging the application identifier around the device identifier of the electronic device 2, the electronic device 1 can transmit the target application to the electronic device 2, the solution of the present application will be described.

[0087] The above interface 1 can be any user interface of the electronic device 1, such as the application interface of a chat application, the application interface of a gallery application, the application interface of a music application, etc. The file 1 can be any type of file included in the interface 1. The embodiments of the present application do not make specific limitations in this regard.

[0088] In some embodiments, the interface 1 is an interface for displaying a single file, and the file 1 is a single file in the interface 1. Exemplarily, Table 1 below shows some typical combinations of target applications, interface 1, and the corresponding file 1:

[0089] Table 1

[0090]

[0091]

[0092] In the above Table 1, the file 1 can be a document, a note, a schedule, a collection material, a picture / video, an e-book, an article, a recording, etc.

[0093] Among them, the collection space application is used to collect the content in the user interface, such as files. Exemplarily, in response to the user's three-finger swipe-down operation in the user interface, the collection space application can identify the content in the user interface and collect it. In the collection space application, the collected content can be displayed. In response to the user's viewing operation on any collected content, the collection space application can display the interface of a single collection material.

[0094] Among them, after other applications download files to the local, the downloaded content can be displayed in the download folder of other applications. In response to the user's viewing operation on any downloaded content, other applications can display the interface of a single piece of content downloaded to the local.

[0095] It can be understood that the foregoing Figure 3 example is the case of No. 1 in Table 1. Among them, interface 301 is the application interface of the document application, that is, the target application is the document application, and interface 301 is the interface of a single document (i.e., the document "2023 Shenzhen Watch Fair Investment Promotion..."), and file 1 is the single document in interface 301.

[0096] In this embodiment, after receiving the three-finger swipe-up operation of the user, the electronic device 1 can identify whether the user interface (which can be denoted as interface 2) when receiving the three-finger swipe-up operation is an interface including a single file. For example, the electronic device 1 can identify whether interface 2 is an interface in the above Table 1. If interface 2 is any interface in the above Table 1, the electronic device 1 can identify that interface 2 is an interface including a single file; if interface 2 is not all interfaces in the above Table 1, the electronic device 1 can identify that interface 2 is not an interface including a single file.

[0097] If it is identified that interface 2 is an interface including a single file, it indicates that there is a unique file 1 and the user's intention is clear. In response to the operation of dragging the application identifier around the device identifier of the electronic device 2, the electronic device 1 can provide option 1 and option 2 for the user to select. And, in response to the user's selection operation on option 1, the electronic device 1 transmits the single file in interface 2 to the electronic device 2.

[0098] If it is identified that interface 2 is not an interface including a single file, it indicates that there is no file 1 or there are multiple files 1 and the user's intention is not clear. In response to the operation of dragging the application identifier around the device identifier of the electronic device 2, the electronic device 1 can directly transmit the application to which interface 2 belongs to the electronic device 2. That is, option 1 will not be provided.

[0099] Adopting this embodiment, the electronic device 1 can transmit the only file in interface 1 to the electronic device 2 without the problem of mistransmission.

[0100] In other embodiments, the above interface 1 can be an interface including one or more files, and file 1 can be the file selected by the user.

[0101] When the electronic device 1 displays a user interface, the electronic device 1 may receive a selection operation by the user on one or more files in the user interface. Exemplarily, when the electronic device 1 displays the application interface of a gallery application, the electronic device 1 may receive a selection operation by the user on one or more pictures. Also exemplarily, when the electronic device 1 displays the application interface of a file management application, the electronic device 1 may receive a selection operation by the user on one or more documents. It can be understood that the user usually has a further operation requirement for the selected files.

[0102] In this embodiment, after receiving a three-finger upward sliding operation by the user, the electronic device 1 may identify whether the interface 2 includes the files selected by the user. Among them, the electronic device 1 may identify whether the interface 2 includes the files selected by the user based on the operation events received by the interface 2. For example, if the events received by the interface 2 include events of selecting files, then the interface 2 includes the files selected by the user.

[0103] If it is identified that the interface 2 includes the files selected by the user, it indicates that there are files that the user wants to operate, and the user's intention is clear. In response to the operation of dragging the application identifier around the device identifier of the electronic device 2, the electronic device 1 may provide option 1 and option 2 for the user to select. And, in response to the user's selection operation on option 1, the electronic device 1 transmits the files selected by the user in the interface 2 to the electronic device 2.

[0104] Still taking the electronic device 1 as a mobile phone and the electronic device 2 as a tablet as an example, refer to Figure 5: The mobile phone can display interface 501, and interface 501 is the application interface of the document management application. A document 5011 in the document management application is included in interface 501. In response to the user's selection operation on the document 5011 in interface 501, the mobile phone can display interface 502. The document 5011 in interface 502 has a mark "√", indicating that it is selected. That is, the document 5011 is the file selected by the user. In response to the user's three-finger upward sliding operation in interface 502, the mobile phone can display interface 503. The control center 5031 is included in interface 503, and the identification 5032 of the mobile phone and the identification 5033 of the tablet are included in the control center 5031. The application identification 5034 of the document management application is also displayed around the identification 5032 of the mobile phone. In response to the user dragging the application identification 5034 around the identification 5033 of the tablet, the mobile phone can display interface 504. The control center 5031 is also included in interface 504. In the control center 5031 in interface 504: The application identification 5034 and the option box 5041 are displayed around the identification 5033 of the tablet. The "transfer file" 5042 and the "transfer application" 5043 are included in the option box 5041. In response to the user's selection operation on the "transfer file" 5042, the mobile phone can transmit the document 5011 to the tablet. For example, after the mobile phone transmits the document 5011 to the tablet, the tablet can display interface 505, and a prompt 5051 is included in interface 505, prompting that the tablet has received the document.

[0105] Still taking the electronic device 1 as the mobile phone and the electronic device 2 as the tablet as an example, refer to Figure 6: The mobile phone can display interface 601, which is the application interface of the gallery app. Interface 601 includes thumbnails of multiple pictures in the camera album of the gallery app. In response to the user's selection operations on thumbnails 6011, 6012, and 6013 in interface 601, the mobile phone can display interface 602. The thumbnails 6011, 6012, and 6013 in interface 602 have a mark "√", indicating that they are selected. That is, the pictures corresponding to thumbnails 6011, 6012, and 6013 are the files selected by the user. In response to the user's three-finger swipe-up operation in interface 602, the mobile phone can display interface 603. Interface 603 includes a control center 6031, and the control center 6031 includes the identifier 6032 of the mobile phone and the identifier 6033 of the tablet. An application identifier 6034 of the gallery app is also displayed around the identifier 6032 of the mobile phone. In response to the user dragging the application identifier 6034 around the identifier 6033 of the tablet, the mobile phone can display interface 604. Interface 604 also includes the control center 6031. In the control center 6031 of interface 604: an application identifier 6034 and an option box 6041 are displayed around the identifier 6033 of the tablet. The option box 6041 includes "Transfer Files" 6042 and "Transfer App" 6043. In response to the user's selection operation on "Transfer Files" 6042, the mobile phone can transmit the pictures corresponding to thumbnails 6011, 6012, and 6013 to the tablet. For example, after the mobile phone transmits the pictures corresponding to thumbnails 6011, 6012, and 6013 to the tablet, the tablet can display interface 605, and interface 605 includes a prompt 6051, indicating that the tablet has received the pictures.

[0106] Of course, in response to the user's selection operation on option 2, the electronic device 1 transmits the target application to which interface 2 belongs to the electronic device 2.

[0107] Continuing with Figure 6 the example, after the mobile phone displays interface 604, in response to the user's selection operation on "Transfer App" 6043, the mobile phone can transmit the gallery app to the tablet. For example, after the mobile phone transmits the gallery app to the tablet, the tablet can display interface 606, which is the application interface of the gallery app.

[0108] If it is recognized that the files selected by the user are not included in interface 2, then the files that the user wants to operate cannot be predicted, and the user's intention is not clear. In response to the operation of dragging the application identifier around the device identifier of the electronic device 2, the electronic device 1 can directly transmit the application to which interface 2 belongs to the electronic device 2. That is, option 1 will not be provided.

[0109] With this embodiment, the electronic device 1 can transmit the file selected by the user to the electronic device 2, so as to transmit the file that the user wants to operate to the electronic device 2.

[0110] In practice, the above embodiments of File 1 can be combined. That is to say, File 1 can be a single file in the interface that displays a single file, or a file selected by the user. Correspondingly, the electronic device 1 can identify whether the interface 2 is an interface that includes a single file, and whether the interface 2 includes a file selected by the user. If the interface 2 is an interface that includes a single file, the electronic device 1 can provide Option 1 to realize transmitting the single file in the interface 2 to the electronic device 2. If the interface 2 includes the file selected by the user, the electronic device 1 can also provide Option 1 to realize transmitting the file selected by the user in the interface 2 to the electronic device 2.

[0111] Furthermore, considering that when the user selects a file, the intention is very clear. Based on this, in some other embodiments, if it is recognized that the interface 2 includes a file selected by the user, in response to the operation of dragging the application identifier around the device identifier of the electronic device 2, the electronic device 1 can directly transmit the selected file to the electronic device 2, without further providing Option 1 and Option 2 for the user to select.

[0112] In the above embodiments where the electronic device 1 can transmit File 1 to the electronic device 2 and can also transmit the target application to the electronic device 2, the electronic device 1 provides Option 1 and Option 2 in the control center for the user to select, so as to clarify the user's transmission requirements. In some other embodiments, the user's requirements can also be clarified in the following way: in response to the user's three-finger upward sliding operation, the electronic device 1 displays the control center and provides an application identifier and a file identifier in the control center. In response to the operation of the user dragging the file identifier around the device identifier of the electronic device 2, the electronic device 1 can transmit File 1 to the electronic device 2. In response to the operation of the user dragging the application around the device identifier of the electronic device 2, the electronic device 1 can transmit the target application to the electronic device 2.

[0113] In addition, if the interface 2 is neither an interface that includes a single file (such as not including a file or including multiple files) nor includes a file selected by the user, it indicates that the user's intention is not clear, and the electronic device 1 can not provide Option 1, but directly transmit the application to which the interface 2 belongs to the electronic device 2. Among them, for the convenience of description, the above interface 2 that is neither an interface that includes a single file nor includes a file selected by the user can be called an interface with an unclear intention.

[0114] Exemplarily, Table 2 below shows some typical applications to which the interfaces with unclear intentions belong and their application categories:

[0115] Table 2

[0116] Application Category Application Office <![CDATA[WPS TM , Jinshan Docs TM , Evernote TM , Yunji TM > Audio / Video <![CDATA[NetEase Cloud TM , Tencent Video TM , Douyin TM > Reading <![CDATA[WeChat Reading TM , Tomato Reading TM > Sports <![CDATA[Keep TM and daily yoga TM > Shopping <![CDATA[Taobao TM , JD.com TM > Games <![CDATA[Honor of Kings TM 、Sky: Children of the Light TM >

[0117] For example, in office applications, the interface for displaying a document list usually includes a large number of documents, which belongs to an interface where the intention cannot be recognized. In audio and video applications, there are usually no valid files in the audio and video playback interface, which belongs to an interface where the intention cannot be recognized. In shopping applications, each interface usually only includes some product information and no valid files, which belongs to an interface where the intention cannot be recognized.

[0118] In this case, in response to the operation of dragging the application identifier around the device identifier of the electronic device 2, the electronic device 1 can directly transmit the application to which the interface 2 belongs to the electronic device 2. That is, option 1 will not be provided.

[0119] It should be noted that: In the desktop (excluding the negative first screen) of the electronic device 1, there are usually only some desktop cards, widgets such as clocks and weather, and application icons, etc., and no files are included. However, different from the above interfaces where files cannot be recognized:

[0120] In response to the user's three - finger upward - swipe operation on the desktop, the electronic device 1 can display the control center, which includes the device identifiers of multiple electronic devices and the service identifier for screen sharing, rather than the application identifier. The service identifier is displayed around the device identifier of the electronic device 1. Still taking the electronic device 1 as a mobile phone as an example, see Figure 7 , the mobile phone can display interface 701. Interface 701 is the desktop of the mobile phone. In response to the user's three - finger upward - swipe operation on interface 701, the mobile phone can display interface 702. Interface 702 includes a control center 7021. The control center 7021 includes the device identifiers of multiple electronic devices such as the identifier 7022 of the mobile phone and the identifier 7023 of the tablet. And, the control center 7021 also includes the service identifier 7024 for screen sharing. The service identifier 7024 is displayed around the identifier 7022 of the mobile phone.

[0121] In response to the operation of dragging the service identifier for screen sharing around the identifier of the tablet, the mobile phone can share its screen with the tablet. Continuing to refer to the example in Figure 7 , in response to the user's operation of dragging the service identifier 7024 in interface 702 to the identifier 7023 of the tablet, the mobile phone can share its screen with the tablet. For example, after sharing, the tablet can display interface 703, and interface 703 includes the interface 7031 of the mobile phone. It should be understood that the interface 7031 can change as the mobile phone interface changes.

[0122] It can be seen that after receiving the three - finger upward - swipe operation of the user, the electronic device 1 can identify whether the interface 2 is the desktop and identify the files in the interface 2. If it is identified that the interface 2 is the desktop, it indicates that the user's intention is to share the screen, and the electronic device 1 can respond with a scheme similar to Figure 7 the one shown to achieve the sharing of the screen of the electronic device 1 to the electronic device 2. If it is identified that the interface 2 is not the desktop and no files are recognized, the electronic device 1 can respond with a scheme for the application shown in Table 2 above to achieve the transmission of the application to which the interface 2 belongs to the electronic device 2.

[0123] In this way, for the three - finger upward - swipe operation on the desktop, the electronic device 1 can quickly achieve screen sharing to the electronic device 2.

[0124] In addition, for some user interfaces, such as the lock - screen interface in a secure state, the negative - first - screen, the settings, and other interfaces where the three - finger upward - swipe is occupied, they usually do not respond to the user's three - finger upward - swipe operation to enter the control center. Based on this, in response to the user's three - finger upward - swipe operation in these interfaces, the electronic device 1 can not display the control center.

[0125] In the foregoing embodiments regarding file transfer, mainly based on different situations of the user interface, the operation response of the electronic device 1 to dragging the application identifier around the identifier of the electronic device 2 is described.

[0126] In some other embodiments, the response of the electronic device 1 is also related to the electronic device 2. In this embodiment, when dragging the application identifier around the identifier of the electronic device 2, the electronic device 1 can also respond based on the electronic device 2. Electronic devices such as mobile phones, tablets, PCs, large screens, etc. usually have the function of running various applications. Correspondingly, in response to the user dragging the application identifier around the identifier of the electronic device 2 that has the function of running various applications, the electronic device 1 can provide option 1 and option 2 for the user to choose. Printers mainly have the printing function, and earphones mainly have the audio - playing function and do not have the function of running various applications. Correspondingly, in response to the user dragging the application identifier around the identifier of the printer, the electronic device 1 can transfer the file to the printer without providing option 1 and option 2. Or, in response to the user dragging the application identifier around the identifier of the earphone, the electronic device 1 can transfer the file to the earphone without providing option 1 and option 2.

[0127] Of course, in actual implementation, the electronic device 1 can comprehensively consider different situations of the user interface and different situations of the electronic device 2 to respond to the operation of dragging the application identifier around the identifier of the electronic device 2.

[0128] In the foregoing, the specific implementation of file transfer was mainly described by taking the electronic device 2 as a tablet as an example. In practice, the electronic device 2 can also be other devices among multiple electronic devices, and when it is other devices, the response in the electronic device 2 is similar.

[0129] The following takes the transmission of the document "2023 Shenzhen Watch Fair Investment Promotion..." in the foregoing Figure 3 example to a PC, a large screen, and a car machine as examples:

[0130] Example 1, transmitting to a PC.

[0131] In response to the user dragging the application identifier 3024 in the control center 3021 in the Figure 3 shown interface 302 around the identifier of the PC, the mobile phone can transmit the document "2023 Shenzhen Watch Fair Investment Promotion..." to the PC. After the transmission is completed, the PC can display Figure 8 the shown interface 801. The interface 801 includes a prompt 8011 for the document "2023 Shenzhen Watch Fair Investment Promotion...", indicating that the PC has received the document "2023 Shenzhen Watch Fair Investment Promotion...".

[0132] Example 2, transmitting to a large screen.

[0133] In response to the user dragging the application identifier 3024 in the control center 3021 in the Figure 3 shown interface 302 around the identifier of the large screen, the mobile phone can transmit the document "2023 Shenzhen Watch Fair Investment Promotion..." to the large screen. After the transmission is completed, the large screen can display Figure 8 the shown interface 802. The interface 802 includes a prompt 8021 for the document "2023 Shenzhen Watch Fair Investment Promotion...", indicating that the large screen has received the document "2023 Shenzhen Watch Fair Investment Promotion...".

[0134] Example 3, transmitting to a car machine.

[0135] In response to the user dragging the application identifier 3024 in the control center 3021 in the Figure 3 shown interface 302 around the identifier of the car machine, the mobile phone can transmit the document "2023 Shenzhen Watch Fair Investment Promotion..." to the car machine. After the transmission is completed, the car machine can display Figure 8 the shown interface 803. Navigation is in progress in the interface 803, and the interface 803 also includes a prompt 8031 for the document "2023 Shenzhen Watch Fair Investment Promotion...", indicating that the car machine has received the document "2023 Shenzhen Watch Fair Investment Promotion..."

[0136] It should be noted that the situation where the electronic device 2 is a printer is different: the main function of a printer is to print. Based on this, in some embodiments, after the electronic device 1 transmits a file to the printer, the printer can print the file. For example, a parent can slide three fingers up to transmit the homework in the mobile phone to the printer for printing.

[0137] After transmitting the file to the electronic device 2, the electronic device 2 can open the file using a local application. Taking the transmission of a document as an example, in response to a user's viewing operation on the electronic device 2, such as a click operation on "View" 8012 in the prompt 8011 in the aforementioned interface 801, the electronic device 2 can open the document using a local document application. Taking a picture as an example, in response to a user's viewing operation on the electronic device 2, the electronic device 2 can open the picture using a local gallery application.

[0138] Furthermore, the electronic device 2 can further share the received file. For example, the prompt 8011 in the aforementioned interface 801 also includes "Share" 8013. In response to a user's click operation on "Share" 8013, the PC can share the document "2023 Shenzhen Watch Fair Investment Promotion..."

[0139] Based on the foregoing description, it can be seen that the functions of a printer and headphones are relatively single and do not have the function of running various applications, and it is difficult to open a file through a local application. Based on this, after the electronic device 1 transmits a file (mainly referring to documents and pictures) to the printer, the printer can print the file. After the electronic device 1 transmits a file (mainly referring to audio) to the headphones, the headphones can play the file.

[0140] In some embodiments, after the electronic device 1 transmits a picture to the smartwatch, the smartwatch can set the picture as the wallpaper.

[0141] After transmitting a file or an application to the electronic device 2, the transmission task ends, and the electronic device 1 can display the desktop so that the user can continue to use the electronic device 1 to complete other tasks. Still taking the electronic device 1 as a mobile phone as an example, in response to a user's selection operation on option 1 or option 2, such as Figure 9 the selection operation on "Transfer File" 9011 in the shown interface 901 (the same as the previous interface 401), the mobile phone can display Figure 9 the shown interface 902, and the interface 902 is the desktop of the mobile phone.

[0142] Particularly, based on the foregoing description, it can be known that: after transmitting a file to the printer, the printer will print the file. Based on this, in some embodiments, in response to dragging the application identifier around the printer identifier, the electronic device 1 returns to interface 1 so as to continue browsing the file, rather than displaying the desktop to start a new task.

[0143] Exemplarily, in response to the user dragging the application identifier 10011 of the document application in the interface 1001 (same as the previous interface 302) shown in Figure 10 around the identifier 10012 of the printer, the mobile phone can display Figure 10 the interface 1002 shown in Figure 10 . The interface 1002 is the same as the previous interface 301, thus facilitating the user to continue reading the document "2023 Shenzhen Watch Fair Investment Promotion..." Figure 10

[0144] After returning to interface 1, the electronic device 1 can also display a printing-in progress prompt in interface 1, such as Figure 10 "Printing in progress" 10021 in the interface 1002 shown in , to prompt the user that printing is in progress.

[0145] Furthermore, in response to dragging the application identifier around the identifier of the printer, the electronic device 1 can first return to interface 1 and provide a printing entry in interface 1. In response to the user's trigger operation on the printing entry, such as a click operation, the electronic device 1 then transfers the file to the printer for printing. In a specific implementation manner, in response to the user's trigger operation on the printing entry, the electronic device 1 can also first set printing parameters, such as "double-sided printing", "color printing", etc. After the printing parameters are set, in response to the user's confirmation operation, the electronic device 1 then transfers the file to the printer for printing. In this way, by providing a printing entry, the electronic device 1 can prevent the user from accidentally triggering printing and can also perform printing settings. After the transfer is completed, the electronic device 1 cancels the display of the printing entry.

[0146] Continuing to refer to Figure 10 , in response to the user dragging the application identifier 10011 of the document application in the interface 1001 around the identifier 10012 of the printer, the mobile phone can display the interface 1003. Different from the previous interface 301: the interface 1003 also includes a printing entry 10031. In response to the user's click operation on the printing entry 10031, the mobile phone transfers the document "2023 Shenzhen Watch Fair Investment Promotion..." to the printer for printing. After the transfer is completed, the mobile phone can then display the above interface 1002, that is, cancel the display of the printing entry 10021.

[0147] In the foregoing, mainly in combination with the embodiment in which, in response to dragging the application identifier around the device identifier of the electronic device 2, both the electronic device 1 can transfer file 1 to the electronic device 2 and the electronic device 1 can transfer the target application to the electronic device 2, the data transmission method provided by the present application is described in detail. It should be noted that in the embodiment in which, in response to dragging the application identifier around the device identifier of the electronic device 2, only the electronic device 1 transfers file 1 to the electronic device 2, there are the following differences:

[0148] ​First, if it is recognized that Interface 2 is an interface including a single file, it indicates that there is a unique File 1, and the user's intention is clear. In response to the three-finger upward sliding operation, Electronic Device 1 can display the control center. Also, in response to the operation of dragging the application identifier around the identifier of Electronic Device 2, Electronic Device 1 transmits the single file in Interface 2 to Electronic Device 2.

[0149] If it is recognized that Interface 2 is not an interface including a single file, it indicates that there is no File 1 or there are multiple Files 1, and the user's intention is not clear. In response to the three-finger upward sliding operation, Electronic Device 1 may not display the control center.

[0150] Second, if it is recognized that the file selected by the user is included in Interface 2, it indicates that there is a file that the user wants to operate, and the user's intention is clear. In response to the three-finger upward sliding operation, Electronic Device 1 can display the control center. Also, in response to the operation of dragging the application identifier around the identifier of Electronic Device 2, Electronic Device 1 transmits the file selected by the user in Interface 2 to Electronic Device 2.

[0151] If it is recognized that the file selected by the user is not included in Interface 2, the file that the user wants to operate cannot be predicted, and the user's intention is not clear. In response to the three-finger upward sliding operation, Electronic Device 1 may not display the control center.

[0152] Of course, in some other embodiments, for the cases where the user's intention is not clear in the above "First" and "Second", in response to the three-finger upward sliding operation, Electronic Device 1 may also display the control center, but a prompt indicating that no file is recognized is displayed in the control center, such as the prompt "No selected file is recognized. Try selecting a file".

[0153] By adopting the above First, Second, and Third, Electronic Device 1 can ensure that it responds to the user's three-finger upward sliding operation to display the control center only when there is a need to transfer files, for triggering file transfer by dragging.

[0154] It should be noted that in the embodiments where only the transfer of File 1 from Electronic Device 1 to Electronic Device 2 is implemented, the transfer of the target application is not involved. Correspondingly, the above application identifier can be replaced with a file identifier. In a specific implementation manner, the file identifier includes a combination of "number of files" + "file type" + "file icon". In this way, Electronic Device 1 can indicate the file to be transferred through File Identifier 1.

[0155] Exemplarily, the Interface 302 in the foregoing can be replaced with Figure 11 the shown Interface 1101. The application identifier 3024 in Interface 302 is replaced with the file identifier 11011 in Interface 1101. The file identifier 11011 includes "1" + "document" + PDF icon 11012. Among them, "1" is the number of files, and "document" is the file type.

[0156] Exemplarily, the interface 603 in the foregoing may be replaced with Figure 11 the interface 1102 shown. The application identifier 6034 in the interface 603 is replaced with the file identifier 11021 in the interface 1102. The file identifier 11021 includes "3" + "picture" + the picture icon 11021. Among them, "3" is the number of files, and "picture" is the file type.

[0157] The embodiment of the present application further provides an electronic device, which may include: a display screen, a memory, and one or more processors (such as a CPU, a GPU, an NPU, etc.). The display 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 execute each function or step executed by the device in the foregoing method embodiment.

[0158] Taking the electronic device as a mobile phone as an example below, the hardware structure of any one of multiple electronic devices is described. As Figure 12 shown, the mobile phone may include: a processor 211, an external memory interface 212, an internal memory 221, a universal serial bus (USB) interface 203, a charging management module 243, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.

[0159] It can be understood that the structure schematically shown in this embodiment does not constitute a specific limitation on the mobile phone. In other embodiments, the mobile phone may include more or fewer components than shown, or combine some components, or split some components, or have different component arrangements. The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0160] The processor 211 may include one or more processing units. For example, the processor 211 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.

[0161] The charging management module 243 is used to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. While charging the battery 242, the charging management module 243 may also supply power to the electronic device through the power management module 241.

[0162] The power management module 241 is used to connect the battery 242, the charging management module 243, and the processor 211. The power management module 241 receives inputs from the battery 242 and / or the charging management module 243 and supplies power to the processor 211, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260, etc. In some embodiments, the power management module 241 and the charging management module 243 may also be provided in the same device.

[0163] The wireless communication function of the mobile phone can be implemented by antenna 1, antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, and the baseband processor, etc.

[0164] The mobile communication module 250 may provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the mobile phone. The wireless communication module 260 may provide solutions for wireless communications including WLAN (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied to the mobile phone.

[0165] In some embodiments, the mobile phone can establish a trust ring with other electronic devices and transfer data for service flow through the mobile communication module 250 or the wireless communication module 260, etc.

[0166] The mobile phone realizes the display function through the GPU, the display screen 294, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to execute mathematical and geometric calculations for graphics rendering. The processor 211 may include one or more GPUs, which execute program instructions to generate or change display information.

[0167] The mobile phone can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor, etc. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture static images or videos. In some embodiments, the mobile phone may include one or N cameras 293, where N is a positive integer greater than 1.

[0168] The external memory interface 212 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 211 through the external memory interface 212 to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.

[0169] The internal memory 221 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 211 executes various functional applications and data processing of the mobile phone by running the instructions stored in the internal memory 221. For example, in the embodiments of the present application, the processor 211 can execute the instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.

[0170] The mobile phone can realize the audio function through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone interface 270D, and the application processor, etc. For example, music playback, recording, etc.

[0171] The button 290 includes a power-on button, volume buttons, etc. The button 290 can be a mechanical button or a touch button. The motor 291 can generate a vibration prompt. The motor 291 can be used for incoming call vibration prompts and also for touch vibration feedback. The indicator 292 can be an indicator light and can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 295 is used to connect the SIM card. The SIM card can be in contact with and separated from the mobile phone by inserting or removing it from the SIM card interface 295. The mobile phone can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0172] Moreover, the software architecture of the electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservices architecture, or cloud architecture. The embodiments of the present application do not make specific limitations in this regard.

[0173] The embodiments of the present application also provide a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected by a line. For example, the interface circuit can be used to receive signals from other devices (such as the memory of the electronic device). For another example, the interface circuit can be used to send signals to other devices (such as the processor). Exemplarily, the interface circuit can read the instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can be made to execute each step in the above embodiments. Of course, the chip system can also include other discrete devices, and the embodiments of the present application do not make specific limitations in this regard.

[0174] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions run on the electronic device, the electronic device is made to execute the above-related method steps to implement the image processing method in the above embodiments.

[0175] This embodiment also provides a computer program product. When the computer program product runs on the computer, the computer is made to execute the above-related steps to implement the image processing method in the above embodiments.

[0176] In addition, the embodiments of the present application also provide a device, which can specifically be a chip, component, or 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 image processing method in each of the above method embodiments.

[0177] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here.

[0178] From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity 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.

[0179] In several embodiments provided in this application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the module or unit is only a logical function division. In actual implementation, there can 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 coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.

[0180] The unit described as a separate component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it can be located in one place, or it 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.

[0181] In addition, in each embodiment of this application, each functional unit 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 integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0182] When 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 embodiments of the present 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 for causing a device (which may be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A data transmission method, characterized in that Applied to a first electronic device, the method includes: Display a first interface, where the first interface includes a first file; In response to a first trigger operation on the first interface, display a second interface, where the second interface includes a first identifier of the first electronic device, a second identifier of a second electronic device, and a transfer object identifier, and the transfer object identifier is displayed around the first identifier; After receiving an operation of dragging the transfer object identifier around the second identifier, transmit the first file to the second electronic device.

2. The method according to claim 1, characterized in that, The step of, after receiving an operation of dragging the transfer object identifier around the second identifier, transmitting the first file to the second electronic device includes: In response to the operation of dragging the transfer object identifier around the second identifier, display a first option and a second option around the second identifier; In response to a selection operation on the first option, transmit the first file to the second electronic device.

3. The method according to claim 2, characterized in that The first interface is an application interface of a target application in the electronic device, and the method further includes: In response to a selection operation on the second option, transmit the target application to the second electronic device.

4. The method according to claim 2 or 3, characterized in that, The step of, in response to the operation of dragging the transfer object identifier around the second identifier, displaying a first option and a second option around the second identifier includes: In response to the operation of dragging the transfer object identifier around the second identifier and when a first condition is met, display the first option and the second option around the second identifier; Wherein, the first condition includes: The second electronic device is not a printer or a headset; The first interface is an interface including a single file, or the first file is a file selected by the electronic device.

5. The method according to claim 4, characterized in that After displaying the first interface, the method further includes: In response to a selection operation on the first file, select the first file.

6. The method according to claim 4 or 5, characterized in that, The method further includes: In response to the operation of dragging the transfer object identifier around the second identifier and when the second electronic device is a printer or a headset, transmit the first file to the second electronic device.

7. The method according to claim 4 or 5, characterized in that, The first interface is an application interface of a target application in the electronic device, and the method further includes: In response to the operation of dragging the transfer object identifier around the second identifier and when the first interface includes multiple files and the multiple files are not selected by the electronic device, transmit the target application to the second electronic device.

8. The method according to any one of claims 1 to 7, characterized in that, Before displaying the first interface, or after transmitting the first file to the second electronic device, the method further includes: Display the desktop of the electronic device; In response to a first trigger operation on the desktop, display a third interface, where the third interface includes the first identifier, the second identifier, and a service identifier of a screen sharing service, and the service identifier is displayed around the first identifier; In response to the operation of dragging the service identifier around the second identifier, share the screen of the first electronic device with the second electronic device.

9. The method according to any one of claims 1-8, characterized in that Responding to a first trigger operation on the first interface to display a second interface includes: Responding to the first trigger operation on the first interface, when the first interface is not the lock screen interface or the negative first screen interface, display the second interface.

10. The method according to any one of claims 1-9, characterized in that, The method further includes: Responding to an operation of dragging the transfer object identifier around the second identifier to display the desktop of the electronic device.

11. The method according to claim 10, wherein The responding to an operation of dragging the transfer object identifier around the second identifier to display the desktop of the electronic device includes: Responding to an operation of dragging the transfer object identifier around the second identifier, and when the second electronic device is not a printer, display the desktop of the electronic device.

12. The method according to claim 11, wherein The method further includes: Responding to an operation of dragging the transfer object identifier around the second identifier, and when the second electronic device is a printer, display the first interface.

13. The method according to claim 12, wherein The responding to an operation of dragging the transfer object identifier around the second identifier, and when the second electronic device is a printer, to display the first interface includes: Responding to an operation of dragging the transfer object identifier around the second identifier, and when the second electronic device is a printer, display the first interface including a print entry. Transmitting the first file to the second electronic device includes: Responding to a trigger operation on the print entry to transmit the first file to the second electronic device.

14. The method according to any one of claims 1-13, characterized in that, The transfer object identifier includes the file identifier of the first file; or, The first interface is the application interface of the target application, and the transfer object identifier includes the application identifier of the target application.

15. An electronic device, characterized in that, Includes: A display screen, one or more processors, and one or more memories; the one or more processors are coupled to the display screen and the one or more memories; the one or more memories are used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, the electronic device is caused to execute the method according to any one of claims 1-14.

16. A computer-readable storage medium having computer instructions stored thereon, characterized in that, When the computer instructions run on the electronic device, the electronic device is caused to execute the method according to any one of claims 1-14.

17. A computer program product, comprising computer instructions, characterized in that, When the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1-14.