Cross-device pasting method and device, electronic device and storage medium
By displaying a list of candidate item identifiers for the second device on the first device and allowing users to directly paste content, the cumbersome cross-device operation is resolved, and pasting efficiency is improved.
Patent Information
- Application Number
- CN202511755042.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-02-27
AI Technical Summary
In existing technologies, cross-device pasting operations are cumbersome, requiring multiple operations on each device, resulting in low efficiency.
By displaying a list of candidate item identifiers for the second device on the first device and directly pasting content into the target item in response to user input, the operation steps on the second device are omitted, and cross-device pasting is achieved using communication connection.
It improves the efficiency of pasting across devices, avoids back-and-forth operations between different devices, and simplifies the user process.
Smart Images

Figure CN121579236A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of information processing technology, specifically relating to a cross-device pasting method and apparatus, electronic device and storage medium. Background Technology
[0002] As society continues to develop, users often use multiple devices in scenarios such as office work or study. To improve convenience, it is necessary to break down the barriers between multiple devices and enable cross-device information transmission.
[0003] Currently, users can paste text or images across multiple devices using clipboard synchronization. However, when pasting content from one device to another, the second device needs to be unlocked to turn on its screen, the desired paste location located, the input box tapped, and the paste control pressed to complete the process. This entire operation is rather cumbersome, resulting in low efficiency for cross-device pasting. Summary of the Invention
[0004] The purpose of this application is to provide a cross-device pasting method, apparatus, electronic device, and storage medium that can improve cross-device pasting efficiency.
[0005] In a first aspect, embodiments of this application provide a cross-device pasting method, the method comprising: displaying a candidate item identifier list in response to a first input of target content; the candidate item identifier list including at least one candidate item identifier, the candidate item identifier being an identifier of a candidate item in a second device that supports pasting the target content, and establishing a communication connection between the second device and the first device; and pasting the target content into the target item corresponding to the target item identifier in the candidate item identifier list in response to a second input of a target item identifier in the candidate item identifier list.
[0006] Secondly, embodiments of this application provide a cross-device pasting device, comprising: a display unit, configured to display a candidate item identifier list in response to a first input of target content; the candidate item identifier list includes at least one candidate item identifier, the candidate item identifier being an identifier of a candidate item in a second device that supports pasting the target content, and a communication connection being established between the second device and a first device; and a pasting unit, configured to paste the target content into the target item corresponding to the target item identifier in the second device in response to a second input of a target item identifier in the candidate item identifier list.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions implementing the steps of the method as described in the first aspect when executed by the processor.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the first aspect.
[0011] In the cross-device pasting method provided in this application embodiment, in response to a first input of target content displayed on the first device, a list of candidate item identifiers that support pasting in the second device is directly displayed on the first device. Without needing to go to the second device, the user can manipulate the candidate items on the second device and paste the content into the target item from within the first device. This eliminates the need for the user to unlock the second device, locate the focus on the second device, and search for candidate items on the second device, avoiding back-and-forth operations between the first and second devices and improving the efficiency of cross-device pasting. Attached Figure Description
[0012] Figure 1 A system architecture diagram illustrating the cross-device bonding method provided in this application embodiment;
[0013] Figure 2 One of the schematic flowcharts of the cross-device pasting method provided in the embodiments of this application;
[0014] Figure 3 This is one of the application interface diagrams of the cross-device pasting method provided in the embodiments of this application;
[0015] Figure 4 This is the second application interface diagram of the cross-device pasting method provided in the embodiments of this application;
[0016] Figure 5 The third application interface diagram of the cross-device pasting method provided in the embodiments of this application;
[0017] Figure 6 The fourth diagram shows the application interface of the cross-device pasting method provided in this application embodiment;
[0018] Figure 7 A second schematic flowchart of the cross-device pasting method provided in this application embodiment;
[0019] Figure 8The fifth diagram shows the application interface of the cross-device pasting method provided in this application embodiment;
[0020] Figure 9 The sixth diagram shows the application interface of the cross-device pasting method provided in this application embodiment;
[0021] Figure 10 for Figure 7 A detailed flowchart of step S122;
[0022] Figure 11 for Figure 7 Another specific flowchart for step S122;
[0023] Figure 12 for Figure 7 A detailed flowchart of step S124;
[0024] Figure 13 for Figure 2 A detailed flowchart of step S140;
[0025] Figure 14 Figure 7 is an application interface diagram of the cross-device pasting method provided in the embodiments of this application.
[0026] Figure 15 Figure 8 is an application interface diagram of the cross-device pasting method provided in the embodiments of this application.
[0027] Figure 16 for Figure 2 Another specific flowchart of step S140;
[0028] Figure 17 A third schematic flowchart illustrating the cross-device pasting method provided in this application embodiment;
[0029] Figure 18 Figure 9 is an application interface diagram of the cross-device pasting method provided in the embodiments of this application;
[0030] Figure 19 Figure 10 is an application interface diagram of the cross-device pasting method provided in the embodiments of this application.
[0031] Figure 20 A fourth schematic flowchart illustrating the cross-device pasting method provided in this application embodiment;
[0032] Figure 21 Figure 11 is an application interface diagram of the cross-device pasting method provided in this application embodiment;
[0033] Figure 22 Figure 12 is an application interface diagram of the cross-device pasting method provided in this application embodiment;
[0034] Figure 23Figure 13 is an application interface diagram of the cross-device pasting method provided in this application embodiment;
[0035] Figure 24 Fifth of a flowchart illustrating the cross-device pasting method provided in this application embodiment;
[0036] Figure 25 A structural block diagram of the cross-device bonding device provided in the embodiments of this application;
[0037] Figure 26 A structural block diagram of the electronic device provided in the embodiments of this application;
[0038] Figure 27 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0039] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0040] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0041] Figure 1This diagram illustrates the architecture of the cross-device pasting method provided in this application. It includes a first device, a second device, and a cloud server. The first device can be a smartphone, tablet, laptop, or smartwatch, among other smart electronic devices, and is not specifically limited thereto. The second device can also be a smartphone, tablet, laptop, or smartwatch, and is not specifically limited thereto. In some scenarios, the first and second devices can be interconnected. The cloud server serves as the cloud server for the clipboards of both the first and second devices, responding to instructions from both devices and storing the target content copied to the clipboard. In some scenarios, when performing cross-device pasting, the first device can upload the target content to the cloud server, and the second device sends an instruction to the cloud server to load the target content from the cloud server, thereby pasting the target content from the cloud server to the second device.
[0042] The cross-device pasting method and apparatus, electronic device and storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0043] like Figure 2 As shown, this application provides a cross-device pasting method applied to a first device, which may include the following steps S100 to S140:
[0044] S100: In response to the first input of target content, a candidate item identifier list is displayed; the candidate item identifier list includes at least one candidate item identifier, which is the identifier of a candidate item in the second device that supports pasting the target content, and a communication connection is established between the second device and the first device.
[0045] The cross-device pasting method proposed in this application embodiment is executed by the first device.
[0046] The target content is text or images that need to be pasted across devices in the first device; the first input is the operation on the target content, such as selecting and holding or selecting and double-clicking.
[0047] For example, such as Figure 3 As shown, users can select any content, such as text or images, as the target content on the first device.
[0048] For example, the first input can be automatically triggered after the target content is selected and held for a certain period of time; or it can be triggered after the user performs a fixed operation on the selected target content, such as drawing a circle on the screen after selecting the target content.
[0049] For example, such as Figure 4As shown, drag the content and move it quickly to draw an approximately circular path. The first device will then display the paste path display control. Then, as... Figure 5 As shown, the candidate items that support pasting are displayed in the first device.
[0050] Candidate items are items on the second device that support pasting the target content (such as a specific Word document or a specific Excel document). The candidate item identifier list is a list of identifiers for candidate items on the second device that support pasting the target content (such as the list of document names for the specific Word document and the Excel document mentioned above).
[0051] Establishing a communication connection between the second device and the first device means that the first device and the second device have certain communication conditions.
[0052] For example, the communication conditions include at least one of the following: the first device and the second device are connected via a local area network; the first device and the second device are connected via Bluetooth; the first device and the second device are connected via a Universal Serial Bus (USB). By specifying multiple communication conditions, the flexibility of triggering cross-device auto-paste is improved, and the universality of cross-device auto-paste is enhanced.
[0053] Wherein, if the communication conditions between the first device and the second device meet any one of the communication conditions, a communication path can be established between the first device and the second device, so that the first device can obtain the candidate item list of the second device and display the candidate item identifier list.
[0054] Specifically, the user selects text or images on the first device that need to be pasted across devices and makes a first input. In response to the first input, the first device can obtain candidate items in the second device that support pasting the target content and display a list of candidate item identifiers in the second device. The list of candidate item identifiers contains at least one candidate item identifier so that the user can select a candidate item from the candidate item identifier list.
[0055] For example, such as Figure 5 As shown, the first device displays the corresponding candidate item identifiers for the candidate items that support pasting. For example, note-taking applications will expand the existing note list or the "Create Note" entry, while conversation applications will expand the friend list, etc.
[0056] S140: In response to a second input of a target item identifier in the candidate item identifier list, paste the target content into the target item corresponding to the target item identifier in the second device.
[0057] The target project identifier is the identifier of the target project to which the content is to be pasted.
[0058] The second input is an operation on the target item identifier, such as dragging the target content to the corresponding target item identifier; after selecting the target content, double-click the target item identifier.
[0059] Specifically, users can enter a second input in the candidate item list, specifying the identifier of the target item for which they want to paste content. In response to this second input, the first device will directly paste the target content into the target item located on the second device, corresponding to the identifier of that item. For example, the candidate item identifier list might contain Word document name A1, Word document name A2, and Excel document name B1. The user selects Word document name A2, and the selected target content will be pasted into this Word document.
[0060] For example, such as Figure 6 As shown, drag the target content to the target item identifier, and release to trigger pasting. This will paste the target content directly onto the target item on the second device, corresponding to the target item identifier.
[0061] For example, the target content can be directly pasted into the target project located on the second device corresponding to the target project identifier, or it can be pasted into the end of the content that has already been created in the target project.
[0062] For example, the target project can be a newly created project. When the target project is a newly created project, a blank project will be automatically created, and the target content will be pasted into that project. The advantage of this setting is that it solves the problem that sometimes users do not need to paste the target content into an existing project, but rather want to paste it into a new project, thus improving the versatility of the scenario.
[0063] In traditional technology, pasting content across devices often involves selecting the target content on the first device, copying it to the clipboard, and then operating on the second device. This requires switching between the first and second devices, locating the target item, clicking the input box, accessing the clipboard, and then selecting and pasting the content. This process is cumbersome, inconvenient, and impacts user efficiency in work and study.
[0064] Compared to traditional technologies, the cross-device pasting method provided in this application, in response to a first input of target content displayed on a first device, displays a candidate item identifier list on the first device, and the candidate item identifier list contains at least one candidate item identifier. This candidate item identifier list is a list of identifiers for candidate items in the second device that support pasting the target content. In response to selecting a target item identifier from the candidate item identifier list, the target content is pasted into the target item corresponding to the target item identifier in the second device. Through this cross-device pasting method, there is no need to go to the second device; the content can be pasted into the target item simply by manipulating the candidate items on the second device from within the first device. This eliminates the need for the user to unlock the second device, locate the focus on the second device, and search for candidate items on the second device, thus avoiding back-and-forth operations between the first and second devices and improving the efficiency of cross-device pasting.
[0065] In the embodiments of this application, such as Figure 7 As shown, the steps preceding the display of the candidate item identifier list may specifically include the following S122:
[0066] S122: Display a list of candidate application identifiers in the paste path display control, wherein the list of candidate application identifiers is a list of identifiers of candidate applications in the second device that support pasting target content.
[0067] Display a list of candidate item identifiers, which may include the following S124:
[0068] S124: In response to selecting a target application identifier from the candidate application identifier list, display a candidate item identifier list, wherein the candidate item identifier list is a list of identifiers of candidate items in the target application that support pasting the target content.
[0069] The target application identifier is the identifier of the application that the user wants to paste the target content into in the candidate application identifier list.
[0070] In the embodiments provided in this application, during the process of displaying the candidate item identifier list in the paste path display control, the paste path display control first displays a list of candidate application identifiers corresponding to candidate applications that support pasting target content (e.g., application names such as Word and Excel, but excluding specific Word or Excel document names). Users can select the corresponding target application identifier for the target application from the candidate application identifier list (e.g., selecting Word from Word and Excel). After selection, the paste path display control displays the corresponding candidate item identifiers for candidate items that support pasting target content within the target application (e.g., document name A1 for specific Word document 1, document name A2 for specific Word document 2). By first selecting the target application through the target application identifier and then selecting the target item within the target application through the target item identifier, the difficulty for users in filtering target items can be reduced, solving the problem of having too many candidate items supporting pasting target content and finding the target item among a large number of candidates.
[0071] For example, such as Figure 8 As shown, the paste path display control will first display a list of candidate application identifiers, such as... Figure 9 As shown, drag and drop the target content onto the corresponding target application identifier on the first device, such as note-taking or social media applications; for example... Figure 5 As shown, it can automatically display the corresponding candidate item identifiers of the candidate items that support pasting in the target application. For example, note-taking applications will expand the existing note list or the "New Note" entry, and conversation applications will expand the friend list, etc.
[0072] In the embodiments of this application, such as Figure 10 As shown, the step of displaying the list of candidate application identifiers in the paste path display control may specifically include the following steps S1224 to S1226:
[0073] S1224: In the second device, identify candidate applications that support pasting target content.
[0074] S1226: In the paste path display control, display a list of candidate application identifiers, which is a list of identifiers of the identified candidate applications.
[0075] Among them, candidate applications that support pasting target content are those on the second device that meet the cross-device pasting criteria. For example, if the target content is a photo, applications such as Notes and Memos are obviously not suitable for pasting photos; only applications like Photo Album and PowerPoint support pasting photos.
[0076] The embodiments provided in this application, during the process of displaying a list of candidate application identifiers in the paste path display control, identify candidate applications on the second device that meet the cross-device pasting conditions based on the type of the target content; and display a list of the identifiers of the candidate applications corresponding to the candidate applications in the paste path display control. This enables precise selection of candidate applications that support cross-device pasting of target content, and displays them in the paste path display control through a list of candidate application identifiers, freeing users from the hassle of repeatedly searching among various applications on the second device.
[0077] like Figure 11 As shown in the embodiment of this application, before identifying candidate applications that support pasting target content in the second device, the following steps are specifically included: S1222.
[0078] S1222: Identify that the second device meets the cross-device content pasting conditions.
[0079] Specifically, based on the type of target content, the cross-device pasting conditions that should be met for cross-device pasting are identified, so as to accurately identify candidate applications in the second device that meet the cross-device pasting conditions.
[0080] In this embodiment of the application, the cross-device pasting conditions include: the second device has a pasting container corresponding to the content type of the target content; the second device contains candidate items with pasting containers; and the second device supports creating new items with pasting containers.
[0081] Paste containers are document spaces that can hold target content, such as forms, text boxes, and placeholders, all of which can hold text.
[0082] The embodiments provided in this application stipulate three requirements for cross-device pasting: the second device must have a paste container corresponding to the content type of the target content; the second device must contain candidate items with paste containers; and the second device must support creating new items with paste containers. Only when all three conditions are met is cross-device pasting permitted. If any one of these conditions is not met, cross-device pasting is not possible (for example, if the target content is text, and a directory name can hold the text, but there is no document on the second device that can hold the text, forcibly pasting the text onto the second device will prevent the second device from effectively storing the text). This allows for the precise selection of candidate applications that support content pasting based on the type of the target content.
[0083] For example, the target content is text, the candidate application is a note-taking application, and the note-taking application supports multiple specific notes (such as note 1, note 2) that receive the target content as corresponding candidate items with paste containers. The note-taking application also allows the creation of a new specific note (such as note 3).
[0084] For example, if the target content is text, and the candidate application is a conversational application, the conversational application has input fields during a conversation, and therefore a paste container. Different contacts within the conversational application have input fields in their conversation interfaces, thus multiple candidate items support the paste container. The conversational application also allows creating a new conversation interface.
[0085] For example, if the target content is an image or a combination of images and text, the candidate application is a PPT application. The PPT application has space for placing images and text, and each PPT also has space for placing images and text, and it supports creating new PPTs.
[0086] In the embodiments of this application, when the content type is plain text, the paste container is at least one of a form, a text box, and a placeholder; when the content type includes an image, the paste container is a placeholder.
[0087] The embodiments provided in this application provide different pasting containers for different types of target content. For plain text target content, the pasting container is at least one of a form, a text box, and a placeholder. For target content containing images, such as plain images or mixed text and images, the corresponding pasting container is a placeholder. By refining the requirements for pasting containers according to different types of target content, the corresponding candidate applications can be selected more accurately based on the type of target content.
[0088] In the embodiments of this application, such as Figure 12 As shown, the step of displaying the candidate application identifier list in response to selecting a target application identifier in the candidate application identifier list may specifically include the following steps S1242 to S1244:
[0089] S1242: In response to selecting a target application identifier from the list of candidate application identifiers, identify candidate items that support pasting target content within the target application corresponding to the target application identifier.
[0090] S1244: Displays a list of candidate item identifiers, which is a list of identifiers of the identified candidate items.
[0091] In the embodiments provided in this application, during the process of displaying a list of candidate item identifiers in response to selecting a target application identifier from a list of candidate application identifiers, after the user selects a target application identifier from the list of candidate application identifiers (e.g., selecting Word from Word and Excel), in response to this selection, the system further identifies the target application corresponding to that target application identifier, identifies candidate items in the target application that support pasting the target content (e.g., finding a Word document named A1 and a Word document named A2 on a second device), and then displays the identified list of candidate items corresponding to the candidate items that support pasting the target content in the paste path display control. This allows for precise filtering of target items that support pasting the target content.
[0092] In this embodiment, the candidate application identifier list is pre-set in the following way: obtaining multiple candidate applications in the second device that support pasting target content; obtaining the historical usage count of the candidate applications; obtaining the historical cross-device pasting count of the candidate applications; extracting keywords from the target content; determining the number of positions that match the extracted keywords in the candidate applications; determining the order of the candidate applications based on the historical usage count, historical cross-device pasting count, and number of positions, and arranging multiple candidate applications according to the order to obtain the candidate application identifier list.
[0093] User usage count refers to the number of times a candidate application has been used historically. For example, if a user has used a specific Word document 128 times on a second device in the past, then the user usage count is 128. The more times a user has used a candidate application in the past, the more they prefer that candidate application, and the more likely they are to choose it this time. Therefore, its display position should be increased to improve selection convenience.
[0094] The number of times a user has pasted content across devices refers to the number of times content from a candidate app has been pasted across devices in the user's history. For example, if a user has pasted content into a Word document on a second device 25 times in the past, then the user's cross-device pasting count is 25. The more times a candidate app has been pasted content across devices in the user's history, the more likely the user is to prefer that candidate app and the more likely they are to choose it this time. Therefore, its display position should be increased to improve selection convenience.
[0095] Furthermore, the more historically similar content an application contains to the target content, the more likely a user is to paste the target content into that application during the current paste operation. For example, if the target content is "how much is the year-end bonus?", "year-end bonus" is most likely to exist in an Excel document containing financial statements. On the second device, if 3 instances of "year-end bonus" are found in all Word documents and 27 instances in all Excel documents, the user is more likely to paste the target content into the Excel document. In this case, keywords such as "year-end bonus" are extracted from the target content. Then, in each candidate application, the number of locations matching the extracted keywords is determined. The higher the number of locations, the more likely the candidate application is to be selected; its display position should be increased to improve selection convenience.
[0096] The embodiments provided in this application can sort the candidate application identifiers in the candidate application identifier list based on the number of historical uses, the number of historical cross-device pastings, and the number of locations. This makes the order of the corresponding candidate applications in the candidate application identification list more in line with the user's habits, and places the candidate applications that are more likely to need to be pasted across devices at the front, thereby making it easier for the user to operate.
[0097] In this embodiment of the application, the ranking of candidate applications is determined based on historical usage count, historical cross-device pasting count, and number of locations, including: determining a first score based on historical usage count; determining a second score based on historical cross-device pasting count; determining a third score based on number of locations; determining a total score based on the first score, second score, and third score; and determining the ranking of candidate applications based on the total score.
[0098] There are several ways to determine the first score based on historical usage frequency. In one implementation, the first score can be determined using a lookup table. A lookup table is pre-set to correlate historical usage frequency with the first score. The higher the historical usage frequency, the higher the first score. The first score can be obtained by looking up the table using the historical usage frequency. In another implementation, the first score can be determined using a formula. A formula is pre-set to show how the first score changes with the historical usage frequency, for example:
[0099] S1=k1·Q1+b1 (Formula 1)
[0100] Where S1 is the first score, Q1 is the number of times it has been used in history, and k1 and b1 are preset constants.
[0101] There are several ways to determine the second score based on the historical cross-device pasting count. In one implementation, the second score can be determined using a lookup table. A lookup table is pre-set to correlate the historical cross-device pasting count with the second score. The higher the historical cross-device pasting count, the higher the second score. The second score can be obtained by looking up the table using the historical cross-device pasting count. In another implementation, the second score can be determined using a formula. A formula is pre-set to show how the second score changes with the historical cross-device pasting count, for example:
[0102] S2 = k2·Q2 + b2 (Formula 2)
[0103] Where S2 is the second score, Q2 is the number of times pasted across devices in history, and k2 and b2 are preset constants.
[0104] There are several ways to determine the third fraction based on the number of positions. In one implementation, the third fraction can be determined using a lookup table. A lookup table is pre-set to correlate the number of positions with the third fraction. The larger the number of positions, the larger the third fraction. The third fraction can be obtained by looking up the table using the number of positions. In another implementation, the third fraction can be determined using a formula. A formula is pre-set to show how the third fraction changes with the number of positions, for example:
[0105] S3=k3·Q3+b3 (Formula 3)
[0106] Where S3 is the third fraction, Q3 is the number of positions, and k3 and b3 are preset constants.
[0107] There are several ways to determine the total score based on a first score, a second score, and a third score. In one implementation, the sum of the first, second, and third scores is used as the total score. In another implementation, the average of the first, second, and third scores is used as the total score. In yet another implementation, the weighted average of the first, second, and third scores is used as the total score.
[0108] There are several ways to determine the ranking of candidate applications based on total scores. In one implementation, candidate applications can be ranked from highest to lowest total score. In another implementation, candidate applications with higher total scores can be placed closer to the location where the user inputs their target content. In the latter implementation, closer proximity to the user's target content makes it easier for the user to select the target application. This implementation improves the efficiency of selecting the target application.
[0109] The embodiments provided in this application accurately calculate the ranking by using a quantification method of a first score, a second score, and a third score, thereby improving the accuracy of candidate application ranking and thus increasing the efficiency of selecting target applications.
[0110] In this embodiment of the application, in response to a first input of target content, a list of candidate item identifiers is displayed, which may specifically include:
[0111] In response to the first input of the target content, a list of candidate item identifiers is displayed on the paste path display control.
[0112] The first input can be selecting and stopping the operation for a certain period of time; it can be double-clicking the selected target content; it can also be dragging the selected target content to perform a specific operation, such as dragging the selected target content and moving it quickly to draw an approximate circle shape; or it can be clicking a specific function icon.
[0113] In the embodiments provided in this application, in response to a first input to the target content displayed on the first device, a paste path display control is displayed on the first device, and a list of candidate item identifiers is displayed on the display control. Thus, the paste path display control will only pop up when the first input is executed, which can prevent the paste path display control from appearing randomly and affecting the user's normal work or study. At the same time, the ability to display the paste path display control through the first input also makes it convenient for the user to operate.
[0114] In this embodiment of the application, in response to a first input to the target content, a list of candidate item identifiers is displayed on the paste path display control, including at least one of the following: in response to the first input, the paste path display control is displayed at the end position of the first input action; in response to the first input, the paste path display control is displayed at a position adjacent to the target content on the first device; in response to the first input, the paste path display control is displayed at an unobstructed position on the first device.
[0115] The embodiments provided in this application propose three display methods for the paste path display control. The first method displays the paste path display control at the end position of the first input in response to the first input. This method allows the paste path display control to show the end position of the user's first input action, making it easy for the user to see the corresponding paste path display control immediately, reducing the need for excessive focus switching, and also reducing the amount of operation required for subsequent operations, thus improving convenience. The second method displays the paste path display control on the first device at a position adjacent to the target content in response to the first input. This method displays the paste path display control based on the position of the target content, again making it easy for the user to see the corresponding paste path display control immediately. The third method displays the paste path display control on the first device at an unobstructed position in response to the first input. This method avoids the paste path display control obscuring other displayed content on the first device. For example, a fixed display area can be set at the edge of the first device for the paste path display control. When the paste path display control pops up, it is displayed in parallel with other displayed content on the first device, making it easier for the user to find the paste path display control.
[0116] For example, the three methods can be customized by the user to improve the flexibility of the paste path display control.
[0117] In the embodiments of this application, such as Figure 13 As shown, in response to a second input of a target item identifier in the candidate item identifier list, the target content is pasted into the target item corresponding to the target item identifier in the second device. In response to selecting a target item identifier in the candidate item identifier list, the target content is pasted into the target item corresponding to the target item identifier in the second device, which may specifically include the following S142 to S144:
[0118] S142: In response to triggering the target item identifier in the candidate item identifier list, display the candidate content location identifier list, which is a list of location identifiers in the target item that support pasting the target content.
[0119] S144: In response to triggering the target content location identifier in the candidate content location identifier list, paste the target content into the target content location corresponding to the target content location identifier.
[0120] The candidate content location identifier list is a list of identifiers for the locations of candidate content that support pasting the target content.
[0121] The embodiments provided in this application allow users to trigger a target item identifier from a list of candidate item identifiers. The paste path display control then shows a list of candidate content location identifiers that support pasting within the corresponding target content item. Users can then select and trigger the target content location identifier from this list, allowing them to paste the target content to the corresponding location. This improves the accuracy of pasting the target content and enhances user efficiency in work or study.
[0122] For example, taking a PowerPoint application as an example, when the PowerPoint application identifier is selected and triggered on the paste path display control on the first device, the paste path display control will further display the names of each specific PowerPoint document in the PowerPoint application, such as the name B1 of PowerPoint document 1 and the name B2 of PowerPoint document 2. That is, the paste path display control will display the names corresponding to each specific PowerPoint document in the PowerPoint application. When the corresponding target PowerPoint document name is selected and triggered, the paste path display control will display the identifiers of each candidate PowerPoint page in the target PowerPoint document that supports pasting the target content, such as page 1, page 2, page 3, etc. When one of these page identifiers is selected and triggered, the target content will be pasted to the corresponding PowerPoint page position; for example, when page 3 is selected and triggered, the target content will be pasted to page 3, such as at the end of page 3.
[0123] For example, such as Figure 14 As shown, drag the target content to the target item and hold it on the item for 400ms; the candidate content location markers corresponding to the candidate content locations in the target item can be directly expanded in the first device, such as... Figure 15 As shown, drag and drop the target content to the corresponding target content position marker and release to paste it into the target content position.
[0124] In the embodiments of this application, such as Figure 16 As shown, in response to a second input of a target item identifier in the candidate item identifier list, the target content is pasted into the target item corresponding to the target item identifier in the second device, which may specifically include the following S145 to S149:
[0125] S145: In response to selecting a target project identifier from the list of candidate project identifiers, identify multiple established contents in the target project corresponding to the target project identifier.
[0126] S147: Obtain the semantic relevance between the established content and the target content.
[0127] S149: Based on semantic relevance, select anchor content from multiple established content items and paste the target content into the associated position of the anchor content.
[0128] The "existing content" refers to content that already exists in the target project, such as the content of each slide in a PowerPoint document. "Anchor content" refers to the content that serves as a reference point when pasting target content into the target project. "Associated location" is the location related to the anchor content; for example, if the anchor content is a text segment, the associated location could be after the text segment; if the anchor content is a PowerPoint slide, the associated location could be within the PowerPoint slide.
[0129] The embodiments provided in this application, in response to selecting a target project identifier (e.g., selecting name B2 from among the candidate PPT document names) in the candidate project identifier list, and pasting the target content into the target project corresponding to the target project identifier (the PPT document named B2), involve the user selecting a target project from the candidate project identifier list. In response to this selection, multiple existing content items (the content of each PPT page in the PPT document named B2) within the target project corresponding to the target project identifier list are identified. Semantic relevance is then recognized between the existing content (the content of a specific PPT page) and the text in the target content (e.g., through a semantic relevance recognition model). This yields the semantic relevance between the existing content and the target content. Based on this semantic relevance, the content with the highest semantic relevance is selected from among the existing content items as the anchor content, and the target content is pasted into the associated position of the anchor content. This process, by identifying the position where the target content should be inserted into the target project through relevance recognition, simplifies the user's burden of selecting the position and improves the automation and efficiency of pasting content insertion.
[0130] In the embodiments of this application, such as Figure 17 As shown, in response to a second input of a target item identifier in the candidate item identifier list, the target content is pasted into the target item corresponding to the target item identifier in the second device. After selecting a target item identifier in the candidate item identifier list and pasting the target content into the target item corresponding to the target item identifier in the second device, the specific steps may include the following S160:
[0131] S160: Display a pasting success flag in the associated area of the target project identifier in the candidate project identifier list.
[0132] In the embodiments provided in this application, after selecting a target item identifier from the candidate item identifier list and pasting the target content into the target item corresponding to the target item identifier in the second device, a pasting success indicator is displayed in the associated area of the target item identifier in the candidate item identifier list. This provides feedback on the pasting status, indicating to the user that the pasting operation has been completed, thereby reducing user waiting time and improving user processing efficiency.
[0133] For example, such as Figure 18As shown, after selecting a target item identifier from the candidate item identifier list and pasting the target content into the target item corresponding to the target item identifier in the second device, "Pasted" will be displayed after the corresponding target item upon successful pasting, indicating to the user that the pasting operation has been completed.
[0134] In this embodiment of the application, after the pasting success flag is displayed in the associated area of the target item identifier in the candidate item identifier list, the cross-device pasting method further includes: stopping the display of the pasting success flag in response to at least one of the following: displaying the pasting success flag for a predetermined duration; triggering an area outside the candidate item identifier list.
[0135] The embodiments provided in this application offer two methods to stop displaying the pasting success indicator: one is to automatically turn it off after a certain duration (e.g., 2 seconds); the other is to be triggered in response to user interaction with an area outside the candidate item identifier list, i.e., when the user clicks on an area outside the candidate item identifier list, the pasting success indicator stops displaying. This reduces the impact of the pasting success indicator on the user experience and avoids excessive obstruction of other content displayed on the first device.
[0136] For example, such as Figure 19 As shown, after successful pasting, "Pasted" will be displayed next to the corresponding target item. The "Pasted" message will disappear automatically from the paste path display control after 2 seconds.
[0137] In the embodiments of this application, such as Figure 20 As shown, after displaying the list of candidate item identifiers in response to the first input of the target content, the process may specifically include the following steps: S110 to S130.
[0138] S110: If the communication conditions between the first device and the second device do not meet the predetermined conditions, display the clipboard entry option in the candidate item identifier list.
[0139] S130: In response to the triggering of the clipboard entry option, the target content is sent to the cloud server so that the second device can pull the target content from the cloud server to the clipboard of the second device.
[0140] The predetermined conditions include any of the following communication conditions:
[0141] The first device and the second device are connected via a local area network; the first device and the second device are connected via Bluetooth; the first device and the second device are connected via a Universal Serial Bus.
[0142] Clipboard entry options refer to the options corresponding to the entry point where the target content is pasted into the clipboard.
[0143] In the embodiments provided in this application, if the communication conditions between the first device and the second device do not meet the predetermined conditions, it means that the first device and the second device cannot communicate directly and must rely on a cloud server, which will cause transmission delays. The cloud server obtains the candidate items that support pasting from the second device and then sends their identifiers to the first device for display, which will cause a considerable delay and give the user a feeling of lag. In this case, an asynchronous operation method can be adopted. That is, the paste path display control will display the clipboard entry option. In response to the user's triggering of the clipboard entry option, the target content is sent to the cloud server. The cloud server sends the target content to the clipboard of the second device (if the second device is not powered on, it waits for the second device to be powered on before sending it to its clipboard). When the user of the second device wants to paste the target content, they need to activate the screen, find the item to be pasted, find the position to be pasted in the item, and trigger the paste control to paste. Although the above method does not take advantage of the aforementioned embodiment of this application that does not require switching the focus back and forth between the first device and the second device, it at least ensures that cross-device pasting can be performed when the communication conditions between the first device and the second device do not meet the predetermined conditions. It improves the flexibility and versatility of cross-device pasting.
[0144] For example, such as Figure 21 As shown, the first device will display clipboard entry options in the paste path display control, such as "Send to phone clipboard"; Figure 22 As shown, drag and drop the target content to the clipboard entry option, and release to upload the target content to the cloud server; for example... Figure 23 As shown, a "Sent" message will be displayed upon successful transmission. If the first and second devices are logged into the same account, the second device will automatically receive the target content from the cloud server via the network. The user can then paste the target content into a specific application on the second device, without needing the communication conditions between the first and second devices to meet predetermined requirements.
[0145] In the embodiments of this application, such as Figure 24 As shown, if the communication conditions between the first device and the second device do not meet the predetermined conditions, after displaying the clipboard entry option in the candidate item identifier list, the cross-device pasting method may further include the following step S150:
[0146] S150: In the paste path display control, a prompt message is displayed, indicating that communication conditions will be established between the first device and the second device.
[0147] In the embodiments provided in this application, if the communication conditions between the first device and the second device do not meet the predetermined conditions, after displaying the clipboard entry option in the paste path display control, a prompt message will be displayed in the paste path display control to inform the user that no communication conditions have been established between the first device and the second device, prompting the user to establish communication conditions between the first device and the second device so that the communication conditions between the first device and the second device meet the preset conditions.
[0148] For example, if the first device is a computer and the second device is a mobile phone, the prompt message could be: "To directly paste the text from the computer to the mobile application, please connect the devices to the same local area network, or turn on Bluetooth and WLAN on both devices, or connect them via USB cable." Here, WLAN stands for Wireless Local Area Network, and USB stands for Universal Serial Bus.
[0149] In this embodiment of the application, the candidate project identifier list also includes a new project identifier; in response to selecting a target project identifier in the candidate project identifier list, pasting the target content into the target project corresponding to the target project identifier in the second device includes: if the target project identifier is a new project identifier, pasting the target content into the newly added blank project.
[0150] In the embodiments provided in this application, the candidate project identifier list also includes a new project identifier; if the user selects the target project identifier as the new project identifier, the target content will be pasted into the newly added blank project. This allows users to quickly add projects based on target content.
[0151] For example, adding a new project can be a new note project, a new Word document, a new PowerPoint presentation, a new session window, etc.
[0152] The cross-device pasting method provided in this application can be executed by a cross-device pasting device. This application uses a cross-device pasting device to execute the cross-device pasting method as an example to illustrate the cross-device pasting device provided in this application.
[0153] like Figure 25 As shown, this application embodiment provides a cross-device pasting device 900, including: a display unit 901, configured to display a candidate item identifier list in response to a first input of target content; the candidate item identifier list includes at least one candidate item identifier, the candidate item identifier is an identifier of a candidate item in a second device that supports pasting the target content, and a communication connection is established between the second device and the first device; and a pasting unit 902, configured to paste the target content into the target item corresponding to the target item identifier in the second device in response to a second input of a target item identifier in the candidate item identifier list.
[0154] The cross-device pasting device 900 provided in this application embodiment is applied to a first device. In response to a first input of target content displayed on the first device, it displays a candidate item identifier list on the first device, and the candidate item identifier list contains at least one candidate item identifier. The candidate item identifier list is a list of identifiers for candidate items in a second device that support pasting the target content. In response to selecting a target item identifier from the candidate item identifier list, the target content is pasted into the target item corresponding to the target item identifier in the second device. This eliminates the need to go to the second device; the user can manipulate the candidate items on the second device and paste the content into the target item from within the first device. This avoids the user having to unlock the second device, locate the focus on the second device, and search for candidate items on the second device, thus avoiding back-and-forth operations between the first and second devices and improving the efficiency of cross-device pasting.
[0155] The cross-device pasting device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0156] The cross-device pasting device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0157] The cross-device pasting device provided in this application embodiment can achieve... Figures 1 to 24 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0158] Optionally, such as Figure 26 As shown, this application embodiment also provides an electronic device 600, including a processor 602 and a memory 604. The memory 604 stores a program or instructions that can run on the processor 602. When the program or instructions are executed by the processor 602, they implement the various steps of the above-described cross-device pasting method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0159] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0160] Figure 27 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0161] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
[0162] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 27 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0163] Specifically, the display unit 706 is used to: display a candidate item identifier list in response to a first input of target content; the candidate item identifier list includes at least one candidate item identifier, the candidate item identifier is the identifier of a candidate item in the second device that supports pasting the target content, and a communication connection is established between the second device and the first device.
[0164] Without needing to go to the second device, users can manipulate candidate items on the second device from within the first device and paste content into the target item. This eliminates the need for users to unlock the second device, locate the focus on the second device, and search for candidate items on the second device, avoiding back-and-forth operations between the first and second devices and improving the efficiency of cross-device pasting.
[0165] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0166] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0167] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.
[0168] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described cross-device pasting method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0169] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0170] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described cross-device pasting method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0171] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0172] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the cross-device pasting method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0173] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0174] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0175] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A cross-device pasting method, applied to a first device, characterized in that, include: In response to a first input of target content, a candidate item identifier list is displayed; the candidate item identifier list includes at least one candidate item identifier, which is an identifier of a candidate item in the second device that supports pasting the target content, and a communication connection is established between the second device and the first device; In response to a second input of a target item identifier in the candidate item identifier list, the target content is pasted into the target item corresponding to the target item identifier in the second device.
2. The cross-device pasting method according to claim 1, characterized in that, Before displaying the list of candidate item identifiers, the method further includes: The paste path display control displays a list of candidate application identifiers, wherein the list of candidate application identifiers is a list of identifiers of candidate applications in the second device that support pasting the target content; The list of candidate item identifiers to be displayed includes: In response to selecting a target application identifier from the list of candidate application identifiers, a list of candidate item identifiers is displayed, wherein the list of candidate item identifiers is a list of identifiers of candidate items in the target application that support pasting the target content.
3. The cross-device pasting method according to claim 2, characterized in that, The step of displaying a list of candidate application identifiers in the paste path display control includes: In the second device, candidate applications that support pasting the target content are identified; The paste path display control displays a list of candidate application identifiers, which is a list of the identifiers of the identified candidate applications.
4. The cross-device pasting method according to claim 2, characterized in that, The response to selecting a target application identifier from the list of candidate application identifiers and displaying a list of candidate application identifiers includes: In response to selecting a target application identifier from the list of candidate application identifiers, candidate items that support pasting the target content are identified within the target application corresponding to the target application identifier; Display a list of candidate project identifiers, which is a list of identifiers of the identified candidate projects.
5. The cross-device pasting method according to claim 1, characterized in that, In response to a first input of target content, the display of a list of candidate item identifiers includes: In response to the first input of the target content, the list of candidate item identifiers is displayed on the paste path display control.
6. The cross-device pasting method according to claim 5, characterized in that, The first input to the target content displays the candidate item identifier list on the paste path display control, including at least one of the following: In response to the first input, the paste path display control is displayed at the end position of the action of the first input; In response to the first input, the paste path display control is displayed on the first device at a position adjacent to the target content; In response to the first input, the paste path display control is displayed in an unobstructed position on the first device.
7. The cross-device pasting method according to claim 1, characterized in that, After pasting the target content into the target project corresponding to the target project identifier in the second device in response to a second input of a target project identifier in the candidate project identifier list, the method further includes: A successful pasting flag is displayed in the associated area of the target project identifier in the candidate project identifier list.
8. A cross-device adhesive applicator, characterized in that, include: The display unit is configured to display a list of candidate item identifiers in response to a first input of target content; the list of candidate item identifiers includes at least one candidate item identifier, which is an identifier of a candidate item in the second device that supports pasting the target content; and a communication connection is established between the second device and the first device. The paste unit is configured to paste the target content into the target project corresponding to the target project identifier in the second device in response to a second input of a target project identifier in the candidate project identifier list.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the cross-device pasting method as described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the cross-device pasting method as described in any one of claims 1 to 7.