WO2023082813A1 - Information sharing method and apparatus, electronic device and storage medium - Google Patents

Information sharing method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2023082813A1
WO2023082813A1 PCT/CN2022/117760 CN2022117760W WO2023082813A1 WO 2023082813 A1 WO2023082813 A1 WO 2023082813A1 CN 2022117760 W CN2022117760 W CN 2022117760W WO 2023082813 A1 WO2023082813 A1 WO 2023082813A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
application
content
electronic device
access entry
Prior art date
Application number
PCT/CN2022/117760
Other languages
French (fr)
Chinese (zh)
Inventor
罗升阳
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023082813A1 publication Critical patent/WO2023082813A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

Definitions

  • the present application relates to the field of computer technology, and in particular to an information sharing method, device, electronic equipment and storage medium.
  • the information sharing function of the electronic device is used to share the content of interest to the electronic device used by other users, so that other users can view the corresponding content through the electronic device used .
  • the efficiency of information sharing is low. For example, users cannot accurately and quickly share the information to be shared with other users through electronic devices.
  • the embodiments of the present application provide an information sharing method, device, electronic device, and storage medium, so as to solve the technical problem of low information sharing efficiency existing in related technologies.
  • An embodiment of the present application provides an information sharing method, which is applied to a first electronic device, and the method includes: generating a first information sequence; the first information sequence includes at least first information, second information, and third information; The first information represents the first content loaded by the first application in the first electronic device; the second information represents the loading state of the first content in the first application; the third information includes The application package name of the first application and related information of the access entry; sending the first information sequence to the second electronic device; wherein the second electronic device responds to the received first information sequence based on the The first information sequence is used to load the first content in the first application in the loading state.
  • the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type and/or or a second type; the first type represents a uniform resource locator (URL, uniform resource locator); the second type represents an installation package of the first application.
  • the type of access entry includes the first type and/or or a second type; the first type represents a uniform resource locator (URL, uniform resource locator); the second type represents an installation package of the first application.
  • URL uniform resource locator
  • the method before generating the first information sequence, the method further includes: acquiring the first information, the second information and the third information reported by the first application.
  • the method before generating the first information sequence, the method further includes: determining whether the second electronic device has an access entry of the first application through message interaction with the second electronic device; If the second electronic device does not have an access entry for the first application, the third information is generated.
  • the method before generating the first information sequence, further includes: generating the second information including the first mark and/or the second mark; wherein, the first mark is used to mark the first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second mark represents the position in the first electronic device Annotation information added to the first content in the first application.
  • the method before generating the first information sequence, the method further includes: generating the first information including at least the first content.
  • the first information further includes: a format of the first content; and/or, a length of the first content.
  • the format of the first content includes a Multipurpose Internet Mail Extensions (MIME, Multipurpose Internet Mail Extensions) type.
  • MIME Multipurpose Internet Mail Extensions
  • the first information sequence is characterized as a triplet composed of the first information, the second information and the third information.
  • An embodiment of the present application also provides an information sharing method applied to a second electronic device, the method comprising: receiving a first information sequence sent by the first electronic device; wherein the first information sequence includes at least the first information , second information, and third information; the first information represents the first content loaded by the first application in the first electronic device; the second information represents the first content in the first application Loading state; the third information includes the application package name of the first application and related information of the access entry; based on the first information sequence, the first content is loaded in the first application in the loading state.
  • the loading of the first content in the first application in the loading state includes: determining the application package name of the first application in the third information, and running the application based on the determined application package name the first application, and load the first content in the first application in the loading state; or, determine the relevant information of the access entry of the first application in the third information, based on the determined access entry The relevant information runs the first application, and loads the first content in the first application in the loading state.
  • the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type and/or or a second type; the first type represents a URL; the second type represents an installation package of the first application.
  • the running of the first application based on the determined relevant information of the access entry includes: when the determined access entry type is the first type, accessing the first application based on the URL; When the type is the second type, the first application is installed based on the installation package of the first application, and the installed first application is run.
  • the loading of the first content in the first application in the loading state includes: loading the first content in the first application based on the first mark and/or the second mark included in the second information.
  • the first content wherein, the first mark is used to mark a first position; the first position represents the part of the first content displayed in the application interface of the first application in the first content The location; the second mark represents the annotation information added to the first content in the first application of the first electronic device.
  • the first information includes at least the first content; the first information further includes: a format of the first content; and/or, a length of the first content.
  • the embodiment of the present application also provides an information sharing device, including: a first generating module, configured to generate a first information sequence; the first information sequence includes at least first information, second information, and third information; the The first information represents the first content loaded by the first application in the first electronic device; the second information represents the loading state of the first content in the first application; the third information includes the The application package name of the first application and related information of the access entry; a sending module, configured to send the first information sequence to the second electronic device, so that the second electronic device can obtain the information based on the first information sequence The loading state loads the first content in the first application.
  • a first generating module configured to generate a first information sequence
  • the first information sequence includes at least first information, second information, and third information
  • the first information represents the first content loaded by the first application in the first electronic device
  • the second information represents the loading state of the first content in the first application
  • the third information includes the The application package name of the first application and related information of the access entry
  • a sending module configured to send the first
  • the embodiment of the present application also provides an information sharing apparatus, including: a receiving module, configured to receive a first information sequence sent by a first electronic device; wherein, the first information sequence is generated by the first electronic device, at least Including first information, second information and third information; the first information represents the first content loaded by the first application in the first electronic device; the second information represents the first content loaded in the first electronic device A loading state in an application; the third information includes the application package name of the first application and information related to access entries; the loading module is configured to, based on the first information sequence, use the loading state in the first application Load the first content in .
  • a receiving module configured to receive a first information sequence sent by a first electronic device; wherein, the first information sequence is generated by the first electronic device, at least Including first information, second information and third information; the first information represents the first content loaded by the first application in the first electronic device; the second information represents the first content loaded in the first electronic device A loading state in an application; the third information includes the application package name of the first application and
  • the embodiment of the present application also provides an electronic device, including: a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, execute the above-mentioned Steps of the information sharing method applied to the first electronic device or the second electronic device.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above information sharing method applied to the first electronic device or the second electronic device is implemented. step.
  • the first electronic device generates a first information sequence including at least first information, second information, and third information; the first information represents the first information sequence loaded by the first application in the first electronic device. content; the second information represents the loading state of the first content in the first application; the third information includes the application package name of the first application and information about access entries; the first The information sequence is sent to the second electronic device; thus, the second electronic device can load the first content in the first application in the loading state based on the first information sequence.
  • the third information includes the application package name of the first application and related information about the access entry, therefore, the second The electronic device can access the first application based on the third information, and directly display the content displayed when the first electronic device shares information in the first application, without manually installing the first application, so that the information to be shared can be accurately and quickly Information is presented to other users via electronic devices.
  • FIG. 1 is a schematic diagram of an information sharing method provided by related technologies
  • FIG. 2 is an interactive diagram of an information sharing method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of an information sharing interface provided by an embodiment of the present application.
  • FIG. 4 is an interactive diagram of an information sharing method provided by an application embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an information sharing device provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an information sharing device provided by another embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware composition structure of an electronic device provided by an embodiment of the present application.
  • an electronic device mainly shares interested content with other electronic devices used by other users through the following two schemes:
  • Option 1 As shown in Figure 1, the electronic device uses the AirDrop function, based on Bluetooth technology or wireless fidelity (Wi-Fi, wireless fidelity) technology, to share the content of interest to nearby and support AirDrop function of other electronic equipment.
  • WiFi wireless fidelity
  • Solution 2 The user clicks a share button or a share icon included in a page loaded in the electronic device, triggering the electronic device to share the content of interest to electronic devices used by other users.
  • the purpose of information sharing is to allow the other party to view the corresponding content, and different content has different formats, and the content of different formats needs to be parsed by an application that supports the corresponding format before it can be presented to the user.
  • an electronic device receives a shared photo and detects a viewing instruction, it displays the photo through an application that supports the image format; when receiving a shared web page, video or document, it loads it through an application that supports the corresponding format, and Display from the beginning.
  • the content currently displayed by the electronic device may not be the information that the user wants to share, and it is also possible that none of the applications in the electronic device support the shared content, and it is necessary to manually install the corresponding application to view the shared content. Therefore, neither of the above two solutions can accurately and quickly present the information to be shared to other users through electronic devices.
  • an embodiment of the present application provides an information sharing method.
  • the first electronic device generates a first information sequence including at least first information, second information, and third information;
  • the second information represents the loading status of the first content in the first application;
  • the third information represents access information related to the first application;
  • the first information sequence is sent to the second electronic device; thus, the second electronic device can load the first content in the first application in the loading state based on the first information sequence. Since the loading state represented by the second information is the loading state corresponding to the part of the first content displayed when the first electronic device shares information, the second electronic device can directly display the corresponding information when the first electronic device shares information in the first application.
  • the displayed content does not need to manually install the first application, so that the information to be shared can be accurately and quickly presented to other users through the electronic device.
  • FIG. 2 is an interaction diagram of an information sharing method provided by an embodiment of the present application. As shown in Figure 2, information sharing methods include:
  • Step 201 The first electronic device generates a first information sequence; wherein, the first information sequence includes at least first information, second information and third information; the first information represents the first information in the first electronic device The first content loaded by the application; the second information indicates the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry.
  • the first user triggers the first electronic device to generate a sharing instruction during viewing part or all of the first content loaded by the first application in the first electronic device.
  • the first user can click the share button or share icon in the interactive interface of the first application, triggering the first electronic device to pop up the first interface, the first interface includes icons of messaging applications and/or at least one instant messaging application ;
  • the first user clicks the relevant icon displayed on the first interface, and selects the second user from the corresponding user list, so as to trigger the first electronic device to generate a sharing instruction.
  • the first content includes at least one of the following: web pages, photos, documents, and videos. Documents include word documents or PDF documents. Certainly, the first content may also be other types of content.
  • Instant messaging applications include WeChat, QQ, etc.
  • the first electronic device When the first electronic device detects the sharing instruction, it determines the first information based on the first content loaded by the first application, determines the second information based on the output content of the application interface of the first application, and determines the first application Corresponding third information: generating a first information sequence based on at least the first information, the second information and the third information.
  • the output content of the application interface of the first application includes at least part of the first content, and may also include annotation information added by the user to the displayed part of the first content.
  • the output content of the application interface of the first application includes at least part or all of the photo, and may also include annotation information added to the object in the photo, such as for circling Graphics of the subject being photographed.
  • the output content of the application interface of the first application includes at least some paragraphs in the document, and may also include annotation information added to the part of the paragraph; the annotation information may be represented as the selected part A mark of the first content, or a mark representing a highlighted part of the first content, or a mark representing a reading position and/or an editing position of the mark.
  • the editing position refers to the position of the edited content in the first content.
  • the loading state represented by the second information may include loading progress, and/or annotation information added to the loaded first content.
  • the loading progress represents the position of the part of the first content displayed in the application interface of the first application in the first content.
  • the loading progress may be the playing time, or the position of the currently played video frame among all the video frames included in the video.
  • the loading progress may be represented by the page number and line number corresponding to the currently displayed text content, or may be represented by the page number and paragraph corresponding to the currently displayed text content.
  • the first electronic device may be a terminal device such as a mobile phone, a tablet computer, a wearable device with a display screen, or a computer.
  • the first user is a user who wants to share information with other users.
  • the first application includes an application that needs to be downloaded and installed and a web application that can be used without downloading and installing. Web applications that can be used without downloading and installing include quick apps or applets. Quick apps are developed using front-end technology stacks and native rendering, and have the dual advantages of HTML 5 pages and native apps.
  • the generating the first information sequence includes: determining whether there is an access entry of the first application in the second electronic device through message interaction with the second electronic device; If there is no access entry of the first application in the second electronic device, the first information sequence is generated.
  • the first electronic device when it detects the sharing request, it sends a first request to the second electronic device, and the first request is used to query whether there is an access entry of the first application in the second electronic device;
  • the second electronic device returns a query result to the first electronic device based on the first request, and the first electronic device receives the query result returned by the second electronic device.
  • the third information includes the application package name of the first application and related information about the access entry.
  • the third information includes at least two access entry types and the access entry corresponding to each access entry type, the user can select one of the access entry types according to actual needs, and trigger the second electronic device to run the first access entry through the corresponding access entry. application.
  • the process of determining the first information, the second information and the third information may be to obtain the first information, the second information and the third information reported by the first application; it may also be determined based on the first content loaded by the first application The first information is obtained, the second information is determined based on the output content of the application interface of the first application, and the third information corresponding to the first application is determined.
  • the third information included in the first information sequence generated by the first electronic device may not include the access entry of the first application.
  • the relevant information of the access portal can reduce the amount of data transmission and improve the efficiency of data transmission.
  • the relevant information of the access entry includes: at least one type of access entry and each type of access entry in the at least one type of access entry A corresponding access entry; wherein, the access entry type includes a first type and/or a second type; the first type represents a URL; the second type represents an installation package of the first application.
  • the third information includes an application package name of the first application, at least one access entry type, and an access entry corresponding to each access entry type.
  • the character string URL can be used to identify the first type, and BINARY can be used to identify the second type.
  • the first electronic device may use at least three fields and corresponding field values to describe the third information.
  • the first field such as package-name, is used to write the application package name of the first application
  • the second field such as content-type, is used to write the access entry type
  • the third field such as content, is used to write the relevant information of the access entry data.
  • the field value of the second field is URL
  • the field value of the third field is a URL link
  • the field value of the second field is BINARY
  • the field value of the third field is a binary array corresponding to the installation package.
  • the first application that does not need to be installed corresponds to the first access entry type, and the first application is run through the URL address; the first application that needs to be installed may correspond to the first access entry type or the second access entry type, The user may select an access entry for running the first application according to actual needs.
  • the third information included in the first information sequence includes the access entry type corresponding to the first application and the access entry corresponding to the access entry type, thus, the second electronic device that receives the first information sequence can be based on
  • the third information in the first information sequence runs the first application, which does not require the second user to manually search for and install the first application, thereby reducing the time consumed by loading the first content through the first application, thereby improving information sharing efficiency.
  • the first information sequence is represented as a triple consisting of the first information, the second information and the third information.
  • first information, the second information, and the third information used to generate the first information sequence may be generated by the first electronic device, or may be reported by the first application.
  • the method further includes: acquiring the first information, the second information and the third information reported by the first application.
  • the first application collects the first information, the second information and the third information, and reports the collected first information , the second information and the third information, and reporting the collected first information, the second information and the third information to the operating system of the first electronic device.
  • the first electronic device acquires the first information, the second information and the third information reported by the first application.
  • the method before the first electronic device generates the first information sequence, the method further includes: the first electronic device generates the first information including at least the first content.
  • the first electronic device when the first electronic device detects the sharing instruction, it acquires the first content loaded by the first application running in the foreground, and generates at least the first content based on the acquired first content. the first message.
  • the first electronic device obtains the first content reported by the first application, and the first content represents a payload to be transmitted, which may be represented by Payload.
  • the first electronic device can generate the first information based on the content displayed on the display interface without waiting for the first application to report the first information, thereby improving the efficiency of generating the first information sequence.
  • the first information further includes: a format of the first content; and/or, a length of the first content.
  • the format of the first content is used for the second electronic device to parse the first content.
  • the format of the first content can be determined by the corresponding suffix name.
  • the length of the first content represents the size of the data volume of the first content, and is used for the second electronic device to judge whether the received first content is complete.
  • the first information includes the first content, the format of the first content, and the length of the first content; the first electronic device uses three fields and corresponding field values to describe the first content and the format of the first content respectively and the length of the first content.
  • the field corresponding to the format of the first content is content-type
  • the field corresponding to the length of the first content is content-length
  • the field corresponding to the first content is content.
  • the format of the first content includes Multipurpose Internet Mail Extensions (MIME, Multipurpose Internet Mail Extensions) type.
  • MIME Multipurpose Internet Mail Extensions
  • each MIME type is composed of two parts, the first is a large category of data, such as sound (audio), image (image), etc., and the latter defines a specific type.
  • common MIME types are as follows:
  • GIF graphic gif image/gif
  • AVI files avi video/x-msvideo.
  • the method before the first electronic device generates the first information sequence, the method further includes: the first electronic device generates /or the second information of the second mark; wherein, the first mark is used to mark a first position; the first position indicates that the part of the first content displayed in the application interface of the first application is in the The position in the first content; the second mark represents the annotation information added to the first content in the first application of the first electronic device.
  • the first electronic device when the first electronic device detects the sharing instruction, based on part of the first content displayed in the application interface of the first application, the first electronic device generates the first mark and/or the second mark.
  • Two information In actual application, the first electronic device determines the position of part of the first content displayed on the application interface of the first application in the first content, and generates a first mark; obtains the first user's first application on the first electronic device
  • the annotation information added for the first content in the method generates a second mark based on the obtained mark information; and generates the second information based on the generated first mark and/or the second mark.
  • the first electronic device may describe the first mark by using at least one field and a corresponding field value.
  • the first mark may be a page number, or may be a page number and a line number.
  • the application interface of the first application in the first electronic device outputs the content corresponding to page 5 in the document, and the user selects the content corresponding to line 10 in the content corresponding to page 5.
  • the content corresponding to line 10 generated by the first electronic device A token characterizes page 5, line 10 of a document.
  • the generated first markup is described as: PageNumber:5, LineNumber:10.
  • the method before the first electronic device generates the first information sequence, the method further includes: the first electronic device generates the first information sequence based on the application package name of the first application and information about the access entry Three information.
  • the first electronic device when it detects the sharing instruction, it obtains the application package name of the first application and the related information of the access entry, and based on the information about the application package name of the first application and the access entry, Generate third information.
  • the method of obtaining the application package name of the first application and the information related to the access entry may be as follows: the first electronic device obtains the information related to the application package name of the first application and the access entry through the operating system in the first electronic device, or Information related to the application package name and the access entry of the first application reported by the first application is obtained.
  • the third information is generated by the first electronic device, which can reduce the data processing amount of the first application.
  • Step 202 The first electronic device sends the first information sequence to the second electronic device; wherein, the second electronic device responds to the received first information sequence, based on the first information sequence, with the The loading state loads the first content in the first application.
  • the first electronic device when the first electronic device generates the first information sequence, it sends the generated first information sequence to the second electronic device.
  • the first electronic device if the sharing command carries the information of the second user, the first electronic device sends the first information sequence to the second electronic device used by the second user based on the information of the second user carried in the sharing command.
  • the second electronic device is an electronic device used by the second user.
  • the cloud accounts corresponding to the first electronic device and the second electronic device are different, and the cloud account is used for the electronic device to download the installation package.
  • the second electronic device may be a terminal device such as a mobile phone, a tablet computer, a wearable device with a display screen, or a computer.
  • the first information sequence is described in the format of JS Object Notation (JSON, JavaScript Object Notation), JSON is a lightweight data exchange format.
  • JSON JavaScript Object Notation
  • JSON is a lightweight data exchange format.
  • the first electronic device serializes the first information sequence to obtain the serialized first information sequence, and sends the serialized first information sequence to the second electronic device.
  • Step 203 The second electronic device receives the first information sequence sent by the first electronic device; wherein, the first information sequence includes at least first information, second information and third information; the first information represents the first information The first content loaded by a first application in an electronic device; the second information indicates the loading state of the first content in the first application; the third information includes the application package name and Information about the access portal.
  • Step 204 Based on the first information sequence, load the first content in the first application in the loading state.
  • the second electronic device parses the received first information sequence to obtain the first information, second information and third information included in the first information sequence; based on the first information included in the third information
  • the application package name of the application and the relevant information of the access entry run the first application, and analyze the first information through the first application to obtain the first content loaded by the first application in the first electronic device; through the first application, the second information Perform analysis to obtain the loading status of the first content in the first application; load the first content in the first application with the analyzed loading status, so that the content displayed on the application interface of the first application in the second electronic device is consistent with that of the first application
  • an electronic device performs information sharing the content displayed on the corresponding application interface is the same. For example, as shown in FIG.
  • the first electronic device when the first user views the content on page 10 of the first document on the first electronic device, the first electronic device is triggered to generate a sharing instruction, and the first electronic device follows steps 201 to 201 above. 202. Send the corresponding first information sequence to the second electronic device, and based on the received first information sequence, the second electronic device loads the content of page 10 of the first document in the first application, so that the second user can view Contents on page 10 of the first document.
  • the first information includes at least the first content; the first information further includes: a format of the first content; and/or, a length of the first content.
  • the second electronic device may determine whether the received first content is complete based on the length of the first content, and if the complete first content is received, use the first application to check the format of the first content. First the content is parsed and loaded. Since the second electronic device can directly obtain the format of the first content from the first information without analyzing the first content, the efficiency of parsing the first content can be improved.
  • the loading of the first content in the first application in the loading state includes: the second electronic device based on the first mark and/or the second mark included in the second information, The first content is loaded in the first application; wherein, the first mark is used to mark a first position; the first position indicates that the part of the first content displayed in the application interface of the first application is in the The location in the first content; the second mark represents the annotation information added to the first content in the first application of the first electronic device.
  • the second electronic device determines the position of the part of the first content to be displayed in the first content based on the first mark; The position of the displayed part of the first content in the first content is determined to determine the part of the first content that needs to be displayed in the application interface of the first application, and the determined part of the first content is loaded in the first application.
  • the part of the first content that the first user wants to share can be accurately presented to the second user through the second electronic device.
  • the second information includes the second mark
  • mark information is added to the loaded part of the first content based on the second mark.
  • the labeling information is superimposed and displayed on the part of the first content loaded by the first application.
  • the loading the first content in the first application in the loading state includes: determining the application package name of the first application in the third information, based on the determined application package Run the first application under the name of the first application, and load the first content in the first application in the loading state; or, determine the relevant information of the first application's access entry of the first application in the third information, Running the first application based on the determined relevant information of the access entry, and loading the first content in the first application in the loading state.
  • the second electronic device when it obtains the third information by parsing the first information sequence, it determines the application package name of the first application and the related information of the access entry of the first application in the third information. Based on the application package name of the first application, judge whether there is an access entry of the first application in the second electronic device, and obtain a judgment result; if the judgment result indicates that there is an access entry of the first application in the second electronic device, based on The determined application package name runs the first application, and loads the first content in the first application with the loading status represented by the second information.
  • the first application is run based on the relevant information of the access entry of the first application, and the loading state represented by the second information is displayed in the first application. Load the first content in .
  • the second electronic device can select an access entry according to actual conditions, so as to run the first application based on the selected access entry, thereby improving the flexibility of accessing the first application.
  • the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type And/or a second type; the first type represents a URL; the second type represents an installation package of the first application.
  • the running the first application based on the determined information about the access entry includes: when the determined access entry type is the first type, accessing the first application based on the URL; When the access entry type is the second type, the first application is installed based on the installation package of the first application, and the installed first application is run.
  • the second electronic device parses the third information through the first application to obtain a parsing result of the third information; the parsing result includes at least one type of access entry and the access information corresponding to each type of access entry Entrance.
  • the access entry type of the first application is the first type
  • the access entry of the first application is a URL link
  • the electronic device runs the first application based on the URL link.
  • the first application may be a small application or a quick application.
  • the access entry type of the first application is the second type
  • the access entry of the first application is an installation package
  • the second electronic device installs the first application based on the installation package in the third information, and after the installation of the first application is completed, run first application.
  • the second electronic device can run the first application based on the URL link or the installation package.
  • the second electronic device can run the first application based on the URL link or the installation package in the third information, there is no need to manually search for and download the installation package of the first application, so the loading efficiency of the first content can be improved.
  • the first electronic device generates a first information sequence including at least first information, second information, and third information, and sends the generated first information sequence to the second electronic device; the second electronic device In the case of receiving the first information sequence, access the first application based on the third information in the received first information sequence, and load the first application in the loading status represented by the second information in the first information sequence first content. Therefore, the second electronic device can directly display the content displayed on the corresponding application interface when the first electronic device shares information in the first application, and does not need to manually install the first application, so that the information to be shared can be accurately and quickly Presented to other users through electronic devices.
  • the first electronic device In the process of reading the content of the PDF file through the first application of the first electronic device, user A finds that the content in lines 10 to 15 on page 5 is interesting, and user A wants to share this part of content with user B. At this time, the first electronic device currently displays the contents of lines 1 to 25 on page 5 of the PDF file. User A can select the contents of lines 10 to 15 on page 5 from the displayed content, and click the first application
  • the information sharing icon in the application interface triggers the first electronic device to pop up a first interface including at least one application icon. User A clicks the application icon on the first interface, selects user B from the corresponding user list, and triggers the first electronic device to generate a sharing instruction.
  • the first electronic device When the first electronic device detects the sharing instruction, it generates first information based on the PDF file loaded by the first application; based on the contents of lines 1 to 25 on page 5 in the PDF file loaded by the first application, and Select the content in lines 10 to 15 on page 5 to generate second information, and generate third information based on the application package name and access entry related information of the first application. Alternatively, the first electronic device acquires the first information, the second information, and the third information reported by the first application. When the first electronic device obtains the first information, the second information and the third information, it generates the first information sequence based on the first information, the second information and the third information; serializes the first information sequence to obtain The serialized first information sequence, sending the serialized first information sequence to the second electronic device.
  • the second information includes the first mark and the second mark
  • the first mark represents the 1st to 25th lines in the PDF file
  • the second mark represents the selected line 5 on pages 10 to 15.
  • the generated first tag is described as: PageNumber: 5, LineNumber: 10-15.
  • the second electronic device receives the serialized first information sequence sent by the first electronic device, and may display a summary of the first information sequence in a chat interface with user A. User B can click on the message summary to trigger a viewing instruction.
  • the second electronic device detects the viewing instruction, it deserializes the received serialized first information sequence to obtain the first information, second information, and third information included in the first information sequence .
  • the second electronic device judges whether there is an access entry of the first application in the second electronic device, and obtains a judgment result.
  • the application package name of the first application is determined in the third information, and the first application is run based on the determined application package name. If the judgment result indicates that there is no access entry of the first application in the second electronic device, at least one type of access entry of the first application and an access entry corresponding to each type of access entry are determined in the third information, Running the first application based on the determined access entry.
  • the PDF file is obtained by analyzing the first information through the running first application, and the second information is analyzed through the first application to obtain the loading status of the PDF file in the first application; based on the loading status of the PDF file in the first application Load the PDF file in the first application, so that the second electronic device directly displays the contents of lines 1 to 25 on page 5 of the PDF file on the application interface of the first application, and select pages 10 to 15 on page 5 of the PDF file the content of the row.
  • the second electronic device directly displays the contents of lines 1 to 25 on page 5 of the PDF file in the first application, instead of starting from the first line of the first page of the PDF file, user B can The content of lines 10 to 15 on page 5 of the PDF file can be directly viewed on the device, which improves the accuracy of information sharing; since user B does not need to manually download the installation package of the first application in this solution, it improves the efficiency of passing the first application.
  • the efficiency of loading the first content can improve the efficiency of information sharing.
  • FIG. 4 is an interaction diagram of an information sharing method provided by an application embodiment of the present application. As shown in Figure 4, information sharing methods include:
  • Step 401 The first electronic device generates a first information sequence based on the first information, the second information and the third information; wherein the first information represents the first content loaded by the first application in the first electronic device; The second information represents the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry.
  • the first information sequence is a triplet composed of the first information, the second information and the third information.
  • first information, the second information and the third information may be reported to the first electronic device by the first application, or may be generated by the first electronic device.
  • the first information can be described by the following three "key-value":
  • content-type represents the format of the first content
  • content-length represents the length of the first content
  • value Payload corresponding to the content represents the first content
  • the second information can be described by at least one "key-value": name1:value1, name2:value2.
  • the second information includes the first mark and/or the second mark.
  • the first mark is used to mark a first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second The mark represents the annotation information added to the first content in the first application of the first electronic device.
  • the third information is generated in the following manner: through message interaction with the second electronic device, it is determined whether there is an access entry of the first application in the second electronic device; there is a first application in the second electronic device In the case of the access entry of the first application, the third information including the application package name of the first application is generated; name, at least one access entry type, and an access entry corresponding to each access entry type in the at least one access entry type, to generate third information.
  • the third information can be described by the following three "key-value":
  • package-name represents the application package name of the first application
  • content-type represents the access mode of the first application
  • content represents the access entry corresponding to the access mode of the first application.
  • Step 402 the first electronic device sends the serialized first information sequence to the second electronic device.
  • the first electronic device serializes the first information sequence to obtain the serialized first information sequence, and sends the serialized first information sequence to the second electronic device.
  • Step 403 The second electronic device receives the serialized first information sequence sent by the first electronic device.
  • Step 404 The second electronic device deserializes the received first information sequence to obtain the first information, second information and third information.
  • Step 405 If there is an access entry of the first application in the second electronic device, determine the application package name of the first application in the third information, run the first application based on the determined application package name, and use The loading status of the second information representation loads the first content represented by the first information in the first application.
  • Step 406 When the second electronic device does not have the access entry of the first application, determine at least one access entry type of the first application and each of the at least one access entry type in the third information.
  • the access entry corresponding to the access entry type executes the first application based on the determined access entry, and loads the first content represented by the first information in the first application in the loading state represented by the second information.
  • the embodiment of the present application further provides an information sharing device, as shown in FIG. 5 , the information sharing device includes:
  • the first generation module 51 is configured to generate a first information sequence; the first information sequence includes at least first information, second information and third information; the first information represents a first application in the first electronic device The loaded first content; the second information indicates the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry;
  • a sending module 52 configured to send the first information sequence to a second electronic device, so that the second electronic device loads the first application in the first application in the loading state based on the first information sequence. Describe the first content.
  • the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type And/or a second type; the first type represents a Uniform Resource Locator URL; the second type represents an installation package of the first application.
  • the information sharing apparatus further includes: an acquiring module, configured to acquire the first information, the second information, and the third information reported by the first application.
  • the first generating module 51 is specifically configured to: determine whether there is an access entry of the first application in the second electronic device through message interaction with the second electronic device; If there is no access entry of the first application in the second electronic device, the first information sequence is generated.
  • the information sharing device further includes: a second generation module, configured to generate the second information including the first mark and/or the second mark; wherein, the first mark is used to mark the first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second mark represents the position in the first electronic device Annotation information added to the first content in the first application.
  • a second generation module configured to generate the second information including the first mark and/or the second mark
  • the first mark is used to mark the first position
  • the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content
  • the second mark represents the position in the first electronic device Annotation information added to the first content in the first application.
  • the information sharing apparatus further includes: a third generating module, configured to generate the first information including at least the first content.
  • the first information further includes: a format of the first content; and/or, a length of the first content.
  • the format of the first content includes a Multipurpose Internet Mail Extensions MIME type.
  • the first information sequence is characterized as a triplet consisting of the first information, the second information and the third information.
  • the above-mentioned modules can be passed through the processor in the terminal, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) or can Programmable Gate Array (FPGA, Field-Programmable Gate Array) and other implementations, or jointly implemented by a processor and a communication interface.
  • a central processing unit CPU, Central Processing Unit
  • DSP Digital Signal Processor
  • MCU Microcontroller Unit
  • FPGA Field-Programmable Gate Array
  • the information sharing device provided by the above-mentioned embodiment performs information sharing
  • the division of the above-mentioned program modules is used as an example for illustration.
  • the above-mentioned processing allocation can be completed by different program modules according to needs. That is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above.
  • the information sharing device and the information sharing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
  • the embodiment of the present application further provides an information sharing device, as shown in FIG. 6 , the information sharing device includes:
  • the receiving module 61 is configured to receive a first information sequence sent by the first electronic device; wherein, the first information sequence includes at least first information, second information and third information; the first information represents the first The first content loaded by the first application in the electronic device; the second information indicates the loading state of the first content in the first application; the third information includes the application package name and access Information about the entrance;
  • the loading module 62 is configured to load the first content in the first application in the loading state based on the first information sequence.
  • the loading module 62 is specifically configured to: determine the application package name of the first application in the third information, run the first application based on the determined application package name, and use the loading status at the second Load the first content in an application; or, determine the relevant information of the access entry of the first application in the third information, run the first application based on the determined relevant information of the access entry, and use the loaded The state loads the first content in a first application.
  • the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type And/or a second type; the first type represents a Uniform Resource Locator URL; the second type represents an installation package of the first application.
  • the loading module 62 is specifically configured to: when the determined access entry type is the first type, access the first application based on the URL; when the determined access entry type is the second type, Installing the first application based on the installation package of the first application, and running the installed first application.
  • the loading module 62 is specifically configured to: load the first content in the first application based on the first mark and/or the second mark included in the second information; wherein, the first The mark is used to mark a first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second mark represents the position in the first application Annotation information added to the first content in the first application of the first electronic device.
  • the first information includes at least the first content; the first information further includes: a format of the first content; and/or, a length of the first content.
  • the loading module 62 can be processed by a processor in the terminal, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) or can Programmable Gate Array (FPGA, Field-Programmable Gate Array) and other implementations, the receiving module 61 can be implemented jointly by a processor and a communication interface.
  • a processor such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) or can Programmable Gate Array (FPGA, Field-Programmable Gate Array) and other implementations
  • the receiving module 61 can be implemented jointly by a processor and a communication interface.
  • the information sharing device provided by the above-mentioned embodiment performs information sharing
  • the division of the above-mentioned program modules is used as an example for illustration.
  • the above-mentioned processing allocation can be completed by different program modules according to needs. That is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above.
  • the information sharing device and the information sharing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
  • FIG. 7 is a schematic diagram of the hardware composition structure of the electronic device provided by the embodiment of the present application. As shown in FIG. 7, the electronic device 7 includes:
  • Communication interface 71 capable of information exchange with other devices such as network devices;
  • the processor 72 is connected to the communication interface 71 to realize information interaction with other devices, and is used to execute the information sharing method provided by the above-mentioned one or more technical solutions applied to the first electronic device when running the computer program, or Execute the information sharing method provided by the above-mentioned one or more technical solutions applied to the second electronic device. Instead, the computer program is stored on the memory 73 .
  • bus system 74 various components in the electronic device 7 are coupled together through the bus system 74 . It can be understood that the bus system 74 is used to realize connection and communication between these components. In addition to the data bus, the bus system 74 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 74 in FIG.
  • the memory 73 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 7 .
  • Examples of such data include: any computer program for operating on the electronic device 7 .
  • the memory 73 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories.
  • the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage.
  • the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • RAM Random Access Memory
  • many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory ).
  • the memory 73 described in the embodiment of the present application is intended to include but not limited to these and any other suitable types of memory.
  • the methods disclosed in the foregoing embodiments of the present application may be applied to the processor 72 or implemented by the processor 72 .
  • the processor 72 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 72 or an instruction in the form of software.
  • the aforementioned processor 72 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor 72 may implement or execute various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 73, and the processor 72 reads the program in the memory 73, and combines with its hardware to complete the steps of the foregoing method.
  • the processor 72 executes the program, it implements a corresponding process implemented by the terminal in each method of the embodiment of the present application, and details are not repeated here for the sake of brevity.
  • the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 73 storing a computer program, and the above-mentioned computer program can be processed by the terminal
  • the device 72 is executed to complete the steps described in the foregoing method.
  • the computer-readable storage medium can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the Including the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc.
  • ROM read-only memory
  • RAM Random Access Memory
  • magnetic disk or an optical disk etc.
  • the term "and/or" in the embodiments of the present application is only an association relationship describing associated objects, which means that there may be three kinds of relationships, for example, A and/or B, which may mean that A exists alone , both A and B exist, and B exists alone.
  • the term "at least one" herein means any combination of any one or more of at least two of a plurality, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application provides an information sharing method and apparatus, an electronic device and a storage medium. The method comprises: generating a first information sequence, wherein the first information sequence comprises at least first information, second information and third information, the first information represents a first content loaded by a first application in the first electronic device, the second information represents the loading state of the first content in the first application, and the third information comprises an application package name of the first application and related information of an access entry; and sending the first information sequence to a second electronic device, wherein in response to the received first information sequence, the second electronic device loads the first content in the first application in the loading state on the basis of the first information sequence.

