Content transmission method and electronic equipment
By displaying a transmission control interface on the screen of an electronic device, users can easily transfer content across devices, solving the problem of complex operation in existing technologies and improving the user experience.
Patent Information
- Application Number
- CN202510013435.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2026-02-13
AI Technical Summary
Existing cross-device file transfer operations are complex, resulting in a poor user experience.
By displaying a transmission control interface on the screen of an electronic device, including first and second controls, users can indicate objects and locations on the interface through simple operations, enabling content transmission across devices.
It reduces the operational complexity of cross-device content transfer, improves the user experience, and supports bidirectional content transfer, especially window-level content transfer.
Smart Images

Figure CN121531324A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and in particular to a content transmission method and electronic device. Background Technology
[0002] In recent years, with the development of electronic technology, the types of smart electronic devices have become increasingly diverse, enriching and facilitating users' lives. Users may have the need to transfer files between different electronic devices, which requires them to perform a series of operations on one or two electronic devices.
[0003] For example, in a scenario where a user shares a first file from their laptop with a target contact on their phone's first social media app, the user needs to right-click the icon of the first file on the laptop, which will display a context menu. The user then clicks the share option in the context menu, and the laptop will display at least one currently connected candidate device. The user can select their phone from the candidate devices, and the laptop will then transfer the first file to the phone. Once the phone receives the first file, it can save it to its local storage or open it in the user interface. The user can then perform a series of operations on the opened file on the phone to send it to the target contact on the first social media app.
[0004] For example, in a scenario where a user imports a first image from their phone into an image editing application on their laptop, the user can long-press the first image on their phone, which will display a menu for that image. The user can then tap the share option in the menu, and the phone will display at least one currently connected candidate device. The user can then select their laptop from these candidate devices, and the phone will send the first image to the laptop. Once the laptop receives the first image, it can save it to its local storage or open it in its user interface. The user can then perform a series of operations on the opened image on the laptop to import it into the image editing application.
[0005] The two examples above demonstrate that current cross-device file transfer solutions are complex to operate, resulting in a poor user experience. Summary of the Invention
[0006] This application provides a content transmission method and electronic device for reducing the operational complexity of transmitting content across devices and improving user experience.
[0007] Firstly, embodiments of this application provide a content transmission method, which can be applied to an electronic device. Here, "electronic device" can refer to the electronic device itself, or to a processor, module, chip, or chip system within the electronic device that implements the method. The following description uses a first electronic device as an example; the method includes the following steps:
[0008] A first electronic device displays a first user interface on a display screen; in response to a first operation involving the first electronic device and a second electronic device approaching each other, the first electronic device displays a transmission control interface on the display screen; wherein the transmission control interface includes a first control and / or a second control; the first control is used to indicate a first object in the second electronic device, and the second control is used to indicate a second object in the first electronic device; in response to a second operation performed by a user on the transmission control interface, the first electronic device transmits the first object in the second electronic device to the second object in the first electronic device; wherein the first object is the target transmission content, and the second object is the target transmission location; the second object is a first storage space of the second electronic device, or a first window opened in the first user interface; or in response to a third operation performed by a user on the transmission control interface, the first electronic device transmits the second object in the first electronic device to the first object in the second electronic device; wherein the first object is the target transmission location, and the second object is the target transmission content; the first object is a second storage space of the second electronic device, or a second window opened by the second electronic device; wherein the second operation is different from the third operation.
[0009] This method allows users to transfer content between two electronic devices with minimal user interaction, reducing the complexity of cross-device content transfer and improving user experience. Furthermore, it supports bidirectional content transfer, enabling users to trigger content transfers in different directions through various user actions, greatly simplifying the process. Moreover, this method can transfer content from one electronic device to an open window on another, achieving window-level (or application-level) content transfer and reducing the complexity of window-level content transfer.
[0010] In one possible design, the first electronic device can transmit a first object in the second electronic device to a second object in the first electronic device in response to a second operation performed by the user on the transmission control interface via the following steps:
[0011] In response to the second operation, the first electronic device sends a first transmission instruction to the second electronic device; the first transmission instruction instructs the second electronic device to transmit the first object; the first electronic device receives the first object from the second electronic device; and imports the first object into the second object.
[0012] With this design, a first electronic device can trigger a second electronic device to transmit a first object via a first transmission instruction, thereby enabling cross-device content transmission.
[0013] In one possible design, before transferring the first object in the second electronic device to the second object in the first electronic device, the first electronic device may also determine the second object based on the content displayed by the first user interface.
[0014] In one possible design, the first electronic device may determine the second object based on the content displayed by the first user interface through the following steps:
[0015] When the first user interface is the main interface of the first electronic device, the second object is determined to be the first storage space of the first electronic device; when at least one window is opened in the first user interface, the second object is determined according to the second operation; wherein, when the second object is the first window, the first window is the window in the foreground of the at least one window, or a window that supports importing content.
[0016] Through this design, the first electronic device can determine the object to which the content is transmitted by combining the content of the first user interface with the second operation.
[0017] In one possible design, where the transmission control interface includes the first control, the first electronic device can further determine the second object based on the second operation in the following manner:
[0018] Method 1: When the second operation is an operation performed by the user on the first control, the second object is determined according to the operation type of the second operation;
[0019] Method 2: When the second operation is a drag operation performed by the user on the first control, the second object is determined according to the end position of the second operation;
[0020] Method 3: The transmission control interface also includes a thumbnail of the first window; when the second operation is a drag operation performed by the user on the first control, the second object is determined according to the positional relationship between the end position of the second operation and the thumbnail of the first window.
[0021] In one possible design, when the second operation is an operation performed by the user on the first control, the first electronic device determines the second object based on the operation type of the first operation, including:
[0022] When the second operation belongs to the first operation type, the second object is determined to be the first window; or when the second operation belongs to the second operation type, the second object is determined to be the first storage space of the first electronic device; wherein the first operation type and the second operation type are different. Optionally, the first operation type is a drag operation; the second operation type is a click operation.
[0023] In one possible design, when the second operation is a drag-and-drop operation performed by the user on the first control, the first electronic device determines the second object based on the end position of the second operation, including:
[0024] When the end position of the second operation is located within the first display area of the transmission control interface, the second object is determined to be the first window; or when the end position of the second operation is located within the second display area of the transmission control interface, the second object is determined to be the first storage space of the first electronic device; wherein, the first control and the second display area are located on both sides of the first display area.
[0025] In one possible design, the first display area includes a first prompt message, which indicates that the first display area is the confirmation area of the first window; and / or, the second display area includes a second prompt message, which indicates that the second display area is the confirmation area of the first storage space of the first electronic device.
[0026] In one possible design, when the second operation is a drag-and-drop operation performed by the user on the first control, the first electronic device determines the second object based on the positional relationship between the end position of the second operation and the thumbnail of the first window, including:
[0027] When the end position of the second operation is within the thumbnail of the first window, the second object is determined to be the first window; or when the end position of the second operation is outside the thumbnail of the first window, the second object is determined to be the first storage space of the first electronic device.
[0028] In one possible design, when the end position of the second operation is located within the thumbnail of the first window, and the first operation remains within the thumbnail of the first window for more than a set duration, the first electronic device determines the second object as the first window.
[0029] This design adds the ability for the first electronic device to determine when the second operation is performed, thereby ensuring the accuracy of the second operation and reducing the possibility of content transmission errors caused by user misoperation.
[0030] In one possible design, when the number of at least one open windows in the first user interface is multiple, the first electronic device can also display thumbnails of at least one candidate window capable of importing content in the transmission control interface; wherein, the thumbnail of one candidate window in the at least one candidate window is in the foreground; the at least one candidate window includes the first window; when the first electronic device receives a first swipe operation performed by the user in the transmission control interface, it can switch the thumbnail of the candidate window in the foreground based on the movement of the first swipe operation, so that the thumbnail of the first window is in the foreground.
[0031] With this design, users can select the target window as the target transmission location for content by swiping through multiple candidate windows.
[0032] In one possible design, after transferring the first object in the second electronic device to the second object in the first electronic device, the first electronic device may further display a second user interface; the second user interface includes the user interface after the first window imports the first object; or includes a file window for displaying the content of the first object, or includes a file management window for displaying the icon of the first object; or the first electronic device may further display a first prompt message to inform the user that the first object has been transferred to the second object; the second user interface is displayed when a user operation is received on the first prompt message.
[0033] With this design, the first electronic device can notify the user that the content transmission was successful through the content displayed on the interface.
[0034] In one possible design, the first electronic device may transfer a second object in the first electronic device to a first object in the second electronic device in response to a third operation performed by the user on the transmission control interface via the following steps:
[0035] In response to the third operation, the second object and the second transmission indication are sent to the second electronic device; the second transmission indication is used to indicate that the first object is the target transmission location.
[0036] In one possible design, before transferring the second object from the first electronic device to the first object in the second electronic device, the first electronic device may also determine the second object based on the content displayed by the first user interface.
[0037] In one possible design, the first electronic device may determine the second object based on the content displayed by the first user interface through the following steps:
[0038] When at least one window is open in the first user interface, the second object is determined to be a file displayed in the file window in the foreground of the first user interface; or when the window in the foreground of the first user interface contains at least one selected file, the second object is determined to be the at least one selected file.
[0039] In one possible design, where the transmission control interface includes the second control, the third operation is an operation performed by the user on the second control.
[0040] In one possible design, where the transmission control interface includes a first area, the third operation is the user dragging the second control into the first area.
[0041] In one possible design, if the first control is contained in the first area, the third operation is an operation in which the user drags the second control into the first control within the first area.
[0042] In one possible design, after the second object in the first electronic device is transferred to the first object in the second electronic device, the first electronic device may continue to display the first user interface.
[0043] In one possible design, the first electronic device can display a transmission control interface on a display screen in response to a first operation in which the first electronic device and the second electronic device approach each other:
[0044] In response to the first operation, a connection is established with the second electronic device, and first information is received from the second electronic device; the first information includes information about the first object; based on the first information, the transmission control interface including the first control is displayed on the display screen.
[0045] With this design, the first electronic device can identify the first object based on information notification from the second electronic device, thereby displaying a transmission control interface on the screen that includes a first control indicating the first object.
[0046] In one possible design, the first information includes information on a plurality of candidate objects, of which the first object is included; the transmission control interface includes a plurality of candidate controls; each candidate control is used to indicate a candidate object in the second electronic device; the plurality of candidate controls include the first control; wherein, in the transmission control interface, one of the plurality of candidate controls is in the foreground; the first electronic device can also receive a second swipe operation performed by the user in the transmission control interface, and based on the movement of the second swipe operation, switch the candidate control in the foreground so that the first control is in the foreground.
[0047] With this design, users can select the target content to be transmitted by performing a swipe operation on the first electronic device.
[0048] In one possible design, the plurality of candidate controls are located within a first area of the transmission control interface; the second sliding operation is performed by the user within the first area of the transmission control interface.
[0049] In one possible design, the first electronic device may also send second information to the second electronic device; the second information is used to instruct the second object.
[0050] With this design, the first electronic device can notify the second electronic device of the second object of the locally determined content transmission, so that the second electronic device can determine the first object by referring to the second object.
[0051] In one possible design, the transmission control interface is located above the first user interface, and the transparency of the transmission control interface is greater than 0 and less than 100%.
[0052] This design allows users to access both the transmission control interface and the primary user interface simultaneously, ensuring a smooth visual experience and providing prompts for users to perform operations on the transmission control interface.
[0053] Secondly, embodiments of this application provide a content transmission method, which can be applied to an electronic device. Here, "electronic device" can refer to the electronic device itself, or to a processor, module, chip, or chip system within the electronic device that implements the method. The following description uses a second electronic device as an example; the method includes the following steps:
[0054] The second electronic device displays a third user interface on its screen; in response to a first operation in which the first and second electronic devices approach each other, the second electronic device determines a first object for content transmission based on the content displayed on the third user interface; in response to a second operation performed by the user on the transmission control interface of the first electronic device, the second electronic device transmits the first object in the second electronic device to a second object in the first electronic device; wherein the first object is the target transmission content, and the second object is the target transmission location; the second object is a first storage space of the second electronic device, or a first window opened in the first user interface; or in response to a third operation performed by the user on the transmission control interface of the first electronic device, the second electronic device transmits the second object in the first electronic device to the first object in the second electronic device; wherein the first object is the target transmission location, and the second object is the target transmission content; the first object is a second storage space of the second electronic device, or a second window opened by the second electronic device; the second operation is different from the third operation.
[0055] In one possible design, the second electronic device can transmit the first object in the second electronic device to the second object in the first electronic device in response to a second operation performed by the user on the transmission control interface of the first electronic device through the following steps:
[0056] In response to the second operation, the second electronic device receives a first transmission instruction from the first electronic device; the first transmission instruction instructs the second electronic device to transmit the first object; and sends the first object to the first electronic device according to the first transmission instruction.
[0057] In one possible design, the second electronic device can transfer a second object from the first electronic device to the first object in the second electronic device in response to a third operation performed by a user on the transmission control interface of the first electronic device via the following steps:
[0058] In response to the third operation, the second electronic device may receive the second object and the second transmission indication from the first electronic device through the following steps: wherein the second transmission indication is used to indicate that the first object is the target transmission location; and the second electronic device imports the second object into the first object according to the second transmission indication.
[0059] In one possible design, the second electronic device may determine the first object of content transmission based on the content displayed by the third user interface through the following steps:
[0060] When the third user interface is the main interface of the second electronic device, the first object is determined to be the second storage space of the second electronic device;
[0061] When at least one window is opened in the third user interface, the first object is determined to be the content displayed by the second window in the foreground or the content displayed by the second window in the foreground; or the relative position information of the first electronic device is determined, and the first object is determined based on the relative position information; wherein the relative position information is used to indicate the position of the physical position of the first electronic device mapped to the position of the third user interface.
[0062] Through this design, the second electronic device can determine the object of content transmission by combining the content of the third user interface and the relative position information of the first electronic device.
[0063] In one possible design, the second electronic device can determine the first object based on the relative position information in the following ways:
[0064] Method 1: When the location indicated by the relative location information is within a file management window displaying icons of at least one file, and the icon of the first file is located within the location indicated by the relative location information, or the distance between the icon of the first file and the location indicated by the relative location information is the closest, the first object is determined to be the first file;
[0065] Method 2: When the position indicated by the relative position information is within the file window displaying the contents of the first file, the first object is determined to be the first file;
[0066] Method 3: When the position indicated by the relative position information is within the second window, the first object is determined to be the second window.
[0067] In one possible design, after the second electronic device determines the first object of content transmission based on the content displayed on the third user interface, a prompt may also be displayed on the third user interface to indicate to the user that the first object is the object of content transmission.
[0068] With this design, the second electronic device can prompt the user about the first object through the presentation of the user interface after the first object has been identified.
[0069] In one possible design, the prompt includes: in the third user interface, the first object is presented in a different way than other display elements; or a second prompt message is displayed in the third user interface, the second prompt message being used to prompt the user that the first object is an object for content transmission.
[0070] With this design, the second electronic device can clearly and explicitly indicate to the user the primary object of content transmission in multiple ways.
[0071] In one possible design, the presentation method includes at least one of the following: color, brightness, and transparency.
[0072] In one possible design, the second electronic device may also respond to the first operation by establishing a connection with the first electronic device and sending first information to the first electronic device; wherein the first information includes information about the first object.
[0073] With this design, the second electronic device can notify the first electronic device of the first object that has locally determined the content to be transmitted.
[0074] In one possible design, the second electronic device can determine multiple candidate objects based on the content displayed by the third user interface; wherein the multiple candidate objects include the first object; and the first information includes information about the multiple candidate objects.
[0075] In one possible design, the second electronic device can receive second information from the first electronic device; the second information is used to indicate the second object in the second user interface of the first electronic device; and the first object is determined based on the second object and the content displayed by the third user interface. The first object is either content that supports transmission to the second object or a window that supports importing the second object.
[0076] Thirdly, embodiments of this application provide an electronic device including one or more processors and a memory; the one or more processors are coupled to the memory, and the one or more processors are configured to read a computer program stored in the memory to execute the method provided in any aspect. The computer program code includes computer instructions.
[0077] Fourthly, embodiments of this application provide a communication system, which includes a first electronic device and a second electronic device; wherein the first electronic device is used to perform the method provided in the first aspect, and the second electronic device is used to perform the method provided in the second aspect.
[0078] Fifthly, embodiments of this application provide a chip including a processor coupled to a memory. The processor is used to call computer program instructions stored in the memory during runtime to implement the methods provided in any of the above aspects. Optionally, the chip may further include components such as a memory, a communication interface, and a power supply module. The memory is used to store computer programs; the communication interface is used to receive and send data; and the power supply module is used to supply power to the processor.
[0079] Sixthly, embodiments of this application provide a computer storage medium storing computer program instructions that, when executed on an electronic device, cause the computer to perform the methods provided in any of the above aspects.
[0080] In a seventh aspect, embodiments of this application provide a computer program product comprising computer program instructions; when the computer program instructions are executed on a computer, the computer performs the method provided in any of the aspects.
[0081] The technical effects that can be achieved by any of the second to sixth aspects mentioned above can be described with reference to the technical effects that can be achieved by any possible design in the first aspect mentioned above. The repetitions will not be discussed. Attached Figure Description
[0082] Figure 1A A schematic diagram of a communication system provided in an embodiment of this application;
[0083] Figure 1B A schematic diagram illustrating an application scenario provided in an embodiment of this application;
[0084] Figure 1C A schematic diagram illustrating another application scenario provided by an embodiment of this application;
[0085] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0086] Figure 3 A software structure diagram of an electronic device provided in an embodiment of this application;
[0087] Figure 4 A flowchart illustrating a content transmission method provided in an embodiment of this application;
[0088] Figure 5 A flowchart illustrating the establishment of a connection between a mobile phone and a laptop computer is provided as an embodiment of this application;
[0089] Figures 6A-6C This is a schematic diagram illustrating the acquisition of relative location information of a mobile phone as provided in an embodiment of this application.
[0090] Figures 7A-7K A schematic diagram of a mobile phone user interface provided in an embodiment of this application;
[0091] Figures 8A-8C A schematic diagram illustrating a content transmission example provided in this application embodiment;
[0092] Figure 9 A flowchart illustrating a content transmission method provided in an embodiment of this application;
[0093] Figures 10A-10J A schematic diagram of a mobile phone user interface provided in an embodiment of this application;
[0094] Figure 10K A schematic diagram of a laptop computer user interface provided in an embodiment of this application;
[0095] Figure 11A , Figure 11B A schematic diagram illustrating a content transmission example provided in this application embodiment;
[0096] Figure 12 A schematic diagram of a laptop computer user interface provided in an embodiment of this application;
[0097] Figure 13 A schematic diagram illustrating a content transmission example provided in this application embodiment;
[0098] Figure 14 A flowchart illustrating a content transmission method provided in an embodiment of this application;
[0099] Figure 15 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0100] This application provides a content transmission method and an electronic device to reduce the operational complexity of transmitting content across devices and improve user experience. The method and electronic device are based on the same technical concept. Since the methods and electronic devices solve problems based on similar principles, their implementations can be mutually referenced, and repeated details will not be elaborated further.
[0101] The following explanations of some terms used in this application are provided to facilitate understanding by those skilled in the art.
[0102] 1) Electronic equipment refers to a device or apparatus that has data connectivity, data calculation and processing, and interface display functions.
[0103] For example, the electronic device in this application can be a tablet computer, personal computer (PC), laptop computer, computer, netbook, in-vehicle computer, smartphone, smart wearable device (e.g., smartwatch, smart bracelet, smart glasses, etc.). Of course, the electronic device can also be various portable devices, in-vehicle terminal devices, personal digital assistants (PDAs), smart home devices (e.g., smart TVs, etc.), and other smart devices. This application does not limit the specific form of the electronic device.
[0104] Electronic devices can perform their functions and provide services to users through an operating system they run. For example, the electronic device may, but is not limited to, running an operating system... Or other operating systems.
[0105] 2) Application (APP): An application is installed on an electronic device and provides services to the user after it runs. Applications are also called application programs or application software. Typically, when an application is running, the electronic device displays a corresponding window in the user interface, thus displaying the application's interface and enabling interaction with the user.
[0106] The application may be developed by the manufacturer of the electronic device, the supplier of the operating system of the electronic device, or by a third-party application vendor; this application does not limit this.
[0107] For example, applications can include: calling applications, camera applications, text messaging applications, chat applications, video applications, music applications, electronic map applications, social applications, etc.
[0108] 3) A control is a component installed in an electronic device, encapsulating data and / or programs, used to activate certain functions or applications of the electronic device. Optionally, in the user interface, controls can be presented in various forms, including but not limited to cards, virtual buttons, icons, etc.; in addition, a window thumbnail can also be considered a control.
[0109] 4) Wireless communication technology refers to the methods and measures taken to wirelessly transmit data from one electronic device to another according to established communication rules. For example, in the embodiments of this application, wireless communication technology may include, but is not limited to: Bluetooth (BT) technology (e.g., ordinary BT technology, Bluetooth Low Energy (BLE) technology), Wireless Fidelity (WiFi) technology, ZigBee technology, Ultra Wideband (UWB) technology, Near Field Communication (NFC) technology, or StarFlash technology, etc. In addition, wireless communication technology may also include wireless communication technologies evolved from the above-mentioned communication technologies, as well as wireless communication technologies with the same or similar functions and capable of substituting for each other, etc., which are not limited in this application.
[0110] Each wireless communication technology has a corresponding wireless communication protocol. For example, BT technology corresponds to the BT protocol, WiFi technology corresponds to the WiFi protocol, and StarScan technology corresponds to the StarScan protocol. When two communication devices communicate using a wireless communication technology, both parties use the wireless communication protocol corresponding to that technology to process the transmitted data.
[0111] Since current wireless communication technologies are generally limited to short distances, they can also be called short-range wireless communication technology or short-range communication technology.
[0112] 5) The object of content transmission, that is, the thing that can be the target of content transmission, including things that can be the target of content transmission (such as documents, pictures and other files or data) and things that can be the target of location transmission (such as specific storage space or window).
[0113] 6) Import: Transfer content (such as data, files, etc.) from one place to another. For example, import a file into a window or a specific storage space.
[0114] The file import window is essentially a file transfer window. The specific methods for importing files vary depending on the window's function. For example, importing a file into a chat application's contact chat window allows you to send the file to a contact in the chat window; importing a target image into a window of an image or video editing application allows you to open the target image in that window; importing a target image into a window currently displaying an image upload module allows you to submit the target image to that module and upload it in that window; and importing images or documents into a browser window allows you to open the images or documents in that browser window.
[0115] 7) Foreground and Background. In user interface design, the concepts of foreground and background are used to demonstrate the hierarchy of displayed elements and create visual focus, helping users better understand and interact with the interface. The foreground is the most prominent, important, and usually directly interacted with by the user; the background is the element behind the foreground, usually not directly interacted with, but plays a role in the overall aesthetics and functionality of the interface.
[0116] In some interfaces, foreground and background elements can be contrasted and differentiated through at least one of the following methods to help users better identify elements in the foreground: color contrast, placement, size and shape, and dynamic effects. For example, foreground elements can use high-contrast colors, be placed in a central area of the interface where they are more easily noticed, and be larger to attract attention. Conversely, background elements can use softer colors, be placed at the edges of the interface, and be smaller to avoid distracting the user from the foreground.
[0117] In some interfaces, the display elements of the foreground and background can switch between each other based on the background software design of the electronic device or user operation. Additionally, electronic devices can also achieve a smooth transition between foreground and background by displaying animation effects.
[0118] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0119] In the embodiments of this application, descriptions such as "when," "under the circumstances," "if," and "if" all refer to the electronic device making corresponding processing under certain objective circumstances. They are not time limits, nor do they require the electronic device to make a judgment action when implementing it, nor do they imply any other limitations.
[0120] It should be noted that in this application, "for indicating" can include both direct and indirect indication. When describing information as indicating A, it can include whether the information directly or indirectly indicates A, but does not necessarily mean that the information contains A. Taking first information indicating first content as an example, the first information can contain the first content, or a part of the first content, or an identifier or index of the first content, and can also contain algorithms or calculation parameters for determining the first content. This application does not limit the manner of "indication".
[0121] In this application, "containing / including A" may be equivalent to "containing / including information A". Information A is used to indicate A.
[0122] In addition, it should be understood that in the description of this application, the words "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance or order.
[0123] The content transmission scheme provided in this application can be applied to a communication system consisting of two electronic devices. The following description uses an example of a communication system including a first electronic device and a second electronic device. Figure 1A As shown.
[0124] like Figure 1A As shown, the first electronic device and the second electronic device can establish a wireless communication connection through wireless communication technology.
[0125] In one implementation, when the two electronic devices in the figure are physically close, either electronic device can act as the master device, actively initiating a connection establishment process via short-range wireless communication technology to establish a wireless communication connection with the other electronic device. This enables the transmission of relevant data and the control and management of the slave device in the content transmission method provided in this application embodiment. For example, the connection establishment process may include device search, pairing, and connection establishment. Optionally, during the connection establishment process, the two electronic devices can also perform device account authentication. Additionally, the master device can also provide a clock synchronization signal.
[0126] Optionally, short-range wireless communication technologies may include, but are not limited to: radio frequency identification (RFID) technology, Bluetooth technology, WiFi technology, Zifeng technology, Xingshan technology, UWB technology, NFC technology, as well as communication technologies evolved from the above-mentioned communication technologies, and communication technologies with the same or similar functions as the above-mentioned communication technologies and which can be substituted for each other.
[0127] For example, such as Figure 1BAs shown, a smartphone can establish a wireless communication connection (e.g., a Bluetooth connection) with a laptop computer, and transmit information and data between devices in the content transmission method provided in this application embodiment through the wireless communication connection.
[0128] In another implementation, the first electronic device and the second electronic device can connect to an access point via short-range wireless communication technology, thereby accessing the same wireless local area network (WLAN), such as... Figure 1C As shown. In this way, the first electronic device and the second electronic device can establish a wireless communication connection through a wireless local area network, and complete the transmission of relevant information and data when implementing the content transmission method provided in the embodiments of this application.
[0129] For example, such as Figure 1C As shown, smartphones and laptops can first connect to an access point (i.e., a WiFi router) using WiFi technology, and then the access point will connect the smartphones and laptops to the wireless local area network.
[0130] For example, two electronic devices can connect to the same Bluetooth beacon via Bluetooth technology, thus establishing a wireless communication connection between them.
[0131] It should also be noted that this application does not limit the connection method between the first electronic device and the second electronic device. For example, the first electronic device and the second electronic device can also establish a physical communication connection through a cable.
[0132] in addition, Figure 1B and Figure 1C As an example, this application does not limit the type of electronic device involved in the content transmission method provided in the embodiments. For example, the content transmission method provided in the embodiments of this application can be implemented between a smartphone and a tablet, between two smartphones, between two tablets, between a smartphone and a smartwatch, and between a smartwatch and a tablet.
[0133] This application provides an electronic device that can form a communication system with other electronic devices to implement the content transmission method provided in this application. See below for reference. Figure 2 The structure of the electronic device provided in the embodiments of this application will be described.
[0134] like Figure 2As shown, the electronic device 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a SIM card interface 295, etc.
[0135] Processor 210 may include one or more processing units. For example, processor 210 may include a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors. The controller may be the central nervous system and command center of electronic device 200. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0136] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or is recurring. If the processor 210 needs to use the instruction or data again, it can retrieve it directly from this memory. By providing a memory, the number of times the processor 210 accesses data in the internal memory 221 can be reduced, thus reducing the processor 210's waiting time and improving system efficiency.
[0137] The content transfer method provided in this application embodiment can be implemented by the processor 210 controlling or calling other components. For example, it can call the software program of this application embodiment stored in the internal memory 221 to control the wireless communication module 260 to communicate with other electronic devices and control the display screen 294 to display the user interface. The processor 210 may include different devices. For example, when integrating a CPU and a GPU, the CPU and GPU can cooperate to execute the content transfer method provided in this application embodiment. For example, the software operation in the content transfer method is executed by the CPU, while another part of the algorithm related to the user interface display is executed by the GPU to obtain faster processing efficiency.
[0138] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Minied, MicroLED, Micro-OLED, quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 200 may include one or N displays 294, where N is a positive integer greater than 1. Display screen 294 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 294 can display windows, photos, videos, web pages, or documents, etc. Furthermore, it is understood that in some embodiments, the status bar may also include Bluetooth icons, WiFi icons, external device icons, etc. In some embodiments, when the processor 210 detects a user's finger (or stylus, etc.) touching the display screen, in response to the touch operation, the processor 210 can execute the action corresponding to the touch operation. In some embodiments, when the processor 210 detects an input event from an external input device (e.g., mouse, keyboard, etc.) of the electronic device 200, in response to the input event, the processor 210 can execute the action corresponding to the input time. When the processor 210 runs the content transfer method provided in this application embodiment, the processor 210 can control the display screen 294 to display a user interface related to content transfer.
[0139] In this embodiment, the electronic device 200 is a foldable electronic device. Therefore, a display screen 294 of the electronic device 200 can be a single flexible display screen, or it can be a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens. By performing a folding operation on the electronic device 200, the display screen can change its folded state.
[0140] In some embodiments, part or all of the display area of the display screen 294 can be used to display a user interface. In other embodiments, the electronic device 200 can display multiple windows in a split-screen mode. For example, the electronic device 200 can divide the display area of the display screen 294 into at least two display parts, each of which can be called a split screen, and each split screen can display a window or user interface.
[0141] Camera 293 is used to capture still images or videos. Optionally, electronic device 200 may include 1 to N cameras 293. For example, camera 293 may include a front-facing camera or a rear-facing camera, or a single camera 293 may function as both a front-facing and a rear-facing camera. Typically, camera 293 may include a photosensitive element such as a lens assembly and an image sensor. The lens assembly includes multiple lenses (convex or concave lenses) for collecting light signals reflected from the object to be photographed and transmitting the collected light signals to the image sensor. The image sensor generates a raw image of the object to be photographed based on the light signals.
[0142] Internal memory 221 can be used to store computer executable program code, which includes instructions. Processor 210 executes various functional applications and data processing of electronic device 200 by running the instructions stored in internal memory 221. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system, program code for at least one application, etc. The operating system may include, but is not limited to, […]. The data storage area can store data created during the use of the electronic device 200, etc.
[0143] The internal memory 221 may also store one or more computer programs for performing the content transfer method provided in the embodiments of this application. These one or more computer programs, stored in the internal memory 221 and configured to be executed by one or more processors 210, include instructions that can be used to perform the steps in the following embodiments.
[0144] In addition, the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0145] The sensor module 280 may include a fingerprint sensor, a touch sensor, a pressure sensor, a magnetic sensor, an ambient light sensor, a barometric pressure sensor, a bone conduction sensor, etc.
[0146] A touch sensor, also known as a "touch panel," can be disposed on the display screen 294. The touch sensor detects touch operations applied to or near it. It transmits the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In some embodiments, the touch sensor may also be disposed on the surface of the electronic device 200, in a different location than the display screen 294. Optionally, the touch sensor can be a capacitive touch sensor; when disposed on the display screen 294, it can be referred to as a capacitive screen. The capacitive screen includes a transparent conductive layer and a controller chip; when no user touches or an object approaches the capacitive screen, each point in the transparent conductive layer has the same capacitance value; when a user or object approaches or touches a certain area of the capacitive screen, the capacitance value of that area of the transparent conductive layer changes. The controller chip can continuously detect the capacitance value of each point in the transparent conductive layer to determine the location where the user or object touches or approaches, thereby detecting user operations applied to or near the capacitive screen.
[0147] The wireless communication function of electronic device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor.
[0148] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0149] The mobile communication module 250 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 may be housed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 may be housed in the same device.
[0150] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.) or displays images or videos through the display screen 294. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 210 and may be housed in the same device as the mobile communication module 250 or other functional modules.
[0151] The wireless communication module 260 can provide solutions for wireless communication applications on the electronic device 200, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared (IR), and UWB. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2. In this embodiment, the electronic device 200 can establish wireless communication connections with other electronic devices through the wireless communication module 260 for data interaction, or the electronic device 200 can access an access point through the wireless communication module 260, thereby sending instructions and data with network devices or other electronic devices through the access point. For example, electronic device 200 can establish a wireless communication connection with other electronic devices through wireless communication module 260, and transmit files and related information during content transmission through wireless communication module 260.
[0152] In addition, the electronic device 200 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, and an application processor, such as music playback and recording. The electronic device 200 can receive input from buttons 290, generating key signal inputs related to user settings and function control. The electronic device 200 can use a motor 291 to generate vibration alerts. The indicator 292 in the electronic device 200 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. The SIM card interface 295 in the electronic device 200 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to achieve contact and separation with the electronic device 200.
[0153] In addition, in some scenarios, the electronic device 200 also has an input device interface for connecting input devices such as keyboards, mice, and gamepads. This input device interface can reuse the USB interface 203 or be a separately designed dedicated interface; this application does not limit this.
[0154] It should be understood that Figure 2The electronic device 200 shown is merely an example and does not constitute a limitation on the electronic device. In practical applications, the electronic device 200 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0155] It should also be noted that, in the embodiments provided in this application, the structures of the first electronic device and the second electronic device can both be referred to Figure 2 The electronic device 200 is shown. Furthermore, the structures of the first and second electronic devices may differ; the first or second electronic device may have a more... Figure 2 The present application will not elaborate on the presence or absence of more or fewer components, or different component configurations. Furthermore, even if two devices have the same components, the same components within the two electronic devices may exhibit performance differences.
[0156] Figure 2 The hardware structure of the electronic device has been introduced; the software structure is described below. The software system of the electronic device provided in this application embodiment can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture as an example, referring to... Figure 3 The software structure of an electronic device is illustrated by example.
[0157] A layered architecture divides the software within an electronic device into several layers, each with a clear role and function. Layers can communicate with each other through software interfaces. For example... Figure 3 As shown, the software architecture of an electronic device, from top to bottom, includes at least the following: application layer, system service layer, and kernel layer. Additionally, an electronic device may include a hardware abstraction layer (HAL), which provides hardware resource support for the electronic device.
[0158] The application layer is the top layer of the operating system, including the operating system's native applications and installed third-party applications, such as camera, gallery, calendar, Bluetooth, music, video, messaging, calculator, chat applications, video applications, music applications, electronic map applications, social applications, and so on.
[0159] The system service layer is an important part of the operating system of an electronic device, including various system services provided by the operating system. For example, the system service layer may include: window management service, operation management service, notification management service, layer management service, input management service, access control service, etc.
[0160] The window management service is used to manage the display and configuration of windows. Based on display settings and multiple management functions, it controls the display of windows or interfaces on the screen, adjusting their transparency, position, and size. It can also provide functions such as screen locking and screenshotting. The window management service can obtain parameters such as screen size and resolution, and can identify display areas in the user interface, such as the status bar. Optionally, when an electronic device enters split-screen mode, the window management service can also manage the display and configuration of the window library within each split screen.
[0161] The operation and management service is responsible for starting, switching, and scheduling various components in the system, as well as managing and scheduling applications.
[0162] Notification management services allow applications to display notification information in the status bar, as well as to convey informational messages. These messages can disappear automatically after a short pause, without requiring user interaction.
[0163] The input management service is used to collect, process, and distribute user operation information and input events. For example, the input management service can receive operation information reported by touch drivers or other input device drivers (such as keyboard drivers, mouse drivers, etc.), convert it into input events, and distribute the input events to other modules for processing.
[0164] Layer management service is a standalone service provided by the operating system of an electronic device. It is a low-level, resident service of the operating system. During device operation, this layer management service needs to run continuously, and the operating system prioritizes allocating resources to it to ensure that it can perform image compositing at any time, thereby ensuring that the electronic device can display the user interface in real time. The layer management service is mainly responsible for the creation, control, and management of layers. It composites and renders the image frames of the corresponding window in each layer, and finally combines the graphic frames from all layers into the image of the user interface to be displayed on the screen.
[0165] Access control services can provide access permission verification for various applications in the application layer and other system services in the system service layer.
[0166] Content transfer services are used to enable content transfer between different electronic devices. For example, when this electronic device is close to another electronic device, the content transfer service can identify the transfer objects in this electronic device and the other electronic device, and then transfer one transfer object to another transfer object according to user operation. For details, please refer to the method provided in the embodiments of this application, which will not be elaborated here.
[0167] Optionally, between the application layer and the system service layer, the software architecture of the electronic device may also include an application framework layer (FWK) (not shown in the figure). The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer may include some predefined functions. For example, the application framework layer may include a content provider, a view system, a resource manager, etc. The content provider is used to store and retrieve data, making this data accessible to applications in the application layer. The view system includes visual controls, such as controls for displaying text, images, documents, etc.; the controls in the view system can be used to build the user interface of the application.
[0168] The kernel layer provides the core system services of the operating system, such as security, memory management, process management, network protocol stack, and driver models, all of which are implemented based on the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer contains many drivers related to electronic devices, including: display drivers; keyboard drivers; mouse drivers; Flash drivers for memory-based devices; camera drivers; audio drivers; Bluetooth drivers; WiFi drivers; and touch drivers.
[0169] HAL (Hardware Abstraction Layer) is the interface layer between the operating system kernel and the hardware circuitry of an electronic device, and its purpose is to abstract the hardware. For example, HAL can include various sensors, displays, cameras, hardware composers (HWCs), and other hardware components in an electronic device. The HWC is primarily responsible for image compositing and display.
[0170] It should be noted that, Figure 3 This is merely an example of the software architecture of an electronic device, simply listing some layers and software modules, and does not constitute any limitation on the software architecture of the electronic device. In practical applications, the operating system of an electronic device may include other layers, or each layer may include other software modules for implementing one or more functions or services. Furthermore, this application does not limit the specific layer where each software module resides. For example, some system services in the system service layer may be deployed in the application framework layer or in the kernel layer.
[0171] Furthermore, this application does not specifically limit the names of the various software modules in the software structure. For example, in In operating systems, the window management service can be WindowManagerServer (WMS), the layer management service can be the layer management engine (SurfaceFlinger), and the input management service can be InputManagerService. operating system( In a HarmonyOS operating system, the window management service can be SceneBoard (SCB), the layer management service can be RenderService (RS), and the input management service can be a multimodal input service. The multimodal input service aims to support developers in providing users with a rich variety of human-computer interaction methods. While continuously improving support for traditional input methods, the multimodal input service will also leverage the distributed advantages of OpenHarmony to enhance cross-device interaction experiences and provide system-level support capabilities for new scenarios and new businesses. The input component of the multimodal input service adopts the OpenHarmony system-level input event management framework, connecting southbound to various input devices (touchscreens, mice, keyboards, remote controls, gamepads, etc.), aggregating various input events (button presses, touches, etc.), and distributing them to other system services or applications after normalization / standardization processing.
[0172] As mentioned in the background, current traditional file transfer solutions across devices require users to perform a series of operations on one or two electronic devices, resulting in high operational complexity and a poor user experience. Therefore, this application provides a series of content transfer methods. The content transfer methods provided in this application will be described in detail below with reference to the accompanying drawings.
[0173] The following Examples 1 and 2 are based on Figure 1B The following example, which includes a laptop and a mobile phone, illustrates the method of content transfer between a laptop and a mobile phone.
[0174] Example 1: This example provides a method for transferring content from a laptop to a mobile phone. For details, please refer to [link / reference]. Figure 4 As shown.
[0175] S400a: In the initial state, the phone displays the user interface a-1.
[0176] S400b: In its initial state, the laptop displays the user interface b-1.
[0177] S401: The user performs the first action on the mobile phone and / or laptop to bring the two closer together.
[0178] For example, a user can point their phone at and bring it close to the laptop screen. Alternatively, a user can bring their phone close to the laptop and simultaneously move the laptop or its screen closer together. Yet another example is that a user can move the laptop or its screen to a different position.
[0179] S402: In scenarios where the mobile phone and laptop have not established a connection, the mobile phone and laptop establish a connection based on the first operation. In scenarios where the mobile phone and laptop have already established a connection, this step is not executed, and the mobile phone and laptop skip this step and proceed to subsequent steps.
[0180] In one implementation, the mobile phone and laptop can be connected via... Figure 5 The process shown establishes a wireless communication connection, and the specific steps are as follows:
[0181] S4021: The laptop computer broadcasts wireless signal 1 based on the first wireless communication protocol.
[0182] S4022: After receiving wireless signal 1, the mobile phone sends wireless signal 2 to the laptop. Wireless signal 2 may carry the mobile phone's device information, such as communication address and device identifier.
[0183] S4023: After receiving wireless signal 2 from the mobile phone, the laptop can establish a wireless communication connection with the mobile phone based on the device information of the mobile phone carried in wireless signal 2. It should be noted that the second wireless communication protocol used by the laptop and the mobile phone to establish a wireless communication connection in S4023 can be the same as or different from the first wireless communication protocol used to send wireless signal 1 and wireless signal 2, and this application does not limit it in this regard.
[0184] Optionally, prior to S4021, the laptop can initiate the connection establishment process described in S4021-S4023 in various ways, i.e., execute S4020. For example, the laptop can trigger the connection establishment process based on user instructions. In one embodiment, the laptop's display screen is a capacitive screen, and the laptop can detect whether an object is approaching based on whether there is an area on the capacitive screen where the capacitance value changes; when the laptop detects an object approaching, it triggers the connection establishment process.
[0185] Optionally, in this embodiment, the laptop or mobile phone can establish a wireless communication connection when the distance between them is determined to be less than a distance threshold. In one embodiment, the laptop or mobile phone can use the wireless signal transmission process in S4021 and S4022 to perform distance measurement and determine the distance between them. For example, the mobile phone can perform distance measurement based on the signal quality of the received wireless signal 1 (e.g., signal received power, signal-to-interference-plus-noise ratio, signal strength indication, signal received quality) to determine the distance between the mobile phone and the laptop, as shown in S4022a; when the distance between the mobile phone and the laptop is less than the distance threshold, wireless signal 2 is sent to the laptop. Alternatively, the laptop can perform distance measurement based on the signal quality of the received wireless signal 2 to determine the distance between the mobile phone and the laptop, as shown in S4022b; when the distance between the mobile phone and the laptop is less than the distance threshold, S4023 is executed to establish a wireless communication connection with the mobile phone. It should be noted that in specific implementations, S4022a and S4022b can be executed selectively, or both steps can be executed simultaneously; this application does not limit this.
[0186] In another implementation, the laptop or mobile phone can also perform distance measurement in other ways. For example, the laptop or mobile phone can perform distance measurement through third wireless communication technologies such as Bluetooth and UWB technology. For details, please refer to the current distance measurement methods, which will not be elaborated here.
[0187] Optionally, in this embodiment, the mobile phone and laptop can also perform account verification to ensure the security and privacy of data in the device, as well as the security of subsequent content transmission. In one embodiment, the laptop or mobile phone can use the wireless signal transmission process in S4021 and S4022 to perform account verification. For example, the wireless signal 1 sent by the laptop through S4021 can carry the account information 1 logged in by the laptop; after receiving the wireless signal 1, the mobile phone can verify the account information 1, as shown in S4022a; if the account information 1 is the same as the account information 2 logged in by the mobile phone, or if the account information 1 is included in the account whitelist of the mobile phone, then the account verification is successful; when the account verification is successful, the mobile phone sends the wireless signal 2 to the laptop. Alternatively, the wireless signal 2 sent by the mobile phone via S4022 can carry the account information 2 for mobile phone login; after receiving the wireless signal 2, the laptop can verify the account information 2, as shown in S4022b; if the account information 2 is the same as the account information 1 logged in by the laptop, or if the account information 2 is included in the laptop's account whitelist, the account verification is successful; when the account verification is successful, S4023 is executed to establish a wireless communication connection with the mobile phone. It should be noted that in specific implementations, S4022a and S4022b can be executed individually or both steps can be executed simultaneously, and this application does not limit this.
[0188] In this embodiment, the user interface a-1 displayed on the mobile phone can be the main interface of the mobile phone, or at least one window can be opened in the user interface a-1. The user interface b-1 displayed on the laptop computer can contain an icon of at least one file, or contain at least one file window; each file window is used to display the content of one or more files, and the at least one file window is used to display the content of at least one file. In short, at least one file is presented in the user interface b-1.
[0189] S403: After establishing a connection with the mobile phone, the laptop determines the first target file to be transferred from at least one file presented in the user interface b-1.
[0190] In this embodiment, the laptop computer can determine the object of content transmission—the first target file to be transmitted—according to a set principle. Optionally, the laptop computer can determine the first target file to be transmitted by combining various factors such as the content displayed in the current user interface b-1, the content displayed in the current user interface a-1 on the mobile phone, the target location of content transmission on the mobile phone, and the relative position information of the mobile phone. The relative position information of the mobile phone is used to indicate the location of the mobile phone's physical location mapped to the position of the laptop computer's user interface b-1.
[0191] Depending on the specific information referenced by the laptop to determine the first target file, the laptop can execute S403 through the following implementation methods a1-a3.
[0192] Implementation method a1: such as Figure 4 As shown in S403, the mobile phone sends first information to the laptop computer, the first information indicating the content displayed in the mobile phone's user interface a-1. After receiving the first information from the mobile phone, the laptop computer determines the first target file from at least one file presented in user interface b-1 according to the content displayed in the mobile phone's user interface a-1 as indicated by the first information.
[0193] When the first information is used to indicate at least one window open in the user interface a-1 of the mobile phone, the laptop determines, within that at least one file, at least one target file capable of importing some or all of the windows open on the mobile phone, the at least one target file containing the first target file. In other words, the first target file is a file capable of importing some or all of the windows open on the mobile phone.
[0194] When the first information is used to instruct the phone's user interface a-1 to be the main interface, the laptop determines, within the at least one file, at least one target file that can be saved to the phone's storage space, and this at least one target file contains the first target file. In other words, the first target file is a file that can be saved to the phone's storage space.
[0195] Implementation method a2: As shown in Figure S403, the mobile phone sends first information to the laptop computer. The first information indicates the target location for content transmission from the mobile phone. After receiving the first information from the mobile phone, the laptop computer determines a first target file from the at least one file based on the target location indicated by the first information. The first target file is a file that can be imported into the target location.
[0196] Optionally, in this embodiment, the laptop computer may determine at least one target file that can be imported into the target location, the at least one target file containing a first target file.
[0197] Optionally, in this embodiment a2, the target location for content transmission on the mobile phone can be the default location, a location set by the mobile phone operating system or application, or a location set by the user. Alternatively, the target location can be determined by the mobile phone based on the content displayed in the current user interface a-1; for example, when user interface a-1 is the main interface, the mobile phone determines the target location for content transmission to be the mobile phone's storage space; when at least one window is open in user interface a-1, the mobile phone can determine the target location for content transmission to be the first window among them, wherein the first window can be a window located in the foreground of the mobile phone, or a window that supports importing files.
[0198] Implementation method a3: The laptop computer obtains the relative location information of the mobile phone, and determines the first target file in the at least one file based on the relative location information.
[0199] In one implementation, the relative position information is used to indicate the physical location of the mobile phone mapped to a target point within the user interface b-1 of the laptop. The laptop can determine the display element closest to the target point from the display elements displayed in the user interface b-1 (such as file icons, windows, window title areas, etc.), and then use the file indicated by that display element as at least one target file to be transferred (including a first target file).
[0200] In another implementation, the relative position information maps the physical location of the mobile phone to a target area within the user interface b-1 of the laptop. The laptop can use the file indicated by the icon of at least one file located within the target area as the target file to be transferred, and / or use the file indicated by the icon of at least one file that is closest to the target area as the target file to be transferred; or, use the file corresponding to the file window whose area occupies the target area as the target file to be transferred. Wherein, the at least one target file to be transferred determined by the laptop in this implementation includes a first target file, that is, the icon of the first target file is located within the target area, or the icon of the first target file is closest to the target area; or the target area is located within a first file window. The first file window is used to display the content of the first target file.
[0201] Optionally, the target area can be a region within the user interface b-1 of the laptop computer mapped from the physical location of the mobile phone; or, the physical location of the mobile phone can be mapped to the region where a target point is located within the user interface b-1 of the laptop computer. For example, the target area can be a defined location range centered on the target point. This application embodiment does not limit the shape and size of the defined location range; for example, the defined location range can be a circular area with a defined radius, a square with a defined side length, or a rectangle. The defined location range can be determined by the user or the laptop computer.
[0202] Optionally, in this embodiment a3, the laptop computer can, but is not limited to, obtain the relative location information of the mobile phone through the following methods b1-b3.
[0203] Method b1: The laptop has three or more RF antennas, and the mobile phone also has an RF antenna. For ease of distinction, the laptop's RF antenna will be referred to as the first antenna, and the mobile phone's RF antenna as the second antenna. The laptop can calculate the distance between each first antenna and the second antenna using ranging technologies such as time of flight (TOF). Then, based on the distance between each first antenna and the second antenna, and the position of each first antenna, the laptop calculates the coordinates of the second antenna in the laptop's two-dimensional or three-dimensional coordinate system. (See [link to documentation]). Figure 6A As shown. The laptop can then use the coordinates of the second antenna as the coordinates of the phone; or, based on the coordinates of the second antenna, the laptop can calculate the coordinates of a specific location on the phone (e.g., the top left corner, top right corner, or the center of the top), and then use that specific location's coordinates as the phone's coordinates. Finally, the laptop maps the phone's coordinates to a target point within the laptop's user interface b-1.
[0204] In this method, the target point is located within the user interface b-1 or within the user interface b-1, within a set range of locations centered on the target point, which is the location indicated by the relative location information of the mobile phone.
[0205] Method b2: When the laptop screen is a capacitive screen, the laptop can determine an area on the capacitive screen where the capacitance value changes (hereinafter referred to as the first screen area), and determine the relative position information of the phone based on this first screen area, such as... Figure 6B As shown.
[0206] In this method b2, optionally, the laptop computer maps the first screen area as the physical entity of the mobile phone to an area within the laptop computer's user interface b-1. In this case, the position information of the first screen area within the user interface b-1 is the relative position information of the mobile phone.
[0207] Optionally, the laptop can determine the location information of a specific location in the first screen area (such as the upper left corner, upper right corner, the center of the top, or the center of the first area), and determine the relative location information of the mobile phone based on the position of that specific location within the user interface b-1. For example, the specific location or the set location range within the user interface b-1 centered on that specific location is the location indicated by the relative location information of the mobile phone.
[0208] It should also be noted that in method b2, before determining the relative position information of the mobile phone based on the first screen area, the laptop can also determine the outline of the first screen area and determine whether the outline meets the set outline conditions, so as to avoid the laptop from erroneously calculating the relative position information of the mobile phone when the capacitance value of the laptop's capacitive screen changes due to other objects or user misoperation of the mobile phone, thereby improving the accuracy of the calculated relative position information of the mobile phone.
[0209] Method b3: The mobile phone can capture a partial image of the laptop's user interface b-1 using its camera and send the image to the laptop. The laptop can analyze the position of the interface content in the partial image within the user interface b-1 and determine the relative position of the mobile phone based on this position. Optionally, the laptop can use image recognition, feature comparison, and other technologies to analyze the area in the user interface b-1 most similar to the interface content in the partial image (referred to as the second screen area), and use the position of this second screen area as the position of the interface content in the partial image within the user interface b-1. See [link to relevant documentation]. Figure 6C As shown.
[0210] In this method, optionally, the laptop can map the second screen area as a physical entity of the mobile phone to an area within the laptop's user interface b-1. In this case, the position information of the second screen area within the user interface b-1 is the relative position information of the mobile phone.
[0211] Similar to method b2, optionally, the laptop can determine the location information of a specific location in the second screen area and determine the relative location information of the phone based on the location of that specific location within the user interface b-1.
[0212] Optionally, the mobile phone may take a picture of the laptop user interface b-1 in response to the first operation; or it may take a picture of the laptop user interface b-1 when it receives an instruction from the laptop. This application does not limit the way in which the mobile phone triggers the taking of the laptop user interface b-1.
[0213] It should be noted that, based on method b3, other electronic devices that do not have the capability to execute methods b1 and b2 can determine the relative position information of another electronic device through method b3. Alternatively, in scenarios where a laptop has an extended screen or where the laptop screen is detached from the main body, the relative position information of a mobile phone can be determined, such as... Figure 6C As shown.
[0214] It should also be noted that the above implementation methods a1-a3 can be implemented individually or in combination, and this application does not limit them.
[0215] S404: Optionally, after the laptop computer has determined at least one target file to be transferred through the above step S403, it may display a prompt in the user interface b-1, which is used to remind the user of at least one target file to be transferred.
[0216] The following explanation uses the first object file among at least one object file as an example. The laptop may, but is not limited to, display prompts in the user interface b-1 in the following ways:
[0217] Method c1: In user interface b-1, the icon of the first target file is presented differently from the icons of other non-to be transferred files, or the first file window (i.e. the file window displaying the content of the first target file) is presented differently from other file windows displaying the content of non-to be transferred files.
[0218] Optionally, the presentation of the aforementioned icons or file windows may include at least one of the following: color, brightness, and transparency.
[0219] For example, in user interface b-1, the icon of the first target file or the first file window is highlighted, which can clearly remind the user of the first target file to be transferred.
[0220] Method c2: Display a prompt message in the user interface b-1, which reminds the user of the first target file to be transferred.
[0221] Optionally, to reduce user interaction, the laptop can close the notification message after displaying it for a certain period of time.
[0222] S405: After the laptop identifies the first target file to be transferred, it sends a second message to the mobile phone. This second message contains the file information of the first target file.
[0223] It should also be noted that when the number of at least one target file to be transferred determined by the laptop in S403 is multiple, and at least one second target file is included in addition to the first target file, the second information may also include the file information of the at least one second target file.
[0224] The file information of any file may include, but is not limited to, at least one of the following: file type, file icon, and file name.
[0225] S406: After receiving the second information from the laptop, the mobile phone displays a user interface a-2 containing a first control on the screen according to the second information. The first control is used to indicate a first target file located in the second electronic device.
[0226] Optionally, in specific implementations, the first control can indicate a single target file (i.e., the first target file); it can also indicate a group of target files of the same type (a group of target files of the same type as the first target file); or it can indicate all the target files indicated by the second information. Optionally, when the first control indicates multiple target files, the first control can also display the number of files. For example, the upper left corner of the first control can have a prompt icon that displays the number of files.
[0227] When the first control points to a target file (i.e., the first target file), during the execution of S406, the mobile phone can generate the first control based on the file information of the first target file in the second information. Furthermore, when the second information also contains file information of at least one second target file, the mobile phone can also generate at least one second control based on the file information of at least one second target file in the second information. At this time, the user interface a-2 contains the first control and at least one second control.
[0228] When the first control indicates a group of target files of the same type, during the execution of S406, if the second information only contains file information of the first target file, the mobile phone can generate the first control based on the file information of the first target file. If the second information also contains file information of at least one second target file, and the at least one second target file is of the same type as the first target file, the mobile phone can generate the first control based on the file information of the first target file and the file information of the at least one second target file. If the second information also contains file information of at least one second target file, and the at least one second target file exists in a file of a different type than the first target file, the mobile phone can generate the first control based on the file information of a file of the same type as the first target file; and generate at least one second control based on the file information of each other type of file. Optionally, the image of any control can be the icon of the corresponding file, or an image generated by the mobile phone for the corresponding file; this application does not limit this.
[0229] In summary, the user interface a-2 displayed on the mobile phone can contain a first control, and can also contain at least one second control, such as... Figure 7A As shown in (a) and (b) in the figure. Optionally, when the user interface a-2 contains multiple controls, to facilitate the user's selection of the file to be transferred, one control can be placed in the foreground and the other controls can be placed in the background. See [reference]. Figure 7A As shown in (c) in the figure; users can switch the controls in the foreground by performing a swipe operation on the user interface a-2.
[0230] Optionally, in one design, the user interface a-2 may include a first area (i.e., a content transfer management area), within which controls indicating the file to be transferred (including a first control) may be displayed. For example... Figure 7B As shown in (a) and (b) of the figure. It should be noted that this application does not limit the shape and position of the first area; it can be a regular circle, rectangle, semicircle, or an irregular shape; it can be located at the top, bottom, left, or right of the phone; the position of the first area can be fixed or determined based on the relative position of the laptop and the phone. For example, when the phone is located to the right of the laptop, the first area can be located to the left of the phone; when the phone is located at the bottom of the laptop, the first area can be located at the top of the phone. In the embodiments and figures of this application, only the example of the first area being located at the top of the phone is used for illustration. Furthermore, to prompt the user, the display method of the first area can be different from other areas of the user interface a-2; for example, the first area can be highlighted. Figure 7A Similarly to (c) in the example, when the user interface a-2 contains multiple controls indicating the file to be transferred, the first area may contain multiple controls, where any one control is in the foreground and the others are in the background. See [reference needed]. Figure 7B As shown in (c); the mobile phone can receive the first swipe operation performed by the user on the user interface a-2, and based on the movement of the first swipe operation, switch the control in the foreground in the first area, so that the first control is in the foreground. Figure 7B As shown in (c) and (d) in the diagram, the user can move a first control, which is in the background, to the foreground in the first area by swiping to the left. Optionally, this first swipe operation is performed by the user within the first area or a nearby area of the first area in the user interface a-2.
[0231] It should also be noted that, since user interface a-2 is a temporary user interface used for content transmission, user interface a-2 can be located above user interface a-1, and the transparency of user interface a-2 is greater than 0 and less than 100%, such as... Figure 7C As shown, user interface a-2 is in a semi-transparent state as a temporary user interface. Users can see not only user interface a-2, but also the initial user interface a-1, thus ensuring visual smoothness and providing prompts for users to perform operations on user interface a-2.
[0232] S407: The mobile phone receives a second operation performed by the user on user interface a-2. In response to this second operation, the mobile phone initiates subsequent steps S408-S411 to transmit the first target content indicated by the first control to the target location of the mobile phone. The second operation is the user's confirmation of transmitting the first target file indicated by the first control.
[0233] S408: The mobile phone determines the target location for content transmission.
[0234] In this embodiment of the application, the target location for content transmission on the mobile phone can be the default location, the location set by the mobile phone operating system or application, or the location set by the user; or, the target location of the mobile phone can be determined directly by the mobile phone based on the content displayed in the current user interface a-1; or, when at least one window is open in the user interface a-1, the target location of the mobile phone can be determined based on the user operation performed by the user in the user interface a-2.
[0235] It should be noted that the embodiments of this application do not limit the time at which the mobile phone executes S408. When the laptop executes S403 with reference to the target location for content transmission determined by the mobile phone, the mobile phone can execute S408 before S403. When the target location of the mobile phone is determined based on a user operation performed by the user on user interface a-2, the mobile phone can execute S408 after S407. In other cases, the mobile phone can execute S408 at any time before S409.
[0236] Optionally, in this step, the mobile phone may, but is not limited to, determine the target location for content transmission through the following implementation methods d1-d2.
[0237] Implementation method d1: The mobile phone can determine the target location for content transmission based on the content displayed in the current user interface a-1 through the following steps:
[0238] When user interface a-1 is the main interface, the mobile phone determines the target location for content transmission as the phone's first storage space.
[0239] When at least one window is open in user interface a-1, the mobile phone can determine that the target location for content transmission is the first window therein, wherein the first window can be a window located in the foreground of the mobile phone, or a window that supports importing files (such as supporting importing a first target file).
[0240] In this embodiment d1, the specific implementation form of the second operation is not limited, and it can be a click operation or a drag operation performed by the first control.
[0241] Implementation method d2: Similar to implementation method d1, when user interface a-1 is the main interface, the mobile phone determines the target location for content transmission as the phone's first storage space. At this time, the second operation can be a click operation, drag operation, etc., on the first control. Optionally, regardless of where the user drags the first control to user interface a-2, the first target file will be transmitted to the phone's first storage space. When at least one window is open in user interface a-1, the mobile phone can further determine the target location for content transmission based on the second operation.
[0242] In this embodiment d2, the mobile phone can determine the target location by combining at least one piece of relevant information such as the operation type of the second operation, the operation object, and the end position of the operation. Optionally, the mobile phone can determine the target location based on the second operation through the following methods e1-e4.
[0243] Method e1: The second operation is an action performed by the user on the first control. In this case, the mobile phone can determine the target location based on the type of the second operation. The specific steps are as follows:
[0244] When the second operation belongs to the first operation type, the target location is determined to be the first window; when the second operation belongs to the second operation type, the target location is determined to be the first storage space of the first electronic device. The first operation type and the second operation type are different.
[0245] For example, the first operation type can be a drag-and-drop operation; the second operation type can be a click operation, such as... Figure 7D As shown. That is, when the user clicks on the first control, the first target file can be transferred to the phone's first storage space; when the user drags the first control, the first target file can be transferred to the first window. At this time, the first window can be a window in the foreground that supports importing files.
[0246] Through this method e1, users can perform different types of operations on the first control in the user interface a-2 to select the target location for content transmission.
[0247] Method e2: The second operation is a drag-and-drop operation performed by the user on the first control. In this case, the phone can determine the target location based on the end position of the second operation, as follows:
[0248] When the end position of the second operation is located within the first display area of user interface a-2, the target position is determined to be the first window; when the end position of the second operation is located within the second display area of user interface a-2, the target position is determined to be the phone's storage space. Optionally, the first control and the second display area can be located on either side of the first display area.
[0249] For example, user interface a-2 can be as follows: Figure 7E As shown in (a); when the user drags the first control to the first display area, the first target file can be transferred to the first window, as shown in (a). Figure 7E As shown in (b) above; when the user drags the first space to the second display area, the first target file can be transferred to the phone's first storage space. At this time, the first window can be a window in the foreground that supports importing files.
[0250] It should be noted that, Figure 7EAs an example, the embodiments of this application do not limit the shape of the first display area and the second display area; for example, they can be regular circles, rectangles, semicircles, etc. Furthermore, the mobile phone can display the outlines of both display areas in the user interface a-2, or it can choose not to display the outlines of both areas, or it can display the outline of only one of the display areas.
[0251] Optionally, when user interface a-2 is located before user interface a-1 and user interface a-2 is in a semi-transparent state, the position of the first display area in user interface a-2 can coincide with the position of the working area of the first window in user interface a-1. The position of the second display area in user interface a-2 does not coincide with the position of the working area of the first window in user interface a-1; for example, the second display area can be located at the edge of user interface a-2. Continuing... Figure 7B Taking the user interface shown as an example, the phone displays the chat window of the chat application in user interface a-1; as shown Figure 7F As shown, the first display area can coincide with the work area (i.e., the information display area) in the chat window, and the second display area coincides with the input area in the chat window.
[0252] Furthermore, in the specific implementation of method e2, the first and second display areas can display some prompt information (which may be, but is not limited to, text, images, etc.) to remind the user of the location of content transmission; or, when the user drags the first control to a certain display area, the phone displays prompt information in that display area. For example, the first display area includes a first prompt information, which is used to indicate to the user that the target location of content transmission is the first window; and / or, the second display area includes a second prompt information, which is used to indicate to the user that the target location of content transmission is the phone's first storage space.
[0253] Method e3: The user interface a-2 also includes a thumbnail of the first window; when the second operation is an operation performed by the user on the thumbnail of the first window, the mobile phone can determine the target location as the first storage space of the mobile phone according to the operation type of the second operation through the following steps: when the second operation belongs to the third operation type, the target location is determined to be the first storage space of the mobile phone.
[0254] Optionally, the third operation type includes at least one of the following: click operation, drag operation. For example, user interface a-2 displays thumbnails of the first control and the first window, such as... Figure 7G As shown in (a); when the user clicks or drags the thumbnail of the first window, the first target file can be transferred to the phone's first storage space, such as... Figure 7G As shown in (b) and (c) in the figure.
[0255] Optionally, in mode e3, when the second operation belongs to the fourth operation type, the phone can also determine the target location as the first window. The fourth operation type is different from the third operation type.
[0256] Method e4: The user interface a-2 also includes a thumbnail of the first window; when the second operation is a drag operation performed by the user on the first control, the mobile phone can determine the target position based on the positional relationship between the end position of the second operation and the thumbnail of the first window through the following steps:
[0257] When the end position of the second operation is within the thumbnail of the first window, the target position is determined to be the first window;
[0258] When the end position of the second operation is outside the thumbnail of the first window, the target position is determined to be the first storage space of the phone.
[0259] For example, user interface a-2 displays thumbnails of the first control and the first window, such as Figure 7H As shown in (a); when the user drags the first control into the thumbnail of the first window, the first target file can be transferred to the first window, as shown in (a). Figure 7H As shown in (b); when the user drags the first control outside the thumbnail of the first window, the first target file can be transferred to the first storage space of the phone, such as... Figure 7H As shown in (c) in the figure.
[0260] Optionally, in this method e4, to ensure that the file can be accurately transferred to the user's desired location, the mobile phone can add a dwell time determination for the second operation. For example, when the end position of the second operation is located within the thumbnail of the first window, and the first operation dwells within the thumbnail of the first window for more than a set time (e.g., 500ms, 600ms, etc.), the mobile phone determines the target position as the first window.
[0261] It should be noted that in some implementations of methods e3 and e4 above, the user interface a-2 may only display a thumbnail of the first window, that is, the first window is the foreground window among at least one window opened by the mobile phone. In other implementations, when there are multiple windows open in user interface a-2, and at least one window supports importing files, then user interface a-2 may display a thumbnail of that at least one window. That is, the mobile phone may also display thumbnails of at least one candidate window among multiple windows that can import the first target file in user interface a-2; wherein, the thumbnail of one candidate window among at least one candidate window is in the foreground; the at least one candidate window includes the first window; the mobile phone may receive a second swipe operation performed by the user in user interface a-2, and based on the movement of the second swipe operation, switch the thumbnail of the candidate window in the foreground, so that the thumbnail of the first window is in the foreground. Figure 7I As shown, user interface a-2 displays thumbnails of two candidate windows—a chat application and a cloud storage application; initially, the cloud storage application's thumbnail is in the foreground, as shown... Figure 7I As shown in (a); users can swipe left to bring the chat application's thumbnail into the foreground, as... Figure 7I As shown in (b) of the diagram. Optionally, in the initial interface of user interface a-2, the mobile phone can place the thumbnail of the foreground window in the foreground. In this way, the user can select the target window for content delivery by switching the thumbnail of the window in the foreground.
[0262] It should also be noted that when user interface a-2 simultaneously displays multiple controls indicating documents and multiple candidate window thumbnails, the user's actions of switching between the foreground controls and the candidate window thumbnails should be performed in different areas. For example, user interface a-2 can have two operation areas: the first operation area corresponds to multiple controls, and the second operation area corresponds to multiple candidate window thumbnails; when the phone detects a user's swipe operation in the first operation area, the phone can switch between the controls in the foreground; when the phone detects a user's swipe operation in the second operation area, the phone can switch between the thumbnails of the candidate windows in the foreground.
[0263] S409: The mobile phone sends a first instruction to the laptop computer. This first instruction instructs the laptop computer to transfer a first target file.
[0264] S410: The laptop sends a first target file to the mobile phone based on the received first instruction. The mobile phone receives the first target file from the laptop.
[0265] S411: The mobile phone imports the first target file received into the target location.
[0266] When the target location is the phone's first storage space, the phone saves the first target file to that first storage space; when the target location is the first window, the phone imports the first target file into the first window.
[0267] It should also be noted that, in this embodiment, the first storage space of the mobile phone can be the storage space corresponding to the default file storage path on the mobile phone. This default file storage path can be set by the user, the default of the mobile phone's operating system, or the file management application on the mobile phone; this application does not limit it in this regard.
[0268] S412: The mobile phone can display user interface a-3, which is the user interface after the first target content is transmitted to the mobile phone.
[0269] Optionally, when the first target content is transferred to the first window, the user interface a-3 may include the user interface after the first target file is imported into the first window. When the first target content is transferred to the first storage space of the mobile phone, the user interface a-3 may include a file window for displaying the content of the first target file, or a file management window for file management displaying an icon of the first target file.
[0270] For example, let's take document x as the first target file for illustration. If the first window is... Figure 7C In the user interface a-1, the chat application window is displayed. When document x is imported into the chat application window, the phone can display the chat interface of the chat application after importing document x, such as... Figure 7J As shown in (a) above. If document x is transferred to the phone's first storage space, the phone can display a file window to open document x, as shown below. Figure 7J As shown in (b) above; or the phone can display a file management window, such as... Figure 7J As shown in (c) in the figure.
[0271] By displaying the user interface a-3, users can intuitively confirm whether the content transfer was successful through the phone's user interface.
[0272] In other implementations, after the mobile phone imports the first target file to the target location, it can display a prompt message in user interface a-1. This prompt message is used to inform the user that the first target file has been transferred to the target location. When the mobile phone receives a user action (such as a click) performed on this prompt message, the aforementioned user interface a-3 is then displayed.
[0273] This application provides a content transfer method that allows users to transfer content from a laptop to a target location on a mobile phone with minimal user operations. This enables content transfer between the mobile phone and the laptop, reducing the operational complexity of cross-device content transfer and improving user experience. Furthermore, this method can transfer content from a laptop to an open window on the mobile phone, achieving window-level (or application-level) content transfer and reducing the operational complexity of window-level content transfer.
[0274] Optional, in Figure 4 The method provided in the illustrated embodiments can also consider content transmission in split-screen mode for mobile phones or laptops. The following description is in conjunction with embodiments f1-f2.
[0275] Implementation method f1: During the above content transmission process, the mobile phone is in split-screen mode. The mobile phone can display user interface a-1 in the first split screen of the display screen and user interface a-1-1 in the second split screen of the display screen. When the mobile phone receives a third operation from the user, it can use the first split screen as the target split screen for content transmission; thus, during subsequent content transmission, user interface a-2 and user interface a-3 are displayed in the first split screen.
[0276] For example, in S400a, the phone is in split-screen mode from the initial state. The first split screen displays the chat application window (i.e., user interface a-1), and the second split screen displays the video application window, as shown below. Figure 7K As shown in (a) above; when the user performs the first operation or operates the content transfer settings of the phone, information prompting the user to select the target split screen for content transfer can be displayed on the screen; the user can perform a user operation (such as a click operation) on the first split screen to select the first split screen as the target split screen; during the subsequent content transfer process, the phone can display user interface a-2 and user interface a-3 in the first split screen. For specific processes and descriptions, please refer to the above. Figures 7A-7J The relevant descriptions will not be repeated here.
[0277] Implementation method f2: During the above content transmission process, the laptop is in split-screen mode. The laptop can display user interface b-1 in the third split screen of the display screen, and user interface b-1-1 in the fourth split screen of the display screen. When the laptop executes S403, it can determine that the third split screen is the target split screen for content transmission based on the relative position information of the mobile phone (e.g., the position indicated by the relative position information of the mobile phone is located within the third split screen), and determine the first target file among at least one file presented in user interface b-1 displayed in the third split screen.
[0278] Based on the method provided in Embodiment 1, this application also provides some examples of transferring content from a laptop computer to a mobile phone. These will be described below with reference to the accompanying drawings.
[0279] Example 1: See Figure 8A As shown.
[0280] In the initial state, the phone displays the main interface, while the laptop displays the newly added volume F's file management window, which contains icons for multiple files, such as... Figure 8A As shown in (a) in the figure.
[0281] The user moves their phone, pointing it at the document icon ("x") displayed on the laptop screen and bringing it close to the laptop; this is the first action the user takes to bring the two devices closer together. Figure 8A As shown in (b) of the diagram.
[0282] The mobile phone and laptop computer execute the process shown in steps S402-S406 of the above embodiments. The laptop computer can determine that document x is the target file to be transferred and highlight the icon of document x in the file management window to remind the user; while the mobile phone can display a semi-transparent transfer control interface on the main interface, and the icon of document x can be displayed in the first area of the transfer control interface. The user interface in the mobile phone and laptop computer can be as follows: Figure 8A As shown in (c) (to show the change in the document x icon on the laptop, the phone's position has been partially shifted downwards in the image; in reality, the phone and laptop should be positioned at the same level). Figure 8A (same as or similar to (b) in the text).
[0283] The user can click or drag the icon of document x on the phone, triggering the phone and laptop to execute steps S408-S412 in the above embodiment, so that document x is transferred to the phone's first storage space (i.e., the designated storage space), such as... Figure 8A As shown in (d) in the figure.
[0284] After document x is transferred to the phone's primary storage space, the phone can display a file window to open the local document x, or display a file management window containing an icon of document x, such as... Figure 8A As shown in (e) in the diagram.
[0285] Additionally, in Example 1, when an icon of a file to be transferred is displayed in the first area of the transfer control interface on the mobile phone, the user can also switch the file to be transferred by moving the phone. Continuing with the above... Figure 8A Taking (c) as an example, when the user aligns the icon of document x with the laptop, the phone displays the transmission control interface and shows the icon of document x in the first area of the transmission control interface. The user then wants to transmit the image PIC1 from the laptop. Therefore, the user can adjust the position of the phone to align it with PIC1 on the laptop. Figure 8A As shown in (f) and (g), the user can adjust the angle or pan the phone to align it with the PIC1 icon on the laptop. (To show the change in the PIC1 icon on the laptop, the phone's position has been partially lowered in the image; in reality, the phone should be aligned with and partially obscure the PIC1 icon, similar to...) Figure 8A (As shown in (b)). The laptop can reacquire the relative location information of the mobile phone and determine PIC1 as the target file to be transferred based on the relative location information. Subsequently, the mobile phone and the laptop can execute the process shown in steps S402-S406 of the above embodiment to transfer PIC1 to the first storage space of the mobile phone.
[0286] Example 2: See Figure 8B As shown.
[0287] Initially, the phone displays a chat application window, and the laptop displays a file management window for the newly added volume F, containing icons for multiple files, such as... Figure 8B As shown in (a) in the figure.
[0288] The user moves their phone, pointing it at the document icon ("x") displayed on the laptop screen and bringing it close to the laptop; this is the first action the user takes to bring the two devices closer together. Figure 8B As shown in (b) of the diagram.
[0289] The mobile phone and laptop computer execute the process shown in steps S402-S406 of the above embodiments. The laptop computer can determine that document x is the target file to be transferred and highlight the icon of document x in the file management window to remind the user; while the mobile phone can display a semi-transparent transfer control interface on the chat application window, and the icon of document x can be displayed in the first area of the transfer control interface. The user interface in the mobile phone and laptop computer can be as follows: Figure 8B As shown in (c) (to show the change in the document x icon on the laptop, the phone's position has been partially shifted downwards in the image; in reality, the phone and laptop should be positioned at the same level). Figure 8B (same as or similar to (b) in the text).
[0290] The user can drag the icon of document x from the phone to the workspace of the lower-level chat application window, triggering the phone and laptop to execute S408-S412 in the above embodiment, so that document x is transferred to the phone's chat application and imported into the chat application window, as shown. Figure 8B As shown in (d) in the figure.
[0291] After document x is transferred to the phone's chat application, the phone can display a window from the chat application that imported document x, such as... Figure 8B As shown in (e) in the diagram.
[0292] Users can also drag the document x icon from their phone outside the workspace of the lower-level chat application window (as shown at the bottom of the window in the figure), triggering the phone and laptop to execute S408-S412 in the above embodiment, so that document x is transferred to the phone's first storage space, such as... Figure 8B As shown in (f) in the figure.
[0293] After document x is transferred to the phone's primary storage space, the phone can display a file window to open the local document x, such as... Figure 8B As shown in (g); the phone can also display a file management window containing an icon for the document x, such as Figure 8A As shown in (e) in the diagram.
[0294] Example 3: See Figure 8C As shown.
[0295] Initially, the phone displays a chat application window, while the laptop displays a newly added file management window (F), where files are displayed in a list format, containing small icons for multiple files, such as... Figure 8C As shown in (a) above. In addition, the phone also has several other applications running in the background, such as a cloud storage app.
[0296] The user moves the phone, pointing it at certain icons or a specific location displayed on the laptop screen and bringing it close to the laptop; this is the first action the user takes to bring the two devices closer together. Figure 8C As shown in (b) of the diagram.
[0297] The mobile phone and laptop computer execute the process shown in steps S402-S406 of the above embodiments. The laptop computer can identify document x and the standard-defined two target files to be transferred, and highlight the icons of document x and the standard-defined file in the file management window to remind the user. The mobile phone can display a transfer control interface, in which the icons of document x and the standard-defined file can be displayed in the first area, with the icon of document x in the foreground. The transfer control interface can also display thumbnails of windows of multiple applications that support content transfer (i.e., thumbnails of chat application windows and cloud storage application windows). The user interface in the mobile phone and laptop computer can be as follows: Figure 8C As shown in (c) (to show the changes in the document x and standard specification icons on the laptop, the position of the phone has been partially shifted downwards in the figure; in reality, the positions of the phone and laptop should be...) Figure 8C (same as or similar to (b) in the text).
[0298] Users can swipe across different locations on the phone's transfer control interface to switch the icons of foreground files and the thumbnails of foreground windows. For example, a user can swipe within or near the first area to switch the icons of foreground files; and swipe within the area below the first area to switch the thumbnails of foreground windows.
[0299] The user can drag the icon of document x from the phone to the thumbnail of the chat application window, triggering the phone and laptop to execute S408-S412 in the above embodiment, so that document x is transferred to the phone's chat application and imported into the chat application window, as shown. Figure 8C As shown in (d) in the figure.
[0300] After document x is transferred to the phone's chat application, the phone can display a window from the chat application that imported document x, such as... Figure 8C As shown in (e) in the diagram.
[0301] Optionally, the user can also drag the icon of document x on the phone outside the thumbnail of the chat application window, or perform a click or drag operation on the thumbnail of the chat application window, triggering the phone and laptop to execute S408-S412 in the above embodiment, so that document x is transferred to the first storage space of the phone. For the specific process, please refer to the relevant steps in the above embodiment, which will not be repeated here.
[0302] Example 2: This example provides a method for transferring content from a mobile phone to a laptop computer. For details, please refer to [link / reference]. Figure 9 As shown.
[0303] S900a: In its initial state, the phone displays the user interface A-1.
[0304] S900b: In its initial state, the laptop displays the user interface B-1.
[0305] S901: The user performs the first action on the mobile phone and / or laptop to bring the two closer together.
[0306] S902: In scenarios where the mobile phone and laptop have not established a connection, a connection is established between the mobile phone and laptop based on the first operation. In scenarios where the mobile phone and laptop have already established a connection, this step is not executed, and the mobile phone and laptop skip this step and proceed to subsequent steps.
[0307] The specific processes of S901-S902 can be referred to the description of S401-S402 in Embodiment 1, and will not be repeated here.
[0308] S903: The mobile phone responds to the first operation by determining the first target file.
[0309] In this embodiment, the user interface A-1 displayed on the mobile phone can present at least one file. For example, user interface A-1 may contain an icon of at least one file, or at least one file window, each file window being used to display the contents of one or more files. User interface B-1 can be the main interface of a laptop computer, or at least one window can be open.
[0310] In this embodiment of the application, the mobile phone can determine the first target file by combining the content displayed on the user interface A-1.
[0311] In one implementation, the first target file may be a file displayed in the foreground file window in user interface A-1.
[0312] In another implementation, the first target file may be a file selected by the user from at least one file included in the second user interface. For example, if the user interface A-1 displays icons for at least one file, the user may select the icon of the first target file by user operation before S901, thereby selecting the first target file.
[0313] S904: After establishing a connection with the mobile phone, the laptop determines the target location or multiple candidate locations.
[0314] In this embodiment, the laptop computer can determine the object of content transmission—the transmission location—according to a set principle. Optionally, the laptop computer can determine the target location or multiple candidate locations within the laptop computer by combining factors such as the content displayed on the current user interface B-1, the first target file to be transmitted on the mobile phone, and the relative position information of the mobile phone. The relative position information of the mobile phone is used to indicate the location of the mobile phone's physical location mapped to the position of the laptop computer's user interface B-1.
[0315] Depending on the specific information referenced by the laptop computer to determine the target location, the laptop computer can execute S904 through the following implementation methods A1-A2.
[0316] Implementation method A1: The laptop computer can determine the target location based on the content displayed on the user interface B-1. The specific steps are as follows:
[0317] When user interface B-1 is the main interface of the laptop, the laptop determines the target location as the laptop's second storage space (i.e., the set storage space).
[0318] When at least one window is open in user interface B-1, the laptop can determine the target location as the first window; wherein the first window is the window in the foreground of the at least one window, or a window that can import files.
[0319] Implementation method A2: The laptop computer can determine the target location based on the content displayed in the user interface B-1 and the file information of the first target file. The specific process is as follows:
[0320] like Figure 9As shown in S904, after determining the first target file, the mobile phone can send first information to the laptop computer. The first information contains the file information of the first target file. Based on this, similar to embodiment A1, when user interface B-1 is the main interface of the laptop computer, the laptop computer determines the target location as the laptop computer's second storage space; when at least one window is open in the user interface, the laptop computer can determine the first window that can import the first target file from the at least one window opened in user interface B-1, based on the file information of the first target file in the first information. The file information of the first target file may include: file type, file icon, file name, etc.
[0321] Implementation method A3: The laptop computer can determine the target location based on the content displayed in the user interface B-1 and the relative location information of the mobile phone. The specific process is as follows:
[0322] Similar to embodiment A1, when user interface B-1 is the main interface of the laptop, the laptop determines the target location as the laptop's second storage space; when at least one window is open in the user interface, the laptop can use the relative position information of the mobile phone to determine the first window among the at least one open window in user interface B-1. The location indicated by the relative position information of the mobile phone is located within the first window that is in the foreground.
[0323] Similar to implementation a3 in Embodiment 1, this relative position information can be used to indicate the physical location of the mobile phone mapped to a target point or a target area within the user interface B-1 of the laptop computer. For a description of this relative position information, and the method by which the laptop computer obtains the relative position information of the mobile phone, please refer to the relevant description in implementation a3 of Embodiment 1, which will not be repeated here.
[0324] It should also be noted that the above implementation methods A1-A3 can be implemented individually or in combination, and this application does not limit them.
[0325] In step S904, when at least one window is open in user interface B-1, the laptop computer can further determine multiple candidate locations. These multiple candidate locations may include the laptop computer's second storage space, and / or at least one second window (including the first window) capable of importing files within the at least one window. Optionally, in one embodiment, similar to embodiment A2 above, the laptop computer can determine at least one second window capable of importing the first target file within the at least one window opened in user interface B-1 based on the file information of the first target file in the first information. Optionally, in another embodiment, similar to embodiment A3 above, the laptop computer can determine at least one second window within the at least one window opened in user interface B-1 based on the relative position information of the mobile phone; wherein the location indicated by the relative position information of the mobile phone is located within the at least one second window. It should be noted that the above two embodiments can be implemented individually or in combination, and this application does not limit this.
[0326] S905: Optionally, after the laptop determines the target location through S904 above, a prompt can be displayed in the user interface B-1 to remind the user of the target location.
[0327] Optionally, the laptop may, but is not limited to, display a prompt in user interface B-1 via the following methods B1-B2:
[0328] Method B1: When the target position is the first window, the first window is presented differently from other windows in the user interface B-1.
[0329] Optionally, the presentation method may include, but is not limited to, at least one of the following: color, brightness, transparency, etc.
[0330] For example, in user interface B-1, the first window is highlighted, which clearly reminds the user that the first window is the target location for content delivery.
[0331] Method B2: Display a prompt message in user interface B-1 to remind the user of the target location.
[0332] Similarly, after the laptop determines multiple candidate locations through the above S904, it can also display prompts in the user interface B-1. For specific implementation, please refer to the above methods B1-B2, which will not be elaborated here.
[0333] S906: After determining the target location or multiple candidate locations, the laptop sends a second message to the mobile phone. This second message contains the location information of the target location or the location information of the multiple candidate locations.
[0334] S907: After receiving second information from the laptop, the mobile phone displays a user interface A-2 containing a first control on the screen according to the second information. The first control is used to indicate a first target file located on the mobile phone.
[0335] Optionally, the step of determining the first target file by the mobile phone can be performed at any time before S907.
[0336] Optionally, the first target file indicated by the first control can be a single file, a group of files of the same type, or multiple files selected by the user; this application does not limit this. Optionally, when the number of first target files indicated by the first control is multiple, the first control can also display the number of files. For example, the upper left corner of the first control can have a tooltip icon that displays the number of files.
[0337] Optionally, during the execution of S907, the mobile phone can generate a first control based on the file information of the first target file. Optionally, the image of the first control can be the icon of the first target file, or an image generated by the mobile phone for the first target file; this application does not limit this. For example, user interface A-2 can be referred to... Figure 10A As shown.
[0338] In one design, user interface A-2 may include a first area (i.e., a content transfer management area). For example, dragging a first control into this first area can trigger the transfer of content from a first target file. Exemplarily, user interface A-2 may be as follows: Figure 10B As shown. It should be noted that the shape of the first region is not limited in this embodiment; it can be a regular circle, rectangle, semicircle, or an irregular image. This application does not impose any limitations on this. Furthermore, the user interface A-2 may or may not display the outline of the first region. In addition, to prompt the user, the display method of the first region can be different from other regions of the user interface A-2; for example, the first region can be highlighted. The first region in this embodiment and the first region in the mobile phone user interface a-2 in Embodiment 1 can be the same region, and specific descriptions can be referenced interchangeably.
[0339] It should also be noted that, since user interface A-2 is a temporary user interface used for content transfer, user interface A-2 can be located above user interface A-1, and the transparency of user interface A-2 is greater than 0 and less than 100%, as shown below. Figure 10CAs shown. In this way, user interface A-2 is in a semi-transparent state as a temporary user interface. The user can see not only user interface A-2, but also the initial user interface A-1, thus ensuring visual smoothness for the user and also serving as a prompt for the user to perform user operations on user interface A-2.
[0340] In one implementation, optionally, when the second information includes location information of the target location, the first area in user interface A-2 may include a prompt message indicating the target location, thereby prompting the user to transfer the first target content to the target location on the laptop; or, the first area in user interface A-2 may include a first location control for indicating the target location; or, the first area may include both the prompt message indicating the target location and the first location control. It should be noted that when the target location is a special location such as the laptop's second storage space or a folder, the mobile phone may not display the location control.
[0341] Based on this embodiment, for example, the user interface A-2 can be as follows: Figure 10D As shown in (a) and (b) in the figure.
[0342] In another implementation, when the second information contains location information for multiple candidate locations, the first area in user interface A-2 may contain multiple location controls. Each location control is used to indicate a candidate location. That is, the multiple location controls include, in addition to a first location control indicating that the subsequent user should select a target location, at least one second location control indicating other candidate locations. Within this first area, any one location control is in the foreground, and the other location controls are in the background.
[0343] For example, user interface A-2 can be as follows: Figure 10E As shown.
[0344] Optionally, in this embodiment, the user can perform a user operation in the user interface A-2 to bring the first position control of the desired target position into the foreground.
[0345] In one implementation, see [reference] Figure 10F As shown in (a) to (d), a user can perform a swipe operation on at least one second position control in the first area; in response to the swipe operation, the phone can delete the at least one second position control in the first area until the first position control is brought into the foreground.
[0346] In another implementation, see [reference] Figure 10GAs shown in (a) and (b), the user can perform a swipe operation within the user interface A-2 (such as in or near the first area). Based on the movement of the swipe operation, the phone can switch the position control in the foreground within the first area, so that the first position control is in the foreground.
[0347] S908: The mobile phone receives a second operation performed by the user on the user interface A-2. In response to this second operation, the mobile phone initiates subsequent steps S909-S912 to transfer the first target file indicated by the first control to the target location of the laptop computer. The second operation is the user's confirmation to transfer the first target file indicated by the first control.
[0348] Optionally, the form of the second operation may differ depending on the content displayed in user interface A-2. The following description, in conjunction with the above description of the content displayed in user interface A-2, will be explained through the following embodiments C1-C3.
[0349] Implementation method C1: as follows Figure 10A As shown, when the user interface A-2 contains a first control, the second operation can be a drag-and-drop operation performed by the user on the first control, such as... Figure 10H As shown in (a) and (b) in the figure.
[0350] Implementation method C2: as follows Figure 10B , Figure 10C or Figure 10D As shown in (a), when the user interface A-2 contains a first control and a first area, the second operation can be an operation in which the user drags the first control to the first area, such as... Figure 10I As shown in (a) and (b) in the figure.
[0351] Implementation method C3: such as Figure 10D (b) Figure 10E , Figure 10F , Figure 10G As shown, when user interface A-2 contains a first control and a first area, and the first position control in the first area is in the foreground, the second operation can be an operation in which the user drags the first control into the first position control in the foreground of the first area. For example, in... Figure 10G Taking the user interface shown in (b) as an example, the second operation can be as follows: Figure 10J As shown in (a) and (b) in the figure.
[0352] S909: The mobile phone sends the first target file to the laptop.
[0353] Optionally, if the laptop determines multiple candidate locations during process S904, the mobile phone can, before S909, allow the user to select the target location indicated by the first location control. Based on this, the mobile phone can also send a first instruction to the laptop via S909a, which indicates the target location. In this way, the laptop can import the first target file into the target location after receiving it. Optionally, the mobile phone can send the first instruction when sending the first target file; that is, S909a and S909 can be combined into the same step.
[0354] S910: Optional, after S909, the phone can continue to display the initial user interface A-1.
[0355] S911: After receiving the first target file from the mobile phone, the laptop saves the first target file to the import target location.
[0356] When the target location is the laptop's second storage space, the laptop saves the first target file to that second storage space; when the target location is the first window, the laptop imports the first target file into the first window.
[0357] It should also be noted that, in this embodiment, the second storage space of the laptop can be the storage space corresponding to the default file storage path in the laptop. This default file storage path can be set by the user, the default of the laptop's operating system, or the file management application in the laptop; this application does not limit this.
[0358] S912: The laptop can also display user interface B-2, which is the user interface after the first target file is transferred to the target location of the laptop.
[0359] Optionally, when the first target file is transferred to the first window, the user interface B-2 may include a user interface after the first target file is imported into the first window. When the first target file is transferred to the second storage space of the laptop, the user interface B-2 may include a file window that opens the contents of the first target file, or a file management window that displays an icon of the first target file for file management.
[0360] For example, with Figure 10C Taking user interface A-1 as an example, the user selects four pictures from the phone's photo application for transfer. If the target location for content transfer determined by the laptop or the target location selected by the user via the phone is the browser window, the laptop can import the pictures into the browser window after they are transferred to the laptop. At this time, the laptop's user interface can be as follows: Figure 10KAs shown in (a) above. If the target location for content transfer determined by the laptop or the target location selected by the user via the mobile phone is the laptop's second storage space, after the image is transferred to the laptop, the laptop saves it to the local second storage space, and one of the images can still be opened, such as... Figure 10K As shown in (c); or the laptop can display a file management window for the local secondary storage space, in which the icons and names of four pictures can be displayed, such as Figure 10K As shown in (b) (the four images with shaded icons in the image are the ones transferred to the laptop).
[0361] By displaying user interface B-2, users can intuitively confirm whether the content transfer was successful through the laptop's user interface.
[0362] This application provides a content transfer method that allows users to transfer content from a mobile phone to a target location on a laptop with minimal user operations. This enables content transfer between the mobile phone and the laptop, reducing the operational complexity of cross-device content transfer and improving user experience. Furthermore, this method can transfer content from the mobile phone to an open window on the laptop, achieving window-level (or application-level) content transfer and reducing the operational complexity of window-level content transfer.
[0363] Similar to Example 1, Figure 9 The method provided in the illustrated embodiments can also consider content transmission in split-screen mode for mobile phones or laptops. The following description is in conjunction with embodiments D1-D2.
[0364] Implementation method D1: During the above content transmission process, the mobile phone is in split-screen mode. The mobile phone can display user interface A-1 in the first split screen of the display screen, and user interface A-1-1 in the second split screen of the display screen. When the mobile phone receives a third operation from the user, it can use the first split screen as the target split screen for content transmission; thus, during subsequent content transmission, the mobile phone can determine the first target file in the user interface A-1 displayed in the first split screen.
[0365] Implementation D2: During the above content transmission process, the laptop is in split-screen mode. The laptop can display user interface B-1 in the third split screen and user interface B-1-1 in the fourth split screen. When executing S904, the laptop can determine the third split screen as the target split screen for content transmission based on the relative position information of the mobile phone (e.g., the position indicated by the relative position information of the mobile phone is located within the third split screen), and determine the target location or candidate location for content transmission based on the content displayed in user interface B-1 displayed in the third split screen.
[0366] Based on the method provided in Embodiment 2, this application also provides some examples of transferring content from a mobile phone to a laptop computer. These will be described below with reference to the accompanying drawings.
[0367] Example I: See Figure 11A As shown.
[0368] Initially, the phone displays the Photos app window (where the user selects four pictures to transfer), and the laptop displays the main interface (i.e., the desktop), such as... Figure 11A As shown in (a) in the figure.
[0369] The user moves the phone, pointing it at the laptop screen and bringing it close to the laptop; that is, the user performs the action of bringing the two devices closer together. Figure 11A As shown in (b) of the diagram.
[0370] The mobile phone and laptop computer execute the process shown in steps S902-S907 of the above embodiments. The laptop computer can determine that the target location for content transfer is the laptop's second storage space; while the mobile phone can display a semi-transparent transfer control interface on the window of the photo application. This transfer control interface displays icons indicating the four pictures selected by the user, as well as a first area (i.e., the content transfer management area). The user interface in the mobile phone and laptop computer can be as follows: Figure 11A As shown in (c) in the figure.
[0371] Users can drag and drop icons from the transmission control interface to the first area, triggering the phone and laptop to execute S909-S912 in the above embodiment, so that the four images are transmitted to the laptop's second storage space, such as... Figure 11A As shown in (d) in the figure.
[0372] After the images are transferred to the laptop's secondary storage, the phone can resume displaying the Photos app window. Optionally, the phone's Photos app window can exit user selection functionality; the laptop can display a file window showing four locally stored images. The user interfaces of the phone and laptop can be as follows: Figure 11A As shown in (e) in the diagram.
[0373] Example II: See Figure 11B As shown.
[0374] Initially, the phone displays the Photos app window (where the user selects four pictures to transfer), and the laptop displays a browser window, such as... Figure 11B As shown in (a) in the figure.
[0375] The user moves their phone, pointing it at the browser window on the laptop screen and bringing it close to the laptop; that is, the user performs the action of bringing the two devices closer together. Figure 11B As shown in (b) of the diagram.
[0376] The mobile phone and laptop computer execute the process shown in steps S902-S907 of the above embodiments. The laptop computer can determine that the target location for content transfer is the browser window and highlight the browser window to remind the user; while the mobile phone can display a semi-transparent transfer control interface on the window of the photo application. This transfer control interface displays icons indicating the four pictures selected by the user, as well as a first area (i.e., the content transfer management area). The user interface in the mobile phone and laptop computer can be as follows: Figure 11B As shown in (c) in the figure.
[0377] Users can drag and drop icons from the transmission control interface to the first area, triggering the mobile phone and laptop to execute S909-S912 in the above embodiment, so that the four images are transmitted to the browser window of the laptop, such as... Figure 11B As shown in (d) in the figure.
[0378] After the images are transferred to the laptop's browser window, the phone can resume displaying the Photos app window. Optionally, the phone's Photos app window can exit user selection mode; after receiving the four images, the laptop can import them into its browser window. The user interfaces of the phone and laptop can be as follows: Figure 11B As shown in (e) in the diagram.
[0379] It should be noted that in the above embodiments or examples, when the laptop determines the transmission target through the relative position information of the mobile phone, the user can also change or adjust the position of the mobile phone to adjust the relative position information of the mobile phone, thereby changing the transmission target.
[0380] Additionally, while the phone displays this temporary transmission control interface, the user can exit the transmission control interface and thus end the content transmission process through user actions. For example, the user can exit the transmission control interface by swiping inwards from the edge; alternatively, the transmission control interface may include an exit button, which the user can click to exit the transmission control interface.
[0381] It should also be noted that the scenarios, device types, user operation types, methods, and locations involved in the above embodiments or examples, as well as the layout, position, and shape of various controls or areas in the user interface, are merely examples and do not constitute a limitation on the content transmission method provided in this application. For instance, the above two embodiments trigger the initiation of the subsequent content transmission process by the user performing an operation to bring two devices close together (i.e., the first operation). In some embodiments, the user can perform a sharing operation on the target file to be transmitted on a mobile phone or laptop, thereby triggering the initiation of the subsequent content transmission process. For example... Figure 12 As shown, users can right-click the icon of document x in the file management window of the newly added volume F on the laptop, click the share option in the right-click menu, and click the My Phone option in the submenu. Through this series of operations, the laptop can trigger the process of transferring document x to the phone.
[0382] In some embodiments, the two devices can support bidirectional content transmission. In this case, the two devices can each determine their local transmission objects according to predefined principles. The first device can receive messages from the second device and determine the transmission object in the second device. Then, the first device can display a transmission control interface, which may contain the local first transmission object and the second transmission object in the second device. The user can decide the direction of content transmission based on their needs, thereby determining the target transmission content and the target transmission location. Afterward, the user can realize content transmission through specific operations: that is, the user can perform a first operation in the transmission control interface to transmit the first transmission object to the second transmission object in the second device; or the user can perform a second operation in the transmission control interface to transmit the second transmission object in the second device to the first transmission object in the first device. For the specific implementation of the first and second operations, as well as the content transmission process, please refer to the two embodiments above.
[0383] The following examples illustrate this. (See attached document.) Figure 13 As shown.
[0384] Initially, the phone displays a window for the Photos app (where the user selects four images to transfer), while the laptop's user interface includes a file window that opens the contents of document x. Figure 13 As shown in (a) in the figure.
[0385] The user moves the phone, pointing it at the document window (x) on the laptop screen and bringing it close to the laptop; this is the first action the user takes to bring the two devices closer together. Figure 13 As shown in (b) of the diagram.
[0386] When a mobile phone and a laptop execute the process described in the above embodiments, the laptop can identify document x (the file window of document x) as the transfer target and highlight the file window to alert the user; while the mobile phone can display a semi-transparent transfer control interface on the window of the Photos application. Within the first area of this transfer control interface, an icon for document x and icons indicating the four images selected by the user can be displayed. The user interface in the mobile phone and laptop can be as follows: Figure 13 As shown in (c) in the figure.
[0387] Users can perform certain actions to transfer four images selected by the user on the phone to the window of document x on the laptop; alternatively, they can perform other actions to transfer document x from the laptop to the first storage space on the phone.
[0388] Users can drag and drop the image icons into the document icon in the first area to trigger the transfer of four selected images from the phone to the document window on the laptop, such as... Figure 13 As shown in (d) above. After the image is transferred to the laptop, the laptop can import the image into the file window of document x and display the file window after the image is imported, as shown below. Figure 13 As shown in (e) in the diagram.
[0389] Users can also drag the document icon (e.g., document x) to the bottom of the transfer control interface to trigger the transfer of document x from the laptop to the phone's primary storage space. Figure 13 As shown in (f) above. After document x is transferred to the phone's first storage space, the phone can also display a file window to open document x, as shown below. Figure 13 As shown in (g) above. The mobile phone can also display a file management window containing an icon for document x, as described in the above embodiments or examples. The specific execution process in this example can be found in the descriptions of the above embodiments or examples, and will not be repeated here.
[0390] Based on the methods provided in the above embodiments or examples, in order to reduce the operational complexity of cross-device content transmission and improve user experience, this application provides a content transmission method, such as... Figure 14 As shown. The two electronic devices involved in this application embodiment can be the same type of electronic device or different types of electronic devices. This application does not limit the specific form of the electronic devices.
[0391] The following explanations of several concepts involved in this embodiment are in the order of their names:
[0392] The first user interface refers to the user interface displayed by the first electronic device before executing the content transfer method, i.e., the initial user interface of the first electronic device.
[0393] The second user interface is the user interface displayed by the first electronic device after the first object in the second electronic device is transmitted to the second object in the first electronic device.
[0394] The third user interface is the user interface displayed by the second electronic device before it executes the content transfer method; that is, the initial user interface of the second electronic device.
[0395] The fourth user interface is the user interface displayed by the second electronic device after the second object in the first electronic device is transmitted to the first object in the second electronic device.
[0396] See below. Figure 14 The flowchart shown illustrates the method provided in this application embodiment.
[0397] S1400a: The first electronic device displays a first user interface on the display screen.
[0398] S1400b: The second electronic device displays a third user interface on the screen.
[0399] The first electronic device is an electronic device that displays a transmission control interface and allows the user to perform content transmission operations during the content transmission process. This application does not limit the type of the first electronic device. Optionally, the first electronic device can be a predefined type of electronic device, such as a mobile phone, tablet computer, smartwatch, or other portable device; or the first electronic device can be an electronic device held in the user's hand, whereby the electronic device can determine whether it is held by the user through internal sensors or by receiving the type of user operation (such as a touch operation).
[0400] S1401: The user performs a first operation on the first electronic device and / or the second electronic device, bringing the first electronic device and the second electronic device close together.
[0401] For a description of the first operation, please refer to the description in the implementation above; it will not be repeated here.
[0402] S1402: In response to a first operation in which the first electronic device and the second electronic device approach each other, the second electronic device determines the first object to which the content is to be transmitted based on the content displayed on the third user interface.
[0403] S1403: In response to a first operation in which the first electronic device and the second electronic device approach each other, the first electronic device displays a transmission control interface on its display screen. The transmission control interface includes a first control and / or a second control; the first control is used to indicate a first object in the second electronic device, and the second control is used to indicate a second object in the first electronic device.
[0404] Optionally, in this embodiment of the application, the first electronic device and the second electronic device may determine the object of content transmission (transmission object) based on the set principles.
[0405] S1404: In response to a second operation performed by the user on the transmission control interface, the first electronic device and the second electronic device transmit a first object in the second electronic device to a second object in the first electronic device. Wherein, the first object is the target transmission content, and the second object is the target transmission location; the second object is a first storage space of the second electronic device, or a first window opened in the first user interface.
[0406] S1405: In response to a third operation performed by the user on the transmission control interface, the first electronic device and the second electronic device transmit a second object in the first electronic device to a first object in the second electronic device; wherein, the first object is the target transmission location, and the second object is the target transmission content; the first object is the second storage space of the second electronic device, or the second window opened by the second electronic device.
[0407] It should be noted that the second operation in S1404 is different from the third operation in S1405. Based on this, the user can select the direction of content transmission through different user operations, thereby determining the target content to be transmitted and the target transmission location.
[0408] In one implementation, the two electronic devices can perform S1404 by the following steps:
[0409] In response to the second operation, the first electronic device sends a first transmission instruction to the second electronic device; the first transmission instruction instructs the second electronic device to transmit the first object;
[0410] The second electronic device receives a first transmission instruction from the first electronic device; and sends a first object to the first electronic device according to the first transmission instruction;
[0411] The first electronic device receives a first object from the second electronic device and imports the first object into the second object.
[0412] In one implementation, before executing S1404, the first electronic device may further determine the second object based on the content displayed by the first user interface. Optionally, the first electronic device may determine the second object in, but is not limited to, the following ways:
[0413] Method 1-1: When the first user interface is the main interface of the first electronic device, the first electronic device determines the second object as the first storage space of the first electronic device.
[0414] Method 1-2: When at least one window is opened in the first user interface, the first electronic device can further determine the second object according to the second operation; wherein, when the second object is the first window, the first window is the window in the foreground of the at least one window, or a window that supports importing content.
[0415] In one implementation, the transmission control interface includes a first control. Based on this, the first electronic device can determine the second object according to the second operation in the following manner:
[0416] Method 1-2-1: When the second operation is an operation performed by the user on the first control, the first electronic device can determine the second object based on the operation type of the second operation.
[0417] Optionally, when the second operation belongs to the first operation type, the first electronic device determines the second object as the first window; or when the second operation belongs to the second operation type, the first electronic device determines the second object as the first storage space of the first electronic device; wherein the first operation type and the second operation type are different. For example, the first operation type is a drag operation; the second operation type is a click operation.
[0418] Method 1-2-2: When the second operation is a drag operation performed by the user on the first control, the first electronic device can determine the second object based on the end position of the second operation.
[0419] Optionally, when the end position of the second operation is located within the first display area of the transmission control interface, the first electronic device can determine the second object as the first window; or when the end position of the second operation is located within the second display area of the transmission control interface, the first electronic device can determine the second object as the first storage space of the first electronic device; wherein, the first control and the second display area are located on both sides of the first display area. For details, please refer to the description in Embodiment 1 and the accompanying drawings.
[0420] Optionally, the first display area includes a first prompt message, which is used to indicate that the first display area is a confirmation area of the first window; and / or, the second display area includes a second prompt message, which is used to indicate that the second display area is a confirmation area of the first storage space of the first electronic device.
[0421] Method 1-2-3: In scenarios where the transmission control interface also includes a thumbnail of the first window, when the second operation is a drag operation performed by the user on the first control, the first electronic device can determine the second object based on the positional relationship between the end position of the second operation and the thumbnail of the first window.
[0422] Optionally, when the end position of the second operation is within the thumbnail of the first window, the first electronic device may determine that the second object is the first window; or when the end position of the second operation is outside the thumbnail of the first window, the first electronic device may determine that the second object is the first storage space of the first electronic device.
[0423] Optionally, when the end position of the second operation is located within the thumbnail of the first window, and the first operation stays within the thumbnail of the first window for more than a set time, the first electronic device determines the second object as the first window.
[0424] In some implementations, when the number of at least one open windows in the first user interface is multiple, the first electronic device can also display thumbnails of at least one candidate window capable of importing content in the transmission control interface; wherein, the thumbnail of one candidate window in the at least one candidate window is in the foreground; the at least one candidate window includes the first window. When the first electronic device receives a first swipe operation performed by the user in the transmission control interface, it can switch the thumbnail of the candidate window in the foreground based on the movement of the first swipe operation, so that the thumbnail of the first window is in the foreground.
[0425] The process by which the first electronic device determines the second object can refer to the process by which the mobile phone determines the target location in the above embodiments, and will not be repeated here.
[0426] In one embodiment, after S1404, the first electronic device may further display a second user interface; the second user interface may include a user interface after the first window imports the first object; or it may include a file window for displaying the content of the first object, or a file management window for displaying an icon of the first object. Alternatively, after S1404, the first electronic device may further display a first prompt message, which is used to prompt the user that the first object has been transferred to the second object; when a user operation is received from the user on the first prompt message, the first electronic device may further display the aforementioned second user interface.
[0427] In one implementation, the two electronic devices may further perform S1405 by the following steps:
[0428] In response to a third operation, the first electronic device sends a second object and a second transmission instruction to the second electronic device; the second transmission instruction indicates that the first object is the target transmission location. In response to the third operation, the second electronic device receives the second object and the second transmission instruction from the first electronic device; and imports the second object into the first object according to the second transmission instruction.
[0429] In another implementation, the first electronic device may also send only the second object instead of the second transmission instruction.
[0430] In one implementation, before executing S1405, the first electronic device may further determine the second object based on the content displayed by the first user interface. Optionally, the first electronic device may determine the second object in, but is not limited to, the following ways:
[0431] Method 2-1: When at least one window is open in the first user interface, the first electronic device can determine that the second object is the file displayed in the foreground file window of the first user interface;
[0432] Method 2-2: When the window in the foreground of the first user interface contains at least one selected file, the first electronic device can determine that the second object is the at least one selected file.
[0433] In this embodiment, the process by which the first electronic device determines the second object can refer to the process by which the mobile phone determines the first target file in the above embodiments, and will not be repeated here.
[0434] In one implementation, in a scenario where the transmission control interface includes a second control, the third operation in S1405 can be an operation performed by the user on the second control. Optionally, the transmission control interface includes a first area; the third operation is an operation where the user drags the second control into the first area. In one implementation, the first area includes a first control; the third operation is an operation where the user drags the second control into the first control within the first area.
[0435] In one implementation, after S1405, the first electronic device may continue to display the first user interface.
[0436] In one implementation, in S1402, the second electronic device may, but is not limited to, determine the first object by the following means:
[0437] Method 3-1: When the third user interface is the main interface of the second electronic device, the second electronic device determines the first object as the second storage space of the second electronic device.
[0438] Method 3-2: When at least one window is opened in the third user interface, the second electronic device determines that the first object is the second window in the foreground or the content displayed by the second window in the foreground; or the second electronic device determines the relative position information of the first electronic device and determines the first object based on the relative position information; wherein the relative position information is used to indicate the location of the physical location of the first electronic device mapped to the location of the third user interface.
[0439] The second electronic device can determine the first object based on the relative position information through the following steps:
[0440] When the location indicated by the relative location information is within a file management window displaying icons of at least one file, and the icon of the first file is located within the location indicated by the relative location information, or the distance between the icon of the first file and the location indicated by the relative location information is the closest, the second electronic device determines the first object as the first file.
[0441] When the location indicated by the relative position information is within the file window displaying the contents of the first file, the second electronic device determines the first object to be the first file.
[0442] When the location indicated by the relative position information is within the second window, the second electronic device determines the first object as the second window. Optionally, if the second window is a file management window containing file icons, the second electronic device determines the first object as the second window when the location indicated by the relative position information is within a blank area of the second window (i.e., an area without icons, and the distance to each icon exceeds a set distance threshold).
[0443] The process by which the second electronic device determines the first object can refer to the process by which the laptop computer determines the target file or target location in the above embodiments, and will not be repeated here. It should be noted that the second electronic device can determine one or more candidate objects (including the first object) through the above steps.
[0444] In one embodiment, after S1402, the second electronic device may further display a prompt in the third user interface, the prompt being used to inform the user that the first object is the object of content transmission. Optionally, the prompt may include: the presentation mode of the first object in the third user interface is different from the presentation mode of other display elements; or a second prompt message may be displayed in the third user interface, the second prompt message being used to inform the user that the first object is the object of content transmission. The presentation mode may include at least one of the following: color, brightness, and transparency.
[0445] In one implementation, the first electronic device may perform S1403 by following these steps:
[0446] In response to the first operation, the first electronic device establishes a connection with the second electronic device;
[0447] After S1402, the second electronic device sends first information to the first electronic device; wherein, the first information contains information about the first object;
[0448] The first electronic device receives first information from the second electronic device; and displays a transmission control interface containing the first control on the display screen according to the first information.
[0449] Optionally, when the second electronic device determines multiple candidate objects in S1402, the first information includes information about the multiple candidate objects, and the first object is included among the multiple candidate objects. The transmission control interface displayed by the first electronic device includes multiple candidate controls; each candidate control is used to indicate a candidate object in the second electronic device. The multiple candidate controls include the first control. In the transmission control interface, one of the multiple candidate controls is in the foreground; when the first electronic device receives a second sliding operation performed by the user in the transmission control interface, it can also switch the candidate control in the foreground based on the movement of the second sliding operation, so that the first control is in the foreground.
[0450] Optionally, the multiple candidate controls are located in a first area of the transmission control interface, and the second sliding operation is performed by the user in the first area of the transmission control interface.
[0451] In one embodiment, after S1405, the second electronic device may further display a fourth user interface. This fourth user interface may include a user interface after the second window imports the second object; or it may include a file window for displaying the content of the second object; or it may include a file management window for displaying an icon of the second object. Alternatively, after S1405, the second electronic device may further display a third prompt message to notify the user that the second object has been transferred to the first object; when a user operation is received in response to the third prompt message, the second electronic device may further display the aforementioned fourth user interface.
[0452] In one embodiment, the second electronic device may further perform S1403 by the following steps:
[0453] After identifying the second object, the first electronic device sends second information to the second electronic device; the second information is used to indicate the second object.
[0454] The second electronic device receives second information from the first electronic device and determines the first object based on the second object and the content displayed on the third user interface. The first object is either content that can be transmitted to the second object or a window that can be imported into the second object.
[0455] In one embodiment, the transmission control interface displayed by the first electronic device is located above the first user interface, and the transparency of the transmission control interface is greater than 0 and less than 100%.
[0456] It should also be noted that the descriptions of the concepts and steps in the embodiments of this application can refer to the descriptions of the same or similar concepts and steps in the above embodiments, and will not be repeated here.
[0457] In summary, this application provides a content transfer method. In this method, when two electronic devices are close together, the first electronic device can display a transfer control interface. The user can perform user operations through this interface to transfer a data object from the first electronic device to a data object in the second electronic device, or vice versa, thus achieving content transfer between the two electronic devices. This method allows users to transfer content between two electronic devices with minimal user operations, reducing the operational complexity of cross-device content transfer and improving user experience. Furthermore, this method supports bidirectional content transfer; users can trigger content transfer in different directions through different user operations, greatly facilitating user convenience. Moreover, this method can transfer content from one electronic device to a window opened on another electronic device, achieving window-level (or application-level) content transfer and reducing the operational complexity of window-level content transfer.
[0458] It should also be noted that each step in the above embodiments can be executed by the corresponding device, or by components such as chips, processors, or chip systems within that device. The embodiments of this application do not limit their execution. The above embodiments are merely illustrative examples of execution by the corresponding device. Furthermore, the specific implementation methods or examples in the above embodiments do not limit the solutions provided by the embodiments of this application.
[0459] It should be noted that in the above embodiments, some steps may be selected for implementation, and the order of the steps in the figures may be adjusted. This application does not limit this. It should be understood that performing some of the steps in the figures, adjusting the order of the steps, or combining them in a specific implementation all fall within the protection scope of this application.
[0460] It is understood that, in order to achieve the functions described in the above embodiments, each device involved in the above embodiments includes a hardware structure and / or software module corresponding to perform each function. Those skilled in the art should readily recognize that, based on the units and method steps of the various examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0461] It is understood that the architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. As those skilled in the art will know, with the evolution of network architecture and the emergence of new services, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0462] It should be noted that the "steps" in the embodiments of this application are merely illustrative and are intended to better understand one method of presentation used in the embodiments. They do not constitute a substantial limitation on the execution of the solution of this application. For example, the "step" can also be understood as a "feature". Furthermore, the steps do not constitute any limitation on the execution order of the solution of this application. Any changes to the order of steps, or the merging or splitting of steps made on this basis without affecting the overall solution implementation, resulting in a new technical solution, are also within the scope of disclosure of this application.
[0463] Based on the same concept, embodiments of this application also provide an electronic device. For example... Figure 15 As shown, the electronic device 1500 includes a display screen 1501, one or more processors 1502, and a memory 1503. Optionally, the electronic device 1500 may also include a communication module 1504. For example, the above-mentioned devices can be connected via one or more communication buses. The one or more computer programs are stored in the memory 1503 and configured to be executed by the one or more processors 1502. The one or more computer programs include instructions that can be used to cause the electronic device 1500 to perform various steps of the methods in the above embodiments.
[0464] For example, the above-mentioned one or more processors 1502 may specifically be Figure 2 The processor 210; the memory 1503 mentioned above can specifically be... Figure 2 The memory 221 in the middle. The communication module 1504 can be a memory 221 in the middle. Figure 2 The mobile communication module 250 or wireless communication module 260 is included; the display screen 1501 can be... Figure 2 The display screen 294 in this embodiment is not limited in any way in this application.
[0465] Based on the same concept, embodiments of this application also provide an electronic device, which includes units for performing the various steps of the methods provided in the above embodiments.
[0466] For details on the specific functions of each module, please refer to the above embodiments; they will not be repeated here.
[0467] Based on the above embodiments, this application also provides a computer program product, which includes instructions; when the computer program is run on a computer, it causes the computer to execute the method provided in the above embodiments.
[0468] Based on the above embodiments, this application also provides a computer-readable storage medium storing computer program instructions, which, when executed by a computer, cause the computer to perform the methods provided in the above embodiments.
[0469] Optionally, the aforementioned computer may include, but is not limited to, control devices.
[0470] The storage medium can be any available medium that a computer can access. For example, but not limited to, a computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
[0471] Based on the above embodiments, this application also provides a chip for reading a computer program stored in a memory to implement the method provided in the above embodiments. Optionally, the chip may include a processor and a memory, wherein the processor is coupled to the memory and is used to read the computer program stored in the memory to implement the method provided in the above embodiments.
[0472] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the functions involved in the control device in the above embodiments. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete components.
[0473] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0474] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0475] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0476] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
Claims
1. A content transmission method, applied to a first electronic device, characterized in that, include: Display the first user interface on the screen; In response to a first operation in which the first electronic device and the second electronic device approach each other, a transmission control interface is displayed on the screen; wherein the transmission control interface includes a first control and / or a second control; the first control is used to indicate a first object in the second electronic device, and the second control is used to indicate a second object in the first electronic device; In response to a second operation performed by the user on the transmission control interface, a first object in the second electronic device is transmitted to a second object in the first electronic device; wherein the first object is the target transmission content, and the second object is the target transmission location; the second object is a first storage space of the second electronic device, or a first window opened in the first user interface; or In response to a third operation performed by the user on the transmission control interface, a second object in the first electronic device is transmitted to a first object in the second electronic device; wherein, the first object is the target transmission location, and the second object is the target transmission content; the first object is a second storage space of the second electronic device, or a second window opened by the second electronic device; The second operation is different from the third operation.
2. The method as described in claim 1, characterized in that, The step of transmitting a first object in the second electronic device to a second object in the first electronic device in response to a second operation performed by the user on the transmission control interface includes: In response to the second operation, a first transmission instruction is sent to the second electronic device; the first transmission instruction instructs the second electronic device to transmit the first object; Receive the first object from the second electronic device; Import the first object into the second object.
3. The method as described in claim 2, characterized in that, Before transferring the first object in the second electronic device to the second object in the first electronic device, the method further includes: The second object is determined based on the content displayed in the first user interface.
4. The method as described in claim 3, characterized in that, Determining the second object based on the content displayed by the first user interface includes: When the first user interface is the main interface of the first electronic device, the second object is determined to be the first storage space of the first electronic device; When at least one window is opened in the first user interface, the second object is determined according to the second operation; wherein, when the second object is the first window, the first window is the foreground window among the at least one window, or a window that supports importing content.
5. The method as described in claim 4, characterized in that, The transmission control interface includes the first control; determining the second object according to the second operation includes: When the second operation is an operation performed by the user on the first control, the second object is determined according to the operation type of the second operation; or When the second operation is a drag-and-drop operation performed by the user on the first control, the second object is determined based on the end position of the second operation; or The transmission control interface also includes a thumbnail of the first window; when the second operation is a drag operation performed by the user on the first control, the second object is determined according to the positional relationship between the end position of the second operation and the thumbnail of the first window.
6. The method as described in claim 5, characterized in that, The second operation is a drag-and-drop operation performed by the user on the first control; determining the second object based on the end position of the second operation includes: When the end position of the second operation is located within the first display area of the transmission control interface, the second object is determined to be the first window; or When the end position of the second operation is located within the second display area of the transmission control interface, the second object is determined to be the first storage space of the first electronic device; The first control and the second display area are located on either side of the first display area.
7. The method as described in claim 5 or 6, characterized in that, When the second operation is a drag-and-drop operation performed by the user on the first control, determining the second object based on the positional relationship between the end position of the second operation and the thumbnail of the first window includes: When the end position of the second operation is located within the thumbnail of the first window, the second object is determined to be the first window; or When the end position of the second operation is outside the thumbnail of the first window, the second object is determined to be the first storage space of the first electronic device.
8. The method according to any one of claims 5-7, characterized in that, When the number of at least one open window in the first user interface is multiple, the method further includes: The transmission control interface displays thumbnails of at least one candidate window among the plurality of windows that can import content; wherein, the thumbnail of one candidate window among the at least one candidate window is in the foreground; the at least one candidate window includes the first window; The system receives a first swipe operation performed by the user on the transmission control interface. Based on the movement of the first swipe operation, it switches the thumbnail of the candidate window in the foreground, so that the thumbnail of the first window is in the foreground.
9. The method according to any one of claims 1-8, characterized in that, After transferring the first object in the second electronic device to the second object in the first electronic device, the method further includes: Display a second user interface; the second user interface includes the user interface after the first object is imported into the first window; or includes a file window for displaying the content of the first object, or includes a file management window for displaying the icon of the first object; or Display a first prompt message to inform the user that the first object has been transferred to the second object; when a user operation is received in response to the first prompt message, display the second user interface.
10. The method according to any one of claims 1-9, characterized in that, The step of transmitting a second object in the first electronic device to a first object in the second electronic device in response to a third operation performed by the user on the transmission control interface includes: In response to the third operation, the second object and the second transmission indication are sent to the second electronic device; the second transmission indication is used to indicate that the first object is the target transmission location.
11. The method as described in claim 10, characterized in that, Before transferring the second object in the first electronic device to the first object in the second electronic device, the method further includes: The second object is determined based on the content displayed in the first user interface.
12. The method as described in claim 11, characterized in that, Determining the second object based on the content displayed by the first user interface includes: When at least one window is open in the first user interface, the second object is determined to be a file displayed in the foreground file window of the first user interface; or When the window in the foreground of the first user interface contains at least one selected file, the second object is determined to be the at least one selected file.
13. The method according to any one of claims 10-12, characterized in that, The transmission control interface includes the second control; the third operation is an operation performed by the user on the second control.
14. The method as described in claim 13, characterized in that, The transmission control interface includes a first area; the third operation is the user dragging the second control into the first area.
15. The method as described in claim 14, characterized in that, The first area contains the first control; the third operation is the user dragging the second control into the first control within the first area.
16. The method according to any one of claims 10-15, characterized in that, After transferring the second object from the first electronic device to the first object in the second electronic device, the method further includes: Continue displaying the first user interface.
17. The method according to any one of claims 1-16, characterized in that, The first operation, which responds to the proximity of the first electronic device and the second electronic device, involves displaying a transmission control interface on the screen, including: In response to the first operation, a connection is established with the second electronic device, and first information is received from the second electronic device; the first information includes information about the first object; Based on the first information, the transmission control interface containing the first control is displayed on the display screen.
18. The method as described in claim 17, characterized in that, The first information includes information about multiple candidate objects, of which the first object is included; the transmission control interface includes multiple candidate controls; each candidate control is used to indicate a candidate object in the second electronic device; the multiple candidate controls include the first control; wherein, in the transmission control interface, one of the multiple candidate controls is in the foreground; The method further includes: The system receives a second swipe operation performed by the user on the transmission control interface, and based on the movement of the second swipe operation, switches the candidate control in the foreground so that the first control is in the foreground.
19. The method as described in claim 18, characterized in that, The plurality of candidate controls are located in the first area of the transmission control interface; The second swipe operation is performed by the user within the first area of the transmission control interface.
20. The method according to any one of claims 1-19, characterized in that, The method further includes: Send a second message to the second electronic device; the second message is used to instruct the second object.
21. The method according to any one of claims 1-20, characterized in that, The transmission control interface is located above the first user interface, and the transparency of the transmission control interface is greater than 0 and less than 100%.
22. A content transmission method applied to a second electronic device, characterized in that, include: Display a third user interface on the screen; In response to a first operation in which the first electronic device and the second electronic device approach each other, a first object for content transmission is determined based on the content displayed by the third user interface; In response to a second operation performed by the user on the transmission control interface of the first electronic device, the first object in the second electronic device is transmitted to a second object in the first electronic device; wherein, the first object is the target transmission content, and the second object is the target transmission location; the second object is a first storage space of the second electronic device, or a first window opened in the first user interface; or In response to a third operation performed by the user on the transmission control interface of the first electronic device, a second object in the first electronic device is transmitted to the first object in the second electronic device; wherein, the first object is the target transmission location, and the second object is the target transmission content; the first object is the second storage space of the second electronic device, or the second window opened by the second electronic device; The second operation is different from the third operation.
23. The method as described in claim 22, characterized in that, The step of transmitting the first object in the second electronic device to the second object in the first electronic device in response to a second operation performed by the user on the transmission control interface of the first electronic device includes: In response to the second operation, a first transmission indication is received from the first electronic device; the first transmission indication is used to instruct the second electronic device to transmit the first object; The first object is sent to the first electronic device according to the first transmission instruction.
24. The method as described in claim 22 or 23, characterized in that, The step of transmitting the second object in the first electronic device to the first object in the second electronic device in response to a third operation performed by the user on the transmission control interface of the first electronic device includes: In response to the third operation, the second object and the second transmission indication are received from the first electronic device; wherein the second transmission indication is used to indicate that the first object is the target transmission location; According to the second transmission instruction, the second object is imported into the first object.
25. The method according to any one of claims 22-24, characterized in that, The step of determining the first object for content transmission based on the content displayed by the third user interface includes: When the third user interface is the main interface of the second electronic device, the first object is determined to be the second storage space of the second electronic device; When at least one window is opened in the third user interface, the first object is determined to be the content displayed by the second window in the foreground or the content displayed by the second window in the foreground; or the relative position information of the first electronic device is determined, and the first object is determined based on the relative position information; wherein the relative position information is used to indicate the position of the physical position of the first electronic device mapped to the position of the third user interface.
26. The method as described in claim 25, characterized in that, Determining the first object based on the relative position information includes: When the location indicated by the relative position information is within a file management window displaying icons of at least one file, and the icon of the first file is located within the location indicated by the relative position information, or the distance between the icon of the first file and the location indicated by the relative position information is the closest, the first object is determined to be the first file; or When the position indicated by the relative position information is within the file window displaying the contents of the first file, the first object is determined to be the first file; or When the position indicated by the relative position information is within the second window, the first object is determined to be the second window.
27. The method according to any one of claims 22-26, characterized in that, After determining the first object for content transmission based on the content displayed by the third user interface, the method further includes: A prompt is displayed in the third user interface to indicate to the user that the first object is an object for content transmission.
28. The method as described in claim 27, characterized in that, The prompts include: In the third user interface, the first object is presented differently from other display elements; or A second prompt message is displayed in the third user interface, which prompts the user that the first object is an object for content transmission.
29. The method as described in claim 28, characterized in that, The presentation method includes at least one of the following: color, brightness, and transparency.
30. The method according to any one of claims 22-29, characterized in that, The method further includes: In response to the first operation, a connection is established with the first electronic device, and first information is sent to the first electronic device; wherein, the first information includes information about the first object.
31. The method as described in claim 30, characterized in that, The step of determining the first object for content transmission based on the content displayed by the third user interface includes: Based on the content displayed by the third user interface, multiple candidate objects are determined; wherein, the multiple candidate objects include the first object; and the first information includes information about the multiple candidate objects.
32. The method as described in claims 22-31, characterized in that, The step of determining the first object for content transmission based on the content displayed by the third user interface includes: Receive second information from the first electronic device; the second information is used to indicate the second object in the second user interface of the first electronic device; The first object is determined based on the content displayed by the second object and the third user interface.
33. The method as described in claim 32, characterized in that, The first object is either content that can be transferred to the second object or a window that can be imported into the second object.
34. An electronic device, characterized in that, The electronic device includes: A display screen used to show the user interface; Memory is used to store computer program instructions; A processor for executing the computer program instructions to support the electronic device in implementing the method as described in any one of claims 1-33.
35. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processing circuit, implement the method as described in any one of claims 1-33.
36. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-33.
Citation Information
Patent Citations
Object transmission method and device
CN103678207A
Information processing method and electronic equipment
CN104063111A
File processing method and device, electronic equipment and readable storage medium
CN117596280A
File operation method, electronic equipment and computer readable storage medium
CN118820185A
Electronic device and method of processing information in electronic device
US20160202943A1