WO2025123722A1 - 文件共享方法、设备及存储介质 - Google Patents
文件共享方法、设备及存储介质 Download PDFInfo
- Publication number
- WO2025123722A1 WO2025123722A1 PCT/CN2024/110746 CN2024110746W WO2025123722A1 WO 2025123722 A1 WO2025123722 A1 WO 2025123722A1 CN 2024110746 W CN2024110746 W CN 2024110746W WO 2025123722 A1 WO2025123722 A1 WO 2025123722A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- file
- screen
- window
- dragged
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1698—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a sending/receiving arrangement to establish a cordless communication link, e.g. radio or infrared link, integrated cellular phone
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/173—Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/173—Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
- G06F15/17306—Intercommunication techniques
- G06F15/17318—Parallel communications techniques, e.g. gather, scatter, reduce, roadcast, multicast, all to all
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Definitions
- the present application relates to the field of terminal technology, and in particular to a file sharing method, device and storage medium.
- Multi-screen collaboration scenarios are also called screen collaboration scenarios, which include screen projection scenarios, extended screen scenarios, and concurrent screen projection and extended screen scenarios. How to achieve cross-device file sharing in screen collaboration scenarios is an urgent problem to be solved.
- the first electronic device is connected to the second electronic device by wire or wirelessly, and the first electronic device is connected to the third electronic device by wire or wirelessly.
- the first window displayed by the first electronic device is a collaborative window of the second electronic device, and the content displayed in the first window can be consistent with the content displayed on the display screen of the second electronic device.
- the first window can be regarded as a mirror window of the second electronic device on the first electronic device.
- the first window displays a first file
- the display screen of the second electronic device displays the first file.
- the first file is a locally stored file of the second electronic device, for example, the first file can be a picture, video, text, audio, application, etc.
- the first electronic device is a personal computer PC 100
- the second electronic device is a mobile phone 200
- the third electronic device is a tablet computer 300.
- PC 100 is connected to mobile phone 200 by wire or wireless
- PC 100 is connected to tablet computer 300 by wire or wireless.
- the first window is window 101
- the first file displayed in the first window is picture 1.
- the screen effective area of the third electronic device is area 301 on the display screen of tablet computer 300. The user can use a wireless mouse to drag picture 1 across the edge of the PC 100 screen, and then release picture 1 to area 301 of tablet computer 300, and picture 1 is displayed in area 301.
- the content projected from the second electronic device to the first electronic device is displayed in the first window of the first electronic device.
- the user drags the first file in the first window across devices to the third electronic device, thereby displaying the first file stored locally on the second electronic device by dragging it to the third electronic device through the first electronic device.
- the operation process is simple, and cross-device file sharing in the screen collaboration scenario can be realized quickly and efficiently.
- the drag-and-release operation on the first file is a drag-and-release operation on the display screen of the tablet computer 300.
- the effective screen area of the third electronic device is area 301 on the display screen of the tablet computer 300. It should be understood that if the picture 1 is dragged outside the area 301, since it is not the effective screen area of the tablet computer 300, the cross-device drag fails, and the tablet computer 300 will not receive and display the picture 1.
- the first notification message sent by the third electronic device to the first electronic device may correspond to the notification message of S609 in FIG. 6.
- the file transfer request sent by the first electronic device to the second electronic device may correspond to the file transfer request of S613 in FIG. 6.
- the method also includes: the third electronic device displays a second file, where the second file is a file locally stored in the third electronic device; when the second file is dragged from the screen of the third electronic device to the first window, in response to a drag-and-release operation on the second file, the first window and the second electronic device display the second file.
- the second file may be a picture, video, text, audio, application, etc.
- the second file is picture 5
- picture 5 is displayed on the display screen of tablet computer 300.
- the user can use the wireless mouse to drag picture 5 across the edge of the tablet computer 300 screen to window 101 of PC 100 and then release picture 5, and picture 5 is displayed in window 101 and on the display screen of mobile phone 200.
- the content projected from the second electronic device to the first electronic device is displayed in the first window of the first electronic device.
- the user can drag the third file in the third electronic device to the first window across devices, and the second file stored locally on the third electronic device can be dragged to the second electronic device through the first electronic device for display.
- the first window can synchronously display the second file.
- the method before the first window and the second electronic device display the second file, the method further includes: the third electronic device transmitting the second file to the first electronic device; and the first electronic device transmitting the second file to the second electronic device.
- the third electronic device after the third electronic device receives the notification sent by the first electronic device that the file is released to the first window, the third electronic device transmits the second file to the first electronic device, so that the first electronic device transfers the second file to the second electronic device for display, thereby realizing cross-device file sharing in the screen collaboration scenario.
- the method also includes: when the second file is dragged to the screen edge of the third electronic device, the third electronic device sends a second cross-device drag event to the first electronic device, and the second cross-device drag event is used to indicate that a file is dragged from the third electronic device to the first electronic device.
- the third electronic device when the second file is dragged to the screen edge of the third electronic device, notifies the first electronic device that a file is dragged across devices by sending a second cross-device drag event, so that the first electronic device starts monitoring the dragged second file.
- the method further includes: after the super keyboard and mouse service of the first electronic device is started, the super keyboard and mouse service of the first electronic device creates a first virtual window; the first virtual window is used to detect a cross-device drag event on the main screen of the first electronic device.
- the first electronic device is a personal computer PC 100
- the second electronic device is a mobile phone 200
- the third electronic device is a tablet computer 300.
- PC 100 is connected to mobile phone 200 by wire or wireless
- PC 100 is connected to tablet computer 300 by wire or wireless.
- the extended screen of the first electronic device is an extended screen 304 of the tablet computer 300 projected by PC 100, and the extended screen 304 occupies part of the screen space of the display screen of the tablet computer 300.
- the second window is a window 305 on the extended screen 304
- the third file displayed in the second window is picture 1.
- the first screen space of the third electronic device is the screen space 306 of the tablet computer 300 except the extended screen 304.
- the user can use a wireless mouse to drag picture 1 from window 305 of the tablet computer 300 to screen space 306 and then release it, and picture 1 is displayed in screen space 306.
- the second electronic device transmits the third file dragged by the user to the third electronic device through the first electronic device, thereby realizing cross-device file transfer in the screen collaboration scenario.
- the first electronic device when a third file is dragged from the second window to the screen edge of the extended screen of the first electronic device, the first electronic device sends a third cross-device drag event to the third electronic device, and the third cross-device drag event is used to indicate that a file is dragged from the extended screen of the first electronic device to the third electronic device.
- PC 100 when picture 1 is dragged from window 305 to the screen edge of extended screen 304 of PC 100, PC 100 sends a third cross-device drag event to tablet computer 300 to indicate that a picture is dragged from extended screen 304 of PC 100 to tablet computer 300.
- the third cross-device drag event may correspond to the super keyboard and mouse drag-in event of S1008b in FIG10 .
- the second virtual window is located at the lower right corner of the extended screen of the first electronic device, and can trigger a cross-device drag event on the extended screen of the first electronic device.
- the first electronic device is PC 100
- the second virtual window is window 309 at the lower right corner of the extended screen 304 of PC 100.
- the second virtual window can be used to detect the aforementioned third cross-device drag event.
- an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the processor is used to call a computer program in the memory to execute a method of a first electronic device as described in any one of the first aspects, or to execute a method of a second electronic device as described in any one of the first aspects, or to execute a method of a third electronic device as described in any one of the first aspects.
- an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the processor is used to call a computer program in the memory to execute a method of a first electronic device as described in any one of the second aspects, or to execute a method of a second electronic device as described in any one of the second aspects, or to execute a method of a third electronic device as described in any one of the second aspects.
- an embodiment of the present application provides a computer program product, including a computer program.
- the computer program When the computer program is run, it enables the computer to execute the method of the first electronic device as described in any one of the second aspects, or execute the method of the second electronic device as described in any one of the second aspects, or execute the method of the third electronic device as described in any one of the second aspects.
- FIG2 is a second schematic diagram of a screen collaboration scenario provided in an embodiment of the present application.
- FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- FIG4 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
- FIG5 is a schematic diagram of a scenario of a file sharing method provided in an embodiment of the present application.
- FIG7 is a second schematic diagram of a scenario of a file sharing method provided in an embodiment of the present application.
- “at least one” refers to one or more, and “plurality” refers to two or more.
- “And/or” describes the association relationship of associated objects, indicating that three relationships may exist.
- a and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
- the character “/” generally indicates that the previous and next associated objects are in an “or” relationship.
- “At least one of the following (kind/piece)” or similar expressions refers to any combination of these items, including any combination of single items (kind/piece) or plural items (kind/piece).
- At least one of a, b or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.
- electronic devices are devices with display screens.
- electronic devices may be portable devices, such as mobile phones, tablet computers, wearable devices with display functions and wireless communication functions, vehicle-mounted terminal devices, virtual reality (VR) devices, augmented reality (AR) devices, personal computers (PCs), laptops, netbooks, personal digital assistants (PDAs), smart home devices (such as smart TVs, etc.), etc.
- VR virtual reality
- AR augmented reality
- PCs personal computers
- laptops laptops
- netbooks personal digital assistants
- smart home devices such as smart TVs, etc.
- an application also known as an application program, is a software program that can implement one or more specific functions.
- multiple applications can be installed in an electronic device, such as a camera application, a text messaging application, a browser application, an album application, etc.
- the application mentioned in the embodiments of the present application can be an application installed when the electronic device leaves the factory, or it can be an application downloaded from the network or obtained from other electronic devices by the user during the use of the electronic device.
- the accompanying service is a screen collaboration function of an electronic device, which can project the extended screen of the device onto the screen of a nearby device.
- the PC can project its extended screen onto, for example, a tablet computer.
- the embodiment of the present application provides a file sharing method for sharing files between multiple electronic devices that establish screen collaboration.
- the multiple electronic devices that establish screen collaboration include at least two electronic devices.
- the shared files can be applications, pictures, videos, audio, text, etc.
- FIG. 1 is a schematic diagram of a screen collaboration scenario provided in an embodiment of the present application.
- the scenario includes a PC 100, a mobile phone 200, and a tablet computer 300, wherein the PC 100 is connected to the mobile phone 200 and the tablet computer 300 in communication.
- the communication connection between devices in FIG. 1 is a wireless fidelity (Wi-Fi) P2P connection.
- the devices can also be connected by wire, such as by a universal serial bus (USB).
- Wi-Fi wireless fidelity
- USB universal serial bus
- PC 100 and mobile phone 200 have established a screen collaborative connection.
- Mobile phone 200 projects the content on its own display screen onto the display screen of PC 100 for display, such as window 101 in FIG. 1 .
- Window 101 is a collaborative window of mobile phone 200. Normally, the content displayed on window 101 is consistent with the content displayed on the screen of mobile phone 200. Window 101 can also be called the mirror screen of mobile phone 200.
- the content displayed on the window 101 may also be inconsistent with the content displayed on the screen of the mobile phone 200.
- the user can enter the PC Manager of PC 100 and quickly establish a freewheeling connection between PC 100 and tablet computer 300 in the multi-screen collaboration of PC Manager.
- the file sharing method of scenario 2 corresponds to the embodiments shown in FIG. 9 and FIG. 10 described below.
- the embodiments shown in FIG. 9 and FIG. 10 introduce the file sharing method based on operation 3 in detail.
- FIG5 is a schematic diagram of a scenario of a file sharing method provided by an embodiment of the present application.
- a collaborative window 101 of a mobile phone 200 is displayed on the screen of the PC 100, and the interface of the photo album application of the mobile phone 200 is synchronously displayed on the screen of the window 101 and the mobile phone 200, and the interface displays multiple pictures, such as picture 1 and picture 2.
- the user can use a wireless mouse to select a picture in the window 101, such as picture 1, and drag the picture 1 from the window 101 to the left edge of the screen of the PC 100, and then enter the right edge of the screen of the tablet computer 300, until the picture 1 is dragged to the effective area 301 of the screen of the tablet computer 300 and released, and the mobile phone 200 transmits the picture 1 in the photo album application of the mobile phone 200 to the tablet computer 300 through the PC 100, and displays the picture 1 in the effective area 301 of the tablet computer 300.
- the effective area 301 may occupy a part of the screen space of the tablet computer 300. In some embodiments, the effective area 301 may also occupy the entire screen of the tablet computer 300.
- FIG. 5 is only an example, and the embodiment of the present application does not limit the style of dragging pictures on different types of devices.
- FIG6 is a flowchart of a file sharing method provided in an embodiment of the present application.
- the file sharing method shown in FIG6 involves a screen collaboration service of a mobile phone, a screen collaboration service and a super keyboard and mouse service of a PC, and a super keyboard and mouse service of a tablet computer.
- a screen collaboration has been established between a mobile phone and a PC
- a super keyboard and mouse has been established between a PC and a tablet computer.
- the file sharing method includes:
- the screen coordination service of the PC sends a screen coordination drag-in event to the super keyboard and mouse service of the PC.
- the initial value of the first flag may be false.
- the super keyboard and mouse service of the PC determines whether the first flag is true.
- the initial value of the second flag can be false.
- the PC's super keyboard and mouse service can reconfirm whether the first flag is true. The purpose is to check whether the drag-in event of the super keyboard and mouse is triggered based on the drag-in event of the screen collaboration. If so, modify the second flag to true.
- the second flag can be regarded as the total flag of the screen collaboration and super keyboard and mouse dragging concurrency recorded by the PC super keyboard and mouse (referred to as collaborative keyboard and mouse dragging).
- the PC's super keyboard and mouse service After the PC's super keyboard and mouse service receives the notification message sent by the tablet's super keyboard and mouse service of releasing to the valid area and determines that the current scene is a keyboard and mouse collaborative drag scene, it changes the first flag from true to false.
- the screen collaboration of the PC sends a file transfer request to the screen collaboration of the mobile phone.
- the screen coordination service of the mobile phone sends a file transfer response to the screen coordination service of the PC, where the file transfer response includes the dragged picture in the mobile phone camera application, for example, picture 1 in FIG5 .
- the screen collaboration service of the PC stores the image to the target path.
- the screen collaboration service of the PC determines whether the third flag is true to know whether it is a keyboard and mouse collaborative drag scene. If the third flag is true, the screen collaboration service of the PC determines that the current scene is a keyboard and mouse collaborative drag scene, and can send a picture transfer completion message to the super keyboard and mouse service of the PC.
- the PC's super keyboard and mouse service determines whether the second flag is true to determine whether it is a keyboard and mouse coordinated drag scene. If the second flag is true, the PC's super keyboard and mouse service determines that the current scene is a keyboard and mouse coordinated drag scene, and can obtain the image from the target path.
- the super keyboard and mouse service of the PC transmits the image to the super keyboard and mouse service of the tablet computer.
- This embodiment does not limit the execution order of S621a and S621b, and they can be executed simultaneously or sequentially.
- the screen collaboration service of the PC modifies the third flag bit to false.
- the super keyboard and mouse service of the tablet computer transmits the image to the display driver of the tablet computer to display the dragged image on the tablet computer screen.
- the transferred picture can be displayed anywhere within the active area of the tablet screen.
- the picture 1 when the cross-device dragged picture 1 is released into the valid area of the tablet computer, if the valid area is the picture list area, the picture 1 may be displayed at the first position in the picture list.
- a picture may also be displayed at the location where the picture was released.
- the file sharing method shown in this embodiment can realize the transfer of the file selected by the user in the mobile phone collaboration window and dragged across devices through the PC to the tablet computer through the information interaction of the screen collaboration service of the mobile phone, the screen collaboration service of the PC, the super keyboard and mouse service of the PC, and the super keyboard and mouse service of the tablet computer, and display the file on the tablet computer screen.
- the above scheme can quickly and efficiently realize cross-device file sharing in the screen collaboration scenario, and improve the convenience of user operation.
- FIG7 is a second scenario diagram of the file sharing method provided by the embodiment of the present application.
- the collaborative window 101 of the mobile phone 200 is displayed on the screen of the PC 100
- the interface of the album application of the mobile phone 200 is synchronously displayed on the window 101 and the screen of the mobile phone 200, and the interface displays multiple pictures, such as picture 1 and picture 2.
- the user can use a wireless mouse to cross to the screen of the tablet computer 300, and the screen of the tablet computer 300 displays the interface 303 of the album application of the tablet computer 300, and the interface 303 displays multiple pictures, including, for example, picture 5.
- the user can use the wireless mouse to select the picture 5 in the interface 303, drag the picture 5 to the right edge of the screen of the tablet computer 300, and then enter the left edge of the screen of the PC 100, until the picture 5 is dragged to the window 101 on the screen of the PC 100 and then released, the tablet computer 300 transmits the picture 5 in the album application of the tablet computer 300 to the mobile phone 200 through the PC 100, and displays the picture 5 in the collaborative window 101 of the mobile phone 200 and the screen of the mobile phone 200.
- the display position of the picture 5 is not limited to the position of the first picture in the album. In some embodiments, the picture 5 can also be displayed at the released position.
- FIG8 is a flowchart of the second method for sharing files provided by an embodiment of the present application.
- the file sharing method shown in FIG8 involves the screen collaboration service of the mobile phone, the screen collaboration service and super keyboard and mouse service of the PC, and the super keyboard and mouse service of the tablet computer.
- the mobile phone and the PC have established screen collaboration
- the PC and the tablet computer have established super keyboard and mouse.
- the file sharing method includes:
- the super keyboard and mouse service of the tablet computer sends a super keyboard and mouse drag-in event to the super keyboard and mouse service of the PC.
- the drag-in event of the super keyboard and mouse refers to a cross-device drag event triggered at the edge of the tablet screen.
- the super keyboard and mouse service of the tablet sends the drag-in event of the super keyboard and mouse to the super keyboard and mouse service of the PC.
- the super keyboard and mouse service of the PC sends a super keyboard and mouse drag-in event to the screen collaboration service of the PC.
- the super keyboard and mouse service of the PC can send the super keyboard and mouse drag-in event to the screen collaboration service of the PC to inform the screen collaboration service of the PC that the super keyboard and mouse is dragging files.
- the initial value of the fourth flag bit may be false.
- the screen collaboration service of the PC may modify the fourth flag bit from false to true.
- the screen collaboration service of the PC determines whether the fourth flag is true.
- the screen collaboration service of the PC determines whether the fourth flag is true.
- the initial value of the fifth flag can be false.
- the screen collaboration service of the PC can confirm again whether the fourth flag is true. The purpose is to check whether the drag-in event of the keyboard and mouse service is still in progress. If the drag-in event of the keyboard and mouse service is still in progress (the fourth flag is true), it indicates that the drag-in event of the screen collaboration is triggered based on the drag-in event of the keyboard and mouse service. At this time, the screen collaboration service of the PC will modify the fifth flag from false to true. This can avoid the problem of operation interruption after the drag-in event of the keyboard and mouse service, which triggers the drag-in event of the screen collaboration and incorrectly modifies the fifth flag.
- the fifth flag can be regarded as the total flag of the screen collaboration and super keyboard and mouse dragging concurrently recorded by the PC screen collaboration.
- the screen coordination service of the PC determines whether the fifth flag is true.
- the screen collaboration service of the PC sends a notification message to the super keyboard and mouse service of the PC that the image is dragged into the collaboration window.
- the PC's screen collaboration service Before the PC's screen collaboration service sends a notification message to the PC's super keyboard and mouse service about dragging an image into a collaboration window, it can confirm again whether the fifth flag is true, in order to check whether the current scenario is a collaborative keyboard and mouse dragging scenario.
- the initial value of the sixth flag bit may be false.
- the super keyboard and mouse service of the PC sends a notification message of releasing the image to the super keyboard and mouse service of the tablet computer.
- the super keyboard and mouse service of the PC when the user releases the picture 5 dragged across devices in window 101 , the super keyboard and mouse service of the PC sends a notification message of releasing the picture to the screen collaboration service of the PC, and sends a notification message of releasing the picture to the super keyboard and mouse service of the tablet computer.
- This embodiment does not limit the execution order of S809a and S809b, and they can be executed simultaneously or sequentially.
- the PC's screen collaboration service After the PC's screen collaboration service receives the notification message of releasing the image sent by the PC's super keyboard and mouse service, it changes the fourth flag from true to fasle.
- the super keyboard and mouse service of the tablet transmits the image to the super keyboard and mouse service of the PC.
- the super keyboard and mouse service of the PC sends a picture transmission completion message to the screen coordination service of the PC.
- the screen collaboration service of the PC obtains the image from the target path.
- the PC's super keyboard and mouse service After the PC's super keyboard and mouse service stores the picture to the target path, it can determine whether it is a keyboard and mouse collaborative dragging scenario by determining whether the sixth flag is true. If the sixth flag is true, the PC's super keyboard and mouse service determines that the current scenario is a keyboard and mouse collaborative dragging scenario, and sends a picture transfer completion message to the PC's screen collaborative service so that the PC's screen collaborative service can obtain the picture at the target path.
- the screen collaboration service of the PC transmits the image to the screen collaboration service of the mobile phone.
- the screen coordination service of the mobile phone transmits the image to the display driver of the mobile phone to display the dragged image on the mobile phone screen.
- the picture 5 is displayed on the screen of the mobile phone 200 .
- the screen collaboration service of the PC sends a message indicating that the image transfer is complete to the super keyboard and mouse service of the PC.
- the screen collaboration service of the PC transmits the image to the display driver of the PC to display the dragged image in the collaboration window.
- the picture 5 is displayed in the window 101 .
- the super keyboard and mouse service of the PC will trigger the drag and release (DragLeave) event of the super keyboard and mouse, and change the fifth flag from true to false.
- the file sharing method shown in this embodiment realizes the information interaction of the screen collaboration service of the mobile phone, the screen collaboration service of the PC, the super keyboard and mouse service of the PC, and the super keyboard and mouse service of the tablet computer, so as to transfer the file selected by the user in the tablet computer and dragged across devices to the mobile phone through the PC, and display the file on the mobile phone screen and the mobile phone collaboration window of the PC screen.
- the above scheme can quickly and efficiently realize cross-device file sharing in the screen collaboration scenario, and improve the convenience of user operation.
- a virtual window is created in the lower right corner of the PC main screen, such as window 103 in FIG5 , and the virtual window is used to detect cross-device drag events on the PC main screen.
- window 103 can detect the cross-device drag event on the PC main screen, which can trigger S606a and S606b in FIG6 .
- an embodiment of the present application proposes a file sharing method, which can create a virtual window according to the position of the mobile phone collaborative window by detecting the position of the mobile phone collaborative window. If the mobile phone collaborative window is located on the PC main screen, the PC's super keyboard and mouse service creates a virtual window in the lower right corner of the PC main screen. Alternatively, if the mobile phone collaborative window is located on the PC extended screen, the PC's super keyboard and mouse service creates a virtual window in the lower right corner of the PC extended screen.
- the virtual window is located in the lower right corner of the screen where the mobile phone collaborative window is located, so that no matter whether the mobile phone collaborative window is on the PC main screen or the PC extended screen, when dragging files from the mobile phone collaborative window to the PC main screen or the edge of the PC extended screen, the virtual window can trigger the cross-device drag event of the PC super keyboard and mouse, thereby realizing cross-device file transfer.
- FIG9 is a schematic diagram of a third scenario of the file sharing method provided by the embodiment of the present application.
- the extended screen 304 of the PC 100 is displayed on the main screen of the tablet computer 300
- the collaborative window 305 of the mobile phone 200 is displayed on the extended screen 304.
- the interface of the photo album application of the mobile phone 200 is synchronously displayed on the window 305 and the screen of the mobile phone 200, and the interface displays multiple pictures, such as picture 1 and picture 2.
- the user can use a wireless mouse to cross to the screen of the tablet computer 300, select picture 1 in the window 305, drag picture 1 to the screen space 306 on the main screen of the tablet computer 300 except the extended screen 304, and then release it.
- the mobile phone 200 transmits picture 1 in the photo album application of the mobile phone 200 to the tablet computer 300 through the PC 100, and displays picture 1 on the screen space 306 of the tablet computer 300.
- a cursor is presented on the extended screen 304, and a picture thumbnail is presented below the cursor.
- a cursor is presented on the screen space 306, and a picture thumbnail is presented below the cursor.
- a plus sign may be displayed in the upper left corner of the picture thumbnail to indicate that a picture is imported into the tablet computer.
- FIG. 9 is only an example, and the embodiment of the present application does not limit the style of dragging pictures on different screens.
- Figure 10 is a flowchart diagram 3 of the file sharing method provided by the embodiment of the present application.
- the file sharing method shown in Figure 10 involves the screen collaboration service of the mobile phone, the screen collaboration service and super keyboard and mouse service of the PC, and the super keyboard and mouse service of the tablet computer.
- the mobile phone and the PC have established screen collaboration, the PC and the tablet have established a super keyboard and mouse, and the PC and the tablet have established sidecar.
- the method includes:
- the screen collaboration service of the PC sends a screen collaboration drag-in event to the super keyboard and mouse service of the PC.
- the PC's super keyboard and mouse service detects the location of the collaborative window.
- the virtual window can be regarded as a subprocess of the PC's super keyboard and mouse service, such as window 309 in Figure 9, which is used to detect the drag-in event of the super keyboard and mouse on the PC's extended screen.
- the drag-in event of the super keyboard and mouse on the PC's extended screen is triggered after the drag-in event of the mobile phone collaborative window on the PC's extended screen.
- S1006 to S1009 are executed.
- S1006 to S1009 of this embodiment are similar to S604 to S607 of the above embodiment, and the details can be referred to the above embodiment, which will not be elaborated here.
- the super keyboard and mouse service of the tablet computer sends a notification message of releasing the effective screen area outside the extended screen to the super keyboard and mouse service of the PC.
- the super keyboard and mouse service of the PC sends a notification message of releasing the effective screen area outside the extended screen to the screen coordination service of the PC.
- S1015 to S1025 are similar to S613 to S6023 of the aforementioned embodiment, and the details can be referred to the aforementioned embodiment, which will not be elaborated here.
- the file sharing method shown in this embodiment creates a virtual window on the screen where the mobile phone collaboration window is located, that is, the lower right corner of the PC extended screen, so that the PC super keyboard and mouse can detect the cross-device drag event of the super keyboard and mouse on the PC extended screen, thereby realizing the transfer of files in the mobile phone collaboration window on the PC extended screen to the tablet computer through the PC and displaying them on the main screen of the tablet computer.
- the above scheme can quickly and efficiently realize cross-device file sharing in the screen collaboration scenario, and improve the convenience of user operation.
- an embodiment of the present application proposes a file sharing method, which is applied to a system including a first electronic device, a second electronic device and a third electronic device, wherein the first electronic device is connected to the second electronic device and the third electronic device, respectively, and the method includes: the first electronic device displays a first window, the first window displays the screen content of the second electronic device, and the screen content of the second electronic device includes a first file; when the first file is dragged from the first window to the effective area of the screen of the third electronic device, in response to the drag-and-release operation of the first file, the third electronic device displays the first file.
- the first electronic device is connected to the second electronic device by wire or wirelessly, and the first electronic device is connected to the third electronic device by wire or wirelessly.
- the first window displayed by the first electronic device is a collaborative window of the second electronic device, and the content displayed in the first window can be consistent with the content displayed on the display screen of the second electronic device.
- the first window can be regarded as a mirror window of the second electronic device on the first electronic device.
- the first window displays a first file
- the display screen of the second electronic device displays the first file.
- the first file is a locally stored file of the second electronic device, for example, the first file can be a picture, video, text, audio, application, etc.
- the first electronic device is a personal computer PC 100
- the second electronic device is a mobile phone 200
- the third electronic device is a tablet computer 300.
- PC 100 is connected to mobile phone 200 by wire or wireless
- PC 100 is connected to tablet computer 300 by wire or wireless.
- the first window is window 101
- the first file displayed in the first window is picture 1.
- the screen effective area of the third electronic device is area 301 on the display screen of tablet computer 300. The user can use a wireless mouse to drag picture 1 across the edge of the PC 100 screen, and then release picture 1 to area 301 of tablet computer 300, and picture 1 is displayed in area 301.
- the content of the second electronic device projected to the first electronic device is displayed in the first window of the first electronic device, and the user drags the first file in the first window across devices to the third electronic device to realize the local
- the stored first file is dragged from the first electronic device to the third electronic device for display.
- the method before the third electronic device displays the first file, the method further includes: the second electronic device transmitting the first file to the first electronic device; and the first electronic device transmitting the first file to the third electronic device.
- the second electronic device transmits the first file dragged by the user to the third electronic device through the first electronic device, thereby realizing cross-device file transfer in the screen collaboration scenario.
- the method before the second electronic device transfers the first file to the first electronic device, the method also includes: in response to a drag-and-release operation on the first file, the third electronic device determines whether the release position of the first file is within the effective area of the screen of the third electronic device; if so, the third electronic device sends a first notification message to the first electronic device, and the first notification message is used to indicate that the first file is released to the effective area of the screen of the third electronic device; the first electronic device sends a file transfer request to the second electronic device, and the file transfer request is used to request the transfer of the first file.
- the drag-and-release operation on the first file is a drag-and-release operation on the display screen of the tablet computer 300.
- the effective screen area of the third electronic device is area 301 on the display screen of the tablet computer 300. It should be understood that if the picture 1 is dragged outside the area 301, since it is not the effective screen area of the tablet computer 300, the cross-device drag fails, and the tablet computer 300 will not receive and display the picture 1.
- the first notification message sent by the third electronic device to the first electronic device may correspond to the notification message of S609 in FIG. 6.
- the file transfer request sent by the first electronic device to the second electronic device may correspond to the file transfer request of S613 in FIG. 6.
- the first electronic device after the first electronic device receives the notification sent by the third electronic device that the file is released to the effective area of the screen, the first electronic device obtains the dragged first file from the second electronic device, and then transfers the first file to the third electronic device for display, thereby realizing cross-device file sharing in the screen collaboration scenario. It should be understood that if the first electronic device receives the notification sent by the third electronic device that the file is not released to the effective area of the screen, the first electronic device will not obtain the first file from the second electronic device, and the third electronic device will not receive and display the first file.
- the method further includes: when the first file is dragged from the first window to the screen edge of the first electronic device, the first electronic device sends a first cross-device drag event to the third electronic device, and the first cross-device drag event is used to indicate that a file is dragged from the first electronic device to the third electronic device.
- PC 100 when picture 1 is dragged from window 101 of PC 100 to the left screen edge of PC 100, PC 100 sends a first cross-device drag event to tablet computer 300 to indicate that a picture is dragged from PC 100 to tablet computer 300.
- the first cross-device drag event may correspond to the super keyboard and mouse drag-in event of S606b in FIG. 6 .
- the first electronic device when the first file is dragged to the screen edge of the main screen of the first electronic device, the first electronic device notifies the third electronic device that a file is dragged across devices by sending a first cross-device drag event, so that the third electronic device starts monitoring the dragged first file.
- the method also includes: the third electronic device displays a second file, where the second file is a file locally stored on the third electronic device; when the second file is dragged from the screen of the third electronic device to the first window, in response to a drag-and-release operation on the second file, the first window and the second electronic device display the second file.
- the second file may be a picture, video, text, audio, application, etc.
- the second file is picture 5
- picture 5 is displayed on the display screen of tablet computer 300.
- the user can use the wireless mouse to drag picture 5 across the edge of the tablet computer 300 screen to window 101 of PC 100 and then release picture 5, and picture 5 is displayed in window 101 and on the display screen of mobile phone 200.
- the content of the second electronic device projected to the first electronic device is displayed in the first window of the first electronic device.
- a user drags a third file in a third electronic device to the first window across devices, and then the second file stored locally on the third electronic device can be dragged to the second electronic device for display through the first electronic device.
- the first window can synchronously display the second file.
- the method before the first window and the second electronic device display the second file, the method further includes: the third electronic device transmits the second file to the first electronic device; and the first electronic device transmits the second file to the second electronic device.
- the third electronic device transmits the second file dragged by the user to the second electronic device through the first electronic device, thereby realizing cross-device file transfer in the screen collaboration scenario.
- the third electronic device transmits the second file to the first electronic device, including: in response to a drag-and-release operation on the second file, the first electronic device sends a second notification message to the third electronic device, the second notification message is used to indicate that the second file is released to the first window; the third electronic device transmits the second file to the first electronic device.
- the drag-and-drop operation on the second file is a drag-and-drop operation on the window 101 of the PC 100.
- the second notification message sent by the first electronic device to the third electronic device may correspond to the notification message of S809b in FIG. 8 .
- the transmission of the second file from the third electronic device to the first electronic device may correspond to S811 in FIG. 8 .
- the third electronic device after the third electronic device receives the notification sent by the first electronic device that the file is released to the first window, the third electronic device transmits the second file to the first electronic device, so that the first electronic device transfers the second file to the second electronic device for display, thereby realizing cross-device file sharing in the screen collaboration scenario.
- the method further includes: when the second file is dragged to the screen edge of the third electronic device, the third electronic device sends a second cross-device drag event to the first electronic device, and the second cross-device drag event is used to indicate that a file is dragged from the third electronic device to the first electronic device.
- the tablet computer 300 when the picture 5 is dragged from the tablet computer 300 to the right edge of the screen, the tablet computer 300 sends a second cross-device drag event to the PC 100 to indicate that a picture is dragged from the tablet computer 300 to the PC 100.
- the second cross-device drag event may correspond to the super keyboard and mouse drag-in event of S801 in FIG8 .
- the third electronic device when the second file is dragged to the screen edge of the third electronic device, notifies the first electronic device that a file is dragged across devices by sending a second cross-device drag event, so that the first electronic device starts monitoring the dragged second file.
- the method further includes: after the super keyboard and mouse service of the first electronic device is started, the super keyboard and mouse service of the first electronic device creates a first virtual window; the first virtual window is used to detect a cross-device drag event on the main screen of the first electronic device.
- the first virtual window is located at the lower right corner of the main screen of the first electronic device, and can trigger a cross-device drag event on the main screen of the first electronic device.
- the first electronic device is a PC 100
- the first virtual window is a window 103 at the lower right corner of the main screen of the PC 100.
- the first virtual window can be used to detect the aforementioned first cross-device drag event and the aforementioned second cross-device drag event.
- an embodiment of the present application provides a file sharing method, which is applied to a system including a first electronic device, a second electronic device and a third electronic device, wherein the first electronic device is connected to the second electronic device and the third electronic device, respectively, and the method includes: the third electronic device displays an extended screen of the first electronic device, the extended screen occupies part of the screen space of the third electronic device, the extended screen displays a second window, the second window displays the screen content of the second electronic device, and the screen content of the second electronic device includes a third file; when the third file is dragged from the second window to the first screen space of the third electronic device excluding the extended screen, in response to a drag-and-release operation on the third file, the first screen space of the third electronic device displays the third file.
- the first electronic device is connected to the second electronic device by wire or wirelessly
- the first electronic device is connected to the third electronic device by wire or wirelessly.
- the second window is a collaborative window of the second electronic device, and the content displayed in the second window can be consistent with the content displayed on the display screen of the second electronic device.
- the second window can be regarded as a mirror window of the second electronic device on the first electronic device.
- the second window displays a third file
- the display screen of the second electronic device displays the third file.
- the third file is a file stored locally on the second electronic device, for example, the third file can be a picture, video, text, audio, application, etc.
- the first electronic device is a personal computer PC 100
- the second electronic device is a mobile phone 200
- the third electronic device is a tablet computer 300.
- PC 100 is connected to mobile phone 200 by wire or wireless
- PC 100 is connected to tablet computer 300 by wire or wireless.
- the extended screen of the first electronic device is an extended screen 304 of the tablet computer 300 projected by PC 100, and the extended screen 304 occupies part of the screen space of the display screen of the tablet computer 300.
- the second window is a window 305 on the extended screen 304
- the third file displayed in the second window is picture 1.
- the first screen space of the third electronic device is the screen space 306 of the tablet computer 300 except the extended screen 304.
- the user can use a wireless mouse to drag picture 1 from window 305 of the tablet computer 300 to screen space 306 and then release it, and picture 1 is displayed in screen space 306.
- the first electronic device projects its extended screen onto the display screen of the third electronic device.
- the second window of the second electronic device is displayed on the extended screen of the first electronic device.
- the user drags the third file in the second window to the first screen space of the third electronic device, thereby dragging the third file locally stored on the second electronic device to the third electronic device for display.
- the operation process is simple, and cross-device file sharing in the screen collaboration scenario can be realized quickly and efficiently.
- the method before the third file is displayed in the first screen space of the third electronic device, the method further includes: the second electronic device transmitting the third file to the first electronic device; and the first electronic device transmitting the third file to the third electronic device.
- the second electronic device transmits the third file dragged by the user to the third electronic device through the first electronic device, thereby realizing cross-device file transfer in the screen collaboration scenario.
- the first electronic device when the third file is dragged from the second window to the screen edge of the extended screen of the first electronic device, the first electronic device sends a third cross-device drag event to the third electronic device, and the third cross-device drag event is used to indicate that a file is dragged from the extended screen of the first electronic device to the third electronic device.
- PC 100 when picture 1 is dragged from window 305 to the screen edge of extended screen 304 of PC 100, PC 100 sends a third cross-device drag event to tablet computer 300 to indicate that a picture is dragged from extended screen 304 of PC 100 to tablet computer 300.
- the third cross-device drag event may correspond to the super keyboard and mouse drag-in event of S1008b in FIG10 .
- the first electronic device when the third file is dragged to the screen edge of the extended screen of the first electronic device, the first electronic device notifies the third electronic device that a file is dragged across devices by sending a third cross-device drag event so that the third electronic device starts monitoring the dragged third file.
- the method further includes: when the third file in the second window is selected and dragged, the super keyboard and mouse service of the first electronic device creates a second virtual window; the second virtual window is used to detect a cross-device drag event on the extended screen of the first electronic device.
- the second virtual window is located at the lower right corner of the extended screen of the first electronic device, and can trigger a cross-device drag event on the extended screen of the first electronic device.
- the first electronic device is PC 100
- the second virtual window is window 309 at the lower right corner of the extended screen 304 of PC 100.
- the second virtual window can be used to detect the aforementioned third cross-device drag event.
- the first electronic device is installed with a first operating system
- the second electronic device and the third electronic device are installed with a first operating system.
- the device is installed with a second operating system, and the first operating system is different from the second operating system.
- the first operating system is a Windows operating system
- the second operating system is an Android operating system.
- the embodiments of the present application do not particularly limit the specific structure of the execution subject of a file sharing method, as long as the code of a file sharing method of the embodiments of the present application can be run to perform processing according to a file sharing method provided by the embodiments of the present application.
- the execution subject of a file sharing method provided by the embodiments of the present application can be a functional module in an electronic device that can call and execute a program, or a processing device applied to an electronic device, for example, the processing device is a chip.
- the module/service may be a software program, a hardware circuit, or a combination of the two to implement the above functions.
- the hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and/or other suitable components that support the described functions.
- ASIC application specific integrated circuit
- a processor such as a shared processor, a dedicated processor, or a group processor, etc.
- memory for executing one or more software or firmware programs, a combined logic circuit, and/or other suitable components that support the described functions.
- modules/services of each example described in the embodiments of the present application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in the form of hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
- An embodiment of the present application also provides an electronic device, which may correspond to the first electronic device of the aforementioned embodiment.
- the first electronic device includes: a memory and a processor.
- the processor is used to call a computer program in the memory to execute the technical solution of the PC in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar to those of the aforementioned related embodiments and will not be repeated here.
- An embodiment of the present application also provides an electronic device, which may correspond to the second electronic device of the aforementioned embodiment, the second electronic device comprising: a memory and a processor, the processor being used to call a computer program in the memory to execute the technical solution of a mobile phone in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar to those of the aforementioned related embodiments, and will not be repeated here.
- An embodiment of the present application also provides an electronic device, which may correspond to the third electronic device in the aforementioned embodiment.
- the third electronic device includes: a memory and a processor.
- the processor is used to call a computer program in the memory to execute the technical solution of a tablet computer in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar to those of the aforementioned related embodiments and will not be repeated here.
- the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
- the memory may exist independently and be connected to the processor through a communication line. The memory may also be integrated with the processor.
- the processor can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
- CPU central processing unit
- ASIC application-specific integrated circuit
- the present application provides a computer-readable storage medium on which a computer program is stored.
- the first electronic device executes the technical solution of the PC in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar to those of the aforementioned related embodiments, which will not be repeated here.
- An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
- the computer program runs on a second electronic device, the second electronic device executes the technical solution of the mobile phone in any of the aforementioned method embodiments.
- the implementation principle and technical effect are similar to those of the aforementioned related embodiments and are not repeated here.
- An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
- the computer program runs on a third electronic device, the third electronic device executes the technical solution of the tablet computer in any of the aforementioned method embodiments.
- the implementation principle and technical effect are similar to those of the aforementioned related embodiments and are not repeated here.
- An embodiment of the present application provides a chip, which includes a processor.
- the processor is used to call a computer program in a memory to execute the technical solution of the PC in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar to those of the above-mentioned related embodiments and will not be repeated here.
- An embodiment of the present application provides a chip, which includes a processor.
- the processor is used to call a computer program in a memory to execute the technical solution of the mobile phone in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar to those of the aforementioned related embodiments and will not be repeated here.
- An embodiment of the present application provides a chip, which includes a processor.
- the processor is used to call a computer program in a memory to execute the technical solution of a tablet computer in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar to those of the aforementioned related embodiments and will not be repeated here.
- An embodiment of the present application provides a computer program product.
- the computer program product When the computer program product is run on a first electronic device, the first electronic device executes the technical solution of the PC in any of the aforementioned method embodiments.
- the implementation principle and technical effect are similar to those of the aforementioned related embodiments and are not repeated here.
- An embodiment of the present application provides a computer program product.
- the computer program product is running on a second electronic device, the second electronic device executes the technical solution of the mobile phone in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar to those of the aforementioned related embodiments and are not repeated here.
- An embodiment of the present application provides a computer program product.
- the computer program product is run on a third electronic device, the third electronic device executes the technical solution of a tablet computer in any of the aforementioned method embodiments.
- the implementation principle and technical effect are similar to those of the aforementioned related embodiments and are not repeated here.
- An embodiment of the present application provides a cross-device dragging system, referring to FIG. 1 or FIG. 2 , the system includes: a first electronic device 100, a second electronic device 200 and a third electronic device 300, wherein the first electronic device 100 is connected to the second electronic device 200 and the third electronic device 300, respectively; the first electronic device 100 executes the technical solution of the PC in any of the aforementioned method embodiments, the second electronic device 200 executes the technical solution of the mobile phone in any of the aforementioned method embodiments, and the third electronic device 300 executes the solution of the tablet computer in any of the aforementioned method embodiments, and its implementation principle and technical effects are similar to those of the aforementioned related embodiments, which will not be repeated here.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (17)
- 一种文件共享方法,其特征在于,应用于包括第一电子设备、第二电子设备和第三电子设备的系统,所述第一电子设备分别与第二电子设备和第三电子设备连接,所述方法包括:所述第一电子设备显示第一窗口,所述第一窗口显示所述第二电子设备的屏幕内容,所述第二电子设备的屏幕内容包括第一文件;当所述第一文件从所述第一窗口被拖拽至所述第三电子设备的屏幕有效区域时,响应于对所述第一文件的拖拽释放操作,所述第三电子设备显示所述第一文件。
- 根据权利要求1所述的方法,其特征在于,所述第三电子设备显示所述第一文件之前,所述方法还包括:所述第二电子设备向所述第一电子设备传输所述第一文件;所述第一电子设备向所述第三电子设备传输所述第一文件。
- 根据权利要求2所述的方法,其特征在于,所述第二电子设备向所述第一电子设备传输所述第一文件之前,所述方法还包括:响应于对所述第一文件的拖拽释放操作,所述第三电子设备确定所述第一文件的释放位置是否在所述第三电子设备的屏幕有效区域内;若是,所述第三电子设备向所述第一电子设备发送第一通知消息,所述第一通知消息用于指示所述第一文件释放到所述第三电子设备的屏幕有效区域;所述第一电子设备向所述第二电子设备发送文件传输请求,所述文件传输请求用于请求传输所述第一文件。
- 根据权利要求1至3所述的方法,其特征在于,所述方法还包括:当所述第一文件从所述第一窗口被拖拽至所述第一电子设备的屏幕边缘时,所述第一电子设备向所述第三电子设备发送第一跨设备拖拽事件,所述第一跨设备拖拽事件用于指示有文件从所述第一电子设备拖拽至所述第三电子设备。
- 根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:所述第三电子设备显示第二文件,所述第二文件为所述第三电子设备本地存储的文件;当所述第二文件从所述第三电子设备的屏幕被拖拽至所述第一窗口时,响应于对所述第二文件的拖拽释放操作,所述第一窗口和所述第二电子设备显示所述第二文件。
- 根据权利要求5所述的方法,其特征在于,所述第一窗口和所述第二电子设备显示所述第二文件之前,所述方法还包括:所述第三电子设备向所述第一电子设备传输所述第二文件;所述第一电子设备向所述第二电子设备传输所述第二文件。
- 根据权利要求6所述的方法,其特征在于,所述第三电子设备向所述第一电子设备传输所述第二文件,包括:响应于对所述第二文件的拖拽释放操作,所述第一电子设备向所述第三电子设备发送第二通知消息,所述第二通知消息用于指示所述第二文件释放到所述第一窗口;所述第三电子设备向所述第一电子设备传输所述第二文件。
- 根据权利要求5至7任一项所述的方法,其特征在于,所述方法还包括:当所述第二文件被拖拽至所述第三电子设备的屏幕边缘时,所述第三电子设备向所述第一电子设备发送第二跨设备拖拽事件,所述第二跨设备拖拽事件用于指示有文件从所述第三电子设备拖拽至所述第一电子设备。
- 根据权利要求1至8任一项所述的方法,其特征在于,所述方法还包括:所述第一电子设备的超级键鼠服务启动后,所述第一电子设备的超级键鼠服务创建第一虚拟窗口;所述第一虚拟窗口用于检测所述第一电子设备主屏幕上的跨设备拖拽事件。
- 一种文件共享方法,其特征在于,应用于包括第一电子设备、第二电子设备和第三电子设备的系统,所述第一电子设备分别与第二电子设备和第三电子设备连接,所述方法包括:所述第三电子设备显示所述第一电子设备的扩展屏幕,所述扩展屏幕占据所述第三电子设备的部分屏幕空间,所述扩展屏幕显示有第二窗口,所述第二窗口显示所述第二电子设备的屏幕内容,所述第二电子设备的屏幕内容包括第三文件;当所述第三文件从所述第二窗口被拖拽至所述第三电子设备的除所述扩展屏幕外的第一屏幕空间时,响应于对所述第三文件的拖拽释放操作,所述第三电子设备的所述第一屏幕空间显示所述第三文件。
- 根据权利要求10所述的方法,其特征在于,所述第三电子设备的所述第一屏幕空间显示所述第三文件之前,所述方法还包括:所述第二电子设备向所述第一电子设备传输所述第三文件;所述第一电子设备向所述第三电子设备传输所述第三文件。
- 根据权利要求10或11所述的方法,其特征在于,当所述第三文件从所述第二窗口被拖拽至所述第一电子设备的扩展屏幕的屏幕边缘时,所述第一电子设备向所述第三电子设备发送第三跨设备拖拽事件,所述第三跨设备拖拽事件用于指示有文件从所述第一电子设备的扩展屏幕拖拽至所述第三电子设备。
- 根据权利要求10至12任一项所述的方法,其特征在于,所述方法还包括:当所述第二窗口中的所述第三文件被选中并被拖拽时,所述第一电子设备的超级键鼠服务创建第二虚拟窗口;所述第二虚拟窗口用于检测所述第一电子设备扩展屏幕上的跨设备拖拽事件。
- 根据权利要求1至13任一项所述的方法,其特征在于,所述第一电子设备安装有第一操作系统,所述第二电子设备和所述第三电子设备安装有第二操作系统,所述第一操作系统和所述第二操作系统不同。
- 一种电子设备,其特征在于,所述电子设备包括:存储器和处理器,所述处理器用于调用所述存储器中的计算机程序,以执行如权利要求1至14任一项所述的第一电子设备的方法,或者,执行如权利要求1至14任一项所述的第二电子设备的方法,或者,执行如权利要求1至14任一项所述的第三电子设备的方法。
- 一种芯片,其特征在于,所述芯片包括处理器,所述处理器用于调用存储器中的计算机程序,使得所述芯片执行如权利要求1至14任一项所述的第一电子设备的方法,或者,执行如权利要求1至14任一项所述的第二电子设备的方法,或者,执行如权利要求1至14任一项所述的第三电子设备的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至14任一项所述的第一电子设备的方法,或者,执行如权利要求1至14任一项所述的第二电子设备的方法,或者,执行如权利要求1至14任一项所述的第三电子设备的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP24902148.6A EP4800566A1 (en) | 2023-12-14 | 2024-08-08 | File sharing method, device and storage medium |
| CN202480011215.5A CN120660084A (zh) | 2023-12-14 | 2024-08-08 | 文件共享方法、设备及存储介质 |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311730631.4 | 2023-12-14 | ||
| CN202311730631.4A CN120196603A (zh) | 2023-12-14 | 2023-12-14 | 文件共享方法、设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025123722A1 true WO2025123722A1 (zh) | 2025-06-19 |
Family
ID=96056397
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/110746 Pending WO2025123722A1 (zh) | 2023-12-14 | 2024-08-08 | 文件共享方法、设备及存储介质 |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP4800566A1 (zh) |
| CN (2) | CN120196603A (zh) |
| WO (1) | WO2025123722A1 (zh) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060038741A1 (en) * | 2004-08-23 | 2006-02-23 | International Business Machines Corporation | System and method for implementing a multi-monitor interface for a data processing system |
| CN107329927A (zh) * | 2016-04-28 | 2017-11-07 | 富泰华工业(深圳)有限公司 | 一种数据共享系统及方法 |
| CN113157231A (zh) * | 2019-09-18 | 2021-07-23 | 华为技术有限公司 | 一种数据传输的方法及相关设备 |
| CN114356195A (zh) * | 2020-09-28 | 2022-04-15 | 华为技术有限公司 | 一种文件传输的方法及相关设备 |
| CN115268807A (zh) * | 2021-04-30 | 2022-11-01 | 华为技术有限公司 | 一种跨设备内容分享方法及电子设备 |
| CN115421846A (zh) * | 2022-09-30 | 2022-12-02 | 维沃移动通信有限公司 | 跨设备控制方法、控制装置、电子设备和可读存储介质 |
-
2023
- 2023-12-14 CN CN202311730631.4A patent/CN120196603A/zh active Pending
-
2024
- 2024-08-08 CN CN202480011215.5A patent/CN120660084A/zh active Pending
- 2024-08-08 WO PCT/CN2024/110746 patent/WO2025123722A1/zh active Pending
- 2024-08-08 EP EP24902148.6A patent/EP4800566A1/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060038741A1 (en) * | 2004-08-23 | 2006-02-23 | International Business Machines Corporation | System and method for implementing a multi-monitor interface for a data processing system |
| CN107329927A (zh) * | 2016-04-28 | 2017-11-07 | 富泰华工业(深圳)有限公司 | 一种数据共享系统及方法 |
| CN113157231A (zh) * | 2019-09-18 | 2021-07-23 | 华为技术有限公司 | 一种数据传输的方法及相关设备 |
| CN114356195A (zh) * | 2020-09-28 | 2022-04-15 | 华为技术有限公司 | 一种文件传输的方法及相关设备 |
| CN115268807A (zh) * | 2021-04-30 | 2022-11-01 | 华为技术有限公司 | 一种跨设备内容分享方法及电子设备 |
| CN115421846A (zh) * | 2022-09-30 | 2022-12-02 | 维沃移动通信有限公司 | 跨设备控制方法、控制装置、电子设备和可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4800566A1 (en) | 2026-09-02 |
| CN120196603A (zh) | 2025-06-24 |
| CN120660084A (zh) | 2025-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240111473A1 (en) | Distributed display method and terminal for application interface | |
| US11635869B2 (en) | Display device and method of controlling the same | |
| US12474885B2 (en) | Projected interfaces of electronic devices | |
| US11256389B2 (en) | Display device for executing a plurality of applications and method for controlling the same | |
| US11159922B2 (en) | Layers in messaging applications | |
| US11868605B2 (en) | Application bar display method and electronic device | |
| US20230229287A1 (en) | Display device and method of controlling the same | |
| US10983747B2 (en) | Remote desktop mirroring | |
| WO2020147665A1 (zh) | 文件处理方法、装置、终端及存储介质 | |
| US20050193143A1 (en) | Framework for user interaction with multiple network devices | |
| CN111049935B (zh) | 远程控制电子设备的系统及其电子设备 | |
| US20140164957A1 (en) | Display device for executing a plurality of applications and method for controlling the same | |
| US20240184506A1 (en) | Cross-device content sharing method and electronic device | |
| CN110750197A (zh) | 文件共享方法、装置、系统、相应设备及存储介质 | |
| WO2022089294A1 (zh) | 一种设备间屏幕协同方法及设备 | |
| US20250106347A1 (en) | Interface display method and apparatus, and device, and storage medium | |
| MX2013003427A (es) | Redireccion de ambiente cruzado. | |
| MX2013003515A (es) | Presentacion remota instantanea. | |
| WO2021008295A1 (zh) | 小程序的制作方法、装置、终端及存储介质 | |
| KR20150130800A (ko) | 데이터 공유 기능을 지원하는 사용자 단말 장치와 그 방법 | |
| CN113268212A (zh) | 投屏方法、装置、存储介质及电子设备 | |
| US20150180998A1 (en) | User terminal apparatus and control method thereof | |
| CN111597004A (zh) | 终端及应用中用户界面显示方法 | |
| CN113467656B (zh) | 一种屏幕触摸事件的通知方法和车机 | |
| US20260079618A1 (en) | Cross-device window dragging method, device, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24902148 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202480011215.5 Country of ref document: CN |
|
| WWP | Wipo information: published in national office |
Ref document number: 202480011215.5 Country of ref document: CN |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2024902148 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2024902148 Country of ref document: EP Effective date: 20260526 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 2024902148 Country of ref document: EP |