Document cross-equipment connection method and device, electronic equipment and storage medium
By establishing connections in multi-device scenarios and obtaining document tags and browsing information, the seamless connection and browsing of documents between different devices is achieved, solving the problem of users switching documents between multiple devices and improving user experience.
Patent Information
- Application Number
- CN202311736230.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-06-17
AI Technical Summary
In multi-device scenarios, it is difficult for users to seamlessly switch and follow-up browse or edit the same document between different devices.
By establishing a connection with the second device in response to the device connection request, obtaining the document tag and browsing information on the second device, responding to the selection operation of the document tag, opening the target document and adjusting the document page according to its browsing information.
It realizes cross-device connection of documents, meets users' needs to seamlessly switch documents between different devices, improves user experience, and supports cross-device connection of online documents.
Smart Images

Figure CN120162101A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and in particular, to a method, apparatus, electronic device, and storage medium for continuous access to documents across devices. Background Art
[0002] With the development of computer and network technologies, various user devices have emerged, such as smart phones, tablet computers, desktop computers, etc. These devices can all provide document browsing and editing services for users.
[0003] In some scenarios, there are usually multiple user devices. For example, in an office scenario, the same user has both a smart phone and a desktop computer. How to switch the same document between different devices to meet the user's needs has become a technical problem to be solved urgently. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, and storage medium for continuous access to documents across devices, so as to enable the same document to be continuously accessed between different devices.
[0005] In a first aspect, this application provides a method for continuous access to documents across devices. The method is applied to a first device and includes:
[0006] Responding to a device connection request for a second device, and establishing a connection with the second device;
[0007] Obtaining document tags of at least one document on the second device and browsing information of the document on the second device;
[0008] Responding to a selection operation on the document tag, determining the document associated with the selected document tag as the target document, opening the target document, and adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document.
[0009] In a possible implementation, the at least one document on the second device includes the documents currently opened on the second device, and the browsing information of the document on the second device includes the current browsing information of the document on the second device.
[0010] In a possible implementation, the at least one document on the second device includes the documents opened on the second device within a recent set period of time, and the browsing information of the document on the second device includes the browsing information when the document was last opened on the second device.
[0011] In a possible implementation, the browsing information includes a browsing progress, or the browsing information includes a browsing progress and a user operation on the browsing progress.
[0012] In a possible implementation, adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document includes:
[0013] Adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document, and performing the user operation on the corresponding document page;
[0014] Or, adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document, and performing the user operation on the target document.
[0015] In a possible implementation, the documents on the second device include the documents currently opened on the second device that meet the set conditions; wherein, the set condition is that the first device has at least the viewing permission for the documents;
[0016] Or, the documents on the second device include the documents opened on the second device within a recent period of time that meet the set conditions.
[0017] In a possible implementation, after obtaining the document tags of at least one document on the second device, the method further includes:
[0018] In response to a document closing operation on the document tag, controlling the second device to close the document corresponding to the document closing operation.
[0019] In a possible implementation, opening the target document includes:
[0020] Opening the target document when it is determined that the first device has at least the viewing permission for the target document.
[0021] In a possible implementation, adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document includes:
[0022] Adjusting the document page of the target document according to the document attributes of the target document and / or the device attributes of the first device;
[0023] For the adjusted target document, adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document.
[0024] In a second aspect, the present application provides a document cross-device continuation device, which is applied to a first device, and the device includes:
[0025] A device connection module, configured to establish a connection with the second device in response to a device connection request for the second device;
[0026] An information acquisition module, configured to acquire document tags of at least one document on the second device and browsing information of the document on the second device;
[0027] A document continuation module, configured to, in response to a selection operation on the document tag, determine the document associated with the selected document tag as a target document, open the target document, and adjust the target document to a corresponding document page according to the browsing information corresponding to the target document.
[0028] In a possible implementation manner, at least one document on the second device includes a currently opened document on the second device, and the browsing information of the document on the second device includes current browsing information of the document on the second device.
[0029] In a possible implementation manner, at least one document on the second device includes documents opened on the second device within a recently set period of time, and the browsing information of the document on the second device includes browsing information when the document was last opened on the second device.
[0030] In a possible implementation manner, the browsing information includes a browsing progress, or the browsing information includes a browsing progress and a user operation on the browsing progress.
[0031] In a possible implementation manner, the document continuation module is specifically configured to:
[0032] Adjust the target document to a corresponding document page according to the browsing information corresponding to the target document, and perform the user operation on the corresponding document page;
[0033] Or, adjust the target document to a corresponding document page according to the browsing information corresponding to the target document, and perform the user operation on the target document.
[0034] In a possible implementation manner, the documents on the second device include currently opened documents on the second device that meet set conditions; wherein, the set condition is that the first device has at least viewing permission for the document;
[0035] Or, the documents on the second device include documents opened on the second device within a recent period of time that meet the set conditions.
[0036] In a possible implementation manner, the device further includes:
[0037] A document closing module, configured to, after obtaining document tags of at least one document on the second device, in response to a document closing operation on the document tags, control the second device to close the document corresponding to the document closing operation.
[0038] In a possible implementation manner, the document continuation module is specifically configured to:
[0039] Open the target document when it is determined that the first device has at least viewing permission for the target document.
[0040] In a possible implementation manner, the document continuation module is specifically configured to:
[0041] Adjust the document pages of the target document according to the document attributes of the target document and / or the device attributes of the first device;
[0042] For the adjusted target document, adjust the target document to the corresponding document page according to the browsing information corresponding to the target document.
[0043] In a third aspect, the present application provides an electronic device, including: a processor and a memory, where the processor is configured to execute a document cross-device continuation program stored in the memory to implement the document cross-device continuation method according to any one of the first aspects.
[0044] In a fourth aspect, the present application provides a storage medium, where the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the document cross-device continuation method according to any one of the first aspects.
[0045] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art: In the method provided by the embodiments of the present application, by responding to a device connection request for the second device, establishing a connection with the second device, obtaining document tags of at least one document on the second device and the browsing information of the document on the second device, in response to a selection operation on the document tags, determining the document associated with the selected document tag as the target document, opening the target document, and adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document, document cross-device continuation is realized, meeting the user's need to continue browsing or editing the same document across devices, improving the user experience, and since the document tags are used as a bridge to cross-device continue the document, online documents can also be obtained through the document tags and then cross-device continued. Description of the Drawings
[0046] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application.
[0047] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.
[0048] One or more embodiments are exemplarily illustrated by the pictures in the corresponding accompanying drawings. These exemplary illustrations do not constitute limitations on the embodiments. Elements with the same reference numerals in the accompanying drawings represent similar elements, unless otherwise stated, and the drawings in the accompanying drawings do not constitute a proportional limitation.
[0049] Figure 1 It is a schematic diagram of a system architecture related to an embodiment of this application;
[0050] Figure 2 It is a schematic diagram of an application scenario related to an embodiment of this application;
[0051] Figure 3 It is a flowchart of an embodiment of a method for document cross-device continuation provided by an embodiment of this application;
[0052] Figure 4 It is a schematic diagram of a first device displaying document labels of at least one document on a second device;
[0053] Figure 5 It is an example diagram of a web page cross-device continuation scenario;
[0054] Figure 6 It is an example diagram of an application cross-device continuation scenario;
[0055] Figure 7 It is a block diagram of an embodiment of a device for document cross-device continuation provided by an embodiment of this application;
[0056] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an embodiment of this application. Detailed implementation manners
[0057] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of this application.
[0058] The following disclosure provides many different embodiments or examples for implementing different structures of the present application. To simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the present application. In addition, the present application may repeat reference numerals and / or letters in different examples. This repetition is for the purpose of simplification and clarity and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0059] To enable continuous access to the same document across different devices, the present application provides a method for continuous access to a document across devices.
[0060] Figure 1 It is a schematic diagram of a system architecture related to an embodiment of the present application.
[0061] As Figure 1 shown, the system architecture 100 may include devices 101 to 103, and a network 104. Among them, the network 104 is used to provide a communication link between devices 101 to 103, and may include a wireless link, a wired link, or an optical fiber cable, etc. The embodiments of the present application do not limit this.
[0062] Devices 101 to 103 may be hardware devices or software (i.e., client applications) that support network connections to provide various network services. When the device is hardware, it may be various electronic devices that support a display screen, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. For example, Figure 1 in which device 101 is a desktop computer, and devices 102 and 103 are both smart phones. When the device is software, it can be installed in the above-listed electronic devices.
[0063] In practice, when the device is hardware, the device can provide corresponding services by installing a corresponding client application. In the embodiments of the present application, devices 101 to 102 can both install a document editing client to provide a document editing service to the user. Here, the document editing client can also provide the service for continuous access to a document across devices proposed in the embodiments of the present application.
[0064] In terms of the document format, the above-mentioned document can be in the formats of.doc,.docx,.xlsx,.xls,.ppt,.pdf, etc. In terms of the document type, the above-mentioned document can be a local document or an online document, such as an online lightweight document, an online spreadsheet, an online presentation document, etc. It can be seen that the document cross-device continuation method proposed in the embodiments of the present application not only supports local documents in traditional formats, but also supports online documents. That is to say, the document cross-device continuation method provided in the embodiments of the present application is not limited to the document type and can achieve cross-device continuation, having universality.
[0065] The above-mentioned document cross-device continuation service refers to: seamlessly switching a document from one device to be opened on another device.
[0066] In one embodiment, when document A is opened on software C on device B, document A can be switched to be opened on software E on device D. At the same time, the browsing information when document A is opened on software C on device B is synchronized to software E on device D, so that after document A is switched to be opened on software E on device D, the browsing information when document A was opened on software C on device B is maintained.
[0067] In one embodiment, the above-mentioned seamless switching means: still retaining the previous browsing progress after opening across devices. For example Figure 2 As shown, the document editing client on device 102 opens a spreadsheet document. The browsing progress of this spreadsheet document on device 102 includes the cell located in row 100 and column z. If the document cross-device continuation service is applied to this spreadsheet document at this time, this spreadsheet document can be seamlessly switched to the document editing client on device 101, so that the document editing client on device 101 opens this spreadsheet document and retains the browsing progress of this spreadsheet document on device 102.
[0068] In another embodiment, the above-mentioned seamless switching means: still retaining the previous browsing progress after opening across devices, and retaining the user operations on the document content for this browsing progress. Still taking Figure 2 the application scenario shown as an example, the document editing client on device 102 opens a spreadsheet document. The browsing progress of this spreadsheet document on device 102 includes the cell located in row 100 and column z, and this cell is in a selected state. If the document cross-device continuation service is applied to this spreadsheet document at this time, this spreadsheet document can be seamlessly switched to the document editing client on device 1021, so that the document editing client on device 101 opens this spreadsheet document, retains the browsing progress of this spreadsheet document on device 102, and retains the selected state of the cell in row 100 and column z.
[0069] In another embodiment, the seamless switching mentioned above means that after opening across devices, the previous browsing progress is retained, and the user operations for that browsing progress are retained. Still taking Figure 2 the application scenario shown as an example, the document editing client on device 102 opens a table document. The browsing progress of this table document on device 102 includes the cell located in row 100 and column z, and this cell is in a selected state. If the document cross-device continuation service is applied to this table document at this time, this table document can be seamlessly switched to the document editing client on device 1021, so that the document editing client on device 101 opens this table document, and continues the browsing progress of this table document on device 102, as well as the operation of selecting user A in the sharing operation of this table document by the user. Thus, it is possible to synchronize the browsing progress of the same document and the user operations for this document on devices 101 and 102. This user operation can be the setting operation for this document on the application that opens this document.
[0070] Based on the above embodiment, in an exemplary application scenario, when a user uses a desktop computer to read or edit a document, this document can be seamlessly switched to be opened on the user's laptop, so that the user can continue to read or edit this document on the laptop without interruption of the user experience.
[0071] In another exemplary application scenario, when user A uses their own device to read or edit a document, this document can be seamlessly switched to be opened on user B's device, so that user B can continue to read or edit this document on their own device, thereby enabling user A and user B to interact and collaborate on the same document.
[0072] Based on the above embodiment, in an exemplary application scenario, when a user uses a desktop computer to read or edit a document, this document can be seamlessly switched to be opened on the user's laptop. Here, the user can select to transfer the entire document from the desktop computer to the laptop. For example, this document has a total of 10 pages, and the user is editing on page 8. When the user selects to transfer all, when this document is opened on the laptop, the document has a total of 10 pages, and the browsing progress of page 8 will be synchronized, that is, the progress of page 8 of the document on the desktop computer is synchronized to the laptop.
[0073] Based on the above embodiments, in an exemplary application scenario, when a user reads or edits a document using a desktop computer, the document can be seamlessly switched to be opened on the user's laptop. Here, the user can select to transfer a part of the document from the desktop computer to the laptop. For example, the document has 10 pages and the user is editing page 8. When the user selects partial transfer, the user can select the pages to be transferred. When the user selects pages 7 and 8, when the document is opened on the laptop, the document has 2 pages (i.e., pages 7 and 8 of the document before transfer), and the browsing progress of page 8 will be synchronized, that is, the progress of page 8 of the document on the desktop computer will be synchronized to the laptop.
[0074] Based on the above embodiments, in an exemplary application scenario, when a user reads or edits a document using a desktop computer, the document can be seamlessly switched to be opened on the user's laptop. Here, the user can select to transfer a part of the document from the desktop computer to the laptop. For example, the document has 10 pages and the user is editing page 8. When the user selects partial transfer, the user can select the pages to be transferred. When the user selects pages 7 and 10, when the document is opened on the laptop, the document has 2 pages (i.e., pages 7 and 10 of the document before transfer). Since page 8, which is the progress of the document before transfer, is not selected, that is, page 8 is not transferred, so after opening the partially transferred document, sorted by the page order, page 7 is set as the default opened first page; here, the page order can be set by the user. The user can set page 10 to be before page 7 and set page 10 as the default opened first page. There is no limitation on the user's setting method for the order.
[0075] Based on the above embodiments, in an exemplary application scenario, when a user reads or edits a document using a desktop computer, the document can be seamlessly switched to be opened on the user's laptop. Here, the user can select to transfer a part of the document from the desktop computer to the laptop. The content of the partial transfer in the document can also be a part of a certain page in the document. For example, there are 2 pictures and 10 paragraphs of text on page 8 of the document. The user can select 1 picture and 2 paragraphs of text for transfer. Then, after the transfer to the laptop, the displayed content is the selected 1 picture and 2 paragraphs of text content.
[0076] Based on the above embodiments, in an exemplary application scenario, when a user uses a desktop computer to read or edit a document, the document can be seamlessly switched to the user's laptop for opening. Here, the user can select to transfer all or part of the document from the desktop computer to the laptop. Before or after the transfer, the user can choose to turn off the document settings transfer on the desktop computer. Here, turning off the transfer means that when the document transfer operation occurs or after the transfer ends, the document will automatically close on the desktop computer.
[0077] It can be understood that Figure 1 the number of networks and devices and the types of devices in are merely illustrative. According to actual needs, the system architecture 100 can include any number of networks and devices.
[0078] Figure 3 This is a flowchart of an embodiment of a document cross-device continuation method provided by an embodiment of the present application. In one embodiment, Figure 3 the method shown is applied to a first device. Here, the first device is, for example, Figure 1 the device 101 in the system architecture shown. As Figure 3 shown, the method includes the following steps:
[0079] Step 301, in response to a device connection request for a second device, establish a connection with the second device.
[0080] There may be one or more of the above second devices. For example, in the system architecture shown in Figure 1 the first device is device 101, the second device is device 102, or the second device is device 103, or the second device includes device 102 and device 103. It can be seen that in the embodiments of the present application, the first device can establish connections with one or more other devices simultaneously.
[0081] In an application, when a user on the first device side needs to experience cross-device document continuation, a device connection request can be initiated for at least one second device to request at least one second device to establish a connection with the first device. The following explains the specific implementation of the first device establishing a connection with the second device through different embodiments:
[0082] In one embodiment, the specific implementation of establishing a connection with a second device in response to a device connection request for the second device includes: in response to a trigger operation for indicating device connection, display a verification code, receive a device connection request from the second device, parse the verification code from the device connection request, and establish a connection with the second device when it is determined that the parsed verification code is the same as the displayed verification code.
[0083] Specifically, in the application, a user on the first device side triggers the device connection icon on the document editing client of the first device. Optionally, the device connection icon is located in the toolbar of the document editing client or in the menu list of a sub-function in the document editing client. In response to the user's triggering operation on the above device connection icon, the first device determines that a triggering operation for indicating device connection is detected. Furthermore, the first device displays a verification code on the interface. Here, the verification code can be a QR code or a numeric code. In the case where the verification code is a numeric code, it can be a 4-digit number or a 6-digit number, and the embodiments of the present application do not limit this.
[0084] Further, in the case where the above verification code is a QR code, the user on the second device side can operate the second device to scan the QR code. Here, the user on the second device side can open the scan function on the document editing client of the second device and use this scan function to scan the QR code displayed on the first device. After the scanning is completed, the second device can send a device connection request to the server corresponding to the document editing client, and the device connection request carries the QR code scanned by the second device. Subsequently, the server forwards the device connection request to the first device, so that the first device receives the device connection request from the second device and parses the QR code from the device connection request. After that, when the first device determines that the parsed QR code is the same as the displayed QR code, it establishes a connection with the second device.
[0085] Similarly, in the case where the above verification code is a numeric code, the user on the second device side can operate the second device to input the numeric code. Here, the user on the second device side can open the numeric code input function on the document editing client of the second device and use this numeric code input function to input the numeric code. After the input is completed, the second device can send a device connection request to the server corresponding to the document editing client, and the device connection request carries the numeric code input on the second device side. Subsequently, the server forwards the device connection request to the first device, so that the first device receives the device connection request from the second device and parses the numeric code from the device connection request. After that, when the first device determines that the parsed numeric code is the same as the displayed numeric code, it establishes a connection with the second device.
[0086] Here, it should be added that in the above embodiments, the users on the first device and the second device side can be the same user or different users, and the embodiments of the present application do not limit this.
[0087] In one embodiment, the specific implementation of establishing a connection with a second device in response to a device connection request for the second device includes: receiving a device connection request from the second device and establishing a connection with the second device; wherein, when the second device establishes a near-field connection with the first device, it sends a device connection request to the first device.
[0088] Specifically, in an application, both the first device and the second device are built-in with near-field communication modules, and the near-field communication module can be a Bluetooth module, an NFC (Near Field Communication) module, etc. When the user controls the second device to approach the first device, or controls the first device to approach the second device, a near-field connection is established between the first device and the second device. At this time, based on the near-field connection between it and the first device, the second device sends a device connection request to the first device, and then the first device receives the device connection request from the second device and establishes a connection with the second device.
[0089] In one embodiment, the specific implementation of establishing a connection with a second device in response to a device connection request for the second device includes: receiving a device push request from a server, parsing the device identifier of the second device from the device push request, wherein the server sends a device push request to the first device in response to the login account on the second device and the login account on the first device meeting a set condition, and establishing a connection with the second device according to the device identifier of the second device. As can be seen from the above description, the first device and the second device can automatically establish a connection under the coordination of the server without user operation.
[0090] The above set condition is, for example, that the login account on the first device is the same as the login account on the second device, or the login account on the first device is related to the login account on the second device. Here, two or more login accounts being related means that two or more login accounts belong to the same group (or team), or two or more login accounts belong to the same collaboration space, that is, they have a collaboration relationship.
[0091] Specifically, in an application, the server can trigger the above connection process when detecting that a device is online, or periodically detect whether there are two or more devices among the online devices that can establish a connection and trigger the above connection process.
[0092] The above embodiments are merely exemplary explanations of the process of establishing a connection between the first device and the second device. In actual applications, there may be other device connection methods, and the embodiments of the present application do not limit this.
[0093] Step 302, obtain the document tags of at least one document on the second device and the browsing information of the document on the second device.
[0094] Step 303: In response to a selection operation on a document label, determine the document associated with the selected document label as the target document, open the target document, and adjust the target document to the corresponding document page according to the browsing information corresponding to the target document.
[0095] As can be seen from the descriptions of the above steps 302 and 303, the first device can obtain the document labels of at least one document on the second device and the browsing information of the document on the device. Here, the first device can display the document labels of at least one document on the second device obtained on the display interface. For example, Figure 4 FIG. is a schematic diagram of the first device displaying the document labels of at least one document on the second device. Figure 4 Only one second device connected to the first device is taken as an example. In applications, the first device can be connected to multiple second devices at the same time. In the case of connecting multiple second devices, Figure 4 the document labels of at least one document on each second device are simultaneously displayed on the shown interface. Additionally, optionally, Figure 4 the browsing information of the document (not shown in Figure 4 ) can also be displayed in the shown interface. For example, it can be displayed which page the document is currently browsed to on the second device, or which chapter, or which paragraph in the document, or which part of the picture in the document, so as to make the user experience more friendly.
[0096] Based on this, when the user wants to continue the document on the second device across devices to the first device, the first device can be triggered to open the target document associated with the selected document label on the second device by selecting the document label of the document on the second device on the first device side, and according to the browsing information of the target document on the second device, adjust the target document opened on the first device to the corresponding document page and adjust it to the focused document page content, so as to realize the seamless switching of the document on the second device to the first device. Here, the user can select one or more document labels, which means that the embodiments of the present application support the simultaneous seamless switching of one or more documents on the second device to the first device, so as to meet the multi-document reading and editing needs of the user and improve the user experience. Here, the focused document page content refers to the case where the user has browsed to a certain line or a certain place in the document, and taking that certain line or a certain place as the focused content and presenting it at the top or in the middle of the adjusted document page, so that the user can see it at a glance.
[0097] The above document labels may include but are not limited to: document type, document name, document ID, etc. Here, the document label can uniquely identify the document.
[0098] In one embodiment, the above browsing information includes the browsing progress. This can achieve Figure 2When the table document at the device 102 end shown in the figure is switched to be opened on the device 101, the browsing progress of the table document at the device 102 end is retained on the device 101.
[0099] In another embodiment, the above browsing information includes the browsing progress and the user operations for the browsing progress. This can achieve Figure 2 When the table document at the device 102 end shown in the figure is switched to be opened on the device 101, the browsing progress of the table document at the device 102 end is retained on the device 101, and at the same time, the selected state of the cell in the z-th column of the 100th row in the table document is retained.
[0100] In one embodiment, the above target document is an online document, that is to say, the target document is stored on the cloud service. Then the specific implementation of the first device to open the target document may include: the first device calls the browser to send a document loading request to the cloud service, where the document loading request carries the document label of the target document. After that, the cloud service responds to the document loading request, parses out the document label of the target document from it, and searches for the target document on the cloud service side according to the document label, and returns the target document to the first device. Then the first device loads the target document returned by the cloud service in response to the document loading request on the display interface of the browser.
[0101] In one embodiment, the above target document is a local document, that is to say, the target document is stored on the second device. Then the specific implementation of the first device to open the target document may include: the first device sends a document acquisition request to the second device through the connection between it and the second device, where the document acquisition request carries the document label of the target document. After that, the second device responds to the document acquisition request, parses out the document label of the target document from it, and then sends the target document to the first device through the connection between it and the first device. Then the first device opens the target document on the display interface.
[0102] The technical solution provided by the embodiments of the present application, by responding to the device connection request for the second device, establishing a connection with the second device, obtaining the document labels of at least one document on the second device and the browsing information of the document on the second device, responding to the selection operation for the document label, determining the document associated with the selected document label as the target document, opening the target document, and adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document, realizes cross-device continuation of documents, meets the user's need for cross-device continuous browsing or continuous editing of the same document, improves the user experience, and because the document label is used as a bridge to cross-device continue the document, so for online documents, the document can also be obtained through the document label, and then cross-device continuation can be performed.
[0103] In one embodiment, at least one document on the second device mentioned above includes the documents currently open on the second device. Correspondingly, the browsing information of the document on the second device includes the current browsing information of the document on the second device. Here, "currently open" means in an open state, and it is not limited to being in the front-end display state. For example, documents 1, 2, and 3 are currently open on the second device, and among them, document 2 is in the front-end display state. For example, a user on the second device side is editing document 2. At this time, at least one document on the second device mentioned above includes documents 1, 2, and 3. The first device will obtain the document tags and browsing information of documents 1, 2, and 3 respectively, and display the 3 document tags on the display interface. Then, the user on the first device side can arbitrarily select a target document from documents 1, 2, and 3 for cross-device document continuation. Here, it is further explained that the user on the first device side and the user on the second device side can be the same user or different users, and the embodiments of the present application do not limit this.
[0104] To facilitate the understanding of this embodiment, an exemplary application scenario is shown: When user A is working, in order to conveniently use two computers for work. Assume that user A first browses document 1 on computer 1, and then when user A browses to page 3 of document 1 on computer 1, the user needs to switch document 1 to computer 2 to continue browsing. Then, user A can control computer 2 to apply the document cross-device continuation method provided by the embodiments of the present application. First, establish a connection between computer 2 and computer 1, and then computer 2 obtains the document currently open on computer 1, that is, the document tag of document 1 and the current browsing progress of document 1 on computer 1, and displays the document tag of document 1 through an interface similar to Figure 4 the example shown. After that, user A can select the document tag of document 1 in the display interface of computer 1. In response to user A's selection operation on the document tag of document 1, computer 1 determines document 1 as the target document, then opens document 1 on its own display interface, and adjusts document 1 to page 3. Thus, it is realized that user A can seamlessly switch the currently open document 1 on computer 2 to computer 1 without interrupting user A's browsing experience of document 1.
[0105] In addition, after user A selects to switch document 1 from computer 2 to computer 1 to open, computer 2 can automatically close document 1, which can save user operations and thus improve the user experience.
[0106] In one embodiment, at least one document on the second device includes the documents opened on the second device within a set period of time recently. Here, the set period of time recently can be, for example, within the most recent week, within the most recent month, etc. The documents opened within the recent period of time include the documents currently opened on the second device and the documents that have been opened on the second device within the recent period of time. Correspondingly, the browsing information of the document on the second device includes the browsing information when the document was last opened on the second device.
[0107] To facilitate the understanding of this embodiment, an exemplary application scenario is shown: User A is currently using computer 2 for work, and used computer 1 for work in the previous week. Assume that during the process of using computer 1 for work, User A successively opened Document 1 (browsed to page 2), Document 2, Document 1 (browsed to page 5), Document 3, and Document 2. When User A needs to perform cross-device continuation of Document 1 on computer 2, User A can control computer 2 to apply the document cross-device continuation method provided in this embodiment of the application. First, establish a connection between computer 2 and computer 1, and then computer 2 obtains the document tags of the documents opened on computer 1 within the most recent week, namely Document 1, Document 2, and Document 3, and obtains the browsing information of Document 1, Document 2, and Document 3 respectively when they were last opened on computer 1, and displays the document tags and corresponding browsing information of Document 1, Document 2, and Document 3 respectively through an interface similar to Figure 4 the example shown. After that, User A can select the document tag of Document 1 in the display interface of computer 1. Computer 1 responds to the selection operation of the document tag of Document 1 by User A, determines Document 1 as the target document, then opens Document 1 on its own display interface and adjusts Document 1 to page 5 therein. Thus, it is realized that User A can seamlessly switch Document 1 opened on computer 2 within the recent period of time to computer 1, enabling User A to continue browsing Document 1 at the previous browsing progress and enhancing the user experience.
[0108] It can be known from the above embodiments that the document cross-device continuation method provided in this embodiment of the application can also perform cross-device continuation on the recently opened documents, is not limited to the currently opened documents, and thus can be applicable to more application scenarios and enhance the user experience.
[0109] In one embodiment, the documents on the second device include the documents currently opened on the second device that meet the set conditions, where the set condition is that the first device has at least the viewing permission for the document. Alternatively, the documents on the second device include the documents opened on the second device within the recent period of time that meet the above set conditions.
[0110] To facilitate the understanding of this embodiment, an exemplary application scenario is shown: User A uses computer 1 for work, and User B uses computer 2 for work. User B currently has Document 1 and Document 2 open on computer 2, where Document 1 is set to be visible only to User B himself / herself, and Document 2 is set to be visible to everyone. Assume that User B is currently proofreading Document 2 and needs to transfer Document 2 to User A to continue proofreading when reaching page 3 of it. Then, User A can control computer 1 to apply the document cross-device continuation method provided in this embodiment of the application. First, establish a connection between computer 1 and computer 2, and then computer 1 obtains the documents currently open on computer 2. At this time, since User A does not have the viewing permission for Document 1, computer 1 can only obtain the document label of Document 2 and the browsing information of Document 2 on computer 2 currently. After that, User A can select the document label of Document 2 in the display interface of computer 1. In response to User A's selection operation of the document label of Document 2, computer 1 determines Document 2 as the target document, then opens Document 2 on its own display interface, and adjusts Document 2 to page 3 so that User A can continue proofreading Document 2 based on the proofreading progress of User B on Document 2.
[0111] It can be seen that while the above embodiment realizes actual document cross-device continuation, it also retains the ability to set cross-device viewing permissions for documents, which can further expand the application scenarios of the technical solution of this embodiment of the application and better improve the user experience.
[0112] To achieve the same technical effect as the above embodiment, the application also provides another embodiment: Specifically, when the first device obtains the document label of a document on the second device, it does not distinguish whether the first device has the viewing permission for the document on the second device. That is to say, regardless of whether the first device has the viewing permission for the document on the second device, the first device can obtain the document label of the document on the second device. However, when the first device opens the target document, it determines whether the first device has the viewing permission for the target document. If it is determined that the first device has at least the viewing permission for the target document, then the target document is opened on the first device.
[0113] Thus, it can also achieve the ability to retain the setting of cross-device viewing permissions for documents, thereby further expanding the application scenarios of the technical solution of this embodiment of the application and better improving the user experience.
[0114] In one embodiment, when the above browsing information includes the browsing progress and the user operations for this browsing progress, adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document includes: adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document, and performing the user operations in the corresponding document page.
[0115] For example,Figure 2 As shown, the browsing progress of the table document includes the cell located at row 100 and column z. The user operation for this browsing progress includes selecting the cell at row 100 and column z. Then, when the table document on device 102 is switched to be opened on device 101, the table document on device 101 is adjusted to the document page where row 100 and column z are located, and the cell at row 100 and column z is selected, so as to retain the selected state of the cell at row 100 and column z on device 101.
[0116] Applying the above embodiment can not only realize the continuous browsing progress of the document across devices, but also retain the user operations across devices, which further enriches the application scenarios of the technical solution of this embodiment of the application and further improves the user experience.
[0117] In one embodiment, when the above browsing information includes the browsing progress and the user operation for this browsing progress, adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document includes: adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document, and performing the user operation on the target document.
[0118] The difference between this embodiment and the previous embodiment is that in the previous embodiment, the user operation is performed in the corresponding document page, while in this embodiment, the user operation is performed on the target document. This further fills the demand for continuous browsing of documents across devices in some application scenarios.
[0119] For example, when the user browses a document on the second device and triggers the document sharing operation. Usually, when triggering the document sharing operation, the user needs to select the sharee from the user list. However, due to the small screen size of the second device, the user list is not fully displayed, which affects the user's selection of the sharee. At this time, the interface state on the second device is that the user has clicked the share operation for the browsed document, and a window that requires the user to select the sharee is presented on the interface. Then the user can choose to switch the document to another first device with a larger screen size. When the document is switched to be opened on the first device, the document sharing operation will be performed on this document, that is, the window that requires the user to select the sharee presented on the interface of the second device is continued to the first device, and a window that requires the user to select the sharee is presented on the first device, so that the setting operation for the user to select and share is presented on the first device, and the user can select the sharee in the window of the first device to share the browsed document.
[0120] Thus, applying the above embodiment can also save the user operation, thereby further improving the user experience.
[0121] Based on any of the above embodiments, the specific implementation of adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document includes: adjusting the document page of the target document according to the document attributes of the target document and / or the device attributes of the first device, and for the adjusted target document, adjusting the target document to the corresponding document page according to the browsing information corresponding to the target document.
[0122] Specifically, the above-mentioned document attributes may include, for example, document format. The device attributes may include, for example, the interface size of the device display screen.
[0123] From the above Figure 1 shown system architecture, it can be known that the first device and the second device may be different types of devices, and the interface sizes of the display screens of different types of devices are likely to be different. For example, the interface sizes of the display screens of smartphones and computers vary greatly, which results in that when the same document is displayed on different devices, different display forms may be required to achieve better display effects. For example, the vertical screen display effect of the document on a smartphone is better, while the horizontal screen display effect on a computer is better. Therefore, when performing cross-device continuation of the document, the document page of the target document is adjusted according to the document attributes of the target document and / or the device attributes of the first device, and then for the adjusted target document, the target document is adjusted to the corresponding document page according to the browsing information corresponding to the target document.
[0124] Here, it should be further noted that due to the possible differences in the display forms of the same document on different types of devices and the differences in the interface sizes of the display screens of different types of devices, even seamless switching does not necessarily mean that the document contents displayed on the two devices are exactly the same, but at least part of them is the same to ensure the cross-device continuation effect of the document.
[0125] By adjusting the document page of the target document according to the document attributes of the target document and / or the device attributes of the first device when performing cross-device continuation of the target document, the above embodiments can enable the target document to have a better display effect after cross-device and avoid affecting the user experience.
[0126] In one embodiment, document A is the object to be continued. At this time, document A is browsed on the computer side to the tenth page of document A. There is a picture and ten paragraphs of text on the tenth page of document A. The picture is being clicked, so the content of the picture is being browsed. When document A is continued to a mobile terminal, such as a mobile phone, due to the intuitive display screen becoming smaller, when the text and picture are adjusted to fit on the interface of the mobile terminal, for a better display effect, the picture and text will be appropriately adjusted to a larger content page. At this time, only four paragraphs of the ten paragraphs of text may be retained and presented on the interface of the mobile terminal; the above is an explanation of one of the situations. If the document types are different, such as table documents, presentation documents, etc., then there will be different adjustments according to the document types. Secondly, if the document attributes are different, such as a table document set to be magnified, a presentation document being played, etc., after continuation, according to the different device attributes, there will be adjustments for the display effect.
[0127] Finally, in one embodiment, after the first device obtains the document tags of at least one document on the second device, it can also respond to a document closing operation for the document tags and control the second device to close the document corresponding to the document closing operation.
[0128] Among them, as an optional implementation, as Figure 2 shown, each document tag corresponds to a document closing icon (shown as × in the figure). When the user on the first device side wants to close a certain document, the document closing icon corresponding to the document tag of the document can be triggered, such as clicking on the document closing icon. The first device responds to the triggering operation for any document closing icon, determines that a document closing operation for the document tag is detected, and then responds to the document closing operation to control the second device to close the corresponding document. For example, the first device sends a document closing request to the second device through its connection with the second device. The document closing request carries the document tag. The second device receives the document closing request, parses out the document tag from it, and then closes the corresponding document according to the document tag.
[0129] It can be seen that applying the above embodiments can achieve cross-device document closing, which can save user operations and improve the user experience. For example, when the user is using their mobile phone and computer at the same time, the user can close the document opened on the other device on the computer or the mobile phone, without the user having to switch to operate the other device.
[0130] In addition, in one embodiment, it also supports closing all currently open documents on the second device with one key on the first device side. For example, a one-key close icon is included on the display interface of the first device. When the user wants to close all currently open documents on the second device, the one-key close icon is triggered. In response to the trigger operation for the one-key close icon, the first device determines that a document closing operation is detected, and then in response to this document closing operation, controls the second device to close all documents. It should be noted here that all currently open documents on the second device refer to documents whose document tags can be obtained by the first device.
[0131] It can be seen that applying the above embodiments can achieve one-key closing of documents across devices, which can save user operations and improve the user experience.
[0132] In addition, in actual applications, the technical concept proposed in any of the above embodiments can also be applied to scenarios such as web page cross-device continuation and application cross-device continuation.
[0133] In the scenario of web page cross-device continuation, similar to document cross-device continuation, for web pages opened on other devices, the labels of the web pages (such as web page titles) can be displayed on this device. By the user clicking on the label of the web page on this device, the web page can be opened on this device, and the web page can be adjusted to the corresponding page position according to the browsing progress of the web page on other devices.
[0134] For example, Figure 5 is an example diagram for the scenario of web page cross-device continuation. In the Figure 5 example, device D is respectively connected to device A, device B, and device C, and web page a is opened on device A, web page b is opened on device B, and web page c is opened on device C. Then, the web page titles of web page a, web page b, and web page c can be displayed on device D. Here, the web page title can also be associated with the web page address. When the user wants to perform cross-device continuation for web page a, the web page title of web page a can be triggered on device D. In response to the trigger operation for the web page title of web page a, device D obtains the web page address associated with the web page title, and obtains the browsing progress of web page a on device A. Then, the web page a is opened on this device through the obtained web page address, and the web page a is adjusted to the corresponding page position according to the obtained browsing progress.
[0135] In the scenario of application cross-device continuation, similar to document cross-device continuation, for applications opened on other devices, the labels of the applications (such as application names) can be displayed on this device. By the user clicking on the label of the application on this device, the application can be opened on this device. Here, if the application is not installed on this device, it can also automatically trigger the download and installation of the application, thereby achieving cross-device application continuation.
[0136] For example, Figure 6 is an example diagram for applying the cross-device connection scenario. In Figure 6 example, device A has established connections with device B, device C, and device D respectively, and application a is opened on device A. Then, the application name of application a can be displayed on device B, device C, and device D. When the user wants to perform cross-device connection for application a on device B, the user can trigger the application name of application a on device B. In response to the trigger operation on the application name of application a, device B launches application a, or in the case where application a is not installed on this device, it automatically triggers the download and installation of application a, and launches application a automatically after the installation is completed.
[0137] Here, device B can also obtain the usage progress of application a on device A, and then adjust application a to the corresponding application interface according to the usage progress.
[0138] Figure 7 is a block diagram of an embodiment of a document cross-device connection device provided by an embodiment of the present application. As Figure 7 shown, the device includes:
[0139] A device connection module 71, configured to establish a connection with the second device in response to a device connection request for the second device;
[0140] An information acquisition module 72, configured to acquire document tags of at least one document on the second device and browsing information of the document on the second device;
[0141] A document connection module 73, configured to determine a document associated with a selected document tag as a target document in response to a selection operation on the document tag, open the target document, and adjust the target document to a corresponding document page according to the browsing information corresponding to the target document.
[0142] In a possible implementation manner, at least one document on the second device includes a document currently opened on the second device, and the browsing information of the document on the second device includes the current browsing information of the document on the second device.
[0143] In a possible implementation manner, at least one document on the second device includes a document opened on the second device within a recent set time period, and the browsing information of the document on the second device includes the browsing information when the document was last opened on the second device.
[0144] In a possible implementation manner, the browsing information includes a browsing progress, or the browsing information includes a browsing progress and a user operation for the browsing progress.
[0145] In a possible implementation manner, the document continuation module 73 is specifically configured to:
[0146] Adjust the target document to the corresponding document page according to the browsing information corresponding to the target document, and perform the user operation on the corresponding document page;
[0147] Or, adjust the target document to the corresponding document page according to the browsing information corresponding to the target document, and perform the user operation on the target document.
[0148] In a possible implementation manner, the documents on the second device include the documents currently opened on the second device that meet the set conditions; wherein, the set condition is that the first device has at least the viewing permission for the documents;
[0149] Or, the documents on the second device include the documents opened on the second device within a recent period of time that meet the set conditions.
[0150] In a possible implementation manner, the device further includes:
[0151] A document closing module, configured to, after obtaining the document tags of at least one document on the second device, in response to a document closing operation on the document tags, control the second device to close the document corresponding to the document closing operation.
[0152] In a possible implementation manner, the document continuation module 73 is specifically configured to:
[0153] Open the target document when it is determined that the first device has at least the viewing permission for the target document.
[0154] In a possible implementation manner, the document continuation module 73 is specifically configured to:
[0155] Adjust the document page of the target document according to the document attributes of the target document and / or the device attributes of the first device;
[0156] For the adjusted target document, adjust the target document to the corresponding document page according to the browsing information corresponding to the target document.
[0157] As Figure 8 shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114,
[0158] The memory 113 is used for storing a computer program;
[0159] In one embodiment of the present application, when the processor 111 executes the program stored on the memory 113, it implements the document cross-device continuation method provided in any of the foregoing method embodiments, including:
[0160] Respond to a device connection request for a second device and establish a connection with the second device;
[0161] Obtain the document tags of at least one document on the second device and the browsing information of the document on the second device;
[0162] In response to a selection operation on the document tag, determine the document associated with the selected document tag as the target document, open the target document, and adjust the target document to the corresponding document page according to the browsing information corresponding to the target document.
[0163] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the document cross-device continuation method provided in any of the foregoing method embodiments.
[0164] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0165] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0166] It should be understood that the terms used herein are for the purpose of describing particular example embodiments only and are not intended to be limiting. Unless the context clearly dictates otherwise, the singular forms "a", "an", and "the" as used herein may also include the plural forms. The terms "comprising", "including", "containing", and "having" are inclusive and thus specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order described or illustrated, unless an execution order is explicitly stated. It should also be understood that additional or alternative steps may be used.
[0167] The foregoing are only specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for continuous connection of documents across devices, characterized in that, The method is applied to a first device, and the method includes: Responding to a device connection request for a second device, and establishing a connection with the second device; Obtaining document tags of at least one document on the second device and browsing information of the document on the second device; Responding to a selection operation on the document tag, determining the document associated with the selected document tag as a target document, opening the target document, and adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document.
2. The method according to claim 1, characterized in that, At least one document on the second device includes the documents currently opened on the second device, and the browsing information of the document on the second device includes the current browsing information of the document on the second device.
3. The method according to claim 1, characterized in that, At least one document on the second device includes the documents opened on the second device within a recent set period of time, and the browsing information of the document on the second device includes the browsing information when the document was last opened on the second device.
4. The method according to any one of claims 1 to 3, characterized in that, The browsing information includes a browsing progress, or the browsing information includes a browsing progress and a user operation on the browsing progress.
5. The method according to claim 4, characterized in that, The adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document includes: Adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document, and performing the user operation on the corresponding document page; Or, adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document, and performing the user operation on the target document.
6. The method according to claim 1, characterized in that, The documents on the second device include the documents currently opened on the second device that meet the set conditions; wherein, the set condition is that the first device has at least a viewing permission for the document; Or, the documents on the second device include the documents opened on the second device within a recent period of time that meet the set conditions.
7. The method according to claim 1, characterized in that, After obtaining the document tags of at least one document on the second device, the method further includes: Responding to a document closing operation on the document tag, controlling the second device to close the document corresponding to the document closing operation.
8. The method according to claim 1, characterized in that, The opening the target document includes: Opening the target document when it is determined that the first device has at least a viewing permission for the target document.
9. The method according to claim 1, characterized in that, The adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document includes: Adjusting the document page of the target document according to the document attributes of the target document and / or the device attributes of the first device; For the adjusted target document, adjusting the target document to a corresponding document page according to the browsing information corresponding to the target document.
10. A device for continuous connection of documents across devices, characterized in that, The apparatus is applied to a first device, and the apparatus includes: A device connection module, configured to respond to a device connection request for a second device and establish a connection with the second device; An information acquisition module, configured to obtain document tags of at least one document on the second device and browsing information of the document on the second device; A document connection module, configured to, in response to a selection operation on the document tag, determine the document associated with the selected document tag as a target document, open the target document, and adjust the target document to a corresponding document page according to the browsing information corresponding to the target document.
11. An electronic device, characterized in that, Comprising: A processor and a memory, where the processor is configured to execute a document cross-device connection program stored in the memory to implement the document cross-device connection method according to any one of claims 1 to 9.
12. A storage medium, characterized in that, The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the document cross-device connection method according to any one of claims 1 to 9.