WO2022156427A1 - 一种拖拽处理方法及装置 - Google Patents
一种拖拽处理方法及装置 Download PDFInfo
- Publication number
- WO2022156427A1 WO2022156427A1 PCT/CN2021/137666 CN2021137666W WO2022156427A1 WO 2022156427 A1 WO2022156427 A1 WO 2022156427A1 CN 2021137666 W CN2021137666 W CN 2021137666W WO 2022156427 A1 WO2022156427 A1 WO 2022156427A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- control
- data structure
- electronic device
- content
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 238000000034 method Methods 0.000 claims abstract description 27
- 238000007667 floating Methods 0.000 claims description 47
- 230000004044 response Effects 0.000 claims description 34
- 238000005266 casting Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 36
- 230000006870 function Effects 0.000 description 33
- 238000004891 communication Methods 0.000 description 9
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000000547 structure data Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/04842—Selection of displayed objects or displayed text elements
Definitions
- the present application relates to the field of terminal technology, and more particularly, to a drag processing method and device.
- the staff Because in the process of developing the operating system, the staff has done a lot of adaptation work between the native control and the operating system, so that the native control and the operating system have higher compatibility, so the native control can respond The drag and drop function provided by the operating system. Since the staff has not done the adaptation work between the non-native controls and the operating system, the non-native controls cannot respond to the drag-and-drop function provided by the operating system.
- the present application provides a drag processing method and device, so that the non-native controls of application software can respond to the drag function.
- the present application provides a drag processing method.
- the method includes: an electronic device obtains a first control corresponding to the first control according to a drag operation of moving the content of a first control of a first application to a second application. information, the first information is encapsulated in the first data structure; the electronic device determines whether the second application supports the first data structure; if it is determined that the second application supports the first data structure, the electronic device sends the first data structure to the first data structure.
- Two applications if it is determined that the second application does not support the first data structure, the electronic device converts the first data structure into a second data structure, and sends the second data structure to the second application, and the second data structure A data structure supported by the second application.
- the electronic device may convert the first data structure It is sent to the second application, so that the second control of the second application can obtain the first text information in the first data structure, and the second control will load the first text information. If the second control of the second application does not support the first data structure, it means that the second control of the second application is a non-native control not supported by the operating system of the electronic device, then the electronic device can convert the first data structure into the first data structure.
- the second data structure supported by the second control and then send the second data structure to the second application, so that the second control of the second application can obtain the first text information in the second data structure, and the second control
- the first text information is loaded so that the second control of the second application can respond to the drag function.
- the electronic device receives a drag operation for moving the content of the first control of the first application to the second application.
- the drag operation of moving the content of the first control of the first application to the second application includes: moving the content of the first control of the first application to the second application on the second control.
- the drag operation of moving the content of the first control of the first application to the second application includes: moving the content of the first control of the first application to the second application on the icon.
- the method further includes: the electronic device displays one or more corresponding to the second application. multiple floating icons; the electronic device receives an operation of the user selecting a first floating icon from one or more floating icons, and the first floating icon corresponds to the first interface with the second control; the electronic device determines whether the second application supports the first floating icon
- the data structure includes: the electronic device determines whether the second control supports the first data structure.
- the electronic device displays one or more floating icons corresponding to the second application, and the one or more floating icons correspond to the second application respectively one or more of the interfaces with the second control.
- the electronic device receives the user's operation of selecting the first floating icon, it indicates that the user wants to move the content of the first control of the first application to the second control on the first interface corresponding to the first floating icon, and then the electronic device You can proceed to the next steps. Therefore, after the user moves the content of the first control of the first application to the icon of the second application, regardless of whether the second control of the second application supports the first data structure, the second application can respond to the dragging function.
- the first application and the second application are installed in the electronic device.
- the drag operation of moving the content of the first control of the first application to the second application includes: moving the content of the first control of the first application into the collaboration window On the second control or icon of the second application, the collaboration window is a screen projection window of the external device on the electronic device, and the second application is installed on the external device.
- determining whether the second application supports the first data structure by the electronic device includes: the electronic device sends query information to the external device; the electronic device receives response information sent by the external device in response to the query information ; The electronic device determines whether the second application supports the first data structure according to the response information.
- the electronic device sends query information to the external device, so that the external device determines whether the second control of the second application supports the first data structure.
- the external device sends response information to the electronic device, so that the electronic device can know whether the second control of the second application supports the first data structure.
- the content in the response information is the first identification information, it indicates that the second control of the second application supports the first data structure, and then the electronic device sends the first data structure to the external device.
- the electronic device converts the first data structure into a second data structure supported by the second application , and send the second data structure to the external device, so that the second control of the second application can respond to the dragging function.
- the content of the first control of the first application includes first text, and the first information corresponding to the first control includes text information of the first text in the first control; or,
- the content of the first control of the first application includes a first picture, and the first information corresponding to the first control includes a storage path of the first picture in the first control.
- the first data structure includes clipdata
- the second data structure includes intent
- the present application provides a drag processing method, the method includes: a first device receives a drag operation input by a user, where the drag operation refers to moving the content of a first control of the first application to a collaborative window on a second control or icon within a second application.
- the collaboration window is a screen-casting window of the second device on the first device.
- the first device obtains the first information corresponding to the first control; the first device encapsulates the first information in the first data structure; the first device sends the first data structure to the second device.
- the present application provides a drag processing method, the method includes: a second device receives a first data structure sent by a first device, the first data structure includes first information; the second device determines the second Whether the control supports the first data structure; if the second control supports the first data structure, the second device sends the first data structure to the second control of the second application, and the second application is installed in the second device; if When the second control supports the first data structure, the second device converts the first data structure into the second data structure, and sends the second data structure to the second control of the second application, the second data structure A data structure supported by the second control.
- the second device may The first data structure is sent to the second application, so that the second control of the second application can obtain the first text information in the first data structure, and the second control will load the first text information. If the second control of the second application does not support the first data structure, it means that the second control of the second application is a non-native control, and the second device can convert the first data structure into the first data structure supported by the second control.
- Second data structure and then send the second data structure to the second application, so that the second control of the second application can obtain the first text information in the second data structure, and the second control will load the first text information, so that the second control of the second application can respond to the drag function.
- the present application provides a drag processing method, the method comprising: a first device receiving a drag operation input by a user, where the drag operation refers to moving the content of a first control of the first application to a collaborative window on a second control or icon within a second application.
- the collaboration window is a screen-casting window of the second device on the first device.
- the first device obtains the first information corresponding to the first control; the first device encapsulates the first information in the first data structure; the first device sends a first query request to the second device, and the first query request is used to indicate the second device
- the device determines whether the second control supports the first data structure; the first device receives the first response information sent by the second device, and the first response information is used to indicate whether the second control supports the first data structure; if the second control supports For the first data structure, the first device sends the first data structure to the second control of the second application in the second device; if the second control does not support the first data structure, the first device sends the first data structure
- the second data structure is converted into a second data structure, and the second data structure is sent to the second control of the second application in the second device, where the second data structure is a data structure that can be recognized by the second control.
- the present application provides a drag processing method, the method comprising: a second device receiving a first query request sent by a first device, where the first query request is used to instruct the second device to determine the second query request of the second application Whether the control supports the first data structure, the first data structure includes the first information; the second device determines whether the second control supports the first data structure; if the second control supports the first data structure, the second device will A response message is sent to the first device, and the first data structure sent by the first device is received.
- the first response message is used to indicate that the second control can recognize the first data structure; or, if the second control does not support the first data structure Data structure, the second device sends the first response information to the first device, and receives the second data structure sent by the first device, the first response information is used to indicate that the second control cannot recognize the first data structure, the first
- the second data structure is a data structure that can be recognized by the second control.
- the first device after the first device generates the first data structure, the first device sends a first query request to the second device, so that the second device determines whether the second control of the second application supports the The first data structure.
- the second device sends the first response information to the first device, so that the first device can know whether the second control of the second application supports the first data structure.
- the content in the first response information is the first identification information, it indicates that the second control of the second application supports the first data structure, and then the first device sends the first data structure to the second device.
- the first device converts the first data structure into the second data structure supported by the second application data structure, and send the second data structure to the second device, so that the second control of the second application can respond to the dragging function.
- the present application provides an electronic device, including one or more processors and a memory, where the memory is used for storing instructions; the processor is used for executing the instructions, so that the electronic device performs the following operations: The content of a control is moved to the drag operation of the second application to obtain the first information corresponding to the first control, and the first information is encapsulated in the first data structure; it is judged whether the second application supports the first data structure; The second application supports the first data structure, and sends the first data structure to the second application; if it is determined that the second application does not support the first data structure, the first data structure is converted into the second data structure, and the The second data structure is sent to the second application, and the second data structure is a data structure supported by the second application.
- the processor is further configured to receive a drag operation for moving the content of the first control of the first application to the second application.
- the processor is specifically configured to move the content of the first control of the first application to the second control of the second application.
- the processor is specifically configured to move the content of the first control of the first application to the icon of the second application.
- the processor is specifically configured to display one or more floating icons corresponding to the second application; and receiving an operation of the user selecting the first floating icon from the one or more floating icons, The first floating icon corresponds to the first interface with the second control; it is judged whether the second control supports the first data structure.
- the first application and the second application are installed in the electronic device.
- the processor is specifically configured to move the content of the first control of the first application to the second control or icon of the second application in the collaborative window, where the collaborative window is external
- the collaborative window is external
- the screen projection window of the device on the electronic device, and the second application is installed on the external device.
- the processor is specifically configured to send query information to an external device; receive response information sent by the external device in response to the query information; determine whether the second application supports the first data according to the response information structure.
- the content of the first control of the first application includes first text, and the first information corresponding to the first control includes text information of the first text in the first control; or,
- the content of the first control of the first application includes a first picture, and the first information corresponding to the first control includes a storage path of the first picture in the first control.
- the first data structure includes clipdata
- the second data structure includes intent
- embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores software codes, and the software codes are capable of executing the first aspect, the first aspect after being read by one or more processors.
- FIG. 1 is a schematic diagram of a desktop of a tablet computer 100
- FIG. 2 is a schematic diagram of a split screen of the tablet computer 100
- FIG. 3 is a schematic diagram of a user dragging the floating icon 107
- FIG. 4 is a schematic diagram of loading the picture 104 by the second control 106 on the interface of the memo 102;
- FIG. 5 is a schematic diagram of an internal processing flow of the tablet computer 100
- FIG. 6 is a schematic diagram of a split screen of another tablet computer 100
- FIG. 7 is a schematic diagram of an internal processing flow of another tablet computer 100.
- FIG. 8 is a flowchart of a drag processing method provided by the present application.
- FIG. 9 is a schematic diagram of a desktop of another tablet computer 100.
- FIG. 10 is a schematic diagram of a split screen of the tablet computer 200.
- FIG. 11 is a schematic diagram of the user dragging the floating icon 207
- FIG. 12 is a schematic diagram of loading text information 204 in the text box 206 on the interface of the chat 203;
- FIG. 13 is a schematic diagram of the internal processing flow of the tablet computer 200.
- FIG. 16 is a schematic diagram of screen projection of the smartphone 400 to the tablet computer 300;
- 17 is a schematic diagram of the tablet computer 200 simultaneously displaying the interface of the memo 301 and the collaboration window 302;
- FIG. 18 is a schematic diagram of the user dragging the floating icon 305
- FIG. 19 is a schematic diagram of loading text information 303 in the text box 402 of the chat 401;
- FIG. 20 is a schematic diagram of the interaction between the tablet computer 300 and the smart phone 400;
- FIG. 21 is a flowchart of another drag processing method provided by the application.
- FIG. 22 is a flowchart of another drag processing method provided by the application.
- FIG. 23 is a schematic diagram of an electronic device according to an embodiment of the present application.
- the first control 105 and the second control 106 are both native controls supported by the operating system 108 of the tablet computer 100 .
- FIG. 1 is a schematic diagram of a desktop of the tablet computer 100 .
- the operating system of the tablet computer 100 may be a Harmony OS, an Android system (Android OS), or an Apple mobile device operating system (iPhone operation system, IOS).
- the operating system of the tablet computer 100 is not limited to the above-mentioned operating system, and may also be other types of operating systems.
- a variety of application software such as gallery 101 , memo 102 and chat 103 are installed in the tablet computer 100 .
- the user can first open the gallery 101 , input a split screen instruction to the tablet computer 100 , and then open the memo 102 , so that the tablet computer 100 can simultaneously display the interface of the gallery 101 and the interface of the memo 102 .
- FIG. 2 is a schematic diagram of a split screen of the tablet computer 100 .
- the tablet computer 100 split-screen displays the interface of the gallery 101 and the interface of the memo 102 , the user can use the finger 500 to long press the picture 104 in the first control 105 on the interface of the gallery 101 .
- FIG. 3 is a schematic diagram of the user dragging the floating icon 107 .
- the tablet computer 100 listens to the user's finger 500 inputting a long-press operation on the picture 104 in the first control 105 , the tablet computer 100 obtains the storage path of the picture 104 through the first control 105 , and stores the storage path of the picture 104 Encapsulated in data structure A.
- the tablet computer 100 also draws a floating icon 107 according to the picture 104 , and the floating icon 107 can move with the user's finger 500 .
- the user's finger 500 can drag the floating icon 107 to the top of the second control 106 on the interface of the memo 102 .
- the data structure A may be a clipdata object, and the clipdata object includes the storage path of the picture 104, wherein the storage path of the picture 104 is "file” ://pad/images/jump.jpg".
- the clipdata object includes the following:
- the clipdata object contains the storage path of the picture 104 .
- FIG. 4 is a schematic diagram of loading the picture 104 by the second control 106 on the interface of the memo 102 .
- the user's finger 500 leaves the tablet computer 100 .
- the tablet computer 100 monitors that the position where the user's finger 500 leaves is the second control 106 on the interface of the memo 102 , it indicates that the user wishes to drag the picture 104 in the first control 105 on the interface of the gallery 101 to the area of the memo 102
- the tablet computer 100 deletes the floating icon 107 , and then sends the data structure A to the memo 102 .
- the second control 106 on the interface of the memo 102 is a native control supported by the operating system, the second control 106 can automatically parse the storage path of the picture 104 in the data structure A. Then, the memo 102 acquires the picture 104 according to the storage path of the picture 104 , and displays the picture 104 in the second control 106 on the interface of the memo 102 .
- the first control 105 and the second control 106 are both controls that exist objectively but cannot be seen by the user, so the first control 105 and the second control 106 are both used Dotted box indicates.
- FIG. 5 is a schematic diagram of an internal processing flow of the tablet computer 100
- FIG. 5 is an internal processing flow of the tablet computer 100 shown in FIGS. 1 to 4 .
- the user drags the picture 104 in the first control 105 on the interface of the gallery 101 to the second control on the interface of the memo 102 106 and release, the operating system 108 of the tablet computer 100 obtains the storage path of the picture 104 through the first control 105 of the gallery 101 . Then, the operating system 108 of the tablet computer 100 encapsulates the storage path of the picture 104 in the data structure A, and then sends the data structure A to the memo 102 .
- the second control 106 on the interface of the memo 102 is a native control supported by the operating system 108 of the tablet computer 100, the second control 106 on the interface of the memo 102 can automatically parse the storage path of the picture 104 in the data structure A, Then the memo 102 obtains the picture 104 in the memory 109 through the storage path of the picture 104 , and displays the picture 104 in the second control 106 on the interface of the memo 102 .
- the second control 106 in the memo 102 can respond to the drag function.
- FIG. 6 is a schematic diagram of a split screen of another tablet computer 100
- FIG. 7 is a schematic diagram of an internal processing flow of another tablet computer 100
- the examples shown in FIG. 1 , FIG. 6 and FIG. 7 mainly introduce the scene of dragging and dropping the picture 104 in the first control 105 in the gallery 101 into the third control 110 of the chat 103 .
- the first control 105 is a native control supported by the operating system 108 of the tablet computer 100
- the third control 110 is not a native control supported by the operating system 108 of the tablet computer 100 .
- the user needs to input a split-screen instruction to the tablet computer 100 , so that the tablet computer 100 displays the interface of the gallery 101 and the interface of the chat 103 at the same time. Then, after the user drags the picture 104 in the first control 105 on the interface of the gallery 101 to the top of the third control 110 on the interface of the chat 103 and releases it, the operating system 108 of the tablet computer 100 passes the first control 105 Obtain the storage path of the picture 104. Then, the operating system 108 of the tablet computer 100 encapsulates the storage path of the picture 104 in the data structure A, and then sends the data structure A to the chat 103 .
- the third control 110 on the interface of the chat 103 is not a native control supported by the operating system 108 of the tablet computer 100, the third control 110 on the interface of the chat 103 cannot automatically resolve the storage path of the picture 104 in the data structure A, Then the third control 110 on the interface of the chat 103 cannot display the picture 104 either. Therefore, the third control 110 in the chat 103 cannot respond to the drag function.
- the second control 106 on the interface of the memo 102 is a native control supported by the operating system 108 of the tablet computer 100
- the second control 106 in the memo 102 can respond to dragging drag function.
- the third control 110 on the interface of the chat 103 is not a native control supported by the operating system 108 of the tablet computer 100
- the third control 110 in the chat 103 cannot respond to the dragging function. Therefore, the non-native controls of the application software cannot respond to the dragging function.
- FIG. 8 is a flowchart of a drag processing method provided by the present application.
- the drag processing method shown in FIG. 8 can make the non-native controls of the application software respond to the drag function, and the method shown in FIG. 8 includes steps S101 to S106.
- the electronic device receives a drag operation input by a user.
- the electronic device may be a device such as a smart phone or a tablet computer, and the first application and the second application are installed in the electronic device.
- the drag operation refers to moving the content of the first control of the first application to the second control of the second application.
- the content of the first control of the first application includes first text
- the first information corresponding to the first control includes text information of the first text in the first control.
- the first control is a first text box
- the second control is a second text box.
- the first control and the second control are TextView.
- the electronic device acquires first text information in the first control.
- the electronic device encapsulates the first text information in a first data structure.
- the first data structure may be a clipdata object.
- step S104 The electronic device determines whether the second control of the second application supports the first data structure. If yes, go to step S105; otherwise, go to step S106.
- the electronic device sends the first data structure to the second application.
- the electronic device converts the first data structure into a second data structure, and sends the second data structure to the second application.
- the second data structure is a data structure supported by the second control of the second application.
- the second data structure may be an intent object.
- the electronic device can A data structure is sent to the second application, so that the second control of the second application can obtain the first text information in the first data structure, and the second control will load the first text information. If the second control of the second application does not support the first data structure, it means that the second control of the second application is a non-native control not supported by the operating system of the electronic device, then the electronic device can convert the first data structure into the first data structure.
- the second data structure supported by the second control and then send the second data structure to the second application, so that the second control of the second application can obtain the first text information in the second data structure, and the second control
- the first text information is loaded so that the second control of the second application can respond to the drag function.
- the method shown in FIG. 8 may further include the following steps: the electronic device displays one or more floating icons corresponding to the second application, and the electronic device receives the operation of the user selecting the first floating icon from the one or more floating icons, Wherein, the first floating icon corresponds to the first interface having the second control, and the first interface is the interface of the second application.
- the electronic device displays one or more floating icons corresponding to the second application, and the one or more floating icons correspond to the second application respectively one or more of the interfaces with the second control.
- the electronic device receives the user's operation of selecting the first floating icon, it indicates that the user wants to move the content of the first control of the first application to the second control on the first interface corresponding to the first floating icon, and then the electronic device Then, step S102 to step S106 can be continued. Therefore, after the user moves the content of the first control of the first application to the icon of the second application, regardless of whether the second control of the second application supports the first data structure, the second application can respond to the dragging function.
- the operating system of the electronic device when the operating system of the electronic device is the Android system, the operating system of the electronic device will use a package manager service (Package Manager Service, PMS) to query whether there is an interface with the second control in the second application.
- PMS Package Manager Service
- FIG. 9 is a schematic diagram of a desktop of another tablet computer 100 .
- the operating system 208 of the tablet computer 200 may be a Harmony OS, an Android system (Android OS), or an Apple mobile device operating system (iPhone operation system, IOS).
- the operating system 208 of the tablet computer 200 is not limited to the above-mentioned operating system, and may also be other types of operating systems.
- the tablet computer 200 is installed with a gallery 201 , a memo 202 and a chat 203 and other application software.
- the user can first open the memo 202 , input a split-screen command to the tablet computer 200 , and then open the chat 203 , so that the tablet computer 200 displays the interface of the memo 202 and the interface of the chat 203 at the same time.
- FIG. 10 is a schematic diagram of a split screen of the tablet computer 200 .
- the tablet computer 200 displays the interface of the memo 202 and the interface of the chat 203 in a split screen
- the user can use the finger 500 to long press the text information 204 in the text box 205 on the interface of the memo 202 .
- the specific content of the text information 204 is "member account number: 12345".
- FIG. 11 is a schematic diagram of the user dragging the floating icon 207 .
- the tablet computer 200 monitors the long-press operation of the user's finger 500 on the text information 204 in the text box 205, the tablet computer 200 obtains the text information 204 in the text box 205 and encapsulates the text information 204 in a data structure A in.
- the tablet computer 200 also draws a floating icon 207 according to the text information 204 , and the floating icon 207 can move with the user's finger 500 .
- the user's finger 500 can drag the floating icon 207 to the top of the text box 206 on the interface of the chat 203 , and then the user's finger 500 leaves the floating icon 207 .
- FIG. 12 is a schematic diagram of loading text information 204 in the text box 206 on the interface of the chat 203 .
- the tablet computer 200 determines whether the text box 206 of the chat 203 supports the data structure A. Since the text box 206 of the chat 203 is a non-native control, the text box 206 of the chat 203 does not support the data structure A, then the tablet computer 200 can convert the data structure A into the data structure B supported by the text box 206, and then convert the data structure A into the data structure B supported by the text box 206.
- Data structure B is sent to chat 203 so that text box 206 of chat 203 can obtain text information 204 in data structure B, and text box 206 will load text information 204 so that text box 206 of chat 203 can respond Drag and drop function.
- the following example illustrates how the electronic device converts the data structure A into the data structure B. It is assumed that the data structure A is a clipdata object, the text information 204 is "member account number: 12345", and the data structure B is an intent object.
- the clipdata object includes the following:
- the electronic device will obtain the text information 204 "member account number: 12345" in the clipdata object, and encapsulate the text information "member account number: 12345" in the intent object, the intent object includes the following contents:
- Type Type:text/plain
- EXTRA_TEXT member account number: 12345"
- the clipdata object can only be recognized by native controls supported by the operating system 208 of the tablet computer 200. Since the text box 206 of the chat 203 does not belong to the native controls supported by the operating system 208 of the tablet computer 200, the text box 206 of the chat 203 is not a native control supported by the operating system 208 of the tablet computer 200. clipdata objects are not supported.
- the tablet computer 200 can convert the clipdata object into an Intent object supported by the text box 206 of the chat 203, and then the tablet computer 200 sends the intent object to the chat 203 so that the text box 206 of the chat 203 can obtain the intent object
- the text message 204 in the "member account is: 12345"
- the text box 206 will load the text message 204, so that the text box 206 of the chat 203 can respond to the drag function.
- FIG. 13 is a schematic diagram of the internal processing flow of the tablet computer 200
- FIG. 13 is the internal processing flow of the tablet computer 200 shown in FIGS. 9 to 12 .
- the user drags the text information 204 in the text box 205 on the interface of the memo 202 to the text box 206 on the interface of the chat 203 .
- the operating system 208 of the tablet computer 200 will determine whether the text box 206 of the chat 203 supports the data structure A. Since the text box 206 of the chat 203 is a non-native control, the text box 206 of the chat 203 does not support the data structure A, then the tablet computer 200 can convert the data structure A into the data structure B supported by the text box 206, and then convert the data structure A into the data structure B supported by the text box 206.
- Data structure B is sent to chat 203 so that text box 206 of chat 203 can obtain text information 204 in data structure B, and text box 206 will load text information 204 so that text box 206 of chat 203 can respond Drag and drop function.
- FIG. 14 is a flowchart of another method for dragging and dropping provided by the present application.
- the drag processing method shown in FIG. 14 can make the non-native controls of the application software respond to the drag function, and the method shown in FIG. 14 includes steps S201 to S206.
- the electronic device receives a drag operation input by a user.
- the electronic device may be a device such as a smart phone or a tablet computer, and the first application and the second application are installed in the electronic device.
- the drag operation refers to moving the content of the first control of the first application to the second control of the second application.
- the content of the first control of the first application includes a first picture
- the first information corresponding to the first control includes a storage path of the first picture in the first control.
- the first control is a first image frame
- the second control is a second image frame.
- the first control and the second control are both ImageViews.
- the electronic device acquires the storage path of the first picture in the first control.
- the electronic device encapsulates the storage path of the first picture in the first data structure.
- the first data structure may be a clipdata object.
- step S204 The electronic device determines whether the second control of the second application supports the first data structure. If yes, go to step S205; otherwise, go to step S206.
- the electronic device sends the first data structure to the second application.
- the electronic device converts the first data structure into a second data structure, and sends the second data structure to the second application.
- the second data structure is a data structure that can be supported by the second control of the second application.
- the electronic device can A data structure is sent to the second application, so that the second control of the second application can obtain the storage path of the first image in the first data structure, and the second control will load the first image through the storage path of the first image. picture. If the second control of the second application does not support the first data structure, it means that the second control of the second application is a non-native control not supported by the operating system of the electronic device, then the electronic device can convert the first data structure into the first data structure.
- the second data structure supported by the second control and then send the second data structure to the second application, so that the second control of the second application can obtain the storage path of the first picture in the second data structure, and the second control
- the second control will load the first picture through the storage path of the first picture, so that the second control of the second application can respond to the dragging function.
- the second data structure may be an intent object.
- the following example illustrates how the electronic device converts the first data structure into the second data structure. It is assumed that the first data structure is a clipdata object, the storage path of the first image is "file://pad/images/jump.jpg", and the second data structure is an intent object.
- the clipdata object includes the following:
- the electronic device will obtain the storage path "file://pad/images/jump.jpg” of the first image in the clipdata object, and encapsulate the storage path "file://pad/images/jump.jpg" of the first image
- the intent object includes the following:
- Type Type:imge/*
- EXTRA_STREAM file://pad/images/jump.jpg
- the clipdata object can only be recognized by native controls supported by the operating system of the electronic device. If the second control of the second application does not belong to the native controls supported by the operating system of the electronic device, the second control does not support the clipdata object. Based on this, the electronic device can convert the clipdata object into an Intent object supported by the second control, and then the electronic device sends the intent object to the second application, so that the second control of the second application can obtain the first content in the intent object.
- the storage path of an image is "file://pad/images/jump.jpg", and the second control will load the first image through the storage path of the first image "file://pad/images/jump.jpg", thereby The second control of the second application is enabled to respond to the drag function.
- FIG. 15 is a flowchart of another method for dragging and dropping provided by the present application.
- the drag processing method shown in FIG. 15 can make the non-native controls of the application software respond to the drag function, and the method shown in FIG. 15 includes steps S301 to S307.
- the first device receives a drag operation input by a user.
- a first application is installed in the first device, a second application is installed in the second device, and a first communication connection is established between the first device and the second device.
- the second device sends a screen projection instruction to the first device. After the first device agrees to the screen projection instruction, the second device will send the displayed desktop of the second device to the first device.
- the first device generates a collaboration window, and displays the display desktop of the second device in the collaboration window.
- the drag operation refers to moving the content of the first control of the first application to the second control or icon of the second application in the collaboration window.
- the collaboration window is a screen-casting window of the second device on the first device.
- the first control is a first text box
- the second control is a second text box.
- both the first control and the second control are TextView.
- the first device acquires first text information in the first widget.
- the first device encapsulates the first text information in the first data structure.
- the first data structure includes first text information.
- the first data structure may be a clipdata object.
- the first device sends the first data structure to the second device.
- the second device determines whether the second control of the second application supports the first data structure. If yes, go to step S306; otherwise, go to step S307.
- the second device sends the first data structure to the second application.
- the second device converts the first data structure into a second data structure, and sends the second data structure to the second application.
- the second data structure is a data structure supported by the second application.
- the second data structure may be an intent object.
- the second device can The first data structure is sent to the second application, so that the second control of the second application can obtain the first text information in the first data structure, and the second control will load the first text information. If the second control of the second application does not support the first data structure, it means that the second control of the second application is a non-native control, and the second device can convert the first data structure into the first data structure supported by the second control.
- Second data structure and then send the second data structure to the second application, so that the second control of the second application can obtain the first text information in the second data structure, and the second control will load the first text information, so that the second control of the second application can respond to the drag function.
- the drag processing method shown in FIG. 15 will be described below with reference to the examples shown in FIGS. 16 to 20 .
- FIG. 16 is a schematic diagram of the smartphone 400 projecting the screen to the tablet computer 300 .
- Application software such as memo 301 is installed in the tablet computer 300
- application software such as information 401 is installed in the smartphone 400
- a wireless communication connection is established between the tablet computer 300 and the smartphone 400 .
- the smartphone 400 sends a screen projection instruction to the tablet computer 300 through a wireless communication connection. After the tablet computer 300 agrees to the screen projection instruction, the smartphone 400 will send the display desktop of the smartphone 400 to the tablet computer 300 .
- the tablet computer 300 generates a collaboration window 302 and displays the display desktop of the smartphone 400 in the collaboration window 302 .
- the user can then open the memo 301 on the tablet 300 and chat 401 on the smartphone 400 .
- FIG. 17 is a schematic diagram of the tablet computer 200 simultaneously displaying the interface of the memo 301 and the collaboration window 302 .
- the user can use the finger 500 to long press the text information 303 in the text box 304 on the interface of the memo 301 .
- the specific content of the text information 303 is "member account number: 12345".
- FIG. 18 is a schematic diagram of the user dragging the floating icon 305 .
- the tablet computer 300 monitors the long-press operation of the user's finger 500 on the text information 303 of the text box 304, the tablet computer 300 obtains the text information 303 in the text box 304 and encapsulates the text information 303 in the data structure A middle.
- the tablet computer 300 also draws a floating icon 305 according to the text information 303 , and the floating icon 305 can move with the user's finger 500 .
- the user's finger 500 can drag the hover icon 305 over the text box 402 of the chat 401 in the collaboration window 302 .
- the user's finger 500 leaves the hover icon 305 .
- FIG. 19 is a schematic diagram of loading text information 303 in the text box 402 of the chat 401 .
- the tablet computer 300 sends the data structure A to the smartphone 400 .
- the smart phone 400 determines whether the text box 402 of the chat 401 supports the data structure A. Since the text box 402 of the chat 401 is a non-native control, the text box 402 of the chat 401 does not support the data structure A, then the smart phone 400 can convert the data structure A into the data structure B supported by the text box 402.
- the smart phone 400 sends the data structure B to chat 401, so that the text box 402 of chat 401 can obtain the text information 303 in data structure B, and the text box 402 will load the text information 303, so that the text box 401 of chat 401 can get the text information 303.
- 402 can respond to the drag function.
- FIG. 20 is a schematic diagram of interaction between the tablet computer 300 and the smartphone 400.
- FIG. 20 is the internal processing flow of the tablet computer 300 and the internal processing flow of the smartphone 400 shown in FIGS.
- the operating system 306 of the tablet computer 300 will acquire the text information 303 in the text box 304 of the memo 301, encapsulate the text information 303 in the data structure A, and then send the data structure A to the communication module 307 .
- the communication module 307 of the tablet computer 300 sends the data structure A to the communication module 404 of the smartphone 400
- the communication module 404 of the smartphone 400 sends the data structure A to the operating system 403 of the smartphone 400 .
- the operating system 403 of the smart phone 400 will determine whether the text box 402 of the chat 401 supports the data structure A. Since the text box 402 of the chat 401 is a non-native control, the text box 402 of the chat 401 does not support the data structure A, then the operating system 403 of the smartphone 400 will convert the data structure A into the data structure supported by the text box 402 B, and then send data structure B to chat 401, so that text box 402 of chat 401 can obtain text information 303 in data structure B, and text box 402 will load text information 303, so that the text of chat 401 can be Block 402 can respond to a drag function.
- FIG. 21 is a flowchart of another method for dragging and dropping provided by the present application.
- the drag processing method shown in FIG. 21 can make the non-native controls of the application software respond to the drag function, and the method shown in FIG. 21 includes steps S401 to S407.
- the first device receives a drag operation input by a user.
- a first application is installed in the first device, a second application is installed in the second device, and a first communication connection is established between the first device and the second device.
- the second device Before S401, the second device sends a screen projection instruction to the first device. After the first device agrees to the screen projection instruction, the second device will send the displayed desktop of the second device to the first device. The first device generates a collaboration window, and displays the display desktop of the second device in the collaboration window.
- the drag operation refers to moving the content of the first control of the first application to the second control or icon of the second application in the collaboration window.
- the collaboration window is a screen-casting window of the second device on the first device.
- the first control is a first image frame
- the second control is a second image frame.
- the operating system of the electronic device is the Android system
- both the first control and the second control are ImageView.
- the first device acquires the storage path of the first picture in the first control.
- the first device encapsulates the storage path of the first picture in the first data structure.
- the first data structure includes the storage path of the first picture.
- the first data structure may be a clipdata object.
- the first device sends the first data structure to the second device.
- the second device determines whether the second control of the second application supports the first data structure. If yes, go to step S406; otherwise, go to step S407.
- the second device sends the first data structure to the second application.
- the second device converts the first data structure into a second data structure, and sends the second data structure to the second application.
- the second data structure is a data structure supported by the second application.
- the second data structure may be an intent object.
- the second device can The first data structure is sent to the second application, so that the second control of the second application can obtain the storage path of the first image in the first data structure, and the second control will load the first image according to the storage path of the first image. a picture.
- the second device can convert the first data structure into the second data supported by the second control structure, and then send the second data structure to the second application, so that the second control of the second application can obtain the storage path of the first picture in the second data structure, and the second control will be based on the first picture.
- the first image is loaded from the storage path of the second application, so that the second control of the second application can respond to the dragging function.
- FIG. 22 is a flowchart of another method for dragging and dropping provided by the present application.
- the drag processing method shown in FIG. 22 can make the non-native controls of the application software respond to the drag function, and the method shown in FIG. 22 includes steps S501 to S507.
- the first device receives a drag operation input by a user.
- a first application is installed in the first device, a second application is installed in the second device, and a first communication connection is established between the first device and the second device.
- the second device Before S501, the second device sends a screen projection instruction to the first device. After the first device agrees to the screen projection instruction, the second device will send the displayed desktop of the second device to the first device. The first device generates a collaboration window, and displays the display desktop of the second device in the collaboration window.
- the drag operation refers to moving the content of the first control of the first application to the second control or icon of the second application in the collaboration window.
- the collaboration window is a screen-casting window of the second device on the first device.
- the first control is a first text box
- the second control is a second text box.
- the first control and the second control are TextView.
- the first device acquires first text information in the first widget.
- the first device encapsulates the first text information in the first data structure.
- the first data structure includes first text information.
- the first data structure may be a clipdata object.
- the first device sends a first query request to the second device.
- the first query request is used to instruct the second device to determine whether the second control of the second application supports the first data structure.
- the second device determines whether the second control of the second application supports the first data structure.
- the second device sends the first response information to the first device.
- the first response information is corresponding information generated by the second device according to the judgment result in S505. If the second control of the second application supports the first data structure, the first response information includes first identification information, where the first identification information is used to indicate that the second control of the second application supports the first data structure. If the second control of the second application cannot support the first data structure, the first response information includes second identification information, and the second identification information is used to indicate that the second control of the second application does not support the first data structure.
- the first device sends the first data structure or the second data structure to the second device according to the content in the first response information.
- the first response information when the content in the first response information is the first identification information, it indicates that the second control of the second application supports the first data structure, and then the first device sends the first data structure to the second device.
- the content in the first response information is the second identification information, it means that the second control of the second application does not support the first data structure, then the first device converts the first data structure into the second data structure, and Send the second data structure to the second device.
- the second data structure is a data structure supported by the second application.
- the second data structure may be an intent object.
- the first device after the first device generates the first data structure, the first device sends a first query request to the second device, so that the second device can determine whether the second control of the second application supports the The first data structure.
- the second device sends the first response information to the first device, so that the first device can know whether the second control of the second application supports the first data structure.
- the content in the first response information is the first identification information, it indicates that the second control of the second application supports the first data structure, and then the first device sends the first data structure to the second device.
- the first device converts the first data structure into the second data structure supported by the second application data structure, and send the second data structure to the second device, so that the second control of the second application can respond to the dragging function.
- FIG. 23 is a schematic diagram of an electronic device according to an embodiment of the present application.
- the electronic device shown in FIG. 23 includes a processor 61 and a memory 62 .
- the processor 61 is configured to execute the instructions stored in the memory 62, so that the electronic device performs the following operation: according to the drag and drop of moving the content of the first control of the first application to the second application
- the operation obtains the first information corresponding to the first control, and the first information is encapsulated in the first data structure; it is judged whether the second application supports the first data structure; if it is judged that the second application supports the first data structure Support the first data structure, and send the first data structure to the second application; if it is determined that the second application does not support the first data structure, send the first data structure Converting into a second data structure, and sending the second data structure to the second application, where the second data structure is a data structure supported by the second application.
- the processor 61 is one or more CPUs.
- the CPU is a single-core CPU or a multi-core CPU.
- the memory 62 includes but is not limited to random access memory (random access memory, RAM), read only memory (Read only Memory, ROM), erasable programmable read-only memory (erasable programmable read-only memory, EPROM or flash memory) memory), flash memory, or optical memory, etc.
- the code of the operating system is stored in the memory 62 .
- the electronic device further includes a bus 63, and the above-mentioned processor 61 and the memory 62 are connected to each other through the bus 63, and may also be connected to each other in other ways.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种拖拽处理方法及装置,该方法可以使应用软件的非原生控件能够响应拖拽功能,该方法包括:电子设备根据将第一应用的第一控件的内容移至第二应用的拖拽操作获取与第一控件对应的第一信息,第一信息封装在第一数据结构体内;电子设备判断第二应用是否支持第一数据结构体;若判断第二应用支持第一数据结构体,电子设备将第一数据结构体发送给第二应用;若判断第二应用不支持第一数据结构体,电子设备将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送给第二应用,第二数据结构体为第二应用支持的数据结构体。
Description
本申请要求于2021年1月20日提交到国家知识产权局、申请号为202110074033.0、发明名称为“一种拖拽处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端技术领域,更具体的说,涉及拖拽处理方法及装置。
目前,市面上的移动终端均支持拖拽功能。例如,用户通过拖拽功能可以改变移动终端的桌面上图标所在的位置。但是,在某些场景下,应用软件的非原生控件无法响应操作系统提供的拖拽功能。
因为在工作人员开发操作系统的过程中,工作人员做了很多关于原生控件与操作系统之间的适配工作,以使原生控件与操作系统之间具有更高的兼容性,所以原生控件能够响应操作系统提供的拖拽功能。由于工作人员并未做非原生控件与操作系统之间的适配工作,所以非原生控件无法响应操作系统提供的拖拽功能。
因此,如何保证应用软件的非原生控件能够响应操作系统提供的拖拽功能,成为目前亟需解决的技术问题。
发明内容
本申请提供了一种拖拽处理方法及装置,以使应用软件的非原生控件能够响应拖拽功能。
第一方面,本申请提供了一种拖拽处理方法,该方法包括:电子设备根据将第一应用的第一控件的内容移至第二应用的拖拽操作获取与第一控件对应的第一信息,第一信息封装在第一数据结构体内;电子设备判断第二应用是否支持第一数据结构体;若判断第二应用支持第一数据结构体,电子设备将第一数据结构体发送给第二应用;若判断第二应用不支持第一数据结构体,电子设备将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送给第二应用,第二数据结构体为第二应用支持的数据结构体。
在第一方面中,如果第二应用的第二控件支持第一数据结构体,说明第二应用的第二控件为电子设备的操作系统支持的原生控件,那么电子设备可以将第一数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第一数据结构体内的第一文本信息,并且第二控件会加载第一文本信息。如果第二应用的第二控件不支持第一数据结构体,说明第二应用的第二控件为电子设备的操作系统不支持的非原生控件,那么电子设备可以将第一数据结构体转换成第二控件支持的第二数据结构体,再将第二数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第二数据结构体内的第一文本信息,并且第二控件会加载第一文本信息,从而使第二应用的第二控件能够响应拖拽功能。
在第一方面的一种可能的实现方式中,电子设备接收将第一应用的第一控件的内容移至第二应用的拖拽操作。
在第一方面的一种可能的实现方式中,将第一应用的第一控件的内容移至第二应用的拖 拽操作,包括:将第一应用的第一控件的内容移至第二应用的第二控件上。
在第一方面的一种可能的实现方式中,将第一应用的第一控件的内容移至第二应用的拖拽操作,包括:将第一应用的第一控件的内容移至第二应用的图标上。
在第一方面的一种可能的实现方式中,电子设备接收将第一应用的第一控件的内容移至第二应用的图标上以后,方法还包括:电子设备显示第二应用对应的一个或多个悬浮图标;电子设备接收用户从一个或多个悬浮图标中选择第一悬浮图标的操作,第一悬浮图标与具有第二控件的第一界面对应;电子设备判断第二应用是否支持第一数据结构体,包括:电子设备判断第二控件是否支持第一数据结构体。
其中,在用户将第一应用的第一控件的内容移至第二应用的图标上以后,电子设备显示第二应用对应的一个或多个悬浮图标,一个或多个悬浮图标分别对应第二应用的一个或多个具有第二控件的界面。在电子设备接收到用户选择第一悬浮图标的操作以后,说明用户想要将第一应用的第一控件的内容移至第一悬浮图标对应的第一界面上的第二控件内,然后电子设备便可以继续执行后续步骤。因此,在用户将第一应用的第一控件的内容移至第二应用的图标上以后,不管第二应用的第二控件是否支持第一数据结构体,第二应用都能够响应拖拽功能。
在第一方面的一种可能的实现方式中,电子设备内安装有第一应用和第二应用。
在第一方面的一种可能的实现方式中,将第一应用的第一控件的内容移至第二应用的拖拽操作,包括:将第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上,协同窗口为外部设备在电子设备上的投屏窗口,第二应用安装在外部设备上。
在第一方面的一种可能的实现方式中,电子设备判断第二应用是否支持第一数据结构体包括:电子设备向外部设备发送查询信息;电子设备接收外部设备响应于查询信息发送的响应信息;电子设备根据响应信息判断第二应用是否支持第一数据结构体。
其中,在电子设备生成第一数据结构体以后,电子设备向外部设备发送查询信息,以使外部设备判断第二应用的第二控件是否支持第一数据结构体。外部设备向电子设备发送响应信息,以使电子设备可以得知第二应用的第二控件是否支持第一数据结构体。在响应信息中的内容为第一标识信息时,说明第二应用的第二控件支持第一数据结构体,那么电子设备向外部设备发送第一数据结构体。在响应信息中的内容为第二标识信息时,说明第二应用的第二控件不支持第一数据结构体,那么电子设备将第一数据结构体转换成第二应用支持的第二数据结构体,并将第二数据结构体发送至外部设备,从而使第二应用的第二控件能够响应拖拽功能。
在第一方面的一种可能的实现方式中,第一应用的第一控件的内容包括第一文本,与第一控件对应的第一信息包括第一控件内第一文本的文本信息;或者,第一应用的第一控件的内容包括第一图片,与第一控件对应的第一信息包括第一控件内第一图片的存储路径。
在第一方面的一种可能的实现方式中,第一数据结构体包括clipdata,第二数据结构体包括intent。
第二方面,本申请提供了一种拖拽处理方法,该方法包括:第一设备接收用户输入的拖拽操作,拖拽操作指的是将第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上。其中,协同窗口为第二设备在第一设备上的投屏窗口。第一设备获取第一控件对应的第一信息;第一设备将第一信息封装在第一数据结构体内;第一设备将第一数据结构体发送给第二设备。
第三方面,本申请提供了一种拖拽处理方法,该方法包括:第二设备接收第一设备发送的第一数据结构体,第一数据结构体包括第一信息;第二设备判断第二控件是否支持第一数据结构体;如果第二控件支持第一数据结构体,第二设备将第一数据结构体发送给第二应用的第二控件,第二应用安装在第二设备中;如果第二控件支持第一数据结构体时,第二设备将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送给第二应用的第二控件,第二数据结构体为第二控件支持的数据结构体。
在第二方面和第三方面中,如果第二应用的第二控件支持第一数据结构体,说明第二应用的第二控件为第二设备的操作系统支持的控件,那么第二设备可以将第一数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第一数据结构体内的第一文本信息,并且第二控件会加载第一文本信息。如果第二应用的第二控件不支持不支持第一数据结构体,说明第二应用的第二控件为非原生控件,那么第二设备可以将第一数据结构体转换成第二控件支持的第二数据结构体,再将第二数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第二数据结构体内的第一文本信息,并且第二控件会加载第一文本信息,从而使第二应用的第二控件能够响应拖拽功能。
第四方面,本申请提供了一种拖拽处理方法,该方法包括:第一设备接收用户输入的拖拽操作,拖拽操作指的是将第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上。其中,协同窗口为第二设备在第一设备上的投屏窗口。第一设备获取第一控件对应的第一信息;第一设备将第一信息封装在第一数据结构体内;第一设备向第二设备发送第一查询请求,第一查询请求用于指示第二设备判断第二控件是否支持第一数据结构体;第一设备接收第二设备发送的第一响应信息,第一响应信息用于指示第二控件是否支持第一数据结构体;如果第二控件支持第一数据结构体,第一设备将第一数据结构体发送给第二设备内的第二应用的第二控件;如果第二控件不支持第一数据结构体,第一设备将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送给第二设备内的第二应用的第二控件,第二数据结构体为第二控件能够识别的数据结构体。
第五方面,本申请提供了一种拖拽处理方法,该方法包括:第二设备接收第一设备发送的第一查询请求,第一查询请求用于指示第二设备判断第二应用的第二控件是否支持第一数据结构体,第一数据结构体包括第一信息;第二设备判断第二控件是否支持第一数据结构体;如果第二控件支持第一数据结构体,第二设备将第一响应信息发送给第一设备,并接收第一设备发送的第一数据结构体,第一响应信息用于指示第二控件能够识别第一数据结构体;或者,如果第二控件不支持第一数据结构体,第二设备将第一响应信息发送给第一设备,并接收第一设备发送的第二数据结构体,第一响应信息用于指示第二控件不能识别第一数据结构体,第二数据结构体为第二控件能够识别的数据结构体。
在第四方面和第五方面中,在第一设备生成第一数据结构体以后,第一设备向第二设备发送第一查询请求,以使第二设备判断第二应用的第二控件是否支持第一数据结构体。第二设备向第一设备发送第一响应信息,以使第一设备可以得知第二应用的第二控件是否支持第一数据结构体。在第一响应信息中的内容为第一标识信息时,说明第二应用的第二控件支持第一数据结构体,那么第一设备向第二设备发送第一数据结构体。在第一响应信息中的内容为第二标识信息时,说明第二应用的第二控件不支持第一数据结构体,那么第一设备将第一数据结构体转换成第二应用支持的第二数据结构体,并将第二数据结构体发送至第二设备,从而使第二应用的第二控件能够响应拖拽功能。
第六方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器,存储器用于存储指令;处理器用于执行指令,以使电子设备执行以下操作:根据将第一应用的第一控件的内容移至第二应用的拖拽操作获取与第一控件对应的第一信息,第一信息封装在第一数据结构体内;判断第二应用是否支持第一数据结构体;若判断第二应用支持第一数据结构体,将第一数据结构体发送给第二应用;若判断第二应用不支持第一数据结构体,将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送给第二应用,第二数据结构体为第二应用支持的数据结构体。
在第六方面的一种可能的实现方式中,处理器,还用于接收将第一应用的第一控件的内容移至第二应用的拖拽操作。
在第六方面的一种可能的实现方式中,处理器,具体用于将第一应用的第一控件的内容移至第二应用的第二控件上。
在第六方面的一种可能的实现方式中,处理器,具体用于将第一应用的第一控件的内容移至第二应用的图标上。
在第六方面的一种可能的实现方式中,处理器,具体用于显示第二应用对应的一个或多个悬浮图标;接收用户从一个或多个悬浮图标中选择第一悬浮图标的操作,第一悬浮图标与具有第二控件的第一界面对应;判断第二控件是否支持第一数据结构体。
在第六方面的一种可能的实现方式中,电子设备内安装有第一应用和第二应用。
在第六方面的一种可能的实现方式中,处理器,具体用于将第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上,协同窗口为外部设备在电子设备上的投屏窗口,第二应用安装在外部设备上。
在第六方面的一种可能的实现方式中,处理器,具体用于向外部设备发送查询信息;接收外部设备响应于查询信息发送的响应信息;根据响应信息判断第二应用是否支持第一数据结构体。
在第六方面的一种可能的实现方式中,第一应用的第一控件的内容包括第一文本,与第一控件对应的第一信息包括第一控件内第一文本的文本信息;或者,第一应用的第一控件的内容包括第一图片,与第一控件对应的第一信息包括第一控件内第一图片的存储路径。
在第六方面的一种可能的实现方式中,第一数据结构体包括clipdata,第二数据结构体包括intent。
第七方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有软件代码,软件代码为在被一个或多个处理器读取后能够执行第一方面、第一方面的每一种可能的实现方式、第二方面、第三方面、第四方面或第五方面。
图1为平板电脑100的桌面示意图;
图2为平板电脑100的分屏示意图;
图3为用户拖拽悬浮图标107的示意图;
图4为备忘录102的界面上的第二控件106加载图片104的示意图;
图5为平板电脑100的内部处理流程的示意图;
图6为另一种平板电脑100的分屏示意图;
图7为另一种平板电脑100的内部处理流程的示意图;
图8为本申请提供的一种拖拽处理方法的流程图;
图9为另一种平板电脑100的桌面示意图;
图10为平板电脑200的分屏示意图;
图11为用户拖拽悬浮图标207的示意图;
图12为聊天203的界面上的文本框206加载文本信息204的示意图;
图13为平板电脑200的内部处理流程的示意图;
图14为本申请提供的另一种拖拽处理方法的流程图;
图15为本申请提供的又一种拖拽处理方法的流程图;
图16为智能手机400投屏至平板电脑300的示意图;
图17为平板电脑200同时显示备忘录301的界面和协同窗口302的示意图;
图18为用户拖拽悬浮图标305的示意图;
图19为聊天401的文本框402加载文本信息303的示意图;
图20为平板电脑300与智能手机400之间的交互示意图;
图21为本申请提供的又一种拖拽处理方法的流程图;
图22为本申请提供的又一种拖拽处理方法的流程图;
图23为本申请实施例提供的一种电子设备的示意图。
下面通过图1至图5所示的示例,简要介绍将图库101中的第一控件105内的图片104拖拽至备忘录102的第二控件106内的场景。其中,第一控件105和第二控件106均为平板电脑100的操作系统108支持的原生控件。
请参见图1所示,图1为平板电脑100的桌面示意图。在图1所示的示例中,平板电脑100的操作系统可以为鸿蒙系统(HarmonyOS)、安卓系统(AndroidOS)或苹果移动设备操作系统(iPhone operation system,IOS)。当然,平板电脑100的操作系统并不局限于上述操作系统,还可以为其他类型的操作系统。平板电脑100内安装有图库101、备忘录102和聊天103等多款应用软件。
在图1所示的场景中,用户可以先打开图库101,并向平板电脑100输入分屏指令,再打开备忘录102,以使平板电脑100同时显示图库101的界面和备忘录102的界面。
请参见图2所示,图2为平板电脑100的分屏示意图。在平板电脑100分屏显示图库101的界面和备忘录102的界面以后,用户可以使用手指500长按图库101的界面上的第一控件105内的图片104。
请参见图3所示,图3为用户拖拽悬浮图标107的示意图。在平板电脑100监听到用户的手指500对第一控件105内的图片104输入的长按操作以后,平板电脑100会通过第一控件105获取到图片104的存储路径,并将图片104的存储路径封装在数据结构体A中。同时,平板电脑100还会根据图片104绘制悬浮图标107,悬浮图标107可以跟随用户的手指500移动。然后,用户的手指500可以将悬浮图标107拖拽至备忘录102的界面上的第二控件106的上方。
在一种可能的实现方式中,如果平板电脑100的操作系统为安卓系统,那么数据结构体A可以为clipdata对象,且clipdata对象包含图片104的存储路径,其中,图片104的存储路径为“file://pad/images/跳跃.jpg”。
示例的,clipdata对象包括以下内容:
CharSequence mText=“”;
String mHtmlText=“”;
Intent mIntent=null;
Uri mUri=“file://pad/images/跳跃.jpg”;
在上述示例可以得知,clipdata对象中包含图片104的存储路径。
请参见图4所示,图4为备忘录102的界面上的第二控件106加载图片104的示意图。在用户使用手指500将悬浮图标107拖拽至备忘录102的界面上的第二控件106的上方以后,用户的手指500离开平板电脑100。在平板电脑100监听到用户的手指500离开的位置是备忘录102的界面上的第二控件106时,说明用户希望将图库101的界面上的第一控件105内的图片104拖拽至备忘录102的界面上的第二控件106内,平板电脑100会删除悬浮图标107,然后将数据结构体A发送给备忘录102。
由于备忘录102的界面上的第二控件106为操作系统支持的原生控件,所以第二控件106可以自动解析数据结构体A中的图片104的存储路径。然后,备忘录102根据图片104的存储路径来获取图片104,并在备忘录102的界面上的第二控件106内显示图片104。
需要说明的是,在图2至图4所示的示例中,第一控件105和第二控件106均是客观存在但用户无法看到的控件,所以第一控件105和第二控件106均使用虚线方框表示。
请参见图5所示,图5为平板电脑100的内部处理流程的示意图,图5为图1至图4所示的平板电脑100的内部处理流程。
在图5所示的示例中,可以结合图1至图4所示的示例,在用户将图库101的界面上的第一控件105内的图片104拖拽至备忘录102的界面上的第二控件106的上方并松手以后,平板电脑100的操作系统108通过图库101的第一控件105获取图片104的存储路径。然后,平板电脑100的操作系统108将图片104的存储路径封装在数据结构体A中,再将数据结构体A发送至备忘录102。由于备忘录102的界面上的第二控件106为平板电脑100的操作系统108支持的原生控件,所以备忘录102的界面上的第二控件106能够自动解析数据结构体A中的图片104的存储路径,然后备忘录102通过图片104的存储路径在存储器109中获取到图片104,在备忘录102的界面上的第二控件106内显示图片104。因此,备忘录102中的第二控件106可以响应拖拽功能。
请参见图1、图6和图7所示,图6为另一种平板电脑100的分屏示意图,图7为另一种平板电脑100的内部处理流程的示意图。图1、图6和图7所示的示例主要介绍将图库101中的第一控件105内的图片104拖拽至聊天103的第三控件110内的场景。其中,第一控件105为平板电脑100的操作系统108支持的原生控件,第三控件110不是平板电脑100的操作系统108支持的原生控件。
在图1、图6和图7所示的示例中,用户需要向平板电脑100输入分屏指令,以使平板电脑100同时显示图库101的界面和聊天103的界面。然后,在用户将图库101的界面上的第一控件105内的图片104拖拽至聊天103的界面上的第三控件110的上方并松手以后,平板电脑100的操作系统108通过第一控件105获取图片104的存储路径。然后,平板电脑100的操作系统108将图片104的存储路径封装在数据结构体A中,再将数据结构体A发送至聊天103。由于聊天103的界面上的第三控件110不是平板电脑100的操作系统108支持的原生控件,所以聊天103的界面上的第三控件110无法自动解析数据结构体A中的图片104的 存储路径,那么聊天103的界面上的第三控件110也就无法显示图片104。因此,聊天103中的第三控件110无法响应拖拽功能。
通过图1至图7所示的示例可以得知,由于备忘录102的界面上的第二控件106为平板电脑100的操作系统108支持的原生控件,所以备忘录102中的第二控件106可以响应拖拽功能。由于聊天103的界面上的第三控件110不是平板电脑100的操作系统108支持的原生控件,所以聊天103中的第三控件110无法响应拖拽功能。因此,应用软件的非原生控件无法响应拖拽功能。
请参见图8所示,图8为本申请提供的一种拖拽处理方法的流程图。图8所示的拖拽处理方法可以使应用软件的非原生控件响应拖拽功能,图8所示的方法包括步骤S101至S106。
S101、电子设备接收用户输入的拖拽操作。
其中,电子设备可以为智能手机或平板电脑等设备,电子设备内安装有第一应用和第二应用。
在S101中,拖拽操作指的是将第一应用的第一控件的内容移至第二应用的第二控件上。第一应用的第一控件的内容包括第一文本,与第一控件对应的第一信息包括第一控件内第一文本的文本信息。
具体的,第一控件为第一文本框,第二控件为第二文本框。示例的,在电子设备的操作系统为安卓系统时,第一控件和第二控件均为TextView。
S102、电子设备获取第一控件内的第一文本信息。
S103、电子设备将第一文本信息封装在第一数据结构体内。
示例的,在电子设备的操作系统为安卓系统时,那么第一数据结构体可以为clipdata对象。
S104、电子设备判断第二应用的第二控件是否支持第一数据结构体。如果是,执行步骤S105;否则,执行步骤S106。
S105、电子设备将第一数据结构体发送给第二应用。
S106、电子设备将第一数据结构体转换成的第二数据结构体,并将第二数据结构体发送给第二应用。
其中,第二数据结构体为第二应用的第二控件支持的数据结构体。
示例的,在电子设备的操作系统为安卓系统时,那么第二数据结构体可以为intent对象。
在图8所示的实施例中,如果第二应用的第二控件支持第一数据结构体,说明第二应用的第二控件为电子设备的操作系统支持的原生控件,那么电子设备可以将第一数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第一数据结构体内的第一文本信息,并且第二控件会加载第一文本信息。如果第二应用的第二控件不支持第一数据结构体,说明第二应用的第二控件为电子设备的操作系统不支持的非原生控件,那么电子设备可以将第一数据结构体转换成第二控件支持的第二数据结构体,再将第二数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第二数据结构体内的第一文本信息,并且第二控件会加载第一文本信息,从而使第二应用的第二控件能够响应拖拽功能。
在图8所示的一种可实现的实施例中,如果S101中的拖拽操作指的是将第一应用的第一控件的内容移至第二应用的图标上,那么在S101以后,在S102以前,图8所示的方法还可以包括以下步骤:电子设备显示第二应用对应的一个或多个悬浮图标,电子设备接收用户从一个或多个悬浮图标中选择第一悬浮图标的操作,其中,第一悬浮图标与具有第二控件的第 一界面对应,第一界面为第二应用的界面。
其中,在用户将第一应用的第一控件的内容移至第二应用的图标上以后,电子设备显示第二应用对应的一个或多个悬浮图标,一个或多个悬浮图标分别对应第二应用的一个或多个具有第二控件的界面。在电子设备接收到用户选择第一悬浮图标的操作以后,说明用户想要将第一应用的第一控件的内容移至第一悬浮图标对应的第一界面上的第二控件内,然后电子设备便可以继续执行步骤S102至步骤S106。因此,在用户将第一应用的第一控件的内容移至第二应用的图标上以后,不管第二应用的第二控件是否支持第一数据结构体,第二应用都能够响应拖拽功能。
其中,在电子设备的操作系统为安卓系统时,那么电子设备的操作系统会利用包管理器服务(PackageManagerService,PMS)来查询第二应用内是否存在具有第二控件的界面。
下面通过图9至图13所示的示例,来说明图8所示的拖拽处理方法。
请参见图9所示,图9为另一种平板电脑100的桌面示意图。在图9所示的示例中,平板电脑200的操作系统208可以为鸿蒙系统(HarmonyOS)、安卓系统(AndroidOS)或苹果移动设备操作系统(iPhone operation system,IOS)。当然,平板电脑200的操作系统208并不局限于上述操作系统,还可以为其他类型的操作系统。平板电脑200内安装有图库201、备忘录202和聊天203等多款应用软件。
在图9所示的场景中,用户可以先打开备忘录202,并向平板电脑200输入分屏指令,再打开聊天203,以使平板电脑200同时显示备忘录202的界面和聊天203的界面。
请参见图10所示,图10为平板电脑200的分屏示意图。在平板电脑200分屏显示备忘录202的界面和聊天203的界面以后,用户可以使用手指500长按备忘录202的界面上的文本框205内的文本信息204。其中,文本信息204的具体内容为“会员账号为:12345”。
请参见图11所示,图11为用户拖拽悬浮图标207的示意图。在平板电脑200监听到用户的手指500对文本框205内的文本信息204输入的长按操作以后,平板电脑200会获取文本框205内的文本信息204,并将文本信息204封装在数据结构体A中。同时,平板电脑200还会根据文本信息204绘制悬浮图标207,悬浮图标207可以跟随用户的手指500移动。然后,用户的手指500可以将悬浮图标207拖拽至聊天203的界面上的文本框206的上方,然后用户的手指500离开悬浮图标207。
请参见图12所示,图12为聊天203的界面上的文本框206加载文本信息204的示意图。在用户的手指500离开悬浮图标207以后,平板电脑200会判断聊天203的文本框206是否支持数据结构体A。由于聊天203的文本框206为非原生控件,所以聊天203的文本框206不支持数据结构体A,那么平板电脑200可以将数据结构体A转换成文本框206支持的数据结构体B,再将数据结构体B发送给聊天203,以便于聊天203的文本框206可以获取到数据结构体B内的文本信息204,并且文本框206会加载文本信息204,从而使聊天203的文本框206能够响应拖拽功能。
下面举例说明电子设备如何将数据结构体A转换成的数据结构体B。假设数据结构体A为clipdata对象,文本信息204为“会员账号为:12345”,数据结构体B为intent对象。
示例的,clipdata对象包括以下内容:
CharSequence mText=“会员账号为:12345”;
String mHtmlText=“”;
Intent mIntent=null;
Uri mUri=“”;
电子设备会获取clipdata对象中的文本信息204“会员账号为:12345”,并将文本信息“会员账号为:12345”封装在intent对象内,intent对象包括以下内容:
Intent:
Action=Intent.Action_Send;
Type=Type:text/plain;
EXTRA_TEXT=“会员账号为:12345”;
其中,clipdata对象只能被平板电脑200的操作系统208支持的原生控件所识别,由于聊天203的文本框206不属于平板电脑200的操作系统208支持的原生控件,所以聊天203的文本框206便不支持clipdata对象。基于此,平板电脑200可以将clipdata对象转换成聊天203的文本框206支持的Intent对象,然后,平板电脑200再将intent对象发送给聊天203,以便于聊天203的文本框206可以获取到intent对象内的文本信息204“会员账号为:12345”,并且文本框206会加载文本信息204,从而使聊天203的文本框206能够响应拖拽功能。
请参见图13所示,图13为平板电脑200的内部处理流程的示意图,图13为图9至图12所示的平板电脑200的内部处理流程。
在图13所示的示例中,可以结合图9至图12所示的示例,在用户将备忘录202的界面上的文本框205内的文本信息204拖拽至聊天203的界面上的文本框206的上方并松手以后,平板电脑200的操作系统208会判断聊天203的文本框206是否支持数据结构体A。由于聊天203的文本框206为非原生控件,所以聊天203的文本框206不支持数据结构体A,那么平板电脑200可以将数据结构体A转换成文本框206支持的数据结构体B,再将数据结构体B发送给聊天203,以便于聊天203的文本框206可以获取到数据结构体B内的文本信息204,并且文本框206会加载文本信息204,从而使聊天203的文本框206能够响应拖拽功能。
请参见图14所示,图14为本申请提供的另一种拖拽处理方法的流程图。图14所示的拖拽处理方法可以使应用软件的非原生控件响应拖拽功能,图14所示的方法包括步骤S201至S206。
S201、电子设备接收用户输入的拖拽操作。
其中,电子设备可以为智能手机或平板电脑等设备,电子设备内安装有第一应用和第二应用。
在S201中,拖拽操作指的是将第一应用的第一控件的内容移至第二应用的第二控件上。第一应用的第一控件的内容包括第一图片,与第一控件对应的第一信息包括第一控件内第一图片的存储路径。
具体的,第一控件为第一图像框,第二控件为第二图像框。示例的,在电子设备的操作系统为安卓系统时,第一控件和第二控件均为ImageView。
S202、电子设备获取第一控件内的第一图片的存储路径。
S203、电子设备将第一图片的存储路径封装在第一数据结构体内。
示例的,在电子设备的操作系统为安卓系统时,那么第一数据结构体可以为clipdata对象。
S204、电子设备判断第二应用的第二控件是否支持第一数据结构体。如果是,执行步骤S205;否则,执行步骤S206。
S205、电子设备将第一数据结构体发送给第二应用。
S206、电子设备将第一数据结构体转换成的第二数据结构体,并将第二数据结构体发送给第二应用。
其中,第二数据结构体为第二应用的第二控件能够支持的数据结构体。
在图14所示的实施例中,如果第二应用的第二控件支持第一数据结构体,说明第二应用的第二控件为电子设备的操作系统支持的原生控件,那么电子设备可以将第一数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第一数据结构体内的第一图片的存储路径,并且第二控件会通过第一图片的存储路径加载第一图片。如果第二应用的第二控件不支持第一数据结构体,说明第二应用的第二控件为电子设备的操作系统不支持的非原生控件,那么电子设备可以将第一数据结构体转换成第二控件支持的第二数据结构体,再将第二数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第二数据结构体内的第一图片的存储路径,并且第二控件会通过第一图片的存储路径加载第一图片,从而使第二应用的第二控件能够响应拖拽功能。
示例的,在电子设备的操作系统为安卓系统时,那么第二数据结构体可以为intent对象。
下面举例说明电子设备如何将第一数据结构体转换成的第二数据结构体。假设第一数据结构体为clipdata对象,第一图片的存储路径为“file://pad/images/跳跃.jpg”,第二数据结构体为intent对象。
示例的,clipdata对象包括以下内容:
CharSequence mText=“”;
String mHtmlText=“”;
Intent mIntent=null;
Uri mUri=“file://pad/images/跳跃.jpg”;
电子设备会获取clipdata对象中的第一图片的存储路径“file://pad/images/跳跃.jpg”,并将第一图片的存储路径“file://pad/images/跳跃.jpg”封装在intent对象内,intent对象包括以下内容:
Intent:
Action=Intent.Action_Send;
Type=Type:imge/*;
EXTRA_STREAM=“file://pad/images/跳跃.jpg”;
其中,clipdata对象只能被电子设备的操作系统支持的原生控件所识别,如果第二应用的第二控件不属于电子设备的操作系统支持的原生控件,那么第二控件便不支持clipdata对象。基于此,电子设备可以将clipdata对象转换成第二控件支持的Intent对象,然后,电子设备再将intent对象发送给第二应用,以便于第二应用的第二控件可以获取到intent对象内的第一图片的存储路径“file://pad/images/跳跃.jpg”,并且第二控件会通过第一图片的存储路径“file://pad/images/跳跃.jpg”加载第一图片,从而使第二应用的第二控件能够响应拖拽功能。
请参见图15所示,图15为本申请提供的又一种拖拽处理方法的流程图。图15所示的拖拽处理方法可以使应用软件的非原生控件响应拖拽功能,图15所示的方法包括步骤S301至S307。
S301、第一设备接收用户输入的拖拽操作。
其中,第一设备内安装有第一应用,第二设备内安装有第二应用,第一设备与第二设备之间建立第一通信连接。
在S301以前,第二设备向第一设备发送投屏指令。在第一设备同意该投屏指令以后,第二设备会将第二设备的显示桌面发送至第一设备。第一设备会生成协同窗口,并在协同窗口中显示第二设备的显示桌面。
在S301中,拖拽操作指的是将第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上。其中,协同窗口为第二设备在第一设备上的投屏窗口。
具体的,第一控件为第一文本框,第二控件为第二文本框。
示例的,在电子设备的操作系统为安卓系统时,第一控件和第二控件均为TextView。
S302、第一设备获取第一控件内的第一文本信息。
S303、第一设备将第一文本信息封装在第一数据结构体内。
其中,第一数据结构体包括第一文本信息。
示例的,在电子设备的操作系统为安卓系统时,那么第一数据结构体可以为clipdata对象。
S304、第一设备将第一数据结构体发送至第二设备。
S305、第二设备判断第二应用的第二控件是否支持第一数据结构体。如果是,执行步骤S306;否则,执行步骤S307。
S306、第二设备将第一数据结构体发送至第二应用。
S307、第二设备将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送至第二应用。
其中,第二数据结构体为第二应用支持的数据结构体。
示例的,在电子设备的操作系统为安卓系统时,那么第二数据结构体可以为intent对象。
在图15所示的实施例中,如果第二应用的第二控件支持第一数据结构体,说明第二应用的第二控件为第二设备的操作系统支持的控件,那么第二设备可以将第一数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第一数据结构体内的第一文本信息,并且第二控件会加载第一文本信息。如果第二应用的第二控件不支持不支持第一数据结构体,说明第二应用的第二控件为非原生控件,那么第二设备可以将第一数据结构体转换成第二控件支持的第二数据结构体,再将第二数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第二数据结构体内的第一文本信息,并且第二控件会加载第一文本信息,从而使第二应用的第二控件能够响应拖拽功能。
下面通过图16至图20所示的示例,来说明图15所示的拖拽处理方法。
请参见图16所示,图16为智能手机400投屏至平板电脑300的示意图。平板电脑300内安装有备忘录301等应用软件,智能手机400内安装有信息401等应用软件,平板电脑300和智能手机400之间建立有无线通信连接。
在图16所示的场景中,智能手机400通过无线通信连接向平板电脑300发送投屏指令。在平板电脑300同意该投屏指令以后,智能手机400会将智能手机400的显示桌面发送至平板电脑300。平板电脑300会生成协同窗口302,并在协同窗口302中显示智能手机400的显示桌面。然后,用户可以在平板电脑300上打开备忘录301,并且在智能手机400上打开聊天401。
请参见图17所示,图17为平板电脑200同时显示备忘录301的界面和协同窗口302的示意图。在平板电脑200同时显示备忘录301的界面和协同窗口302以后,用户可以使用手指500长按备忘录301的界面上的文本框304内的文本信息303。其中,文本信息303的具 体内容为“会员账号为:12345”。
请参见图18所示,图18为用户拖拽悬浮图标305的示意图。在平板电脑300监听到用户的手指500对文本框304的文本信息303输入的长按操作以后,平板电脑300会获取文本框304内的文本信息303,并将文本信息303封装在数据结构体A中。同时,平板电脑300还会根据文本信息303绘制悬浮图标305,悬浮图标305可以跟随用户的手指500移动。然后,用户的手指500可以将悬浮图标305拖拽至协同窗口302中的聊天401的文本框402的上方。然后,用户的手指500离开悬浮图标305。
请参见图19所示,图19为聊天401的文本框402加载文本信息303的示意图。在用户的手指500离开悬浮图标305以后,平板电脑300会将数据结构体A发送给智能手机400。在智能手机400接收到平板电脑300发送的数据结构体A以后,智能手机400会判断聊天401的文本框402是否支持数据结构体A。由于聊天401的文本框402为非原生控件,所以聊天401的文本框402不支持数据结构体A,那么智能手机400可以将数据结构体A转换成文本框402支持的数据结构体B,智能手机400再将数据结构体B发送给聊天401,以便于聊天401的文本框402可以获取到数据结构体B内的文本信息303,并且文本框402会加载文本信息303,从而使聊天401的文本框402能够响应拖拽功能。
请参见图20所示,图20为平板电脑300与智能手机400之间的交互示意图,图20为图16至图19所示的平板电脑300的内部处理流程和智能手机400的内部处理流程。
在图20所示的示例中,可以结合图16至图19所示的示例,在用户将备忘录301的文本框304内的文本信息303拖拽至协同窗口302内的聊天401的文本框402的上方并松手以后,平板电脑300的操作系统306会获取备忘录301的文本框304内的文本信息303,并将文本信息303封装在数据结构体A中,再将数据结构体A发送给通信模块307。平板电脑300的通信模块307会将数据结构体A发送给智能手机400的通信模块404,智能手机400的通信模块404再将数据结构体A发送给智能手机400的操作系统403。智能手机400的操作系统403会判断聊天401的文本框402是否支持数据结构体A。由于聊天401的文本框402为非原生控件,所以聊天401的文本框402不支持数据结构体A,那么智能手机400的操作系统403会将数据结构体A转换成文本框402支持的数据结构体B,再将数据结构体B发送给聊天401,以便于聊天401的文本框402可以获取到数据结构体B内的文本信息303,并且文本框402会加载文本信息303,从而使聊天401的文本框402能够响应拖拽功能。
请参见图21所示,图21为本申请提供的又一种拖拽处理方法的流程图。图21所示的拖拽处理方法可以使应用软件的非原生控件响应拖拽功能,图21所示的方法包括步骤S401至S407。
S401、第一设备接收用户输入的拖拽操作。
其中,第一设备内安装有第一应用,第二设备内安装有第二应用,第一设备与第二设备之间建立第一通信连接。
在S401以前,第二设备向第一设备发送投屏指令。在第一设备同意该投屏指令以后,第二设备会将第二设备的显示桌面发送至第一设备。第一设备会生成协同窗口,并在协同窗口中显示第二设备的显示桌面。
在S401中,拖拽操作指的是将第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上。其中,协同窗口为第二设备在第一设备上的投屏窗口。
具体的,第一控件为第一图像框,第二控件为第二图像框。示例的,在电子设备的操作 系统为安卓系统时,第一控件和第二控件均为ImageView。
S402、第一设备获取第一控件内的第一图片的存储路径。
S403、第一设备将第一图片的存储路径封装在第一数据结构体内。
其中,第一数据结构体包括第一图片的存储路径。
示例的,在电子设备的操作系统为安卓系统时,那么第一数据结构体可以为clipdata对象。
S404、第一设备将第一数据结构体发送至第二设备。
S405、第二设备判断第二应用的第二控件是否支持第一数据结构体。如果是,执行步骤S406;否则,执行步骤S407。
S406、第二设备将第一数据结构体发送至第二应用。
S407、第二设备将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送至第二应用。
其中,第二数据结构体为第二应用支持的数据结构体。
示例的,在电子设备的操作系统为安卓系统时,那么第二数据结构体可以为intent对象。
在图21所示的实施例中,如果第二应用的第二控件支持第一数据结构体,说明第二应用的第二控件为第二设备的操作系统支持的控件,那么第二设备可以将第一数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第一数据结构体内的第一图片的存储路径,并且第二控件会根据第一图片的存储路径加载第一图片。如果第二应用的第二控件不支持第一数据结构体,说明第二应用的第二控件为非原生控件,那么第二设备可以将第一数据结构体转换成第二控件支持的第二数据结构体,再将第二数据结构体发送给第二应用,以便于第二应用的第二控件可以获取到第二数据结构体内的第一图片的存储路径,并且第二控件会根据第一图片的存储路径加载第一图片,从而使第二应用的第二控件能够响应拖拽功能。
请参见图22所示,图22为本申请提供的又一种拖拽处理方法的流程图。图22所示的拖拽处理方法可以使应用软件的非原生控件响应拖拽功能,图22所示的方法包括步骤S501至S507。
S501、第一设备接收用户输入的拖拽操作。
其中,第一设备内安装有第一应用,第二设备内安装有第二应用,第一设备与第二设备之间建立第一通信连接。
在S501以前,第二设备向第一设备发送投屏指令。在第一设备同意该投屏指令以后,第二设备会将第二设备的显示桌面发送至第一设备。第一设备会生成协同窗口,并在协同窗口中显示第二设备的显示桌面。
在S501中,拖拽操作指的是将第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上。其中,协同窗口为第二设备在第一设备上的投屏窗口。
具体的,第一控件为第一文本框,第二控件为第二文本框。示例的,在电子设备的操作系统为安卓系统时,第一控件和第二控件均为TextView。
S502、第一设备获取第一控件内的第一文本信息。
S503、第一设备将第一文本信息封装在第一数据结构体内。
其中,第一数据结构体包括第一文本信息。
示例的,在电子设备的操作系统为安卓系统时,那么第一数据结构体可以为clipdata对象。
S504、第一设备向第二设备发送第一查询请求。
其中,第一查询请求用于指示第二设备判断第二应用的第二控件是否支持第一数据结构体。
S505、第二设备判断第二应用的第二控件是否支持第一数据结构体。
S506、第二设备向第一设备发送第一响应信息。
其中,第一响应信息是由第二设备根据S505中的判断结果生成的相应信息。如果第二应用的第二控件支持第一数据结构体,那么第一响应信息包括第一标识信息,第一标识信息用于指示第二应用的第二控件支持第一数据结构体。如果第二应用的第二控件能够不支持第一数据结构体,那么第一响应信息包括第二标识信息,第二标识信息用于指示第二应用的第二控件不支持第一数据结构体。
S507、第一设备根据第一响应信息中的内容向第二设备发送第一数据结构体或第二数据结构体。
其中,在第一响应信息中的内容为第一标识信息时,说明第二应用的第二控件支持第一数据结构体,那么第一设备向第二设备发送第一数据结构体。在第一响应信息中的内容为第二标识信息时,说明第二应用的第二控件不支持第一数据结构体,那么第一设备将第一数据结构体转换成第二数据结构体,并将第二数据结构体发送至第二设备。第二数据结构体为第二应用支持的数据结构体。
示例的,在电子设备的操作系统为安卓系统时,那么第二数据结构体可以为intent对象。
在图22所示的实施例中,在第一设备生成第一数据结构体以后,第一设备向第二设备发送第一查询请求,以使第二设备判断第二应用的第二控件是否支持第一数据结构体。第二设备向第一设备发送第一响应信息,以使第一设备可以得知第二应用的第二控件是否支持第一数据结构体。在第一响应信息中的内容为第一标识信息时,说明第二应用的第二控件支持第一数据结构体,那么第一设备向第二设备发送第一数据结构体。在第一响应信息中的内容为第二标识信息时,说明第二应用的第二控件不支持第一数据结构体,那么第一设备将第一数据结构体转换成第二应用支持的第二数据结构体,并将第二数据结构体发送至第二设备,从而使第二应用的第二控件能够响应拖拽功能。
请参见图23所示,图23为本申请实施例提供的一种电子设备的示意图。图23所示的电子设备包括处理器61和存储器62。
在图23所示的实施例中,处理器61用于执行存储器62中存储的指令,以使电子设备执行以下操作:根据将第一应用的第一控件的内容移至第二应用的拖拽操作获取与所述第一控件对应的第一信息,所述第一信息封装在第一数据结构体内;判断所述第二应用是否支持所述第一数据结构体;若判断所述第二应用支持所述第一数据结构体,将所述第一数据结构体发送给所述第二应用;若判断所述第二应用不支持所述第一数据结构体,将所述第一数据结构体转换成第二数据结构体,并将所述第二数据结构体发送给所述第二应用,所述第二数据结构体为所述第二应用支持的数据结构体。
处理器61是一个或多个CPU。可选的,该CPU为单核CPU或多核CPU。
存储器62包括但不限于是随机存取存储器(random access memory,RAM)、只读存储器(Read only Memory,ROM)、可擦除可编程只读存储器(erasable programmable read-only memory,EPROM或者快闪存储器)、快闪存储器、或光存储器等。存储器62中保存有操作系统的代码。
可选地,电子设备还包括总线63,上述处理器61和存储器62通过总线63相互连接,也可以采用其他方式相互连接。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的范围。这样,倘若本申请的这些修改和变型属于本发明权利要求的范围之内,则本发明也意图包括这些改动和变型在内。
Claims (21)
- 一种拖拽处理方法,其特征在于,所述方法包括:根据将第一应用的第一控件的内容移至第二应用的拖拽操作,电子设备获取与所述第一控件对应的第一信息,所述第一信息封装在第一数据结构体内;所述电子设备判断所述第二应用是否支持所述第一数据结构体;若判断所述第二应用支持所述第一数据结构体,所述电子设备将所述第一数据结构体发送给所述第二应用;若判断所述第二应用不支持所述第一数据结构体,所述电子设备将所述第一数据结构体转换成第二数据结构体,并将所述第二数据结构体发送给所述第二应用,所述第二数据结构体为所述第二应用支持的数据结构体。
- 根据权利要求1所述的拖拽处理方法,其特征在于,在所述电子设备获取所述第一控件对应的第一信息之前,所述方法还包括:所述电子设备接收所述将第一应用的第一控件的内容移至所述第二应用的拖拽操作。
- 根据权利要求2所述的拖拽处理方法,其特征在于,将所述第一应用的第一控件的内容移至所述第二应用的拖拽操作,包括:将所述第一应用的第一控件的内容移至所述第二应用的第二控件上。
- 根据权利要求2所述的拖拽处理方法,其特征在于,将所述第一应用的第一控件的内容移至所述第二应用的拖拽操作,包括:将所述第一应用的第一控件的内容移至所述第二应用的图标上。
- 根据权利要求4所述的拖拽处理方法,其特征在于:在所述电子设备接收将第一应用的第一控件的内容移至第二应用的图标上的拖拽操作之后,所述方法还包括:所述电子设备显示所述第二应用对应的一个或多个悬浮图标;所述电子设备接收用户从所述一个或多个悬浮图标中选择第一悬浮图标的操作,所述第一悬浮图标与具有第二控件的第一界面对应;所述电子设备判断所述第二应用是否支持所述第一数据结构体,包括:所述电子设备判断所述第二控件是否支持所述第一数据结构体。
- 根据权利要求1-5任意一项所述的拖拽处理方法,其特征在于,所述电子设备内安装有所述第一应用和所述第二应用。
- 根据权利要求2所述的拖拽处理方法,其特征在于,将所述第一应用的第一控件的内容移至所述第二应用的拖拽操作,包括:将所述第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上,所述协同窗口为外部设备在所述电子设备上的投屏窗口,所述第二应用安装在所述外部设备上。
- 根据权利要求7所述的拖拽处理方法,其特征在于,所述电子设备判断所述第二应用是否支持所述第一数据结构体包括:所述电子设备向所述外部设备发送查询信息;所述电子设备接收所述外部设备响应于所述查询信息发送的响应信息;所述电子设备根据所述响应信息判断所述第二应用是否支持所述第一数据结构体。
- 根据权利要求1-8任意一项所述的拖拽处理方法,其特征在于:所述第一应用的第一控件的内容包括第一文本,与所述第一控件对应的第一信息包括所述第一控件内所述第一文本的文本信息;或者,所述第一应用的第一控件的内容包括第一图片,与所述第一控件对应的第一信息包括所述第一控件内所述第一图片的存储路径。
- 根据权利要求1-9任意一项所述的拖拽处理方法,其特征在于,所述第一数据结构体包括clipdata;所述第二数据结构体包括intent。
- 一种电子设备,其特征在于,所述电子设备包括一个或多个处理器以及存储器,所述存储器用于存储指令;所述处理器用于执行所述指令,以使所述电子设备执行以下操作:根据将第一应用的第一控件的内容移至第二应用的拖拽操作,获取与所述第一控件对应的第一信息,所述第一信息封装在第一数据结构体内;判断所述第二应用是否支持所述第一数据结构体;若判断所述第二应用支持所述第一数据结构体,将所述第一数据结构体发送给所述第二应用;若判断所述第二应用不支持所述第一数据结构体,将所述第一数据结构体转换成第二数据结构体,并将所述第二数据结构体发送给所述第二应用,所述第二数据结构体为所述第二应用支持的数据结构体。
- 根据权利要求11所述的电子设备,其特征在于:所述处理执行所述指令,还使所述电子设备在获取所述第一控件对应的第一信息之前执行:接收将所述第一应用的第一控件的内容移至所述第二应用的拖拽操作。
- 根据权利要求12所述的电子设备,其特征在于,所述将第一应用的第一控件的内容移至第二应用的拖拽操作,包括:将所述第一应用的第一控件的内容移至所述第二应用的第二控件上。
- 根据权利要求12所述的电子设备,其特征在于,所述将第一应用的第一控件的内容移至第二应用的拖拽操作,包括:将所述第一应用的第一控件的内容移至所述第二应用的图标上。
- 根据权利要求14所述的电子设备,其特征在于,所述处理执行所述指令,还使所述电子设备在接收将第一应用的第一控件的内容移至第二应用的图标上的拖拽操作之 后还执行:显示所述第二应用对应的一个或多个悬浮图标;接收用户从一个或多个悬浮图标中选择第一悬浮图标的操作,所述第一悬浮图标与具有第二控件的第一界面对应;判断所述第二控件是否支持所述第一数据结构体。
- 根据权利要求11-15任意一项所述的电子设备,其特征在于,所述电子设备内安装有所述第一应用和所述第二应用。
- 根据权利要求12所述的电子设备,其特征在于,所述将第一应用的第一控件的内容移至第二应用的拖拽操作,包括:将所述第一应用的第一控件的内容移至协同窗口内的第二应用的第二控件或图标上,所述协同窗口为外部设备在所述电子设备上的投屏窗口,所述第二应用安装在所述外部设备上。
- 根据权利要求17所述的电子设备,其特征在于,所述判断所述第二应用是否支持所述第一数据结构体,包括:向所述外部设备发送查询信息;接收所述外部设备响应于所述查询信息发送的响应信息;根据所述响应信息判断所述第二应用是否支持所述第一数据结构体。
- 根据权利要求11-18任意一项所述的电子设备,其特征在于:所述第一应用的第一控件的内容包括第一文本,与所述第一控件对应的第一信息包括所述第一控件内所述第一文本的文本信息;或者,所述第一应用的第一控件的内容包括第一图片,与所述第一控件对应的第一信息包括所述第一控件内所述第一图片的存储路径。
- 根据权利要求11-19任意一项所述的电子设备,其特征在于,所述第一数据结构体包括clipdata,所述第二数据结构体包括intent。
- 一种计算机存储介质,其特征在于,用于储存电子设备所用的计算机软件指令,其包含用于执行如所述权利要求1-10任意一项所述的方法所设计的程序。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110074033.0 | 2021-01-20 | ||
CN202110074033.0A CN114860142B (zh) | 2021-01-20 | 2021-01-20 | 一种拖拽处理方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022156427A1 true WO2022156427A1 (zh) | 2022-07-28 |
Family
ID=82548454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/137666 WO2022156427A1 (zh) | 2021-01-20 | 2021-12-14 | 一种拖拽处理方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114860142B (zh) |
WO (1) | WO2022156427A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024174857A1 (zh) * | 2023-02-23 | 2024-08-29 | 北京字跳网络技术有限公司 | 界面交互方法、装置、设备及存储介质 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118502625A (zh) * | 2022-10-24 | 2024-08-16 | 荣耀终端有限公司 | 信息的显示方法、电子设备及可读存储介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6061058A (en) * | 1993-03-03 | 2000-05-09 | Apple Computer, Inc. | Method and apparatus for transferring data by type according to data types available |
US20050010927A1 (en) * | 1993-03-03 | 2005-01-13 | Stern Mark Ludwig | Method and apparatus for improved interaction with an application program according to data types and actions performed by the application program |
CN102541426A (zh) * | 2010-12-31 | 2012-07-04 | 联想(北京)有限公司 | 一种电子设备及其对象处理方法 |
CN105912191A (zh) * | 2016-03-31 | 2016-08-31 | 北京奇虎科技有限公司 | 实现终端设备的应用间交互的方法和装置 |
CN106681711A (zh) * | 2016-11-30 | 2017-05-17 | 维沃移动通信有限公司 | 一种分屏模式下的内容分享方法及移动终端 |
CN111095215A (zh) * | 2017-09-26 | 2020-05-01 | 谷歌有限责任公司 | 应用间传递格式特定的数据对象 |
CN111158543A (zh) * | 2019-12-24 | 2020-05-15 | 华为技术有限公司 | 一种文件处理方法、电子设备、系统和存储介质 |
-
2021
- 2021-01-20 CN CN202110074033.0A patent/CN114860142B/zh active Active
- 2021-12-14 WO PCT/CN2021/137666 patent/WO2022156427A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6061058A (en) * | 1993-03-03 | 2000-05-09 | Apple Computer, Inc. | Method and apparatus for transferring data by type according to data types available |
US20050010927A1 (en) * | 1993-03-03 | 2005-01-13 | Stern Mark Ludwig | Method and apparatus for improved interaction with an application program according to data types and actions performed by the application program |
CN102541426A (zh) * | 2010-12-31 | 2012-07-04 | 联想(北京)有限公司 | 一种电子设备及其对象处理方法 |
CN105912191A (zh) * | 2016-03-31 | 2016-08-31 | 北京奇虎科技有限公司 | 实现终端设备的应用间交互的方法和装置 |
CN106681711A (zh) * | 2016-11-30 | 2017-05-17 | 维沃移动通信有限公司 | 一种分屏模式下的内容分享方法及移动终端 |
CN111095215A (zh) * | 2017-09-26 | 2020-05-01 | 谷歌有限责任公司 | 应用间传递格式特定的数据对象 |
CN111158543A (zh) * | 2019-12-24 | 2020-05-15 | 华为技术有限公司 | 一种文件处理方法、电子设备、系统和存储介质 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024174857A1 (zh) * | 2023-02-23 | 2024-08-29 | 北京字跳网络技术有限公司 | 界面交互方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114860142B (zh) | 2024-06-04 |
CN114860142A (zh) | 2022-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11921996B2 (en) | Information processing terminal and control method | |
WO2020147665A1 (zh) | 文件处理方法、装置、终端及存储介质 | |
KR102497195B1 (ko) | 컨텐츠를 처리하는 방법 및 이를 위한 전자 장치 및 저장 매체 | |
WO2022156427A1 (zh) | 一种拖拽处理方法及装置 | |
US10088977B2 (en) | Electronic device and method for providing content according to field attribute | |
US9386264B2 (en) | Augmenting capabilities of a host device | |
CN111049935B (zh) | 远程控制电子设备的系统及其电子设备 | |
US11144195B2 (en) | Fast data copying method and electronic device | |
US9389884B2 (en) | Method and apparatus for providing adaptive wallpaper display for a device having multiple operating system environments | |
KR20140032924A (ko) | 어플리케이션의 상호운용성을 촉진시키기 위한 방법 및 장치 | |
US9195367B2 (en) | Managing active GUI elements remotely | |
CN113360807B (zh) | 混合模式移动应用的页面显示方法、装置及相关设备 | |
US11314391B2 (en) | Navigation bar controlling method and terminal | |
CN107818023B (zh) | 基于线程的消息处理方法、智能设备及存储介质 | |
US9293108B2 (en) | Transmission apparatus and system of using the same | |
US20140201619A1 (en) | Method And Device For Implementing Local Operation On Web Page | |
WO2022242281A1 (zh) | 文件保存方法、装置、电子设备以及存储介质 | |
US9326306B2 (en) | Interactive remote windows between applications operating within heterogeneous operating systems on mobile and stationary devices | |
CN112347048A (zh) | 电子装置及其共享数据的方法 | |
US20150293691A1 (en) | Electronic device and method for selecting data on a screen | |
WO2016095686A1 (zh) | 浏览器与移动终端之间进行通信的方法及浏览器装置 | |
EP2849058A1 (en) | Method and device for displaying a message associated with an application | |
KR101525025B1 (ko) | 스마트폰에서의 라이브 캡쳐링 방법 | |
CN115712340A (zh) | 电子设备及人机交互方法 | |
KR20210101075A (ko) | 전자 장치 및 전자 장치의 클립 보드 운용 방법 |
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: 21920801 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21920801 Country of ref document: EP Kind code of ref document: A1 |