Description

信息分享方法、装置、电子设备及存储介质Information sharing method, device, electronic device and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202111346614.1、申请日为2021年11月15日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以全文引入的方式引入本申请。This application is based on a Chinese patent application with application number 202111346614.1 and a filing date of November 15, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated into this application in its entirety .
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种信息分享方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, and in particular to an information sharing method, device, electronic equipment and storage medium.
背景技术Background technique
用户在通过电子设备查看到感兴趣的内容时,通过电子设备的信息分享功能,将感兴趣的内容分享至其他用户使用的电子设备,这样,其他用户便可通过使用的电子设备查看对应的内容。然而,在相关技术中,信息分享的效率低。例如,用户无法精确、快速地将要分享的信息通过电子设备分享给其他用户。When the user views the content of interest through the electronic device, the information sharing function of the electronic device is used to share the content of interest to the electronic device used by other users, so that other users can view the corresponding content through the electronic device used . However, in the related art, the efficiency of information sharing is low. For example, users cannot accurately and quickly share the information to be shared with other users through electronic devices.
发明内容Contents of the invention
有鉴于此,本申请实施例提供一种信息分享方法、装置、电子设备及存储介质,以解决相关技术中存在的信息分享效率低的技术问题。In view of this, the embodiments of the present application provide an information sharing method, device, electronic device, and storage medium, so as to solve the technical problem of low information sharing efficiency existing in related technologies.
为达到上述目的,本申请的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present application is achieved in this way:
本申请实施例提供了一种信息分享方法,应用于第一电子设备,所述方法包括:生成第一信息序列;所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;将所述第一信息序列发送至第二电子设备;其中,所述第二电子设备响应于接收的所述第一信息序列,基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。An embodiment of the present application provides an information sharing method, which is applied to a first electronic device, and the method includes: generating a first information sequence; the first information sequence includes at least first information, second information, and third information; The first information represents the first content loaded by the first application in the first electronic device; the second information represents the loading state of the first content in the first application; the third information includes The application package name of the first application and related information of the access entry; sending the first information sequence to the second electronic device; wherein the second electronic device responds to the received first information sequence based on the The first information sequence is used to load the first content in the first application in the loading state.
上述方案中,所述访问入口的相关信息包括:至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,访问入口类型包括第一类型和/或第二类型;所述第一类型表征统一资源定位符(URL,uniform resource locator);所述第二类型表征所述第一应用的安装包。In the above solution, the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type and/or or a second type; the first type represents a uniform resource locator (URL, uniform resource locator); the second type represents an installation package of the first application.
上述方案中,在所述生成第一信息序列之前,所述方法还包括:获取第一应用上报的所述第一信息、所述第二信息和所述第三信息。In the above solution, before generating the first information sequence, the method further includes: acquiring the first information, the second information and the third information reported by the first application.
上述方案中,在所述生成第一信息序列之前,所述方法还包括:通过与所述第二电子设备进行消息交互,确定所述第二电子设备是否存在所述第一应用 的访问入口;在所述第二电子设备不存在所述第一应用的访问入口的情况下,生成所述第三信息。In the above solution, before generating the first information sequence, the method further includes: determining whether the second electronic device has an access entry of the first application through message interaction with the second electronic device; If the second electronic device does not have an access entry for the first application, the third information is generated.
上述方案中,在所述生成第一信息序列之前,所述方法还包括:生成包括第一标记和/或第二标记的所述第二信息;其中,所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在第一应用的应用界面中的部分在所述第一内容中所处的位置;所述第二标记表征在所述第一电子设备的第一应用中为所述第一内容添加的标注信息。In the above solution, before generating the first information sequence, the method further includes: generating the second information including the first mark and/or the second mark; wherein, the first mark is used to mark the first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second mark represents the position in the first electronic device Annotation information added to the first content in the first application.
上述方案中,在所述生成第一信息序列之前,所述方法还包括:生成至少包括所述第一内容的所述第一信息。In the solution above, before generating the first information sequence, the method further includes: generating the first information including at least the first content.
上述方案中,所述第一信息还包括:所述第一内容的格式;和/或,所述第一内容的长度。In the above solution, the first information further includes: a format of the first content; and/or, a length of the first content.
上述方案中,所述第一内容的格式包括多用途互联网邮件扩展(MIME,Multipurpose Internet Mail Extensions)类型。In the above solution, the format of the first content includes a Multipurpose Internet Mail Extensions (MIME, Multipurpose Internet Mail Extensions) type.
上述方案中,所述第一信息序列表征为由所述第一信息、所述第二信息和所述第三信息构成的三元组。In the above solution, the first information sequence is characterized as a triplet composed of the first information, the second information and the third information.
本申请实施例还提供了一种信息分享方法,应用于第二电子设备,所述方法包括:接收第一电子设备发送的第一信息序列;其中,所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;基于所述第一信息序列,以所述加载状态在第一应用中加载所述第一内容。An embodiment of the present application also provides an information sharing method applied to a second electronic device, the method comprising: receiving a first information sequence sent by the first electronic device; wherein the first information sequence includes at least the first information , second information, and third information; the first information represents the first content loaded by the first application in the first electronic device; the second information represents the first content in the first application Loading state; the third information includes the application package name of the first application and related information of the access entry; based on the first information sequence, the first content is loaded in the first application in the loading state.
上述方案中,所述以所述加载状态在第一应用中加载所述第一内容,包括:在所述第三信息中确定出第一应用的应用包名,基于确定出的应用包名运行第一应用,并以所述加载状态在第一应用中加载所述第一内容;或者,在所述第三信息中确定出第一应用的访问入口的相关信息,基于确定出的访问入口的相关信息运行第一应用,并以所述加载状态在第一应用中加载所述第一内容。In the above solution, the loading of the first content in the first application in the loading state includes: determining the application package name of the first application in the third information, and running the application based on the determined application package name the first application, and load the first content in the first application in the loading state; or, determine the relevant information of the access entry of the first application in the third information, based on the determined access entry The relevant information runs the first application, and loads the first content in the first application in the loading state.
上述方案中,所述访问入口的相关信息包括:至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,访问入口类型包括第一类型和/或第二类型;所述第一类型表征URL;所述第二类型表征所述第一应用的安装包。In the above solution, the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type and/or or a second type; the first type represents a URL; the second type represents an installation package of the first application.
上述方案中,所述基于确定出的访问入口的相关信息运行第一应用,包括:在确定出的访问入口类型为第一类型的情况下,基于URL访问第一应用;在确定出的访问入口类型为第二类型的情况下,基于第一应用的安装包安装第一应用,以及运行安装的第一应用。In the above solution, the running of the first application based on the determined relevant information of the access entry includes: when the determined access entry type is the first type, accessing the first application based on the URL; When the type is the second type, the first application is installed based on the installation package of the first application, and the installed first application is run.
上述方案中,所述以所述加载状态在第一应用中加载所述第一内容,包括:基于所述第二信息中包括的第一标记和/或第二标记,在第一应用中加载所述第一内容;其中,所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在第一应用的应用界面中的部分在所述第一内容中的所处位置;所述第二标记表征在所述第一电子设备的第一应用中为所述第一内容添加的标注信 息。In the above solution, the loading of the first content in the first application in the loading state includes: loading the first content in the first application based on the first mark and/or the second mark included in the second information. The first content; wherein, the first mark is used to mark a first position; the first position represents the part of the first content displayed in the application interface of the first application in the first content The location; the second mark represents the annotation information added to the first content in the first application of the first electronic device.
上述方案中,所述第一信息至少包括所述第一内容;所述第一信息还包括:所述第一内容的格式;和/或,所述第一内容的长度。In the above solution, the first information includes at least the first content; the first information further includes: a format of the first content; and/or, a length of the first content.
本申请实施例还提供了一种信息分享装置,包括:第一生成模块,用于生成第一信息序列;所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;发送模块,用于将所述第一信息序列发送至第二电子设备,以使所述第二电子设备基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。The embodiment of the present application also provides an information sharing device, including: a first generating module, configured to generate a first information sequence; the first information sequence includes at least first information, second information, and third information; the The first information represents the first content loaded by the first application in the first electronic device; the second information represents the loading state of the first content in the first application; the third information includes the The application package name of the first application and related information of the access entry; a sending module, configured to send the first information sequence to the second electronic device, so that the second electronic device can obtain the information based on the first information sequence The loading state loads the first content in the first application.
本申请实施例还提供了一种信息分享装置,包括:接收模块,用于接收第一电子设备发送的第一信息序列;其中,所述第一信息序列由所述第一电子设备生成,至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;加载模块,用于基于所述第一信息序列,以所述加载状态在第一应用中加载所述第一内容。The embodiment of the present application also provides an information sharing apparatus, including: a receiving module, configured to receive a first information sequence sent by a first electronic device; wherein, the first information sequence is generated by the first electronic device, at least Including first information, second information and third information; the first information represents the first content loaded by the first application in the first electronic device; the second information represents the first content loaded in the first electronic device A loading state in an application; the third information includes the application package name of the first application and information related to access entries; the loading module is configured to, based on the first information sequence, use the loading state in the first application Load the first content in .
本申请实施例还提供了一种电子设备,包括:处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上述应用于第一电子设备或第二电子设备的信息分享方法的步骤。The embodiment of the present application also provides an electronic device, including: a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, execute the above-mentioned Steps of the information sharing method applied to the first electronic device or the second electronic device.
本申请实施例还提供了一种计算机可读的存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述应用于第一电子设备或第二电子设备的信息分享方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above information sharing method applied to the first electronic device or the second electronic device is implemented. step.
本申请实施例中,第一电子设备生成至少包括第一信息、第二信息和第三信息的第一信息序列;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;将所述第一信息序列发送至第二电子设备;如此,所述第二电子设备可以基于所述第一信息序列,以所述加载状态在第一应用中加载所述第一内容。由于第二信息表征的加载状态是第一电子设备进行信息分享时显示的部分第一内容的加载状态,第三信息包括所述第一应用的应用包名和访问入口的相关信息,因此,第二电子设备可以基于第三信息访问第一应用,并在第一应用中直接显示第一电子设备分享信息时对应显示的内容,不需要手动安装第一应用,由此可以精确、快速地将要分享的信息通过电子设备呈现给其他用户。In this embodiment of the present application, the first electronic device generates a first information sequence including at least first information, second information, and third information; the first information represents the first information sequence loaded by the first application in the first electronic device. content; the second information represents the loading state of the first content in the first application; the third information includes the application package name of the first application and information about access entries; the first The information sequence is sent to the second electronic device; thus, the second electronic device can load the first content in the first application in the loading state based on the first information sequence. Since the loading state represented by the second information is the loading state of part of the first content displayed when the first electronic device performs information sharing, the third information includes the application package name of the first application and related information about the access entry, therefore, the second The electronic device can access the first application based on the third information, and directly display the content displayed when the first electronic device shares information in the first application, without manually installing the first application, so that the information to be shared can be accurately and quickly Information is presented to other users via electronic devices.
附图说明Description of drawings
图1为相关技术提供的一种信息分享方法的示意图;FIG. 1 is a schematic diagram of an information sharing method provided by related technologies;
图2为本申请实施例提供的一种信息分享方法的交互图;FIG. 2 is an interactive diagram of an information sharing method provided by an embodiment of the present application;
图3为本申请实施例提供的信息分享界面的示意图;FIG. 3 is a schematic diagram of an information sharing interface provided by an embodiment of the present application;
图4为本申请应用实施例提供的一种信息分享方法的交互图;FIG. 4 is an interactive diagram of an information sharing method provided by an application embodiment of the present application;
图5为本申请实施例提供的一种信息分享装置的结构示意图;FIG. 5 is a schematic structural diagram of an information sharing device provided in an embodiment of the present application;
图6为本申请另一实施例提供的一种信息分享装置的结构示意图;FIG. 6 is a schematic structural diagram of an information sharing device provided by another embodiment of the present application;
图7为本申请实施例提供的一种电子设备的硬件组成结构示意图。FIG. 7 is a schematic diagram of a hardware composition structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
相关技术中,电子设备主要通过以下两种方案将感兴趣的内容分享至其他用户使用的电子设备:In related technologies, an electronic device mainly shares interested content with other electronic devices used by other users through the following two schemes:
方案一:如图1所示,电子设备通过隔空投送(AirDrop)功能,基于蓝牙技术或、无线保真(Wi-Fi,wireless fidelity)技术,将感兴趣的内容分享至附近支持隔空投送功能的其他电子设备。Option 1: As shown in Figure 1, the electronic device uses the AirDrop function, based on Bluetooth technology or wireless fidelity (Wi-Fi, wireless fidelity) technology, to share the content of interest to nearby and support AirDrop function of other electronic equipment.
方案二:用户点击电子设备中加载的页面包括的分享按钮或分享图标,触发该电子设备将感兴趣的内容分享至其他用户使用的电子设备。Solution 2: The user clicks a share button or a share icon included in a page loaded in the electronic device, triggering the electronic device to share the content of interest to electronic devices used by other users.
信息分享的目的是让对方能够查看对应的内容,而不同的内容具有不同的格式,不同格式的内容需要通过支持对应格式的应用进行解析后才能呈现给用户。例如,电子设备在接收到分享的照片,并检测到查看指令时,通过支持图片格式的应用显示该照片;在接收到分享的网页、视频或文档时,通过支持对应格式的应用进行加载,并从开始的部分进行显示。但是,电子设备当前显示的内容可能不是用户想要分享的信息,也有可能电子设备中的应用均不支持分享的内容,需要手动安装相应的应用程序才能查看分享的内容。因此,上述两种方案均无法精确、快速地将要分享的信息通过电子设备呈现给其他用户。The purpose of information sharing is to allow the other party to view the corresponding content, and different content has different formats, and the content of different formats needs to be parsed by an application that supports the corresponding format before it can be presented to the user. For example, when an electronic device receives a shared photo and detects a viewing instruction, it displays the photo through an application that supports the image format; when receiving a shared web page, video or document, it loads it through an application that supports the corresponding format, and Display from the beginning. However, the content currently displayed by the electronic device may not be the information that the user wants to share, and it is also possible that none of the applications in the electronic device support the shared content, and it is necessary to manually install the corresponding application to view the shared content. Therefore, neither of the above two solutions can accurately and quickly present the information to be shared to other users through electronic devices.
基于此,本申请实施例提供了一种信息分享方法,第一电子设备生成至少包括第一信息、第二信息和第三信息的第一信息序列;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息表征所述第一应用相关的访问信息;将所述第一信息序列发送至第二电子设备;如此,所述第二电子设备可以基于所述第一信息序列,以所述加载状态在第一应用中加载所述第一内容。由于第二信息表征的加载状态是第一电子设备进行信息分享时显示的部分第一内容对应的加载状态,因此,第二电子设备可以在第一应用中直接显示第一电子设备分享信息时对应显示的内容,不需要手动安装第一应用,由此可以精确、快速地将要分享的信息通过电子设备呈现给其他用户。Based on this, an embodiment of the present application provides an information sharing method. The first electronic device generates a first information sequence including at least first information, second information, and third information; The first content loaded by the first application in the device; the second information represents the loading status of the first content in the first application; the third information represents access information related to the first application; The first information sequence is sent to the second electronic device; thus, the second electronic device can load the first content in the first application in the loading state based on the first information sequence. Since the loading state represented by the second information is the loading state corresponding to the part of the first content displayed when the first electronic device shares information, the second electronic device can directly display the corresponding information when the first electronic device shares information in the first application. The displayed content does not need to manually install the first application, so that the information to be shared can be accurately and quickly presented to other users through the electronic device.
图2为本申请实施例提供的一种信息分享方法的交互图。如图2所示,信息分享方法包括:FIG. 2 is an interaction diagram of an information sharing method provided by an embodiment of the present application. As shown in Figure 2, information sharing methods include:
步骤201:第一电子设备生成第一信息序列;其中,所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息。Step 201: The first electronic device generates a first information sequence; wherein, the first information sequence includes at least first information, second information and third information; the first information represents the first information in the first electronic device The first content loaded by the application; the second information indicates the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry.
在一些实施例中,第一用户在查看第一电子设备中的第一应用加载的部分或全部第一内容的过程中,触发第一电子设备生成分享指令。实际应用时,第一用户可以点击第一应用的交互界面中的分享按钮或分享图标,触发第一电子设备弹出第一界面,第一界面中包括信息应用和/或至少一个即时通信应用的图标;第一用户点击第一界面显示的相关图标,从对应的用户列表中选择第二用户,以触发第一电子设备生成分享指令。其中,第一内容至少包括以下至少之一:网页、照片、文档、视频。文档包括word文档或PDF文档。当然,第一内容还可以是其他类型的内容。即时通信应用包括微信、QQ等。In some embodiments, the first user triggers the first electronic device to generate a sharing instruction during viewing part or all of the first content loaded by the first application in the first electronic device. In actual application, the first user can click the share button or share icon in the interactive interface of the first application, triggering the first electronic device to pop up the first interface, the first interface includes icons of messaging applications and/or at least one instant messaging application ; The first user clicks the relevant icon displayed on the first interface, and selects the second user from the corresponding user list, so as to trigger the first electronic device to generate a sharing instruction. Wherein, the first content includes at least one of the following: web pages, photos, documents, and videos. Documents include word documents or PDF documents. Certainly, the first content may also be other types of content. Instant messaging applications include WeChat, QQ, etc.
第一电子设备在检测到分享指令的情况下,基于第一应用加载的第一内容确定出第一信息,基于第一应用的应用界面的输出内容确定出第二信息,并确定出第一应用对应的第三信息;至少基于第一信息、第二信息和第三信息,生成第一信息序列。When the first electronic device detects the sharing instruction, it determines the first information based on the first content loaded by the first application, determines the second information based on the output content of the application interface of the first application, and determines the first application Corresponding third information: generating a first information sequence based on at least the first information, the second information and the third information.
其中,第一应用的应用界面的输出内容包括第一内容中的至少部分内容,还可以包括用户为显示的部分第一内容添加的标注信息。例如,在第一内容为照片的情况下,第一应用的应用界面的输出内容至少包括照片中的部分或全部,还可以包括为照片中的被拍摄对象添加的标注信息,比如用于圈出被拍摄对象的图形。再例如,在第一内容为文档的情况下,第一应用的应用界面的输出内容至少包括文档中的部分段落,还可以包括为该部分段落添加的标注信息;该标注信息可以表征为选中部分第一内容的标记,或表征高亮显示部分第一内容的标记,或者表征标记的阅读位置和/或编辑位置等。编辑位置是指编辑的内容在第一内容中所处的位置。Wherein, the output content of the application interface of the first application includes at least part of the first content, and may also include annotation information added by the user to the displayed part of the first content. For example, in the case where the first content is a photo, the output content of the application interface of the first application includes at least part or all of the photo, and may also include annotation information added to the object in the photo, such as for circling Graphics of the subject being photographed. For another example, in the case where the first content is a document, the output content of the application interface of the first application includes at least some paragraphs in the document, and may also include annotation information added to the part of the paragraph; the annotation information may be represented as the selected part A mark of the first content, or a mark representing a highlighted part of the first content, or a mark representing a reading position and/or an editing position of the mark. The editing position refers to the position of the edited content in the first content.
第二信息表征的加载状态可以包括加载进度,和/或,为加载的第一内容添加的标注信息。加载进度表征第一内容显示在第一应用的应用界面中的部分在第一内容中所处的位置。例如,在第一内容为视频的情况下,加载进度可以是播放时间,也可以是当前播放的视频帧在视频包括的所有视频帧中所处的位置。在第一内容为文档的情况下,加载进度可以通过当前显示的文本内容对应的页码和行数来表示,也可以通过当前显示的文本内容对应的页码和段落来表示。The loading state represented by the second information may include loading progress, and/or annotation information added to the loaded first content. The loading progress represents the position of the part of the first content displayed in the application interface of the first application in the first content. For example, in the case that the first content is a video, the loading progress may be the playing time, or the position of the currently played video frame among all the video frames included in the video. When the first content is a document, the loading progress may be represented by the page number and line number corresponding to the currently displayed text content, or may be represented by the page number and paragraph corresponding to the currently displayed text content.
需要说明的是,第一电子设备可以为手机、平板电脑、具有显示屏的可穿戴设备或电脑等终端设备。第一用户为想要与其他用户分享信息的用户。第一应用包括需要下载并安装才能使用的应用和不需要下载安装即可使用的web应用。不需要下载安装即可使用的web应用包括快应用或小程序等。快应用采用前端技术栈开发和原生渲染得到,兼具HTML 5页面和原生应用的双重优点。It should be noted that the first electronic device may be a terminal device such as a mobile phone, a tablet computer, a wearable device with a display screen, or a computer. The first user is a user who wants to share information with other users. The first application includes an application that needs to be downloaded and installed and a web application that can be used without downloading and installing. Web applications that can be used without downloading and installing include quick apps or applets. Quick apps are developed using front-end technology stacks and native rendering, and have the dual advantages of HTML 5 pages and native apps.
考虑到第二电子设备中可能存在第一应用的访问入口,也可能不存在第一应用的访问入口,为了便于接收到第一信息序列的第二电子设备快速地通过第一应用加载第一内容,在一些实施例中,所述生成第一信息序列,包括:通过与所述第二电子设备进行消息交互,确定出所述第二电子设备中是否存在所述第一应用的访问入口;在所述第二电子设备中不存在所述第一应用的访问入口的情况下,生成所述第一信息序列。Considering that there may or may not be an access entry for the first application in the second electronic device, in order to facilitate the second electronic device receiving the first information sequence to quickly load the first content through the first application , in some embodiments, the generating the first information sequence includes: determining whether there is an access entry of the first application in the second electronic device through message interaction with the second electronic device; If there is no access entry of the first application in the second electronic device, the first information sequence is generated.
在一些实施例中,第一电子设备在检测到分享请求的情况下,向第二电子设备发送第一请求,第一请求用于请求查询第二电子设备中是否存在第一应用 的访问入口;第二电子设备基于第一请求向第一电子设备返回查询结果,第一电子设备接收第二电子设备返回的查询结果。In some embodiments, when the first electronic device detects the sharing request, it sends a first request to the second electronic device, and the first request is used to query whether there is an access entry of the first application in the second electronic device; The second electronic device returns a query result to the first electronic device based on the first request, and the first electronic device receives the query result returned by the second electronic device.
在该查询结果表征第二电子设备中不存在第一应用的访问入口的情况下,确定出第一信息、第二信息和第三信息,并至少基于第一信息、第二信息和第三信息,生成第一信息序列。第三信息中包括第一应用的应用包名和访问入口的相关信息。当第三信息中包括至少两种访问入口类型和每种访问入口类型对应的访问入口时,用户可以根据实际需要选择其中一种访问入口类型,触发第二电子设备通过对应的访问入口运行第一应用。其中,确定出第一信息、第二信息和第三信息的过程,可以是获取第一应用上报的第一信息、第二信息和第三信息;也可以基于第一应用加载的第一内容确定出第一信息,基于第一应用的应用界面的输出内容确定出第二信息,并确定出第一应用对应的第三信息。When the query result indicates that there is no access entry of the first application in the second electronic device, determine the first information, the second information and the third information, and at least based on the first information, the second information and the third information , generating the first information sequence. The third information includes the application package name of the first application and related information about the access entry. When the third information includes at least two access entry types and the access entry corresponding to each access entry type, the user can select one of the access entry types according to actual needs, and trigger the second electronic device to run the first access entry through the corresponding access entry. application. Wherein, the process of determining the first information, the second information and the third information may be to obtain the first information, the second information and the third information reported by the first application; it may also be determined based on the first content loaded by the first application The first information is obtained, the second information is determined based on the output content of the application interface of the first application, and the third information corresponding to the first application is determined.
需要说明的是,在该查询结果表征第二电子设备中存在第一应用的访问入口的情况下,第一电子设备生成的第一信息序列中包括的第三信息中可以不包括第一应用的访问入口的相关信息,由此,可以减少数据传输量,提高数据传输效率。It should be noted that, in the case where the query result indicates that there is an access entry of the first application in the second electronic device, the third information included in the first information sequence generated by the first electronic device may not include the access entry of the first application. The relevant information of the access portal can reduce the amount of data transmission and improve the efficiency of data transmission.
考虑到在实际应用时不同的应用支持的访问入口类型可能不同,也可能存在同一应用支持两种访问入口类型,例如,第一应用对应有网页版和客户端版本时,第一应用支持两种访问入口类型。为了提高加载第一内容的成功率和信息分享效率,在一些实施例中,所述访问入口的相关信息包括:至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,访问入口类型包括第一类型和/或第二类型;所述第一类型表征URL;所述第二类型表征所述第一应用的安装包。Considering that different applications may support different access entry types in actual applications, there may also be two access entry types supported by the same application. For example, when the first application corresponds to a web version and a client version, the first application supports two Access entry type. In order to improve the success rate of loading the first content and the efficiency of information sharing, in some embodiments, the relevant information of the access entry includes: at least one type of access entry and each type of access entry in the at least one type of access entry A corresponding access entry; wherein, the access entry type includes a first type and/or a second type; the first type represents a URL; the second type represents an installation package of the first application.
进一步地,在一些实施例中,第三信息包括第一应用的应用包名、至少一种访问入口类型和每种访问入口类型对应的访问入口。Further, in some embodiments, the third information includes an application package name of the first application, at least one access entry type, and an access entry corresponding to each access entry type.
在实际应用中,可以用URL这一字符串标识第一类型,用BINARY标识第二类型。第一电子设备可以采用至少三个字段和对应的字段值来描述第三信息。第一字段例如package-name,用于写入第一应用的应用包名;第二字段例如content-type,用于写入访问入口类型;第三字段例如content,用于写入访问入口的相关数据。其中,当第二字段的字段值为URL时,第三字段的字段值为URL链接;当第二字段的字段值为BINARY时,第三字段的字段值为安装包对应的二进制数组。In practical applications, the character string URL can be used to identify the first type, and BINARY can be used to identify the second type. The first electronic device may use at least three fields and corresponding field values to describe the third information. The first field, such as package-name, is used to write the application package name of the first application; the second field, such as content-type, is used to write the access entry type; the third field, such as content, is used to write the relevant information of the access entry data. Wherein, when the field value of the second field is URL, the field value of the third field is a URL link; when the field value of the second field is BINARY, the field value of the third field is a binary array corresponding to the installation package.
需要说明的是,不需要安装的第一应用对应第一访问入口类型,通过URL地址运行第一应用;需要安装的第一应用可以对应第一访问入口类型,也可以对应第二访问入口类型,用户可以根据实际需求选择运行第一应用的访问入口。It should be noted that the first application that does not need to be installed corresponds to the first access entry type, and the first application is run through the URL address; the first application that needs to be installed may correspond to the first access entry type or the second access entry type, The user may select an access entry for running the first application according to actual needs.
在本方案中,第一信息序列中包括的第三信息中包括第一应用对应的访问入口类型和访问入口类型对应的访问入口,由此,接收到第一信息序列的第二电子设备可以基于第一信息序列中的第三信息运行第一应用,不需要第二用户手动查找和安装第一应用,从而可以减少通过第一应用加载第一内容所消耗的时间,进而提高信息分享效率。In this solution, the third information included in the first information sequence includes the access entry type corresponding to the first application and the access entry corresponding to the access entry type, thus, the second electronic device that receives the first information sequence can be based on The third information in the first information sequence runs the first application, which does not require the second user to manually search for and install the first application, thereby reducing the time consumed by loading the first content through the first application, thereby improving information sharing efficiency.
为了方便第二电子设备解析第一信息序列,在一些实施例中,第一信息序 列表征为由第一信息、第二信息和第三信息构成的三元组。In order to facilitate the second electronic device to parse the first information sequence, in some embodiments, the first information sequence is represented as a triple consisting of the first information, the second information and the third information.
需要说明的是,用于生成第一信息序列的第一信息、第二信息和第三信息,可以由第一电子设备生成,也可以由第一应用上报。It should be noted that the first information, the second information, and the third information used to generate the first information sequence may be generated by the first electronic device, or may be reported by the first application.
考虑到第一应用能够准确地采集到第一应用加载的第一内容的相关信息,为了提高获取到的信息的准确度,从而提高分享的信息的准确度,在一些实施例中,在所述生成第一信息序列之前,所述方法还包括:获取第一应用上报的所述第一信息、所述第二信息和所述第三信息。Considering that the first application can accurately collect relevant information about the first content loaded by the first application, in order to improve the accuracy of the obtained information and thus the accuracy of the shared information, in some embodiments, in the Before generating the first information sequence, the method further includes: acquiring the first information, the second information and the third information reported by the first application.
具体地,在一些实施例中,第一电子设备显示第一应用加载的第一内容的情况下,第一应用采集第一信息、第二信息和第三信息,以及上报采集到的第一信息、第二信息和第三信息,以及向第一电子设备的操作系统上报采集到的第一信息、第二信息和第三信息。第一电子设备获取第一应用上报的第一信息、第二信息和第三信息。在一些实施例中,第一电子设备在生成第一信息序列之前,所述方法还包括:第一电子设备生成至少包括所述第一内容的所述第一信息。Specifically, in some embodiments, when the first electronic device displays the first content loaded by the first application, the first application collects the first information, the second information and the third information, and reports the collected first information , the second information and the third information, and reporting the collected first information, the second information and the third information to the operating system of the first electronic device. The first electronic device acquires the first information, the second information and the third information reported by the first application. In some embodiments, before the first electronic device generates the first information sequence, the method further includes: the first electronic device generates the first information including at least the first content.
进一步地,在一些实施例中,第一电子设备在检测到分享指令的情况下,获取运行于前台的第一应用加载的第一内容,以及基于获取到的第一内容生成至少包括第一内容的第一信息。在实际应用中,第一电子设备获取第一应用上报的第一内容,第一内容表征待传输的有效负荷,可以用Payload表示。由此,第一电子设备可以基于显示界面显示的内容,生成第一信息,不需要等待第一应用上报第一信息,从而提高了生成第一信息序列的效率。Further, in some embodiments, when the first electronic device detects the sharing instruction, it acquires the first content loaded by the first application running in the foreground, and generates at least the first content based on the acquired first content. the first message. In a practical application, the first electronic device obtains the first content reported by the first application, and the first content represents a payload to be transmitted, which may be represented by Payload. Thus, the first electronic device can generate the first information based on the content displayed on the display interface without waiting for the first application to report the first information, thereby improving the efficiency of generating the first information sequence.
在一些实施例中,所述第一信息还包括:所述第一内容的格式;和/或,所述第一内容的长度。In some embodiments, the first information further includes: a format of the first content; and/or, a length of the first content.
这里,第一内容的格式用于供第二电子设备解析第一内容。第一内容的格式可以由对应的后缀名确定出。第一内容的长度表征第一内容的数据量的大小,用于供第二电子设备判断接收到的第一内容是否完整。Here, the format of the first content is used for the second electronic device to parse the first content. The format of the first content can be determined by the corresponding suffix name. The length of the first content represents the size of the data volume of the first content, and is used for the second electronic device to judge whether the received first content is complete.
实际应用时,第一信息包括第一内容、第一内容的格式和第一内容的长度;第一电子设备采用三个字段和对应的字段值,来分别描述第一内容、第一内容的格式和第一内容的长度。例如,第一内容的格式对应的字段为content-type,第一内容的长度对应的字段为content-length,第一内容对应的字段为content。In actual application, the first information includes the first content, the format of the first content, and the length of the first content; the first electronic device uses three fields and corresponding field values to describe the first content and the format of the first content respectively and the length of the first content. For example, the field corresponding to the format of the first content is content-type, the field corresponding to the length of the first content is content-length, and the field corresponding to the first content is content.
在一些实施例中,所述第一内容的格式包括多用途互联网邮件扩展(MIME,Multipurpose Internet Mail Extensions)类型。In some embodiments, the format of the first content includes Multipurpose Internet Mail Extensions (MIME, Multipurpose Internet Mail Extensions) type.
其中,每个MIME类型由两部分组成,前面是数据的大类别,例如声音(audio)、图像(image)等,后面定义具体的种类。例如,常见的MIME类型如下:Wherein, each MIME type is composed of two parts, the first is a large category of data, such as sound (audio), image (image), etc., and the latter defines a specific type. For example, common MIME types are as follows:
超文本标记语言文本.html text/html;HTML text.html text/html;
xml文档.xml text/xml;xml-document.xml text/xml;
普通文本.txt text/plain;plain text.txt text/plain;
PDF文档.pdf application/pdf;PDF document.pdf application/pdf;
PNG图像.png image/png;PNG image.png image/png;
GIF图形.gif image/gif;GIF graphic.gif image/gif;
AVI文件.avi video/x-msvideo。AVI files. avi video/x-msvideo.
为了便于用户查看分享的信息,提高信息分享的精度,在一些实施例中,第一电子设备在所述生成第一信息序列之前,所述方法还包括:第一电子设备生成包括第一标记和/或第二标记的所述第二信息;其中,所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在第一应用的应用界面中的部分在所述第一内容中所处的位置;所述第二标记表征在所述第一电子设备的第一应用中为所述第一内容添加的标注信息。In order to facilitate users to view the shared information and improve the accuracy of information sharing, in some embodiments, before the first electronic device generates the first information sequence, the method further includes: the first electronic device generates /or the second information of the second mark; wherein, the first mark is used to mark a first position; the first position indicates that the part of the first content displayed in the application interface of the first application is in the The position in the first content; the second mark represents the annotation information added to the first content in the first application of the first electronic device.
进一步地,在一些实施例中,第一电子设备在检测到分享指令的情况下,基于第一应用的应用界面中显示的部分第一内容,生成包括第一标记和/或第二标记的第二信息。实际应用时,第一电子设备确定出第一应用的应用界面显示的部分第一内容在第一内容中所处的位置,生成第一标记;获取第一用户在第一电子设备的第一应用中为第一内容添加的标注信息,基于获取到的标注信息生成第二标记;基于生成的第一标记和/或第二标记,生成第二信息。Further, in some embodiments, when the first electronic device detects the sharing instruction, based on part of the first content displayed in the application interface of the first application, the first electronic device generates the first mark and/or the second mark. Two information. In actual application, the first electronic device determines the position of part of the first content displayed on the application interface of the first application in the first content, and generates a first mark; obtains the first user's first application on the first electronic device The annotation information added for the first content in the method generates a second mark based on the obtained mark information; and generates the second information based on the generated first mark and/or the second mark.
在实际应用中,第一电子设备可以通过至少一个字段和对应的字段值,来描述第一标记。在第一内容为文档的情况下,第一标记可以为页码,也可以为页码和行数。例如,第一电子设备中第一应用的应用界面输出文档中第5页对应的内容,用户在第5页对应的内容中选中第10行对应的内容,此时,第一电子设备生成的第一标记表征文档的第5页第10行。示例性地,生成的第一标记描述为:PageNumber:5,LineNumber:10。In practical applications, the first electronic device may describe the first mark by using at least one field and a corresponding field value. In the case that the first content is a document, the first mark may be a page number, or may be a page number and a line number. For example, the application interface of the first application in the first electronic device outputs the content corresponding to page 5 in the document, and the user selects the content corresponding to line 10 in the content corresponding to page 5. At this time, the content corresponding to line 10 generated by the first electronic device A token characterizes page 5, line 10 of a document. Exemplarily, the generated first markup is described as: PageNumber:5, LineNumber:10.
在一些实施例中,第一电子设备在所述生成第一信息序列之前,所述方法还包括:第一电子设备基于所述第一应用的应用包名和访问入口的相关信息,生成所述第三信息。In some embodiments, before the first electronic device generates the first information sequence, the method further includes: the first electronic device generates the first information sequence based on the application package name of the first application and information about the access entry Three information.
进一步地,在一些实施例中,第一电子设备在检测到分享指令的情况下,获取第一应用的应用包名和访问入口的相关信息,基于第一应用的应用包名和访问入口的相关信息,生成第三信息。例如,获取第一应用的应用包名和访问入口的相关信息的方式可以为:第一电子设备通过第一电子设备中的操作系统,获取第一应用的应用包名和访问入口的相关信息,也可以获取第一应用上报的第一应用的应用包名和访问入口的相关信息。Further, in some embodiments, when the first electronic device detects the sharing instruction, it obtains the application package name of the first application and the related information of the access entry, and based on the information about the application package name of the first application and the access entry, Generate third information. For example, the method of obtaining the application package name of the first application and the information related to the access entry may be as follows: the first electronic device obtains the information related to the application package name of the first application and the access entry through the operating system in the first electronic device, or Information related to the application package name and the access entry of the first application reported by the first application is obtained.
本方案中,由第一电子设备生成第三信息,可以减少第一应用的数据处理量。In this solution, the third information is generated by the first electronic device, which can reduce the data processing amount of the first application.
步骤202:第一电子设备将所述第一信息序列发送至第二电子设备;其中,所述第二电子设备响应于接收的所述第一信息序列,基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。Step 202: The first electronic device sends the first information sequence to the second electronic device; wherein, the second electronic device responds to the received first information sequence, based on the first information sequence, with the The loading state loads the first content in the first application.
在一些实施例中,第一电子设备在生成第一信息序列的情况下,将生成的第一信息序列发送至第二电子设备。实际应用时,在分享指令携带第二用户的信息的情况下,第一电子设备基于分享指令携带的第二用户的信息,将第一信息序列发送至第二用户使用的第二电子设备。In some embodiments, when the first electronic device generates the first information sequence, it sends the generated first information sequence to the second electronic device. In practical applications, if the sharing command carries the information of the second user, the first electronic device sends the first information sequence to the second electronic device used by the second user based on the information of the second user carried in the sharing command.
其中,第二电子设备为第二用户使用的电子设备。第一电子设备与第二电子设备各自对应的云账号不同,云账号用于供电子设备下载安装包。第二电子设备可以为手机、平板电脑、具有显示屏的可穿戴设备或电脑等终端设备。Wherein, the second electronic device is an electronic device used by the second user. The cloud accounts corresponding to the first electronic device and the second electronic device are different, and the cloud account is used for the electronic device to download the installation package. The second electronic device may be a terminal device such as a mobile phone, a tablet computer, a wearable device with a display screen, or a computer.
在实际应用时,第一信息序列采用JS对象简谱(JSON,JavaScript Object Notation)格式进行描述,JSON是一种轻量级的数据交换格式。第一电子设备将第一信息序列进行序列化,得到序列化后的第一信息序列,并将序列化后的第一信息序列发送至第二电子设备。In actual application, the first information sequence is described in the format of JS Object Notation (JSON, JavaScript Object Notation), JSON is a lightweight data exchange format. The first electronic device serializes the first information sequence to obtain the serialized first information sequence, and sends the serialized first information sequence to the second electronic device.
步骤203:第二电子设备接收第一电子设备发送的第一信息序列;其中,所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息。Step 203: The second electronic device receives the first information sequence sent by the first electronic device; wherein, the first information sequence includes at least first information, second information and third information; the first information represents the first information The first content loaded by a first application in an electronic device; the second information indicates the loading state of the first content in the first application; the third information includes the application package name and Information about the access portal.
步骤204:基于所述第一信息序列,以所述加载状态在第一应用中加载所述第一内容。Step 204: Based on the first information sequence, load the first content in the first application in the loading state.
在一些实施例中,第二电子设备对接收到的第一信息序列进行解析,得到第一信息序列中包括的第一信息、第二信息和第三信息;基于第三信息中包括的第一应用的应用包名和访问入口的相关信息运行第一应用,并通过第一应用对第一信息进行解析,得到第一电子设备中第一应用加载的第一内容;通过第一应用对第二信息进行解析,得到第一内容在第一应用中的加载状态;以解析出的加载状态在第一应用中加载第一内容,从而使得第二电子设备中第一应用的应用界面显示的内容与第一电子设备进行信息分享时对应的应用界面中显示的内容相同。例如,如图3所示,第一用户在第一电子设备中查看第一文档的第10页的内容的情况下,触发第一电子设备生成分享指令,第一电子设备按照上述步骤201至步骤202,将对应的第一信息序列发送至第二电子设备,第二电子设备基于接收到的第一信息序列,在第一应用中加载第一文档的第10页的内容,以便第二用户查看第一文档第10页的内容。In some embodiments, the second electronic device parses the received first information sequence to obtain the first information, second information and third information included in the first information sequence; based on the first information included in the third information The application package name of the application and the relevant information of the access entry run the first application, and analyze the first information through the first application to obtain the first content loaded by the first application in the first electronic device; through the first application, the second information Perform analysis to obtain the loading status of the first content in the first application; load the first content in the first application with the analyzed loading status, so that the content displayed on the application interface of the first application in the second electronic device is consistent with that of the first application When an electronic device performs information sharing, the content displayed on the corresponding application interface is the same. For example, as shown in FIG. 3 , when the first user views the content on page 10 of the first document on the first electronic device, the first electronic device is triggered to generate a sharing instruction, and the first electronic device follows steps 201 to 201 above. 202. Send the corresponding first information sequence to the second electronic device, and based on the received first information sequence, the second electronic device loads the content of page 10 of the first document in the first application, so that the second user can view Contents on page 10 of the first document.
在一些实施例中,所述第一信息至少包括所述第一内容;所述第一信息还包括:所述第一内容的格式;和/或,所述第一内容的长度。In some embodiments, the first information includes at least the first content; the first information further includes: a format of the first content; and/or, a length of the first content.
在一些实施例中,第二电子设备可以基于第一内容的长度判断接收到的第一内容是否完整,在接收到完整的第一内容的情况下,通过第一应用基于第一内容的格式对第一内容进行解析和加载。由于第二电子设备不需要对第一内容进行分析,即可从第一信息中直接获得第一内容的格式,因此可提高解析第一内容的效率。In some embodiments, the second electronic device may determine whether the received first content is complete based on the length of the first content, and if the complete first content is received, use the first application to check the format of the first content. First the content is parsed and loaded. Since the second electronic device can directly obtain the format of the first content from the first information without analyzing the first content, the efficiency of parsing the first content can be improved.
在一些实施例中,所述以所述加载状态在第一应用中加载所述第一内容,包括:第二电子设备基于所述第二信息中包括的第一标记和/或第二标记,在第一应用中加载所述第一内容;其中,所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在第一应用的应用界面中的部分在所述第一内容中的所处位置;所述第二标记表征在所述第一电子设备的第一应用中为所述第一内容添加的标注信息。In some embodiments, the loading of the first content in the first application in the loading state includes: the second electronic device based on the first mark and/or the second mark included in the second information, The first content is loaded in the first application; wherein, the first mark is used to mark a first position; the first position indicates that the part of the first content displayed in the application interface of the first application is in the The location in the first content; the second mark represents the annotation information added to the first content in the first application of the first electronic device.
进一步地,在一些实施例中,在第二信息包括第一标记的情况下,第二电子设备基于第一标记确定出待显示的部分第一内容在第一内容中所处的位置;基于待显示的部分第一内容在第一内容中所处的位置,确定出需要在第一应用的应用界面中显示的部分第一内容,并在第一应用中加载确定出的部分第一内 容。由此,可以精确地将第一用户想要分享的部分第一内容通过第二电子设备呈现给第二用户。Further, in some embodiments, when the second information includes the first mark, the second electronic device determines the position of the part of the first content to be displayed in the first content based on the first mark; The position of the displayed part of the first content in the first content is determined to determine the part of the first content that needs to be displayed in the application interface of the first application, and the determined part of the first content is loaded in the first application. Thus, the part of the first content that the first user wants to share can be accurately presented to the second user through the second electronic device.
在第二信息包括第二标记的情况下,在第一应用中加载确定出的部分第一内容之后,基于第二标记,为加载的部分第一内容添加的标注信息。其中,标注信息是层叠显示于第一应用加载的部分第一内容之上。In the case that the second information includes the second mark, after the determined part of the first content is loaded in the first application, mark information is added to the loaded part of the first content based on the second mark. Wherein, the labeling information is superimposed and displayed on the part of the first content loaded by the first application.
考虑到在实际应用中第二电子设备中可能存在第一应用的访问入口,也可能不存在第一应用的访问入口。在一些实施例中,所述以所述加载状态在第一应用中加载所述第一内容,包括:在所述第三信息中确定出第一应用的应用包名,基于确定出的应用包名运行第一应用,并以所述加载状态在第一应用中加载所述第一内容;或者,在所述第三信息中确定出第一应用的第一应用的访问入口的相关信息,,基于确定出的访问入口的相关信息运行第一应用,并以所述加载状态在第一应用中加载所述第一内容。Considering that in actual applications, there may be an access entry of the first application in the second electronic device, or there may not be an access entry of the first application. In some embodiments, the loading the first content in the first application in the loading state includes: determining the application package name of the first application in the third information, based on the determined application package Run the first application under the name of the first application, and load the first content in the first application in the loading state; or, determine the relevant information of the first application's access entry of the first application in the third information, Running the first application based on the determined relevant information of the access entry, and loading the first content in the first application in the loading state.
在一些实施例中,第二电子设备通过解析第一信息序列得到第三信息的情况下,在第三信息中确定出第一应用的应用包名和第一应用的访问入口的相关信息。基于第一应用的应用包名,判断第二电子设备中是否存在第一应用的访问入口,得到判断结果;在该判断结果表征第二电子设备中存在第一应用的访问入口的情况下,基于确定出的应用包名运行第一应用,并以第二信息表征的加载状态在第一应用中加载第一内容。在该判断结果表征第二电子设备中不存在第一应用的访问入口的情况下,在第一应用的访问入口的相关信息运行第一应用,并以第二信息表征的加载状态在第一应用中加载第一内容。由此,第二电子设备可以根据实际情况选择访问入口,以基于选择的访问入口运行第一应用,提高访问第一应用的灵活性。In some embodiments, when the second electronic device obtains the third information by parsing the first information sequence, it determines the application package name of the first application and the related information of the access entry of the first application in the third information. Based on the application package name of the first application, judge whether there is an access entry of the first application in the second electronic device, and obtain a judgment result; if the judgment result indicates that there is an access entry of the first application in the second electronic device, based on The determined application package name runs the first application, and loads the first content in the first application with the loading status represented by the second information. In the case that the judgment result indicates that there is no access entry of the first application in the second electronic device, the first application is run based on the relevant information of the access entry of the first application, and the loading state represented by the second information is displayed in the first application. Load the first content in . Thus, the second electronic device can select an access entry according to actual conditions, so as to run the first application based on the selected access entry, thereby improving the flexibility of accessing the first application.
在一些实施例中,所述访问入口的相关信息包括:至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,访问入口类型包括第一类型和/或第二类型;所述第一类型表征URL;所述第二类型表征所述第一应用的安装包。In some embodiments, the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type And/or a second type; the first type represents a URL; the second type represents an installation package of the first application.
在一些实施例中,所述基于确定出的访问入口的相关信息运行第一应用,包括:在确定出的访问入口类型为第一类型的情况下,基于URL访问第一应用;在确定出的访问入口类型为第二类型的情况下,基于第一应用的安装包安装第一应用,以及运行安装的第一应用。In some embodiments, the running the first application based on the determined information about the access entry includes: when the determined access entry type is the first type, accessing the first application based on the URL; When the access entry type is the second type, the first application is installed based on the installation package of the first application, and the installed first application is run.
进一步地,在一些实施例中,第二电子设备通过第一应用解析第三信息,得到的第三信息的解析结果;该解析结果包括至少一种访问入口类型和每种访问入口类型对应的访问入口。Further, in some embodiments, the second electronic device parses the third information through the first application to obtain a parsing result of the third information; the parsing result includes at least one type of access entry and the access information corresponding to each type of access entry Entrance.
当第一应用的访问入口类型为第一类型时,第一应用的访问入口为URL链接,电子设备基于URL链接运行第一应用,此时,第一应用可以为小应用或快应用。When the access entry type of the first application is the first type, the access entry of the first application is a URL link, and the electronic device runs the first application based on the URL link. At this time, the first application may be a small application or a quick application.
当第一应用的访问入口类型为第二类型时,第一应用的访问入口为安装包,第二电子设备基于第三信息中的安装包安装第一应用,在第一应用安装完成之后,运行第一应用。When the access entry type of the first application is the second type, the access entry of the first application is an installation package, the second electronic device installs the first application based on the installation package in the third information, and after the installation of the first application is completed, run first application.
当第三信息中包括URL链接和安装包时,第二电子设备可以基于URL链 接或安装包运行第一应用。When the third information includes the URL link and the installation package, the second electronic device can run the first application based on the URL link or the installation package.
由于第二电子设备可以基于第三信息中的URL链接或安装包运行第一应用,不需要手动查找并下载第一应用的安装包,因此可以提高第一内容的加载效率。Since the second electronic device can run the first application based on the URL link or the installation package in the third information, there is no need to manually search for and download the installation package of the first application, so the loading efficiency of the first content can be improved.
在本申请实施例中,第一电子设备生成至少包括第一信息、第二信息和第三信息的第一信息序列,并将生成的第一信息序列发送至第二电子设备;第二电子设备在接收到第一信息序列的情况下,基于接收到的第一信息序列中的第三信息访问第一应用,并以第一信息序列中的第二信息表征的加载状态在第一应用中加载第一内容。由此,第二电子设备可以在第一应用中直接显示第一电子设备分享信息时对应的应用界面显示的内容,也不需要手动安装第一应用,由此可以精确、快速地将要分享的信息通过电子设备呈现给其他用户。In this embodiment of the application, the first electronic device generates a first information sequence including at least first information, second information, and third information, and sends the generated first information sequence to the second electronic device; the second electronic device In the case of receiving the first information sequence, access the first application based on the third information in the received first information sequence, and load the first application in the loading status represented by the second information in the first information sequence first content. Therefore, the second electronic device can directly display the content displayed on the corresponding application interface when the first electronic device shares information in the first application, and does not need to manually install the first application, so that the information to be shared can be accurately and quickly Presented to other users through electronic devices.
下面以第一用户与第二用户分享PDF文件中感兴趣的内容为例,对本方案进行说明:The solution is described below by taking the first user and the second user sharing the content of interest in the PDF file as an example:
用户A通过第一电子设备的第一应用阅读PDF文件的内容的过程中,发现第5页第10至15行的内容比较有趣,用户A想要与用户B分享这部分内容。此时,第一电子设备当前显示的是PDF文件中第5页第1至25行的内容,用户A可以在显示的内容中选中第5页第10至15行的内容,并点击第一应用的应用界面中的信息分享图标,触发第一电子设备弹出包括至少一个应用图标的第一界面。用户A点击第一界面中的应用图标,从对应的用户列表中选择用户B,触发第一电子设备生成分享指令。In the process of reading the content of the PDF file through the first application of the first electronic device, user A finds that the content in lines 10 to 15 on page 5 is interesting, and user A wants to share this part of content with user B. At this time, the first electronic device currently displays the contents of lines 1 to 25 on page 5 of the PDF file. User A can select the contents of lines 10 to 15 on page 5 from the displayed content, and click the first application The information sharing icon in the application interface triggers the first electronic device to pop up a first interface including at least one application icon. User A clicks the application icon on the first interface, selects user B from the corresponding user list, and triggers the first electronic device to generate a sharing instruction.
第一电子设备在检测到该分享指令的情况下,基于第一应用加载的PDF文件生成第一信息;基于第一应用加载的PDF文件中第5页第1至25行的内容,以及基于被选中的第5页第10至15行的内容,生成第二信息,以及基于第一应用的应用包名和访问入口的相关信息,生成第三信息。或者,第一电子设备获取第一应用上报的第一信息、第二信息和第三信息。第一电子设备在得到第一信息、第二信息和第三信息的情况下,基于第一信息、第二信息和第三信息,生成第一信息序列;对第一信息序列进行序列化,得到序列化后的第一信息序列,将序列化后的第一信息序列发送至第二电子设备。其中,PDF文件包含的所有信息对应为上文中的第一内容,第二信息包括第一标记和第二标记,第一标记表征PDF文件中的第1至25行,第二标记表征选中第5页第10至15行的内容。示例性地,生成的第一标记描述为:PageNumber:5,LineNumber:10-15。When the first electronic device detects the sharing instruction, it generates first information based on the PDF file loaded by the first application; based on the contents of lines 1 to 25 on page 5 in the PDF file loaded by the first application, and Select the content in lines 10 to 15 on page 5 to generate second information, and generate third information based on the application package name and access entry related information of the first application. Alternatively, the first electronic device acquires the first information, the second information, and the third information reported by the first application. When the first electronic device obtains the first information, the second information and the third information, it generates the first information sequence based on the first information, the second information and the third information; serializes the first information sequence to obtain The serialized first information sequence, sending the serialized first information sequence to the second electronic device. Among them, all the information contained in the PDF file corresponds to the first content above, the second information includes the first mark and the second mark, the first mark represents the 1st to 25th lines in the PDF file, and the second mark represents the selected line 5 on pages 10 to 15. Exemplarily, the generated first tag is described as: PageNumber: 5, LineNumber: 10-15.
第二电子设备接收第一电子设备发送的序列化后的第一信息序列,可以在与用户A的聊天界面中显示关于第一信息序列的摘要。用户B可以点击该消息摘要,触发查看指令。第二电子设备在检测到该查看指令的情况下,对接收到的序列化后的第一信息序列进行反序列化,得到第一信息序列中包括的第一信息、第二信息和第三信息。第二电子设备基于第三信息中包括的第一应用的应用包名,判断第二电子设备中是否存在第一应用的访问入口,得到判断结果。The second electronic device receives the serialized first information sequence sent by the first electronic device, and may display a summary of the first information sequence in a chat interface with user A. User B can click on the message summary to trigger a viewing instruction. When the second electronic device detects the viewing instruction, it deserializes the received serialized first information sequence to obtain the first information, second information, and third information included in the first information sequence . Based on the application package name of the first application included in the third information, the second electronic device judges whether there is an access entry of the first application in the second electronic device, and obtains a judgment result.
在该判断结果表征第二电子设备中存在第一应用的访问入口的情况下,在第三信息中确定出第一应用的应用包名,基于确定出的应用包名运行第一应用。在该判断结果表征第二电子设备中不存在第一应用的访问入口的情况下,在第 三信息中确定出第一应用的至少一种访问入口类型和每种访问入口类型对应的访问入口,基于确定出的访问入口运行第一应用。If the judgment result indicates that the access entry of the first application exists in the second electronic device, the application package name of the first application is determined in the third information, and the first application is run based on the determined application package name. If the judgment result indicates that there is no access entry of the first application in the second electronic device, at least one type of access entry of the first application and an access entry corresponding to each type of access entry are determined in the third information, Running the first application based on the determined access entry.
通过运行的第一应用对第一信息进行解析得到PDF文件,通过第一应用对第二信息进行解析,得到PDF文件在第一应用中的加载状态;基于PDF文件在第一应用中的加载状态在第一应用中加载PDF文件,以使得第二电子设备在第一应用的应用界面直接显示PDF文件第5页第1至25行的内容,并选中PDF文件中的第5页第10至15行的内容。The PDF file is obtained by analyzing the first information through the running first application, and the second information is analyzed through the first application to obtain the loading status of the PDF file in the first application; based on the loading status of the PDF file in the first application Load the PDF file in the first application, so that the second electronic device directly displays the contents of lines 1 to 25 on page 5 of the PDF file on the application interface of the first application, and select pages 10 to 15 on page 5 of the PDF file the content of the row.
由于第二电子设备在第一应用中直接显示PDF文件第5页第1至25行的内容,而不是从PDF文件的第一页的第一行开始显示,因此,用户B可以在第二电子设备中直接查看PDF文件中的第5页第10至15行的内容,提高了信息分享的精确度;由于本方案中不需要用户B手动下载第一应用的安装包,提高了通过第一应用加载第一内容的效率,可以提高信息分享效率。Since the second electronic device directly displays the contents of lines 1 to 25 on page 5 of the PDF file in the first application, instead of starting from the first line of the first page of the PDF file, user B can The content of lines 10 to 15 on page 5 of the PDF file can be directly viewed on the device, which improves the accuracy of information sharing; since user B does not need to manually download the installation package of the first application in this solution, it improves the efficiency of passing the first application. The efficiency of loading the first content can improve the efficiency of information sharing.
需要说明的是,用户A在查看图库中放大后的照片的过程中,想要与用户B分享当前显示的部分放大后的图像时,可以在显示的图像中圈出目标被拍摄对象,以触发用户A使用的第一电子设备通过上述方式,将照片分享给微信好友、QQ好友等使用的第二电子设备,以便第二电子设备直接显示第一电子设备显示照片中放大后的部分图像。It should be noted that when user A wants to share the currently displayed part of the enlarged image with user B during the process of viewing the enlarged photo in the gallery, he can circle the target subject in the displayed image to trigger The first electronic device used by user A shares the photo with the second electronic device used by WeChat friends, QQ friends, etc. through the above method, so that the second electronic device directly displays the enlarged part of the photo displayed by the first electronic device.
图4为本申请应用实施例提供的一种信息分享方法的交互图。如图4所示,信息分享方法包括:FIG. 4 is an interaction diagram of an information sharing method provided by an application embodiment of the present application. As shown in Figure 4, information sharing methods include:
步骤401:第一电子设备基于第一信息、第二信息和第三信息,生成第一信息序列;其中,所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息。Step 401: The first electronic device generates a first information sequence based on the first information, the second information and the third information; wherein the first information represents the first content loaded by the first application in the first electronic device; The second information represents the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry.
其中,第一信息序列为由第一信息、第二信息和第三信息构成的三元组。Wherein, the first information sequence is a triplet composed of the first information, the second information and the third information.
需要说明的是,第一信息、第二信息和第三信息可以由第一应用上报给第一电子设备,也可以由第一电子设备生成。It should be noted that the first information, the second information and the third information may be reported to the first electronic device by the first application, or may be generated by the first electronic device.
第一信息可以通过以下三个“key-value”进行描述:The first information can be described by the following three "key-value":
Keykey valuevalue
content-typecontent-type <MIME-Type><MIME-Type>
content-lengthcontent-length <Payload Length><Payload Length>
contentcontent <Payload><Payload>
其中,content-type表征第一内容的格式;content-length表征第一内容的长度;content对应的值Payload表征第一内容。Wherein, content-type represents the format of the first content; content-length represents the length of the first content; and the value Payload corresponding to the content represents the first content.
第二信息可以通过至少一个“key-value”进行描述:name1:value1,name2:value2。第二信息包括第一标记和/或第二标记。所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在第一应用的应用界面中的部分在所述第一内容中所处的位置;所述第二标记表征在所述第一电子设备的第一应用 中为所述第一内容添加的标注信息。The second information can be described by at least one "key-value": name1:value1, name2:value2. The second information includes the first mark and/or the second mark. The first mark is used to mark a first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second The mark represents the annotation information added to the first content in the first application of the first electronic device.
第三信息通过以下方式生成:通过与所述第二电子设备进行消息交互,确定出所述第二电子设备中是否存在第一应用的访问入口;在所述第二电子设备中存在第一应用的访问入口的情况下,生成包括所述第一应用的应用包名的第三信息;在所述第二电子设备中不存在第一应用的访问入口的情况下,基于第一应用的应用包名、至少一种访问入口类型和至少一种访问入口类型中每种访问入口类型对应的访问入口,生成第三信息。The third information is generated in the following manner: through message interaction with the second electronic device, it is determined whether there is an access entry of the first application in the second electronic device; there is a first application in the second electronic device In the case of the access entry of the first application, the third information including the application package name of the first application is generated; name, at least one access entry type, and an access entry corresponding to each access entry type in the at least one access entry type, to generate third information.
第三信息可以通过以下三个“key-value”进行描述:The third information can be described by the following three "key-value":
keykey valuevalue
package-namepackage-name <reverse-DNS><reverse-DNS>
content-typecontent-type Optional:<URL>or/and<BINARYOptional: <URL> or/and <BINARY
contentcontent Optional:<payload>//安装包的内容或者URL链接Optional: <payload>//The content of the installation package or the URL link
其中,package-name表征第一应用的应用包名;content-type表征第一应用的访问方式;content表征第一应用的访问方式对应的访问入口。Wherein, package-name represents the application package name of the first application; content-type represents the access mode of the first application; content represents the access entry corresponding to the access mode of the first application.
步骤402:第一电子设备将序列化后的第一信息序列发送至第二电子设备。Step 402: the first electronic device sends the serialized first information sequence to the second electronic device.
其中,第一电子设备对所述第一信息序列进行序列化,得到序列化后的第一信息序列,将序列化后的第一信息序列发送至第二电子设备。Wherein, the first electronic device serializes the first information sequence to obtain the serialized first information sequence, and sends the serialized first information sequence to the second electronic device.
步骤403:第二电子设备接收第一电子设备发送的序列化后的第一信息序列。Step 403: The second electronic device receives the serialized first information sequence sent by the first electronic device.
步骤404:第二电子设备对接收到的第一信息序列进行反序列化,得到第一信息、第二信息和第三信息。Step 404: The second electronic device deserializes the received first information sequence to obtain the first information, second information and third information.
步骤405:第二电子设备中存在第一应用的访问入口的情况下,在所述第三信息中确定出第一应用的应用包名,基于确定出的应用包名运行第一应用,并以第二信息表征的加载状态在第一应用中加载第一信息表征的第一内容。Step 405: If there is an access entry of the first application in the second electronic device, determine the application package name of the first application in the third information, run the first application based on the determined application package name, and use The loading status of the second information representation loads the first content represented by the first information in the first application.
步骤406:第二电子设备不存在第一应用的访问入口的情况下,在所述第三信息中确定出第一应用的至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口,基于确定出的访问入口运行第一应用,并以第二信息表征的加载状态在第一应用中加载第一信息表征的第一内容。Step 406: When the second electronic device does not have the access entry of the first application, determine at least one access entry type of the first application and each of the at least one access entry type in the third information. The access entry corresponding to the access entry type executes the first application based on the determined access entry, and loads the first content represented by the first information in the first application in the loading state represented by the second information.
为实现本申请实施例应用于第一电子设备的信息分享方法,本申请实施例还提供了一种信息分享装置,如图5所示,该信息分享装置包括:In order to implement the information sharing method applied to the first electronic device in the embodiment of the present application, the embodiment of the present application further provides an information sharing device, as shown in FIG. 5 , the information sharing device includes:
第一生成模块51,用于生成第一信息序列;所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;The first generation module 51 is configured to generate a first information sequence; the first information sequence includes at least first information, second information and third information; the first information represents a first application in the first electronic device The loaded first content; the second information indicates the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry;
发送模块52,用于将所述第一信息序列发送至第二电子设备,以使所述第二电子设备基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。A sending module 52, configured to send the first information sequence to a second electronic device, so that the second electronic device loads the first application in the first application in the loading state based on the first information sequence. Describe the first content.
在一些实施例中,所述访问入口的相关信息包括:至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,访问入口类型包括第一类型和/或第二类型;所述第一类型表征统一资源定位符URL;所述第二类型表征所述第一应用的安装包。In some embodiments, the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type And/or a second type; the first type represents a Uniform Resource Locator URL; the second type represents an installation package of the first application.
在一些实施例中,该信息分享装置还包括:获取模块,用于获取第一应用上报的所述第一信息、所述第二信息和所述第三信息。In some embodiments, the information sharing apparatus further includes: an acquiring module, configured to acquire the first information, the second information, and the third information reported by the first application.
在一些实施例中,第一生成模块51具体用于:通过与所述第二电子设备进行消息交互,确定出所述第二电子设备中是否存在所述第一应用的访问入口;在所述第二电子设备中不存在所述第一应用的访问入口的情况下,生成所述第一信息序列。In some embodiments, the first generating module 51 is specifically configured to: determine whether there is an access entry of the first application in the second electronic device through message interaction with the second electronic device; If there is no access entry of the first application in the second electronic device, the first information sequence is generated.
在一些实施例中,该信息分享装置还包括:第二生成模块,用于生成包括第一标记和/或第二标记的所述第二信息;其中,所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在第一应用的应用界面中的部分在所述第一内容中所处的位置;所述第二标记表征在所述第一电子设备的第一应用中为所述第一内容添加的标注信息。In some embodiments, the information sharing device further includes: a second generation module, configured to generate the second information including the first mark and/or the second mark; wherein, the first mark is used to mark the first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second mark represents the position in the first electronic device Annotation information added to the first content in the first application.
在一些实施例中,该信息分享装置还包括:第三生成模块,用于生成至少包括所述第一内容的所述第一信息。In some embodiments, the information sharing apparatus further includes: a third generating module, configured to generate the first information including at least the first content.
在一些实施例中,所述第一信息还包括:所述第一内容的格式;和/或,所述第一内容的长度。In some embodiments, the first information further includes: a format of the first content; and/or, a length of the first content.
在一些实施例中,所述第一内容的格式包括多用途互联网邮件扩展MIME类型。In some embodiments, the format of the first content includes a Multipurpose Internet Mail Extensions MIME type.
在一些实施例中,所述第一信息序列表征为由所述第一信息、所述第二信息和所述第三信息构成的三元组。In some embodiments, the first information sequence is characterized as a triplet consisting of the first information, the second information and the third information.
实际应用时,上述各模块可通过终端中的处理器,比如中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array)等实现,或由处理器和通信接口共同实现。In actual application, the above-mentioned modules can be passed through the processor in the terminal, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) or can Programmable Gate Array (FPGA, Field-Programmable Gate Array) and other implementations, or jointly implemented by a processor and a communication interface.
需要说明的是:上述实施例提供的信息分享装置在进行信息分享时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的信息分享装置与信息分享方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the information sharing device provided by the above-mentioned embodiment performs information sharing, the division of the above-mentioned program modules is used as an example for illustration. In practical applications, the above-mentioned processing allocation can be completed by different program modules according to needs. That is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information sharing device and the information sharing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
为实现本申请实施例应用于第二电子设备的信息分享方法,本申请实施例还提供了一种信息分享装置,如图6所示,该信息分享装置包括:In order to implement the information sharing method applied to the second electronic device in the embodiment of the present application, the embodiment of the present application further provides an information sharing device, as shown in FIG. 6 , the information sharing device includes:
接收模块61,用于接收第一电子设备发送的第一信息序列;其中,所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;The receiving module 61 is configured to receive a first information sequence sent by the first electronic device; wherein, the first information sequence includes at least first information, second information and third information; the first information represents the first The first content loaded by the first application in the electronic device; the second information indicates the loading state of the first content in the first application; the third information includes the application package name and access Information about the entrance;
加载模块62,用于基于所述第一信息序列,以所述加载状态在第一应用中加载所述第一内容。The loading module 62 is configured to load the first content in the first application in the loading state based on the first information sequence.
在一些实施例中,加载模块62具体用于:在所述第三信息中确定出第一应用的应用包名,基于确定出的应用包名运行第一应用,并以所述加载状态在第一应用中加载所述第一内容;或者,在所述第三信息中确定出第一应用的访问入口的相关信息,基于确定出的访问入口的相关信息运行第一应用,并以所述加载状态在第一应用中加载所述第一内容。In some embodiments, the loading module 62 is specifically configured to: determine the application package name of the first application in the third information, run the first application based on the determined application package name, and use the loading status at the second Load the first content in an application; or, determine the relevant information of the access entry of the first application in the third information, run the first application based on the determined relevant information of the access entry, and use the loaded The state loads the first content in a first application.
在一些实施例中,所述访问入口的相关信息包括:至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,访问入口类型包括第一类型和/或第二类型;所述第一类型表征统一资源定位符URL;所述第二类型表征所述第一应用的安装包。In some embodiments, the relevant information of the access entry includes: at least one type of access entry and an access entry corresponding to each type of access entry in the at least one type of access entry; wherein, the type of access entry includes the first type And/or a second type; the first type represents a Uniform Resource Locator URL; the second type represents an installation package of the first application.
在一些实施例中,加载模块62具体用于:在确定出的访问入口类型为第一类型的情况下,基于URL访问第一应用;在确定出的访问入口类型为第二类型的情况下,基于第一应用的安装包安装第一应用,以及运行安装的第一应用。In some embodiments, the loading module 62 is specifically configured to: when the determined access entry type is the first type, access the first application based on the URL; when the determined access entry type is the second type, Installing the first application based on the installation package of the first application, and running the installed first application.
在一些实施例中,加载模块62具体用于:基于所述第二信息中包括的第一标记和/或第二标记,在第一应用中加载所述第一内容;其中,所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在第一应用的应用界面中的部分在所述第一内容中的所处位置;所述第二标记表征在所述第一电子设备的第一应用中为所述第一内容添加的标注信息。In some embodiments, the loading module 62 is specifically configured to: load the first content in the first application based on the first mark and/or the second mark included in the second information; wherein, the first The mark is used to mark a first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the second mark represents the position in the first application Annotation information added to the first content in the first application of the first electronic device.
在一些实施例中,所述第一信息至少包括所述第一内容;所述第一信息还包括:所述第一内容的格式;和/或,所述第一内容的长度。In some embodiments, the first information includes at least the first content; the first information further includes: a format of the first content; and/or, a length of the first content.
实际应用时,加载模块62可通过终端中的处理器,比如中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array)等实现,接收模块61可通过处理器和通信接口共同实现。In actual application, the loading module 62 can be processed by a processor in the terminal, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) or can Programmable Gate Array (FPGA, Field-Programmable Gate Array) and other implementations, the receiving module 61 can be implemented jointly by a processor and a communication interface.
需要说明的是:上述实施例提供的信息分享装置在进行信息分享时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的信息分享装置与信息分享方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the information sharing device provided by the above-mentioned embodiment performs information sharing, the division of the above-mentioned program modules is used as an example for illustration. In practical applications, the above-mentioned processing allocation can be completed by different program modules according to needs. That is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information sharing device and the information sharing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种电子设备。图7为本申请实施例提供的电子设备的硬件组成结构示意图,如图7所示,电子设备7包括:Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device. FIG. 7 is a schematic diagram of the hardware composition structure of the electronic device provided by the embodiment of the present application. As shown in FIG. 7, the electronic device 7 includes:
通信接口71,能够与其它设备比如网络设备等进行信息交互;Communication interface 71, capable of information exchange with other devices such as network devices;
处理器72,与所述通信接口71连接,以实现与其它设备进行信息交互,用于运行计算机程序时,执行上述应用于第一电子设备的一个或多个技术方案提供的信息分享方法,或者执行上述应用于第二电子设备的一个或多个技术方案提供的信息分享方法。而所述计算机程序存储在存储器73上。The processor 72 is connected to the communication interface 71 to realize information interaction with other devices, and is used to execute the information sharing method provided by the above-mentioned one or more technical solutions applied to the first electronic device when running the computer program, or Execute the information sharing method provided by the above-mentioned one or more technical solutions applied to the second electronic device. Instead, the computer program is stored on the memory 73 .
当然,实际应用时,电子设备7中的各个组件通过总线系统74耦合在一起。可理解,总线系统74用于实现这些组件之间的连接通信。总线系统74除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统74。Of course, in actual application, various components in the electronic device 7 are coupled together through the bus system 74 . It can be understood that the bus system 74 is used to realize connection and communication between these components. In addition to the data bus, the bus system 74 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 74 in FIG.
本申请实施例中的存储器73用于存储各种类型的数据以支持电子设备7的操作。这些数据的示例包括:用于在电子设备7上操作的任何计算机程序。The memory 73 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 7 . Examples of such data include: any computer program for operating on the electronic device 7 .
可以理解,存储器73可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器73旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 73 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Among them, the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory ). The memory 73 described in the embodiment of the present application is intended to include but not limited to these and any other suitable types of memory.
上述本申请实施例揭示的方法可以应用于处理器72中,或者由处理器72实现。处理器72可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器72中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器72可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器72可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器73,处理器72读取存储器73中的程序,结合其硬件完成前述方法的步骤。The methods disclosed in the foregoing embodiments of the present application may be applied to the processor 72 or implemented by the processor 72 . The processor 72 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 72 or an instruction in the form of software. The aforementioned processor 72 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 72 may implement or execute various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 73, and the processor 72 reads the program in the memory 73, and combines with its hardware to complete the steps of the foregoing method.
可选地,所述处理器72执行所述程序时实现本申请实施例的各个方法中由终端实现的相应流程,为了简洁,在此不再赘述。Optionally, when the processor 72 executes the program, it implements a corresponding process implemented by the terminal in each method of the embodiment of the present application, and details are not repeated here for the sake of brevity.
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储 介质,具体为计算机可读存储介质,例如包括存储计算机程序的第一存储器73,上述计算机程序可由终端的处理器72执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 73 storing a computer program, and the above-mentioned computer program can be processed by the terminal The device 72 is executed to complete the steps described in the foregoing method. The computer-readable storage medium can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit. Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the Including the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc. A medium on which program code can be stored.
需要说明的是,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。It should be noted that the technical solutions described in the embodiments of the present application may be combined arbitrarily if there is no conflict.
需要说明的是,本申请实施例中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多个中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。It should be noted that the term "and/or" in the embodiments of the present application is only an association relationship describing associated objects, which means that there may be three kinds of relationships, for example, A and/or B, which may mean that A exists alone , both A and B exist, and B exists alone. In addition, the term "at least one" herein means any combination of any one or more of at least two of a plurality, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (20)

  1. 一种信息分享方法,应用于第一电子设备,所述方法包括:An information sharing method applied to a first electronic device, the method comprising:
    生成第一信息序列;所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;generating a first information sequence; the first information sequence includes at least first information, second information, and third information; the first information represents first content loaded by a first application in the first electronic device; the The second information represents the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry;
    将所述第一信息序列发送至第二电子设备;其中,所述第二电子设备响应于接收的所述第一信息序列,基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。sending the first sequence of information to a second electronic device; wherein the second electronic device responds to receiving the first sequence of information, based on the first sequence of information, in the loaded state in the second electronic device Load the first content in an application.
  2. 根据权利要求1所述的方法,其中,所述访问入口的相关信息包括:The method according to claim 1, wherein the relevant information of the access entry includes:
    至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,At least one access entry type and an access entry corresponding to each access entry type in the at least one access entry type; wherein,
    所述访问入口类型包括第一类型和/或第二类型;所述第一类型表征URL;所述第二类型表征所述第一应用的安装包。The access entry type includes a first type and/or a second type; the first type represents a URL; the second type represents an installation package of the first application.
  3. 根据权利要求1或2所述的方法,其中,在所述生成第一信息序列之前,所述方法还包括:The method according to claim 1 or 2, wherein, before said generating the first information sequence, said method further comprises:
    获取所述第一应用上报的所述第一信息、所述第二信息和所述第三信息。Acquire the first information, the second information, and the third information reported by the first application.
  4. 根据权利要求1所述的方法,其中,所述生成第一信息序列,包括:The method according to claim 1, wherein said generating the first information sequence comprises:
    通过与所述第二电子设备进行消息交互,确定出所述第二电子设备中是否存在所述第一应用的访问入口;By performing message interaction with the second electronic device, determine whether there is an access entry of the first application in the second electronic device;
    在所述第二电子设备中不存在所述第一应用的访问入口的情况下,生成所述第一信息序列。If there is no access entry of the first application in the second electronic device, the first information sequence is generated.
  5. 根据权利要求1所述的方法,其中,在所述生成第一信息序列之前,所述方法还包括:The method according to claim 1, wherein, before said generating the first information sequence, said method further comprises:
    生成包括第一标记和/或第二标记的所述第二信息;其中,generating said second information comprising a first marker and/or a second marker; wherein,
    所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在所述第一应用的应用界面中的部分在所述第一内容中所处的位置;所述第二标记表征在所述第一电子设备的所述第一应用中为所述第一内容添加的标注信息。The first mark is used to mark a first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the The second tag represents annotation information added to the first content in the first application of the first electronic device.
  6. 根据权利要求1所述的方法,其中,在所述生成第一信息序列之前,所述方法还包括:The method according to claim 1, wherein, before said generating the first information sequence, said method further comprises:
    生成至少包括所述第一内容的所述第一信息。The first information including at least the first content is generated.
  7. 根据权利要求6所述的方法,其中,所述第一信息还包括:The method according to claim 6, wherein the first information further includes:
    所述第一内容的格式;和/或,the format of the first content; and/or,
    所述第一内容的长度。The length of the first content.
  8. 根据权利要求7所述的方法,其中,所述第一内容的格式用于供所述第二电子设备解析第一内容;所述第一内容的长度表征所述第一内容的数据量的大小,用于供所述第二电子设备判断接收到的第一内容是否完整。The method according to claim 7, wherein the format of the first content is used for the second electronic device to parse the first content; the length of the first content represents the size of the data volume of the first content , used for the second electronic device to judge whether the received first content is complete.
  9. 根据权利要求7或8所述的方法,其中,所述第一内容的格式包括MIME类型。The method according to claim 7 or 8, wherein the format of the first content includes a MIME type.
  10. 根据权利要求1至2、4至9任一项所述的方法,其中,所述第一信息序列表征为由所述第一信息、所述第二信息和所述第三信息构成的三元组。The method according to any one of claims 1 to 2, 4 to 9, wherein the first information sequence is characterized as a ternary consisting of the first information, the second information and the third information Group.
  11. 一种信息分享方法,应用于第二电子设备,所述方法包括:An information sharing method applied to a second electronic device, the method comprising:
    接收第一电子设备发送的第一信息序列;其中,所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;Receiving a first information sequence sent by the first electronic device; wherein, the first information sequence includes at least first information, second information, and third information; the first information represents a first application in the first electronic device The loaded first content; the second information indicates the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry;
    基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。Based on the first information sequence, the first content is loaded in the first application in the loading state.
  12. 根据权利要求11所述的方法,其中,所述以所述加载状态在所述第一应用中加载所述第一内容,包括:The method according to claim 11, wherein the loading the first content in the first application in the loading state comprises:
    在所述第三信息中确定出所述第一应用的应用包名,基于确定出的应用包名运行所述第一应用,以及,以所述加载状态在所述第一应用中加载所述第一内容;或者,Determine the application package name of the first application in the third information, run the first application based on the determined application package name, and load the first application in the loading state first content; or,
    在所述第三信息中确定出所述第一应用的访问入口的相关信息,基于确定出的访问入口的相关信息运行所述第一应用,以及,以所述加载状态在所述第一应用中加载所述第一内容。Determine the relevant information of the access entry of the first application in the third information, run the first application based on the determined relevant information of the access entry, and run the first application in the loading state Load the first content in .
  13. 根据权利要求12所述的方法,其中,所述访问入口的相关信息包括:The method according to claim 12, wherein the related information of the access entry includes:
    至少一种访问入口类型和所述至少一种访问入口类型中每种访问入口类型对应的访问入口;其中,At least one access entry type and an access entry corresponding to each access entry type in the at least one access entry type; wherein,
    所述访问入口类型包括第一类型和/或第二类型;所述第一类型表征URL;所述第二类型表征所述第一应用的安装包。The access entry type includes a first type and/or a second type; the first type represents a URL; the second type represents an installation package of the first application.
  14. 根据权利要求13所述的方法,其中,所述基于确定出的访问入口的相关信息运行所述第一应用,包括:The method according to claim 13, wherein said running the first application based on the determined relevant information of the access entry comprises:
    在确定出的访问入口类型为所述第一类型的情况下,基于URL访问所述第一应用;When the determined access entry type is the first type, access the first application based on the URL;
    在确定出的访问入口类型为所述第二类型的情况下,基于所述第一应用的安装包安装所述第一应用,以及运行安装的所述第一应用。If the determined access entry type is the second type, the first application is installed based on the installation package of the first application, and the installed first application is executed.
  15. 根据权利要求11所述的方法,其中,所述以所述加载状态在所述第一应用中加载所述第一内容,包括:The method according to claim 11, wherein the loading the first content in the first application in the loading state comprises:
    基于所述第二信息中包括的第一标记和/或第二标记,在所述第一应用中加载所述第一内容;其中,Loading the first content in the first application based on the first mark and/or the second mark included in the second information; wherein,
    所述第一标记用于标记第一位置;所述第一位置表征所述第一内容显示在所述第一应用的应用界面中的部分在所述第一内容中的所处位置;所述第二标记表征在所述第一电子设备的所述第一应用中为所述第一内容添加的标注信息。The first mark is used to mark a first position; the first position represents the position of the part of the first content displayed in the application interface of the first application in the first content; the The second tag represents annotation information added to the first content in the first application of the first electronic device.
  16. 根据权利要求11所述的方法,其中,所述第一信息至少包括所述第一内容;所述第一信息还包括:The method according to claim 11, wherein the first information includes at least the first content; the first information further includes:
    所述第一内容的格式;和/或,the format of the first content; and/or,
    所述第一内容的长度。The length of the first content.
  17. 一种信息分享装置,包括:An information sharing device, comprising:
    第一生成模块,用于生成第一信息序列;所述第一信息序列至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;The first generation module is configured to generate a first information sequence; the first information sequence includes at least first information, second information and third information; the first information represents the first application loaded in the first electronic device The first content of the first application; the second information indicates the loading state of the first content in the first application; the third information includes the application package name of the first application and related information of the access entry;
    发送模块,用于将所述第一信息序列发送至第二电子设备;其中,所述第二电子设备响应于接收的所述第一信息序列,基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。A sending module, configured to send the first information sequence to a second electronic device; wherein, the second electronic device responds to the received first information sequence, based on the first information sequence, loads the A state loads the first content in the first application.
  18. 一种信息分享装置,包括:An information sharing device, comprising:
    接收模块,用于接收第一电子设备发送的第一信息序列;其中,所述第一信息序列由所述第一电子设备生成,至少包括第一信息、第二信息和第三信息;所述第一信息表征所述第一电子设备中第一应用加载的第一内容;所述第二信息表征所述第一内容在所述第一应用中的加载状态;所述第三信息包括所述第一应用的应用包名和访问入口的相关信息;A receiving module, configured to receive a first information sequence sent by a first electronic device; wherein, the first information sequence is generated by the first electronic device and includes at least first information, second information, and third information; the The first information represents the first content loaded by the first application in the first electronic device; the second information represents the loading state of the first content in the first application; the third information includes the Information about the application package name of the first application and the access entry;
    加载模块,用于基于所述第一信息序列,以所述加载状态在所述第一应用中加载所述第一内容。A loading module, configured to load the first content in the first application in the loading state based on the first information sequence.
  19. 一种电子设备,包括:处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行以下之一:An electronic device, comprising: a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, perform one of the following:
    权利要求1至10任一项所述的信息分享方法的步骤;The steps of the information sharing method described in any one of claims 1 to 10;
    权利要求11至16任一项所述的信息分享方法的步骤。The steps of the information sharing method described in any one of claims 11 to 16.
  20. 一种计算机可读的存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下之一:A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, one of the following is realized:
    权利要求1至10任一项所述的信息分享方法的步骤;The steps of the information sharing method described in any one of claims 1 to 10;
    权利要求11至16任一项所述的信息分享方法的步骤。The steps of the information sharing method described in any one of claims 11 to 16.
PCT/CN2022/117760 2021-11-15 2022-09-08 Information sharing method and apparatus, electronic device and storage medium WO2023082813A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111346614.1 2021-11-15
CN202111346614.1A CN114048048A (en) 2021-11-15 2021-11-15 Information sharing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023082813A1 true WO2023082813A1 (en) 2023-05-19

Family

ID=80208969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/117760 WO2023082813A1 (en) 2021-11-15 2022-09-08 Information sharing method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114048048A (en)
WO (1) WO2023082813A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114048048A (en) * 2021-11-15 2022-02-15 Oppo广东移动通信有限公司 Information sharing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488097A (en) * 2014-10-01 2016-04-13 三星电子株式会社 Information sharing method and electronic device
US9928221B1 (en) * 2014-01-07 2018-03-27 Google Llc Sharing links which include user input
CN110457522A (en) * 2019-08-15 2019-11-15 北京字节跳动网络技术有限公司 Method and device, terminal and the storage medium that information is shared
CN111680238A (en) * 2019-03-11 2020-09-18 腾讯科技(深圳)有限公司 Information sharing method and device and storage medium
CN114048048A (en) * 2021-11-15 2022-02-15 Oppo广东移动通信有限公司 Information sharing method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140082045A1 (en) * 2012-09-14 2014-03-20 Adobe Systems Incorporated Responsive Modification of Electronic Content
CN104980326A (en) * 2014-04-03 2015-10-14 联想移动通信软件(武汉)有限公司 Method and device for sharing application content between terminal equipment
CN104780209A (en) * 2015-04-07 2015-07-15 北京奇点机智信息技术有限公司 Portable equipment and server for realizing sharing interface scenario
CN110086877B (en) * 2019-04-30 2022-10-21 上海连尚网络科技有限公司 Application program sharing and information sharing display method, device, equipment and medium
CN111600931A (en) * 2020-04-13 2020-08-28 维沃移动通信有限公司 Information sharing method and electronic equipment
CN113726640A (en) * 2020-05-26 2021-11-30 华为技术有限公司 Instant messaging method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9928221B1 (en) * 2014-01-07 2018-03-27 Google Llc Sharing links which include user input
CN105488097A (en) * 2014-10-01 2016-04-13 三星电子株式会社 Information sharing method and electronic device
CN111680238A (en) * 2019-03-11 2020-09-18 腾讯科技(深圳)有限公司 Information sharing method and device and storage medium
CN110457522A (en) * 2019-08-15 2019-11-15 北京字节跳动网络技术有限公司 Method and device, terminal and the storage medium that information is shared
CN114048048A (en) * 2021-11-15 2022-02-15 Oppo广东移动通信有限公司 Information sharing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114048048A (en) 2022-02-15

Similar Documents

Publication Publication Date Title
US9619304B2 (en) Automatic connections between application components
US11132420B2 (en) Utilizing server pre-processing to deploy renditions of electronic documents in a computer network
EP2948846B1 (en) Resource calling for hybrid applications
EP2537101B1 (en) Server-based data sharing in computer applications
CN110941500B (en) Interface display method and device
CN105740330B (en) Method and device for displaying data in paging mode
CN112667415B (en) Data calling method and device, readable storage medium and electronic equipment
CN111476015A (en) Document processing method and device, electronic equipment and storage medium
US9706006B2 (en) System and method of context aware adaption of content for a mobile device
WO2023082813A1 (en) Information sharing method and apparatus, electronic device and storage medium
US20240103928A1 (en) Information processing method and apparatus for animation resource, device, medium and product
CN110968314A (en) Page generation method and device
CN113886174A (en) Monitoring information display and processing method and device, computer equipment and storage medium
US20140075288A1 (en) Electronic device and method for displaying images on screen
US20220113997A1 (en) Application sharing method, electronic apparatus and non-transitory computer-readable storage medium
WO2019127894A1 (en) Method for converting pdf file into picture, electronic device, and computer-readable storage medium
US8683313B2 (en) System for processing mixed-format files
CN112202598B (en) Log recording method and device
CN115421693A (en) Method and device for realizing micro front-end architecture, computer equipment and storage medium
CN112783548B (en) Access method and device of network system
CN114065068A (en) Page access control method and device, equipment and storage medium
US20150131130A1 (en) Information processing apparatus and information processing system
CN113220273B (en) Micro front-end application resource processing method, device, equipment and medium
CN110647331A (en) Development tool acquisition method and device, storage medium and electronic equipment
CN114760374B (en) Message parsing method and device, electronic equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22891618

Country of ref document: EP

Kind code of ref document: A1