WO2021023220A1 - Content continuation method and system, and electronic device - Google Patents

Content continuation method and system, and electronic device Download PDF

Info

Publication number
WO2021023220A1
WO2021023220A1 PCT/CN2020/107085 CN2020107085W WO2021023220A1 WO 2021023220 A1 WO2021023220 A1 WO 2021023220A1 CN 2020107085 W CN2020107085 W CN 2020107085W WO 2021023220 A1 WO2021023220 A1 WO 2021023220A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
application
application interface
label
nfc unit
Prior art date
Application number
PCT/CN2020/107085
Other languages
French (fr)
Chinese (zh)
Inventor
聂振兴
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021023220A1 publication Critical patent/WO2021023220A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • This application relates to the field of terminals, in particular to a content connection method, system and electronic equipment.
  • a user or family often has multiple electronic devices, and the user often needs to switch between multiple electronic devices.
  • a user uses a mobile phone to watch a video on the way from get off work, and may wish to switch the video to the TV to continue watching after returning home.
  • a user can use a laptop to work at home, and when the user leaves home, he may wish to switch the files in the laptop to the mobile phone to continue working.
  • the user is usually required to manually switch the playback content on one device to another device. For example, if the user needs to switch the webpage A being browsed in the mobile phone to a laptop for playback, the user can enter the web address of the webpage A in the browser of the laptop to open the webpage A on the laptop. Obviously, this process of switching between multiple devices to play content is time-consuming and cumbersome, and the user experience is not high.
  • the present application provides a content connection method, system and electronic device, which can conveniently and quickly switch the content played in the first electronic device to the second electronic device to continue playing, thereby reducing the complexity of operations when the user interacts across devices. Improve user experience.
  • the present application provides a content connection system.
  • the system may include a first electronic device and a second electronic device.
  • the first electronic device is configured with a first NFC unit
  • the second electronic device is configured with a second NFC unit.
  • the NFC unit includes the device information of the second electronic device, and the above-mentioned NFC unit may specifically be an NFC chip or an electronic tag;
  • the first electronic device when the first electronic device displays the first application interface of the first application, the first electronic device can obtain the device information of the second electronic device from the second NFC unit through the first NFC unit; further, the first electronic device can Establish a wireless communication connection with the second electronic device according to the device information.
  • the wireless communication connection may be a Bluetooth connection or a Wi-Fi P2P connection; subsequently, the first electronic device may send the first application to the second electronic device based on the above wireless communication connection
  • the label of the interface which is used to indicate the display content in the first application interface; in this way, after receiving the label, the second electronic device can display the second application interface of the first application corresponding to the first application interface according to the label ,
  • the first application interface and the second application interface contain the same display content.
  • the NFC unit in the two electronic devices can quickly establish a wireless communication connection, thereby sending the content tag being displayed in the first electronic device to the second electronic device.
  • the electronic device enables the second electronic device to continuously play the application interface in the first electronic device according to the tag, thereby simplifying the user's operation process when the same content is interacted across devices, and improving and enriching the user's experience.
  • the first electronic device may be specifically used to obtain device information of the second electronic device from the second NFC unit through the first NFC unit in response to an operation of approaching or contacting the second NFC unit.
  • the first electronic device may be specifically used to send an electromagnetic wave signal through the first NFC unit, and the electromagnetic wave signal is used to drive the second NFC unit to send the device information of the second electronic device;
  • the NFC unit obtains the device information of the second electronic device from the second NFC unit.
  • the user can trigger the first electronic device to establish a communication connection with the second electronic device through a touch, so as to switch the display content in the first electronic device to the second electronic device to continue playing.
  • the first electronic device is also used to: obtain the label of the first application interface.
  • the first electronic device is specifically used for: the bump application in the first electronic device sends a first request to the first application running in the foreground, and the first request is used to request to obtain the display The label of the first application interface; in response to the first request, the first application obtains the label of the first application interface.
  • the first electronic device is specifically configured to: obtain the label of the first application interface from the application server of the first application.
  • the first electronic device may be specifically used to: send a second request to the above-mentioned application server, the second request includes one or more indexes corresponding to the first response interface; the application server is also used to: according to the second request One or more indexes of generates a label of the first application interface, and sends the label of the first application interface to the first electronic device.
  • the first electronic device is further used to: obtain authentication information from the above application server, the authentication information is used to log in to the user's account registered in the first application; and send the authentication information based on the above wireless communication connection
  • the second electronic device is also used to: use the authentication information to log in to the first application installed in the second electronic device. In this way, after the second electronic device automatically logs in to the first application, it can display the second application interface corresponding to the first application interface according to the label of the first application interface.
  • the first electronic device is also used to: predict the user's browsing location in the first application interface; send the browsing location to the second electronic device based on the above-mentioned wireless communication connection; the second electronic device specifically uses Yu: Display the second application interface according to the label of the first application interface and the browsing position.
  • the first electronic device is further configured to: send files contained in the first application interface to the second electronic device based on the above-mentioned wireless communication connection; the second electronic device is specifically configured to: according to the first application interface The label of and the file received from the first electronic device displays the second application interface.
  • the second electronic device is also used to: start the installed first application, and send the label of the first application interface to the first application, so that the first application displays the corresponding label according to the label.
  • the second electronic device is further configured to: when the first application is not installed in the second electronic device, prompt the user to download and install the first application in the second electronic device.
  • the above-mentioned device information may include the identification of the second electronic device, such as the Bluetooth MAC address of the second electronic device; in this case, the first electronic device can be specifically used to: The second electronic device establishes a Bluetooth connection; or, according to the identification of the second electronic device, establishes a Bluetooth connection with the second electronic device; then obtains connection configuration information from the second electronic device through the Bluetooth connection; and uses the connection configuration information to communicate with The second electronic device establishes a Wi-Fi P2P connection.
  • the identification of the second electronic device such as the Bluetooth MAC address of the second electronic device
  • the first electronic device can be specifically used to: The second electronic device establishes a Bluetooth connection; or, according to the identification of the second electronic device, establishes a Bluetooth connection with the second electronic device; then obtains connection configuration information from the second electronic device through the Bluetooth connection; and uses the connection configuration information to communicate with The second electronic device establishes a Wi-Fi P2P connection.
  • the first electronic device is specifically configured to: if the first application is a preset application, or the first application interface is a preset application interface, connect to the second electronic device based on the wireless communication connection Send the label of the first application interface.
  • the first electronic device is specifically configured to: if the stay time when the first NFC unit is close to or in contact with the second NFC unit satisfies the first preset condition, send the second electronic device based on the wireless communication connection The device sends the label of the first application interface; or; if the signal strength when the first NFC unit is close to or in contact with the second NFC unit meets the second preset condition, the first application interface is sent to the second electronic device based on the wireless communication connection Or; if the distance between the first NFC unit and the second NFC unit satisfies the third preset condition, send the label of the first application interface to the second electronic device based on the wireless communication connection.
  • the first electronic device can determine whether the user’s current operation intention is to continue playing the first electronic device in the second electronic device according to the distance, signal strength, or contact time with the NFC unit in the second electronic device. Display content in electronic equipment. If the user's intention is not to continue to play the displayed content in the first electronic device in the second electronic device, the first electronic device can transmit the files contained in the first application interface to the second electronic device to realize the "one touch transfer" File transfer function.
  • the first electronic device is also used to display a first option and a second option
  • the first option is used to indicate to send the label of the first application interface to the second electronic device
  • the second option is used to Instruct to send the file in the first application interface to the second electronic device. Then, if it is detected that the user selects the first option, the first electronic device can send the label of the first application interface to the second electronic device based on the above-mentioned wireless communication connection, so as to realize the "one touch connection" content replay function.
  • the present application provides a content connection method, which can be applied to the content connection system in the first aspect; wherein, when the first electronic device displays the first application interface of the first application, The NFC unit obtains the device information of the second electronic device; the first electronic device establishes a wireless communication connection with the second electronic device according to the device information, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the first electronic device is based on the The wireless communication connection sends the label of the first application interface to the second electronic device, the label is used to indicate the display content in the first application interface; after receiving the label of the first application interface, the second electronic device can display and A second application interface corresponding to the first application interface, and the first application interface and the second application interface contain the same display content.
  • obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: in response to an operation of approaching or touching the second NFC unit in the second electronic device, the first electronic device The device obtains the device information of the second electronic device from the second NFC unit through the first NFC unit.
  • obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: the first electronic device sends an electromagnetic wave signal through the first NFC unit, and the electromagnetic wave signal is used to drive the second electronic device.
  • the second NFC unit sends the device information of the second electronic device; furthermore, the first electronic device can obtain the device information of the second electronic device from the second NFC unit through the first NFC unit.
  • the above content connection method further includes: the first electronic device obtains the label of the first application interface.
  • acquiring the label of the first application interface by the first electronic device includes: a bumper application in the first electronic device sends a first request to a first application running in the foreground, and the first request is used to request to acquire the current display The label of the first application interface; in response to the first request, the first application obtains the label of the first application interface.
  • acquiring the label of the first application interface by the first application includes: the first electronic device acquires the label of the first application interface from an application server of the first application.
  • the first electronic device obtains the label of the first application interface from the application server of the first application includes: the first electronic device sends a second request to the application server, and the second request includes corresponding to the first application interface
  • the application server generates the label of the first application interface according to the one or more indexes in the second request, and sends the label of the first application interface to the first electronic device.
  • the foregoing content connection method further includes: the first electronic device obtains authentication information from the application server, and the authentication information is used to log in to the user's account registered in the first application; further, the first electronic device may The authentication information is sent to the second electronic device based on the aforementioned wireless communication connection; after receiving the authentication information, the second electronic device can use the authentication information to log in to the first application installed in the second electronic device.
  • the foregoing content connection method further includes: the first electronic device predicts the user's browsing position in the first application interface; and the first electronic device may send to the second electronic device based on the foregoing wireless communication connection The browse location. In this way, the second electronic device can display the second application interface according to the label of the first application interface and the browsing position.
  • the foregoing content connection method further includes: the first electronic device sends the file contained in the first application interface to the second electronic device based on the wireless communication connection.
  • the second electronic device can display the second application interface according to the label of the first application interface and the file received from the first electronic device.
  • the method before the second electronic device displays the second application interface according to the label of the first application interface, the method further includes: the second electronic device starts the installed first application and sets the The label is sent to the first application.
  • the second electronic device can use a browser to open the second application interface according to the label of the first application interface; or, the second electronic device can prompt the user to log in to the second electronic device Download and install the first application.
  • the above-mentioned device information may include the identification of the second electronic device; wherein the first electronic device establishes a wireless communication connection with the second electronic device according to the device information, including: The identification of the electronic device establishes a Bluetooth connection with the second electronic device; or, the first electronic device establishes a Bluetooth connection with the second electronic device according to the identification of the second electronic device; and further, the first electronic device obtains a Bluetooth connection from the second electronic device through the Bluetooth connection To obtain connection configuration information in the, and use the connection configuration information to establish a Wi-Fi P2P connection with the second electronic device.
  • the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: if the first application is a preset application, or the first application interface is a preset application If an application interface is set, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
  • the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: if the residence time when the first NFC unit and the second NFC unit are close to or in contact According to the first preset condition, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection; or; if the signal strength when the first NFC unit and the second NFC unit are close to or in contact with each other meets the second According to a preset condition, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection; or; if the distance between the first NFC unit and the second NFC unit satisfies the third preset condition, The first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
  • the method further includes: the first electronic device displays the first option and the second option, and The option is used to indicate to send the label of the first application interface to the second electronic device, and the second option is to indicate to send the file in the first application interface to the second electronic device. Then, if it is detected that the user selects the first option, the first electronic device may send the label of the first application interface to the second electronic device based on the wireless communication connection.
  • the present application provides a first electronic device, including a processor, and a first NFC unit, a display screen, a communication module, and a memory coupled to the processor.
  • the first NFC unit is an NFC chip or an electronic tag; where ,
  • the processor is used to: instruct the display screen to display the first application interface of the first application; the processor is also used to: instruct the first NFC unit to obtain the device information of the second electronic device; the processor is also used to: instruct the communication module to follow the device
  • the information establishes a wireless communication connection with the second electronic device, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the processor is further configured to: instruct the communication module to send the label of the first application interface to the second electronic device based on the wireless communication connection
  • the label is used to indicate the display content in the first application interface, so that the second electronic device displays the second application interface of the first application corresponding to the first application interface according to the label.
  • the first NFC unit is specifically used to: detect the operation of the first electronic device approaching or touching the second NFC unit in the second electronic device; in response to the operation approaching or touching the second NFC unit, from The device information of the second electronic device is read in the second NFC unit.
  • the first NFC unit is specifically used to: send an electromagnetic wave signal, which is used to drive the second NFC unit in the second electronic device to send the device information of the second electronic device; and from the second NFC unit To obtain the device information of the second electronic device.
  • the foregoing processor is further configured to instruct the communication module to obtain the label of the first application interface from the application server of the first application.
  • the above-mentioned processor is further configured to: instruct the communication module to obtain authentication information from the application server of the first application, and the authentication information is used to log in to the user's account registered in the first application; and, instruct The communication module sends the authentication information to the second electronic device based on the wireless communication connection.
  • the above-mentioned processor is further configured to: predict the user's browsing position in the first application interface; and instruct the communication module to send the browsing position to the second electronic device based on the wireless communication connection.
  • the foregoing processor is further configured to: instruct the communication module to send the file contained in the first application interface to the second electronic device based on the wireless communication connection.
  • the above-mentioned processor is specifically configured to: if the first application is a preset application, or the first application interface is a preset application interface, instruct the communication module to communicate with the second application based on the wireless communication connection.
  • the electronic device sends the label of the first application interface.
  • the above-mentioned processor is specifically configured to: determine whether the residence time when the first NFC unit is close to or in contact with the second NFC unit in the second electronic device meets the first preset condition; or, to determine Whether the signal strength when an NFC unit is close to or in contact with the second NFC unit in the second electronic device meets the second preset condition; or, whether the distance between the first NFC unit and the second NFC unit in the second electronic device is determined
  • the third preset condition is satisfied; if at least one of the first preset condition, the second preset condition, or the third preset condition is satisfied, the communication module is instructed to send the information of the first application interface to the second electronic device based on the wireless communication connection label.
  • the above-mentioned processor is further configured to: instruct the display screen to display the first option and the second option, the first option is used to indicate to send the label of the first application interface to the second electronic device, and the second option It is used to instruct to send the file in the first application interface to the second electronic device.
  • the present application provides a content connection method, including: when the first electronic device displays the first application interface of the first application, it can obtain the device information of the second electronic device through its first NFC unit; The electronic device establishes a wireless communication connection with the second electronic device according to the device information.
  • the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the first electronic device sends the information of the first application interface to the second electronic device based on the wireless communication connection.
  • a label the label is used to indicate the display content in the first application interface, so that the second electronic device displays a second application interface corresponding to the first application interface according to the label, and the first application interface and the second application interface contain the same Display content.
  • obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: responding to an operation of the first NFC unit approaching or touching the second NFC unit in the second electronic device , The first electronic device reads the device information of the second electronic device from the second NFC unit.
  • obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: the first electronic device sends an electromagnetic wave signal, and the electromagnetic wave signal is used to drive the second electronic device in the second electronic device.
  • the second NFC unit sends the device information of the second electronic device; the first electronic device obtains the device information of the second electronic device from the second NFC unit.
  • the above content connection method further includes: the first electronic device obtains the label of the first application interface from the application server of the first application.
  • the above content connection method further includes: the first electronic device obtains authentication information from the application server of the first application, the authentication information is used to log in to the user's account registered in the first application; further, The first electronic device may send the authentication information to the second electronic device based on the wireless communication connection.
  • the above content connection method further includes: the first electronic device predicts the user's browsing position in the first application interface; further, the first electronic device may send to the second electronic device based on the wireless communication connection The browse location.
  • the foregoing content connection method further includes: the first electronic device may send the file contained in the first application interface to the second electronic device based on the wireless communication connection.
  • the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: if the first application is a preset application, or the first application interface is a preset application If an application interface is set, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
  • the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: the first electronic device determines that the first NFC unit and the second NFC in the second electronic device Whether the dwell time when the unit approaches or contacts meets the first preset condition; or, it is determined whether the signal strength when the first NFC unit approaches or contacts the second NFC unit in the second electronic device meets the second preset condition; or, Determine whether the distance between the first NFC unit and the second NFC unit in the second electronic device satisfies the third preset condition; if it satisfies at least one of the first preset condition, the second preset condition, or the third preset condition , The first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
  • the method further includes: the first electronic device displays the first option and the second option, and The option is used to indicate to send the label of the first application interface to the second electronic device, and the second option is to indicate to send the file in the first application interface to the second electronic device. Then, if it is detected that the user selects the first option, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
  • the present application provides a second electronic device, including a processor, and a second NFC unit, a display screen, a communication module, and a memory coupled with the processor.
  • the second NFC unit is an NFC chip or an electronic tag.
  • the second NFC unit includes the device information of the second electronic device; wherein,
  • the communication module is used to establish a wireless communication connection with the first electronic device, the wireless communication connection being a Bluetooth connection or a Wi-Fi P2P connection; receiving the label of the first application interface sent by the first electronic device based on the wireless communication connection, the first application
  • the interface is the interface being displayed by the first electronic device, the label is used to indicate the display content in the first application interface;
  • the processor is used to: according to the label instruct the display screen to display the second application of the first application corresponding to the first application interface Interface, the first application interface and the second application interface contain the same display content.
  • the foregoing processor is specifically configured to: in response to an operation of the first NFC unit in the first electronic device approaching or contacting the second NFC unit, instruct the communication module to establish a wireless communication connection with the first electronic device.
  • the above-mentioned communication module is further configured to: receive authentication information sent by the first electronic device, where the authentication information is used to log in to the user's account registered in the first application; the above-mentioned processor is also used to: use The authentication information logs in the first application installed in the second electronic device.
  • the aforementioned communication module is further configured to: receive the user's browsing position in the first application interface sent by the first electronic device; at this time, the aforementioned processor is specifically configured to: according to the tag and the browsing The position indicates that the display screen displays the second application interface corresponding to the first application interface.
  • the above-mentioned communication module is further configured to: receive the file contained in the first application interface sent by the first electronic device; at this time, the above-mentioned processor is specifically configured to: according to the label and from the first electronic device The file received by the device instructs the display screen to display the second application interface corresponding to the first application interface.
  • the above-mentioned processor is further configured to: use a browser to open a second application interface corresponding to the first application interface on the display screen according to the label of the first application interface; or, prompt on the display screen The user installs the first application in the second electronic device.
  • this application provides a content connection method, including: a second electronic device establishes a wireless communication connection with the first electronic device, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the second electronic device is based on the wireless The communication connection receives the label of the first application interface sent by the first electronic device, the first application interface is the interface being displayed by the first electronic device, and the label is used to indicate the display content in the first application interface; further, the second electronic device According to the label, a second application interface corresponding to the first application interface is displayed, and the first application interface and the second application interface contain the same display content.
  • the second electronic device includes a second NFC unit, and the second NFC unit is an NFC chip or an electronic tag; wherein the second electronic device establishes a wireless communication connection with the first electronic device, including: responding When the first NFC unit in the first electronic device approaches or contacts the second NFC unit, the second electronic device establishes a wireless communication connection with the first electronic device.
  • the above content connection method further includes: the second electronic device receives authentication information sent by the first electronic device, and the authentication information is used to log in to the user's account registered in the first application; further, the second electronic device The electronic device can use the authentication information to log in to the first application installed in the second electronic device.
  • the above content connection method further includes: the second electronic device receives the user's browsing position in the first application interface sent by the first electronic device; then, the second electronic device can use the tag and the The browsing position displays a second application interface corresponding to the first application interface.
  • the foregoing content connection method further includes: the second electronic device receives the file contained in the first application interface sent by the first electronic device; then, the second electronic device can communicate with the first application interface according to the label.
  • the file received by the electronic device displays a second application interface corresponding to the first application interface.
  • the method further includes: the second electronic device uses the browser according to the label of the first application interface.
  • the device opens a second application interface corresponding to the first application interface; or, prompts the user to install the first application in the second electronic device.
  • the present application provides a computer storage medium including computer instructions, which when the computer instructions run on the above-mentioned first electronic device, cause the first electronic device to execute the content connection method according to any one of the fourth aspect .
  • the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on the above-mentioned second electronic device, cause the second electronic device to execute the content connection method described in any one of the sixth aspect .
  • the present application provides a computer program product that, when the computer program product runs on the above-mentioned first electronic device, causes the first electronic device to execute the method for continuing to broadcast content as described in any one of the fourth aspect.
  • the present application provides a computer program product, which when the computer program product runs on the above-mentioned second electronic device, causes the second electronic device to execute the method for continuing to broadcast content as described in any one of the sixth aspect.
  • FIG. 1 is a schematic structural diagram of a content connection system provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of a notebook computer provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram 1 of interaction of a content connection method provided by an embodiment of this application.
  • FIG. 4 is a schematic diagram 1 of a content connection method provided by an embodiment of the application.
  • FIG. 5 is a first structural diagram of an electronic device according to an embodiment of the application.
  • FIG. 6 is a schematic structural diagram of an operating system in an electronic device provided by an embodiment of this application.
  • FIG. 7 is a schematic diagram 2 of a content connection method provided by an embodiment of this application.
  • FIG. 8 is a second schematic diagram of interaction of a content connection method provided by an embodiment of this application.
  • FIG. 9 is a schematic diagram 3 of a content connection method provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram 4 of a content connection method provided by an embodiment of this application.
  • FIG. 11 is a schematic diagram 5 of a content connection method provided by an embodiment of the application.
  • FIG. 12 is a sixth schematic diagram of a content connection method provided by an embodiment of this application.
  • FIG. 13 is a schematic diagram 7 of a content connection method provided by an embodiment of this application.
  • FIG. 14 is a schematic diagram eight of a content connection method provided by an embodiment of this application.
  • FIG. 15 is a second structural diagram of an electronic device according to an embodiment of the application.
  • FIG. 16 is a third structural diagram of an electronic device provided by an embodiment of this application.
  • the content connection method provided by the embodiment of the present application can be applied to the content connection system 200 shown in FIG. 1.
  • the content connection system 200 may include a first electronic device 101 and a second electronic device 102.
  • the first electronic device 101 and the second electronic device 102 may specifically be mobile phones, tablet computers, smart TVs, notebook computers, Ultra-mobile Personal Computers (UMPC), handheld computers, netbooks, personal digital assistants (Personal Digital Assistant, PDA), wearable electronic equipment, vehicle-mounted equipment, virtual reality equipment, etc., the embodiments of the present application do not make any restrictions on this.
  • the first electronic device 101 and the second electronic device 102 may both be mobile phones, or the first electronic device 101 and the second electronic device 102 may both be laptop computers, or the first electronic device 101 may be a mobile phone or a tablet computer.
  • the second electronic device 102 can be a notebook computer or a smart TV.
  • the user may need to switch the displayed content such as web pages, pictures, text, animations or videos on the phone to the laptop. Rebroadcast.
  • the mobile phone simultaneously plays the corresponding audio content while displaying the above display content
  • the audio content can also be switched to the notebook computer to continue playing.
  • the user uses the video APP in the mobile phone to play video A on the way home. When the user goes home, he can switch the video A played in the mobile phone to the laptop to continue playing, so that the same content can be played between multiple electronic devices The seamless replay function.
  • the first electronic device 101 may first establish a communication connection with the second electronic device 102, and then display content (or The related information of the audio content) is sent to the second electronic device 102, and the second electronic device 102 completes this replay task.
  • an electronic tag 201 can be set on the notebook computer.
  • the electronic tag can also be called NFC (near field communication). )label.
  • the electronic tag 201 is generally provided with a coil, and the device information of the notebook computer, such as the Bluetooth MAC (media access control) address of the notebook computer, can be written into the coil of the electronic tag 201 in advance when the notebook computer leaves the factory.
  • the NFC chip 201 may be preset in the notebook computer, and the device information of the notebook computer may also be stored in the NFC chip 201.
  • the electronic tag 201 mentioned in the following specific embodiments can be replaced with an NFC chip, and will not be described one by one in the following description.
  • the NFC function of the mobile phone when the user needs to switch the playback content in the mobile phone to the laptop for replay, the NFC function of the mobile phone can be turned on, and the mobile phone can be brought close to the laptop so that the NFC chip of the mobile phone is close to or touches the laptop Electronic label 201 on the computer.
  • the device information of the notebook computer can be read from the electronic tag 201 by emitting near-field signals.
  • the mobile phone can establish a wireless communication connection with the notebook computer according to the device information of the notebook computer.
  • the wireless communication connection may specifically be a Bluetooth connection, a Wi-Fi connection, or a Wi-Fi P2P (peer to peer) connection, etc. This application embodiment does not impose any restriction on this.
  • the mobile phone can obtain the current specific display content tag from the application running in the foreground.
  • the label of the displayed content is used to record the user's browsing position of the currently displayed content.
  • the mobile phone can request the video APP to query the identification of the playback page of Video A, such as the playback page URL (uniform resource locator, uniform resource locator), and the playback progress of video A (for example, the playback progress is 00:05 seconds).
  • the playback page URL uniform resource locator, uniform resource locator
  • the playback progress of video A for example, the playback progress is 00:05 seconds.
  • the mobile phone can send the playback progress of video A and the identification of the playback page as tags of the currently displayed content to the notebook computer. Then, if the same video APP is also installed in the laptop, the laptop can open the video APP installed on the laptop after receiving the label of the above display content, so that the video APP in the laptop can follow the above-mentioned playback page. Mark to open the playback page of video A, and continue to play video A on the laptop according to the playback progress of video A above.
  • the laptop can also use the browser to open the playback page of video A according to the identification of the playback page sent by the mobile phone, and continue to play the video in the laptop according to the playback progress of the above video A A.
  • the first electronic device when the user wants to switch the electronic device to browse the same content, the first electronic device can be triggered to quickly establish a wireless communication connection with the second electronic device by touching the two electronic devices, and the first electronic device is automatically The displayed content is switched to the second electronic device for continuous playback, thereby simplifying the user's operation process when the same content is interacted across devices, and improving and enriching the user's experience.
  • the display content of the mobile phone is switched to the notebook computer to continue playing.
  • the notebook computer can also be used as the first electronic device 101 and the mobile phone can be used as the second electronic device. 102. Then switch the display content in the notebook computer to the mobile phone for continuous playback according to the foregoing method, and the embodiment of the present application does not impose any limitation on this.
  • the roles of the first electronic device 101 and the second electronic device 102 during content connection are interchangeable.
  • the second electronic device 102 can also switch the content being displayed to the first electronic device 101 to continue playing.
  • FIG. 5 shows a schematic structural diagram of the mobile phone.
  • the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, and mobile
  • the communication module 150 the wireless communication module 160, the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, the sensor module 180 and so on.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone.
  • the mobile phone may include more or fewer components than those shown in the figure, or combine certain components, or disassemble certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the wireless communication function of the mobile phone can be realized by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied on a mobile phone.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on mobile phones, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems ( Global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite systems
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the mobile phone is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the mobile phone achieves display functions through GPU, display 194, and application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the mobile phone may include one or N display screens 194, and N is a positive integer greater than one.
  • the mobile phone can realize shooting function through ISP, camera 193, video codec, GPU, display 194 and application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the mobile phone may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the mobile phone selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • the phone can support one or more video codecs.
  • the mobile phone can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the mobile phone by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the mobile phone can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the mobile phone can listen to music through the speaker 170A, or listen to hands-free calls.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the voice can be heard by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
  • the mobile phone can be equipped with at least one microphone 170C.
  • the mobile phone may be provided with two microphones 170C, in addition to collecting sound signals, it may also achieve a noise reduction function.
  • the mobile phone can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
  • the mobile phone may also include a charging management module 140, a power management module 141, a battery 142, a button 190, an indicator 192, and one or more SIM card interfaces, etc.
  • a charging management module 140 may also include a charging management module 140, a power management module 141, a battery 142, a button 190, an indicator 192, and one or more SIM card interfaces, etc.
  • the embodiment of the present application does not impose any limitation on this.
  • the software system of the above mobile phone may adopt a layered architecture, event-driven architecture, micro-core architecture, micro-service architecture, or cloud architecture.
  • the embodiment of the present application takes a layered Android system as an example to illustrate the software structure of a mobile phone.
  • FIG. 6 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application layer can install apps (applications) such as call, memo, browser, contacts, camera, gallery, calendar, map, Bluetooth, music, video, short message, etc. .
  • apps applications
  • apps such as call, memo, browser, contacts, camera, gallery, calendar, map, Bluetooth, music, video, short message, etc.
  • the application layer may also include a bump application.
  • the bump application can be used to call the NFC service in the application framework layer to establish a wireless communication connection with another electronic device when it is detected that the user triggers the bump function of the mobile phone.
  • the bump application can be used to obtain the label of the currently displayed content from the foreground application running in the application layer, so that the mobile phone sends the label of the currently displayed content to another electronic device to complete continuous playback.
  • the touch application can be used as a bridge to interact with various services that create wireless communication connections, and interact with applications that need to be connected in the application layer, so that the phone can display content that needs to be connected in the application through the touch
  • the method is switched to play in other electronic devices, so as to provide users with the cross-device play function of "one touch and reconnect".
  • the bump application may run on the application layer of the mobile phone as a resident process for a long time after the mobile phone is turned on.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
  • the application framework layer can also run NFC service (NFC service), Bluetooth service (Bluetooth service), and Wi-Fi service (Wi-Fi service). )Wait.
  • NFC service NFC service
  • Bluetooth service Bluetooth service
  • Wi-Fi service Wi-Fi service
  • the mobile phone can start running the NFC service in the application framework layer after turning on the NFC function.
  • the NFC service can call the NFC driver of the kernel layer to read the device information in the electronic tag, such as the MAC address of the laptop.
  • the NFC service can report the obtained MAC address to the bumper application.
  • the bump application can call the Bluetooth service according to the MAC address, and establish a Bluetooth connection with the corresponding notebook computer through the Bluetooth driver.
  • the mobile phone can also obtain the authentication information used for identity authentication from the electronic tag, for example, the key used by the laptop computer, the token (token), or the device serial number.
  • the mobile phone can also use the authentication information to complete identity authentication with the laptop computer to ensure the security of the Bluetooth connection.
  • the mobile phone after the mobile phone establishes a Bluetooth connection with the laptop computer, the mobile phone can also use the Bluetooth connection to obtain connection configuration information such as SSID (service set identifier) and password required to establish a P2P connection with the laptop computer.
  • connection configuration information such as SSID (service set identifier) and password required to establish a P2P connection with the laptop computer.
  • the touch application can call Wi-Fi services, and use the above-mentioned SSID and password to establish a Wi-Fi P2P connection with the laptop through the Wi-Fi driver. Due to the high transmission speed and security of Wi-Fi P2P connections, subsequent mobile phones and laptops can perform data transmission based on the established Wi-Fi P2P connection.
  • the mobile phone can also use the Bluetooth connection to transfer data with the notebook computer after the Bluetooth connection is established with the notebook computer. At this time, the mobile phone does not need to obtain the SSID and password of the notebook computer, nor does it need to call the Wi-Fi service to establish Wi-Fi with the notebook computer -Fi P2P connection.
  • the bump application when the bump application detects that the electronic tags of the mobile phone and the laptop are touching, the bump application may also request the application running in the foreground to obtain the label of the currently displayed content.
  • the WPS application when the mobile phone touches the electronic tag of the laptop computer, the WPS application is used to browse the word document, and the mobile phone displays the second page of the word document. After detecting that the mobile phone touches the electronic label of the laptop computer, the touch application in the mobile phone can request the WPS application to generate a label of the currently displayed content to record the user's browsing position in the mobile phone at this time.
  • the WPS application can record the name of the current word document as "2018.8.8 meeting minutes", and the WPS application can record the display position of the current word document as page 2. Furthermore, the WPS application can send the name and display position of the word document as the label of the currently displayed content to the bumper app, and the bumper app can use the established Bluetooth connection or Wi-Fi P2P connection to send the label of the currently displayed content Send to the laptop.
  • the touch service can also be set in the application of the notebook computer.
  • Wi-Fi driver and Bluetooth driver can be installed in the core layer of the laptop. After the notebook computer receives the label of the current display content sent by the mobile phone through the Wi-Fi driver or Bluetooth driver, it can pass the label of the current display content to the WPS application in the notebook computer through the one-touch service.
  • the WPS application in the notebook computer can search for the word document named "2018.8.8 Meeting Minutes" saved in the notebook computer according to the label of the currently displayed content, open and display the word document 2 pages to realize the seamless connection of the word document between the mobile phone and the laptop.
  • the mobile phone in addition to sending the label of the currently displayed content to the notebook computer, the mobile phone may also send the word document being played to the notebook computer.
  • the notebook computer can receive the word document from the mobile phone, and open the second page of the word document according to the label of the currently displayed content to realize the The seamless connection of word documents between mobile phones and laptops.
  • the device can easily and quickly trigger the establishment of a connection between two electronic devices by touching it, and automatically complete the connection task of the same content, which reduces the complexity of the user’s operation when interacting across devices and improves User experience.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the above-mentioned content provider is used to store and obtain data, and make these data accessible by applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the above-mentioned view system includes visual controls, such as controls for displaying text and controls for displaying pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the above-mentioned telephone manager is used to provide the communication function of the electronic device 100.
  • the management of the call status including connecting, hanging up, etc.
  • the above resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the above notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • the system library may include multiple functional modules.
  • surface manager surface manager
  • media library Media Libraries
  • three-dimensional graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, etc., which are not limited in the embodiment of the present application.
  • a content connection method provided in this embodiment of the application can It includes the following steps:
  • the mobile phone displays the application interface of the first application.
  • the mobile phone can display the application interface 901 of the Weibo APP, that is, the display content in the mobile phone at this time is the application interface 901
  • the application interface 901 is the Weibo homepage of the user "Zhang San" in the Weibo APP, and the user is browsing multiple pieces of Weibo content in the Weibo homepage.
  • the mobile phone can start the process of running the Weibo APP.
  • the process of the Weibo APP can register for the monitoring service with the bumper app in the mobile phone, and subsequently when the bumper app monitors the user input touch operation, it can trigger the bumper app to request the Weibo app to obtain the current display
  • the label of the content is used to realize the connection function of the displayed content (that is, the above-mentioned application interface 901).
  • the mobile phone In response to a touch operation input by the user, the mobile phone obtains device information of the notebook computer.
  • the user browses the above-mentioned application interface 901 if the display content being browsed (ie, the application interface 901) needs to be switched to another electronic device (such as a laptop) to continue playing, as shown in Figure 10, the user can use the mobile phone to touch Touch the electronic label 201 set on the laptop.
  • the mobile phone approaches or touches the electronic tag 201, that is, after the mobile phone and the electronic tag 201 perform a touch operation, the mobile phone can use its NFC function to read the device information of the notebook computer recorded in the electronic tag 201.
  • the electronic tag 201 may include three implementation forms, namely: a passive tag, a semi-active tag, and an active tag.
  • (1) Passive tag When the electronic tag 201 is a passive tag, there is no internal power supply in the electronic tag 201. When the electronic tag 201 is close to the NFC chip of other devices, it can receive electromagnetic wave signals sent by the NFC chip of other devices. At this time, the internal integrated circuit (IC) of the electronic tag 201 is driven by the received electromagnetic wave signal. When the electronic tag 201 receives electromagnetic wave signals of sufficient strength, it can send the data stored in the electronic tag 201 to the NFC chip of other devices, such as the device information of the above-mentioned notebook computer.
  • IC integrated circuit
  • the working mode of semi-active tags is similar to that of passive tags.
  • the electronic tag 201 is a semi-active tag
  • the electronic tag 201 includes a small battery whose power is sufficient to drive the internal IC of the electronic tag 201, so that the IC is in a working state. Since the semi-active tag includes the above-mentioned small battery; therefore, the reaction speed of the semi-active tag is faster than that of the passive tag.
  • Active tag When the electronic tag 201 is an active tag, the electronic tag 201 includes an internal power supply for supplying power required by the internal IC to generate external signals. Generally speaking, active tags allow for NFC communication over a longer distance, and active tags have a larger storage space, which can be used to store data transmitted by the NFC chip of other devices.
  • the above-mentioned electronic tag 201 may be any one of the above-mentioned passive tag, semi-active tag, or active tag.
  • the electronic tag 201 in the notebook computer can be set as a passive tag.
  • the mobile phone can automatically turn on the NFC function in response to the one-touch operation to read the device information in the electronic tag 201, or , The mobile phone can prompt the user to manually turn on the NFC function, so that the NFC function of the mobile phone can be used to read the device information in the electronic tag 201.
  • the above device information may include the identification of the laptop, such as the Bluetooth MAC address of the laptop, the name of the laptop, the channel used, etc.
  • the above device information may also include authentication information used for identity authentication when the mobile phone and the notebook computer establish a wireless communication connection.
  • the authentication information may be a token used by a laptop computer, a pre-shared key (PSK), or a device serial number, etc., which is not limited in the embodiment of the present application.
  • Step S802 is exemplified by the user triggering the mobile phone to obtain the device information of the laptop through the NFC function through a touch operation. It is understandable that those skilled in the art can also set other methods to obtain the laptop according to actual experience or actual application scenarios.
  • Device information For example, the device information of the notebook computer can be written into the QR code or barcode in advance. Then, after the user scans the QR code or barcode with the mobile phone, the device information of the notebook computer can also be obtained. For another example, after the notebook computer detects that the user inputs a touch operation on the above electronic tag 201, it can trigger the notebook computer to display a two-dimensional code or bar code containing device information on the display screen. Furthermore, after the user scans the two-dimensional code or barcode with the mobile phone, the device information of the notebook computer can also be obtained.
  • the mobile phone establishes a wireless communication connection with the notebook computer according to the above device information.
  • the mobile phone After the mobile phone obtains the device information of the notebook computer, it can establish a Bluetooth connection, Wi-Fi P2P connection and other wireless communication connections with the notebook computer based on the device information, so that the mobile phone can switch the playing application interface 901 to the notebook computer based on the wireless communication connection In the resume.
  • the mobile phone can establish an ACL (asynchronous connectionless, asynchronous connectionless) connection with the notebook computer according to the identification of the notebook computer (such as the Bluetooth MAC address) according to the BR/EDR (basic rate and enhanced rate) operating mode in the Bluetooth protocol , So as to establish a Bluetooth channel between the mobile phone and the laptop, such as a Bluetooth socket channel.
  • ACL asynchronous connectionless, asynchronous connectionless
  • the mobile phone can establish a BLE connection with the notebook computer according to the BLE (bluetooh low energy, Bluetooth low energy) working mode in the Bluetooth protocol, and establish a BLE connection between the mobile phone and the notebook computer according to the laptop's identification (such as Bluetooth MAC address) Bluetooth channel.
  • BLE bluetooh low energy, Bluetooth low energy
  • the laptop's identification such as Bluetooth MAC address
  • the mobile phone can also perform identity authentication with the notebook computer based on the authentication information carried in the above device information. For example, the mobile phone can send the token obtained from the electronic tag 201 to the laptop. When the laptop determines that the token is the correct token, the laptop passes the identity authentication of the mobile phone.
  • the mobile phone can generate the public key used by the notebook computer, such as the rsa256 public key, based on the authentication information such as the device serial number obtained from the electronic tag 201, and then the mobile phone can send the public key to the notebook computer, and when the notebook computer determines After the public key is the correct public key of the notebook computer, the identity authentication of the mobile phone by the notebook computer is passed.
  • the public key used by the notebook computer such as the rsa256 public key
  • the mobile phone can send the public key to the notebook computer, and when the notebook computer determines After the public key is the correct public key of the notebook computer, the identity authentication of the mobile phone by the notebook computer is passed.
  • the mobile phone and the laptop computer can use the encryption algorithm (or decryption algorithm) that has passed the identity authentication to transmit data on the established Bluetooth channel, thereby switching the application interface 901 currently playing in the mobile phone to the laptop computer for replay.
  • the encryption algorithm or decryption algorithm
  • the mobile phone can also obtain connection configuration information required to establish a Wi-Fi P2P channel with the notebook computer based on the Bluetooth channel.
  • the connection configuration information may include the SSID, password, MAC address, and supported frequency band of the Wi-Fi P2P channel.
  • the mobile phone can use the connection configuration information to establish a Wi-Fi P2P channel with the laptop.
  • the mobile phone and the notebook computer establish a Wi-Fi P2P channel, it will not affect the Wi-Fi network originally connected to the mobile phone and notebook computer.
  • the mobile phone and the laptop can transmit data on the established Wi-Fi P2P channel, thereby switching the application interface 901 being played on the phone to the laptop In the resume.
  • connection configuration information such as the SSID or password of the Wi-Fi P2P channel can be dynamically changed
  • the laptop can automatically use the SSID of the current Wi-Fi P2P channel
  • the connection configuration information such as, password, etc. generates a QR code and displays the QR code on the screen of the laptop.
  • the user can also obtain the connection configuration information required to establish a Wi-Fi P2P channel with the laptop by scanning the QR code with the mobile phone.
  • the mobile phone can use the connection configuration information to establish a Wi-Fi P2P channel with the notebook computer.
  • the information in the electronic tag 201 on the notebook computer may be dynamically changed.
  • the processor in the notebook computer can be electrically connected to the electronic tag 201.
  • the processor in the notebook computer can dynamically update the connection configuration information such as the SSID, MAC address, and password used by the current Wi-Fi P2P channel in the electronic label 201.
  • the mobile phone can read from the electronic tag 201 the connection configuration information required to establish a Wi-Fi P2P channel with the laptop at this time.
  • the mobile phone can use the connection configuration information to directly establish a Wi-Fi P2P channel with the laptop, without the need to establish a Bluetooth channel with the laptop.
  • an NFC chip may also be provided in the notebook computer, and the device information of the notebook computer may be stored in the NFC chip.
  • the processor in a notebook computer can be electrically connected to the NFC chip.
  • the touch area 1101 corresponding to the NFC chip may be pre-marked on the casing of the notebook computer.
  • NFC-enabled mobile phones and other devices can effectively detect the NFC signal sent by the NFC chip in the notebook computer after being close to the touch area 1101.
  • the above-mentioned touch area 1101 can be marked on the casing of the notebook computer by text, picture or color. In this way, when the user touches the touch area 1101 of the notebook computer with the mobile phone, the mobile phone can read the device information of the notebook computer from the NFC chip of the notebook computer, and establish a wireless communication connection with the notebook computer.
  • the processor in the notebook computer can dynamically update the connection configuration information such as the SSID, MAC address, and password used by the current Wi-Fi P2P channel in the NFC chip of the notebook computer.
  • the mobile phone can read from the NFC chip the connection configuration information required to establish a Wi-Fi P2P channel with the notebook computer at this time.
  • the mobile phone can use the connection configuration information to directly establish a Wi-Fi P2P channel with the notebook computer, eliminating the need to establish a wireless communication connection with the notebook computer.
  • the notebook computer is equipped with an NFC chip.
  • the notebook computer can display the touch by text, video or animation.
  • the operation tutorial so as to prompt the user where the touch area corresponding to the NFC chip in the notebook computer is.
  • the user can use the mobile phone to input the touch operation to the touch area of the notebook computer according to the prompt, thereby reading the device information (or connection configuration information) stored in the NFC chip of the notebook computer, so that the mobile phone can follow the above device information (or Connection configuration information) establish a Bluetooth channel (or Wi-Fi P2P channel) with the laptop.
  • the user can also open the above-mentioned bump operation tutorial in the setting function of the notebook computer or related applications, and the embodiment of the present application does not impose any limitation on this.
  • the mobile phone and the notebook computer can further obtain the IP address of the notebook computer.
  • the mobile phone can subsequently establish a TCP connection based on the TCP (transmission control protocol)/IP protocol on the Bluetooth channel or Wi-Fi P2P channel according to the IP address of the laptop, and then use the TCP connection to communicate with the laptop.
  • the mobile phone obtains the label of the above application interface.
  • the mobile phone After the mobile phone detects the user's touch operation, on the one hand, it can establish a wireless communication connection between the mobile phone and the laptop by performing the above steps S802-S803; on the other hand, the mobile phone can perform step S804 to obtain the current display content (that is, the current application Interface) label, the label of the displayed content can be used to indicate the user's browsing position of the current application interface.
  • the current display content that is, the current application Interface
  • the mobile phone after the mobile phone detects the touch operation of touching the electronic tag 201, it can query the currently running foreground application.
  • the mobile phone can record the currently running APP or task in real time.
  • a mobile phone can establish a corresponding application stack when running an application.
  • the top content of the application stack is the content currently running and displayed on the mobile phone.
  • the touch application can query the application interface 901 of the Weibo APP currently running on the mobile phone in the top of the application stack.
  • the Weibo APP has been registered for the monitoring service in the Bumper app, it means that the Weibo APP supports the cross-device playback function of "One Touch Renew", and the Bumper app can send a request message to the Weibo APP.
  • the request message It is used to request the Weibo APP to obtain the label of the currently displayed content (ie the application interface 901).
  • each piece of content in the application interface 901 displayed on the mobile phone of the Weibo APP has a corresponding index.
  • the index corresponding to the Weibo homepage of "Zhang San” is 001
  • the index corresponding to the first Weibo displayed on the Weibo homepage of "Zhang San” is 002
  • the index displayed on the Weibo homepage of "Zhang San” is 002.
  • the corresponding indexes of the two microblogs are 003,....
  • the Weibo APP can send the index of each piece of content in the application interface 901 to the application server of the Weibo APP in a certain order.
  • the application server can generate a tag of the application interface 901 in a certain format according to these indexes, and the tag can be used to indicate the specific content currently being displayed by the Weibo APP.
  • the application server may send the generated label of the application interface 901 to the Weibo APP of the mobile phone.
  • the Weibo APP can transfer the label of the application interface 901 to the bumper application by calling a preset callback function.
  • the application server may record one or more indexes corresponding to the application interface 901.
  • the Weibo APP needs to display the application interface 901, it can send a corresponding display request to the application server, and the application server can determine and save the indexes corresponding to the application interface 901: 001, 002, and 003 in response to the display request.
  • the application server can send the display data corresponding to each index to the mobile phone, so that the mobile phone can display the application interface 901 according to the display data, but at this time, the mobile phone does not save each index in the application interface 901.
  • the Weibo APP After the Weibo APP receives the request message from the bump application, it can request the application server to generate the label of the application interface 901. Furthermore, the application server may generate a tag of the application interface 901 according to each index in the saved application interface 901, and send the tag of the application interface 901 to the Weibo APP of the mobile phone. In this way, the Weibo APP can also transfer the label of the application interface 901 to the bumper application by calling a preset callback function.
  • the application server can also send authentication information for logging in to the Weibo APP to the mobile phone.
  • the authentication information may be a security token generated by the application server.
  • the authentication information may be the user's currently logged-in Weibo account and password.
  • the mobile phone may send the label of the application interface 901 and the above-mentioned authentication information to the notebook computer, so that the notebook computer can automatically log in to the user's Weibo account according to the above-mentioned authentication information and display the application interface 901.
  • the foreground application running in the mobile phone can also generate a label of the currently displayed content in response to a request message sent by the bumper application, and can generate a label of the currently displayed content without interacting with the application server. For example, taking the foreground application running on the mobile phone as the WPS application, after receiving the request message sent by the bump application, the WPS application can respond to the request message to query the name of the currently opened word document and the display position of the word document. And pass the name and display position of the word document as the label of the current display content to the bumper application.
  • the application manufacturer of each application can customize how to generate the label of the current display content in response to the request message sent by the bumper application, and the embodiment of the present application does not impose any limitation on this.
  • the application server can interact with the application server in a manner predefined by the respective application manufacturer, and generate a label of the currently displayed content according to a predefined format. Since the label of the displayed content can reflect the specific content being played when the mobile phone runs the application, after the subsequent notebook computer obtains the label, it can continue to play the application interface indicated by the label in the corresponding application or website.
  • S805 The mobile phone sends the label of the application interface to the notebook computer based on the wireless communication connection.
  • the mobile phone After the mobile phone obtains the label of the current application interface, it can send the label of the application interface to the notebook computer through the wireless communication connection established with the notebook computer in step S804, so as to resume the display content in the mobile phone.
  • the Bluetooth service or Wi-Fi service can be called to use the established Bluetooth channel or Wi -Fi P2P channel sends the label of the application interface 901 to the laptop.
  • the mobile phone in addition to sending the label of the application interface 901 to the laptop, can also send the authentication information sent by the application server of the Weibo APP to the laptop, so that the laptop can automatically log in to the user according to the authentication information. Weibo account.
  • the mobile phone in addition to sending the label of the application interface 901 to the notebook computer, can also send files such as pictures, videos, audios, or documents contained in the application interface 901 to the notebook computer. In this way, when the notebook computer continues to play the application interface 901, there is no need to additionally download resources such as pictures, videos, audios, or documents included in the application interface 901.
  • the notebook computer continues to display the application interface of the first application according to the label of the above application interface.
  • the laptop after the laptop receives the label of the application interface 901 from the mobile phone, it can transfer the label of the application interface 901 to the laptop through the touch service in the laptop.
  • the laptop can also pass the authentication information sent by the mobile phone to the Weibo APP installed in the laptop.
  • the Weibo APP in the laptop can automatically log in to the user’s Weibo account according to the authentication information, and the Weibo APP in the laptop can also interact with the application server of the Weibo APP according to the label of the application interface 901 Interactively, obtain the display content corresponding to the label from the application server.
  • the Weibo APP in the notebook computer can display the application interface 1301 corresponding to the application interface 901 according to the display content sent by the application server.
  • the application interface 1301 displayed on the laptop computer and the application interface 901 displayed on the mobile phone include the same display content, so as to realize the cross-device continuous playback function of the same display content on the mobile phone and the laptop computer.
  • the laptop can also use a browser to open and log in to the user’s Weibo account, and reopen the application interface corresponding to the application interface 901 according to the label of the application interface 901 to achieve the same display content Cross-device connection function on mobile phones and laptops.
  • the laptop can also prompt the user to install the Weibo APP. For example, the laptop can automatically jump to the download interface of the Weibo APP in the application market.
  • the Weibo APP in the notebook computer can automatically log in to the user's Weibo account according to the above method, and display the corresponding application interface 1301 according to the label of the application interface 901.
  • the display layout and display effect of the application interface 901 of the Weibo APP displayed on the mobile phone and the application interface 1301 of the Weibo APP displayed on the notebook computer may be different. There are no restrictions on this.
  • the label of the currently displayed content acquired by the application may have incomplete information.
  • the label of the aforementioned application interface 901 may only record that the page displayed by the current Weibo APP is the Weibo homepage of "Zhang San".
  • the mobile phone or laptop cannot accurately determine the specific location of the Weibo homepage that the user is browsing based on the tag.
  • the mobile phone can also record the user's specific operation on the application interface 901, for example, the user's sliding operation on the application interface 901.
  • the mobile phone can predict the user's browsing position in the application interface 901 according to the user's specific operations in the application interface 901.
  • the mobile phone can predict that the user is browsing the fifth Weibo in the current Weibo homepage based on the number of sliding operations or the sliding distance entered by the user in the application interface 901. Then, when the mobile phone sends the label of the application interface 901 to the notebook computer, it can also send the current browsing position of the user predicted by the mobile phone. In this way, the notebook computer can also continuously display the application interface corresponding to the application interface 901 for the user in combination with the browsing position predicted by the mobile phone. Taking the browsing position predicted by the mobile phone as the fifth microblog in the Weibo homepage, the laptop can open the microblog homepage of "Zhang San" according to the label of the application interface 901, and display that the microblog homepage contains Article 5 Application interface for Weibo content. For example, a laptop computer can display the contents of Article 4 to Article 6 on the Weibo homepage of "Zhang San".
  • the mobile phone when the mobile phone predicts the user’s browsing location, it can also determine the display difference between the mobile phone and the laptop in terms of resolution, font size, or line spacing.
  • the browsing position in corresponds to the browsing position in the laptop. For example, because the content of a page in a laptop computer can display more lines, the content of the third page browsed by the user on the mobile phone corresponds to the content of the second page in the laptop computer, then the mobile phone can predict the current user
  • the browsing position of is determined to be the second page, and subsequently, after the notebook computer receives the browsing position, it can be combined with the browsing position to be more accurate for the user to continue playing the current display content from the same position.
  • the user in addition to triggering the mobile phone to switch the current display content to the notebook computer to continue playing by one touch, the user can also trigger the mobile phone to display the file currently displayed by one touch. Transfer to a laptop computer, which provides users with the "one touch transfer" cross-device transfer function.
  • the mobile phone when the mobile phone displays a local file (such as a photo, video, or document, etc.), if the user needs to transfer the file to the laptop, the user can touch the laptop with the phone The electronic label set on the computer to obtain the device information of the notebook computer. Furthermore, the mobile phone can automatically establish a wireless communication connection with the notebook computer according to the device information, and automatically transmit the currently displayed file to the notebook computer through the wireless communication connection.
  • a local file such as a photo, video, or document, etc.
  • the mobile phone can provide the user with an option 1201 of "one touch connection” and an option 1202 of "one touch transfer”.
  • the notebook computer may also provide the user with an option 1301 of "one touch to continue” and an option 1302 of "one touch to transfer”.
  • the mobile phone can continue to switch the current display content to the laptop for continuous playback according to the above steps S802-S806. If it is detected that the user selects option 1202 (or 1302), it means that the user wants to transfer the file being displayed in the mobile phone to the notebook computer, and the mobile phone can automatically transfer the currently displayed file to the notebook computer.
  • the mobile phone can also determine whether to continue playing the current display content in the notebook computer or to transfer the currently displayed file to the notebook computer according to the distance between the mobile phone and the electronic tag.
  • the NFC communication mode can support data interaction within 10cm. If it is detected that the distance between the mobile phone and the electronic tag is less than the preset value (for example, less than 2cm), it means that the user wants to continue to play the displayed content on the mobile phone on the laptop, and the mobile phone can continue to follow the above steps S802-S806 to change the current The display content is switched to continue playing on the laptop. If it is detected that the distance between the mobile phone and the electronic tag is greater than the preset value, indicating that the user wants to transfer the file being displayed in the mobile phone to the laptop, the mobile phone can automatically transfer the currently displayed file to the laptop.
  • the preset value for example, less than 2cm
  • the mobile phone can also determine whether to continue playing the current display content in the notebook computer or to transfer the currently displayed file to the notebook computer according to the strength of the NFC signal between the mobile phone and the electronic tag. For example, if it is detected that the NFC signal strength between the mobile phone and the electronic tag is greater than the preset threshold, indicating that the user wants to continue to play the display content on the mobile phone on the laptop, the mobile phone can continue to follow the above steps S802-S806 to display the current display content Switch to the laptop to continue playing. If it is detected that the strength of the NFC signal between the mobile phone and the electronic tag is less than the preset threshold, indicating that the user wants to transfer the file being displayed in the mobile phone to the laptop, the mobile phone can automatically transfer the currently displayed file to the laptop.
  • the mobile phone may also determine whether to continue playing the current display content or transfer the currently displayed file to the notebook computer according to the length of time the mobile phone touches the electronic tag. For example, if it is detected that the time for the mobile phone to touch the electronic tag is greater than the preset value, indicating that the user wants to continue to play the display content on the mobile phone on the laptop, the mobile phone can continue to switch the current display content to the laptop according to the above steps S802-S806 Continue to play on. If it is detected that the time for the mobile phone to touch the electronic tag is less than the preset value, indicating that the user wants to transfer the file being displayed in the mobile phone to the laptop, the mobile phone can automatically transfer the currently displayed file to the laptop.
  • the mobile phone may also be preset with application scenarios that support the "one-touch connection” function and application scenarios that support the "one-touch transfer” function. For example, when it is detected that the user touches the electronic label on the laptop with the mobile phone, the mobile phone can obtain the identifier of the application running in the foreground (such as packagename) or the identifier of the application interface running in the foreground (such as activityname). If the application (or application interface) running in the foreground is a preset application (or application interface) that supports the "one touch transfer” function, the mobile phone can automatically transfer the currently displayed file to the laptop. If the application (or application interface) running in the foreground is a preset application (or application interface) that supports the "one touch connection” function, the mobile phone can switch the current display content to the laptop according to the above steps S802-S806 Continue to play.
  • the mobile phone can also identify whether the current application interface contains files such as local photos, videos, audios, or documents. If it contains one or more local files, the phone can automatically transfer the currently displayed file to the laptop to complete the "one touch transfer" function; if it does not contain local files, the phone can automatically switch the current display content to The laptop continues to play and completes the "one-touch connection" function, which is not limited in the embodiment of the application.
  • the mobile phone is used as the first electronic device and the notebook computer is used as the second electronic device, and the display content of the mobile phone is switched to the notebook computer for continuous playback.
  • the user wants to switch the display content being played in any electronic device to another electronic device, they can touch the two electronic devices to trigger the first electronic device and the second electronic device to quickly establish a wireless connection. Communication connection, and automatically switch the display content in the first electronic device to the second electronic device for continuous playback, thereby simplifying the user's operation process when the same content is connected across devices, improving and enriching the user's experience.
  • an embodiment of the present application discloses a first electronic device, such as the aforementioned mobile phone.
  • the first electronic device may specifically include: a touch screen 1501 that includes a touch sensor 1506 and a display screen 1507; one or more processors 1502; a memory 1503; a communication module 1508; a first NFC unit 1509, a first NFC unit 1509 It may be an NFC chip or an electronic tag; one or more application programs (not shown); and one or more computer programs 1504.
  • the above-mentioned devices may be connected through one or more communication buses 1505.
  • the one or more computer programs 1504 are stored in the aforementioned memory 1503 and configured to be executed by the one or more processors 1502, and the one or more computer programs 1504 include instructions, which can be used to execute the aforementioned implementations. The steps in the example.
  • an embodiment of the present application discloses a second electronic device, such as the aforementioned notebook computer.
  • the second electronic device specifically includes: a display screen 1601; one or more processors 1602; a memory 1603; a second NFC unit 1606.
  • the second NFC unit 1606 may be an NFC chip or an electronic tag.
  • the second NFC unit 1606 stores the 2. Device information of the electronic device; a communication module 1607; one or more application programs (not shown); and one or more computer programs 1604.
  • the above-mentioned devices can be connected through one or more communication buses 1605.
  • the one or more computer programs 1604 are stored in the aforementioned memory 1603 and configured to be executed by the one or more processors 1602, and the one or more computer programs 1604 include instructions, which can be used to execute the aforementioned implementations. The steps in the example.
  • the functional units in the various embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • a computer readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a content continuation method and system, and an electronic device, which relate to the field of terminals, can reduce the operation complexity for a user during cross-device interaction, and improve the usage experience of the user. The content continuation system comprises a first electronic device and a second electronic device, wherein the first electronic device is configured with a first NFC unit, and the second electronic device is configured with a second NFC unit. The first electronic device acquires device information of the second electronic device from the second NFC unit by means of the first NFC unit when a first application interface of a first application is displayed; the first electronic device establishes a wireless communication connection with the second electronic device according to the device information; the first electronic device sends, on the basis of the wireless communication connection, a label of the first application interface to the second electronic device, and the label is used for indicating the display content in the first application interface; and the second electronic device displays a corresponding second application interface according to the label, and the first application interface and the second application interface include the same display content.

Description

一种内容接续方法、系统及电子设备Method, system and electronic equipment for content connection
本申请要求于2019年8月6日提交国家知识产权局、申请号为201910722098.4、发明名称为“手机和PC之间的碰一碰任务接续”的中国专利申请,以及2019年9月26日提交国家知识产权局、申请号为201910918888.X、发明名称为“一种内容接续方法、系统及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires a Chinese patent application filed with the State Intellectual Property Office, the application number is 201910722098.4, and the invention title is "The continuation of the task between mobile phone and PC" on August 6, 2019, and on September 26, 2019 The State Intellectual Property Office, the application number is 201910918888.X, the title of the invention is "a content connection method, system and electronic equipment" Chinese patent application priority, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及终端领域,尤其涉及一种内容接续方法、系统及电子设备。This application relates to the field of terminals, in particular to a content connection method, system and electronic equipment.
背景技术Background technique
随着智能终端技术的发展,一个用户或家庭中往往具备多个电子设备,并且用户经常需要在多个电子设备之间进行切换。例如,用户在下班途中使用手机观看视频,回家后可能希望将视频切换至电视继续观看。又例如,用户在家可使用笔记本电脑办公,当用户离开家时可能希望将笔记本电脑中的文件切换至手机中继续办公。With the development of smart terminal technology, a user or family often has multiple electronic devices, and the user often needs to switch between multiple electronic devices. For example, a user uses a mobile phone to watch a video on the way from get off work, and may wish to switch the video to the TV to continue watching after returning home. For another example, a user can use a laptop to work at home, and when the user leaves home, he may wish to switch the files in the laptop to the mobile phone to continue working.
在这种跨设备交互的场景下,通常需要用户手动的将一个设备上的播放内容切换到另一个设备上。例如,如果用户需要将手机中正在浏览的网页A切换至笔记本电脑中播放,则用户可以在笔记本电脑的浏览器中输入网页A的网址,从而在笔记本电脑中打开网页A。显然,这种在多个设备之间切换播放内容的过程较耗时较长、操作较为繁琐,用户的使用体验不高。In this kind of cross-device interaction scenario, the user is usually required to manually switch the playback content on one device to another device. For example, if the user needs to switch the webpage A being browsed in the mobile phone to a laptop for playback, the user can enter the web address of the webpage A in the browser of the laptop to open the webpage A on the laptop. Obviously, this process of switching between multiple devices to play content is time-consuming and cumbersome, and the user experience is not high.
发明内容Summary of the invention
本申请提供一种内容接续方法、系统及电子设备,可将第一电子设备中播放的内容方便快捷的切换至第二电子设备中继续播放,减少用户在进行跨设备交互时的操作复杂度,提高用户的使用体验。The present application provides a content connection method, system and electronic device, which can conveniently and quickly switch the content played in the first electronic device to the second electronic device to continue playing, thereby reducing the complexity of operations when the user interacts across devices. Improve user experience.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,本申请提供一种内容接续系统,该系统可包括第一电子设备和第二电子设备,第一电子设备配置有第一NFC单元,第二电子设备配置有第二NFC单元,第二NFC单元包括第二电子设备的设备信息,上述NFC单元具体可以为NFC芯片或电子标签;In the first aspect, the present application provides a content connection system. The system may include a first electronic device and a second electronic device. The first electronic device is configured with a first NFC unit, and the second electronic device is configured with a second NFC unit. 2. The NFC unit includes the device information of the second electronic device, and the above-mentioned NFC unit may specifically be an NFC chip or an electronic tag;
其中,第一电子设备在显示第一应用的第一应用界面时,第一电子设备可通过第一NFC单元从第二NFC单元中获取第二电子设备的设备信息;进而,第一电子设备可按照该设备信息与第二电子设备建立无线通信连接,该无线通信连接可以为蓝牙连接或Wi-Fi P2P连接;后续,第一电子设备可基于上述无线通信连接向第二电子设备发送第一应用界面的标签,该标签用于指示第一应用界面中的显示内容;这样,第二电子设备接收到该标签后,可根据该标签显示与第一应用界面对应的第一应用的第二应用界面,第一应用界面与第二应用界面中包含相同的显示内容。Wherein, when the first electronic device displays the first application interface of the first application, the first electronic device can obtain the device information of the second electronic device from the second NFC unit through the first NFC unit; further, the first electronic device can Establish a wireless communication connection with the second electronic device according to the device information. The wireless communication connection may be a Bluetooth connection or a Wi-Fi P2P connection; subsequently, the first electronic device may send the first application to the second electronic device based on the above wireless communication connection The label of the interface, which is used to indicate the display content in the first application interface; in this way, after receiving the label, the second electronic device can display the second application interface of the first application corresponding to the first application interface according to the label , The first application interface and the second application interface contain the same display content.
也就是说,当用户想切换电子设备浏览某一应用界面时,可通过两个电子设备中 的NFC单元快速建立无线通信连接,从而将第一电子设备中正在显示的内容标签发送给至第二电子设备,使至第二电子设备能够根据该标签接续播放第一电子设备中的应用界面,从而简化同一内容在进行跨设备交互时用户的操作流程,提高和丰富了用户的使用体验。That is to say, when the user wants to switch the electronic device to browse an application interface, the NFC unit in the two electronic devices can quickly establish a wireless communication connection, thereby sending the content tag being displayed in the first electronic device to the second electronic device. The electronic device enables the second electronic device to continuously play the application interface in the first electronic device according to the tag, thereby simplifying the user's operation process when the same content is interacted across devices, and improving and enriching the user's experience.
在一种可能的实现方式中,第一电子设备具体可用于:响应于靠近或接触第二NFC单元的操作,通过第一NFC单元从第二NFC单元中获取第二电子设备的设备信息。In a possible implementation manner, the first electronic device may be specifically used to obtain device information of the second electronic device from the second NFC unit through the first NFC unit in response to an operation of approaching or contacting the second NFC unit.
在一种可能的实现方式中,第一电子设备具体可用于:通过第一NFC单元发送电磁波信号,该电磁波信号用于驱动第二NFC单元发送第二电子设备的设备信息;进而,通过第一NFC单元从第二NFC单元中获取第二电子设备的设备信息。In a possible implementation manner, the first electronic device may be specifically used to send an electromagnetic wave signal through the first NFC unit, and the electromagnetic wave signal is used to drive the second NFC unit to send the device information of the second electronic device; The NFC unit obtains the device information of the second electronic device from the second NFC unit.
也就是说,用户可以通过碰一碰的方式触发第一电子设备与第二电子设备建立通信连接,从而将第一电子设备中的显示内容切换至第二电子设备中接续播放。That is, the user can trigger the first electronic device to establish a communication connection with the second electronic device through a touch, so as to switch the display content in the first electronic device to the second electronic device to continue playing.
在一种可能的实现方式中,第一电子设备还用于:获取第一应用界面的标签。In a possible implementation manner, the first electronic device is also used to: obtain the label of the first application interface.
在一种可能的实现方式中,第一电子设备具体用于:第一电子设备中的碰一碰应用向正在前台运行的第一应用发送第一请求,第一请求用于请求获取正在显示的第一应用界面的标签;响应于第一请求,第一应用获取第一应用界面的标签。In a possible implementation manner, the first electronic device is specifically used for: the bump application in the first electronic device sends a first request to the first application running in the foreground, and the first request is used to request to obtain the display The label of the first application interface; in response to the first request, the first application obtains the label of the first application interface.
在一种可能的实现方式中,第一电子设备具体用于:从第一应用的应用服务器中获取第一应用界面的标签。In a possible implementation manner, the first electronic device is specifically configured to: obtain the label of the first application interface from the application server of the first application.
示例性的,第一电子设备具体可用于:向上述应用服务器发送第二请求,第二请求中包括与第一应界面对应的一个或多个索引;应用服务器还用于:根据第二请求中的一个或多个索引生成第一应用界面的标签,并向第一电子设备发送第一应用界面的标签。Exemplarily, the first electronic device may be specifically used to: send a second request to the above-mentioned application server, the second request includes one or more indexes corresponding to the first response interface; the application server is also used to: according to the second request One or more indexes of generates a label of the first application interface, and sends the label of the first application interface to the first electronic device.
在一种可能的实现方式中,第一电子设备还用于:从上述应用服务器获取认证信息,该认证信息用于登录用户在第一应用中注册的账号;将认证信息基于上述无线通信连接发送给第二电子设备;第二电子设备还用于:使用该认证信息登录安装在第二电子设备中的第一应用。这样,第二电子设备自动登录第一应用后,可根据第一应用界面的标签显示与第一应用界面对应的第二应用界面。In a possible implementation, the first electronic device is further used to: obtain authentication information from the above application server, the authentication information is used to log in to the user's account registered in the first application; and send the authentication information based on the above wireless communication connection For the second electronic device; the second electronic device is also used to: use the authentication information to log in to the first application installed in the second electronic device. In this way, after the second electronic device automatically logs in to the first application, it can display the second application interface corresponding to the first application interface according to the label of the first application interface.
在一种可能的实现方式中,第一电子设备还用于:预测用户在第一应用界面中的浏览位置;基于上述无线通信连接向第二电子设备发送该浏览位置;第二电子设备具体用于:根据第一应用界面的标签和该浏览位置显示第二应用界面。In a possible implementation manner, the first electronic device is also used to: predict the user's browsing location in the first application interface; send the browsing location to the second electronic device based on the above-mentioned wireless communication connection; the second electronic device specifically uses Yu: Display the second application interface according to the label of the first application interface and the browsing position.
在一种可能的实现方式中,第一电子设备还用于:基于上述无线通信连接向第二电子设备发送第一应用界面中包含的文件;第二电子设备具体用于:根据第一应用界面的标签和从第一电子设备接收的文件显示第二应用界面。In a possible implementation, the first electronic device is further configured to: send files contained in the first application interface to the second electronic device based on the above-mentioned wireless communication connection; the second electronic device is specifically configured to: according to the first application interface The label of and the file received from the first electronic device displays the second application interface.
在一种可能的实现方式中,第二电子设备还用于:启动已安装的第一应用,并将第一应用界面的标签发送给第一应用,以使得第一应用根据该标签显示对应的第二应用界面;或者,当第二电子设备中没有安装第一应用时,第二电子设备具体用于:根据第一应用界面的标签使用浏览器打开第二应用界面。In a possible implementation, the second electronic device is also used to: start the installed first application, and send the label of the first application interface to the first application, so that the first application displays the corresponding label according to the label. The second application interface; or, when the first application is not installed in the second electronic device, the second electronic device is specifically configured to: use a browser to open the second application interface according to the label of the first application interface.
在一种可能的实现方式中,第二电子设备还用于:当第二电子设备中没有安装第一应用时,提示用户在第二电子设备中下载并安装第一应用。In a possible implementation manner, the second electronic device is further configured to: when the first application is not installed in the second electronic device, prompt the user to download and install the first application in the second electronic device.
在一种可能的实现方式中,上述设备信息可以包括第二电子设备的标识,例如第 二电子设备的蓝牙MAC地址;此时,第一电子设备具体可用于:按照第二电子设备的标识与第二电子设备建立蓝牙连接;或者,按照第二电子设备的标识先与第二电子设备建立蓝牙连接;进而通过该蓝牙连接从第二电子设备中获取连接配置信息;并使用该连接配置信息与第二电子设备建立Wi-Fi P2P连接。In a possible implementation manner, the above-mentioned device information may include the identification of the second electronic device, such as the Bluetooth MAC address of the second electronic device; in this case, the first electronic device can be specifically used to: The second electronic device establishes a Bluetooth connection; or, according to the identification of the second electronic device, establishes a Bluetooth connection with the second electronic device; then obtains connection configuration information from the second electronic device through the Bluetooth connection; and uses the connection configuration information to communicate with The second electronic device establishes a Wi-Fi P2P connection.
在一种可能的实现方式中,第一电子设备具体用于:若第一应用为预设的应用,或者,第一应用界面为预设的应用界面,则基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation, the first electronic device is specifically configured to: if the first application is a preset application, or the first application interface is a preset application interface, connect to the second electronic device based on the wireless communication connection Send the label of the first application interface.
在一种可能的实现方式中,第一电子设备具体用于:若第一NFC单元与第二NFC单元靠近或接触时的停留时间满足第一预设条件,则基于无线通信连接向第二电子设备发送第一应用界面的标签;或者;若第一NFC单元与第二NFC单元靠近或接触时的信号强度满足第二预设条件,则基于无线通信连接向第二电子设备发送第一应用界面的标签;或者;若第一NFC单元与第二NFC单元之间的距离满足第三预设条件,则基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation manner, the first electronic device is specifically configured to: if the stay time when the first NFC unit is close to or in contact with the second NFC unit satisfies the first preset condition, send the second electronic device based on the wireless communication connection The device sends the label of the first application interface; or; if the signal strength when the first NFC unit is close to or in contact with the second NFC unit meets the second preset condition, the first application interface is sent to the second electronic device based on the wireless communication connection Or; if the distance between the first NFC unit and the second NFC unit satisfies the third preset condition, send the label of the first application interface to the second electronic device based on the wireless communication connection.
也就是说,第一电子设备可根据与第二电子设备中NFC单元之间的距离、信号强度或接触时间长短,判断用户本次的操作意图是否是在第二电子设备中续接播放第一电子设备中的显示内容。如果用户意图不是在第二电子设备中续接播放第一电子设备中的显示内容,则第一电子设备可向第二电子设备传输第一应用界面中包含的文件,实现“一碰传”的文件传输功能。That is to say, the first electronic device can determine whether the user’s current operation intention is to continue playing the first electronic device in the second electronic device according to the distance, signal strength, or contact time with the NFC unit in the second electronic device. Display content in electronic equipment. If the user's intention is not to continue to play the displayed content in the first electronic device in the second electronic device, the first electronic device can transmit the files contained in the first application interface to the second electronic device to realize the "one touch transfer" File transfer function.
在一种可能的实现方式中,第一电子设备还用于:显示第一选项和第二选项,第一选项用于指示向第二电子设备发送第一应用界面的标签,第二选项用于指示向第二电子设备发送第一应用界面中的文件。那么,如果检测到用户选中第一选项,则第一电子设可基于上述无线通信连接向第二电子设备发送第一应用界面的标签,实现“一碰接续”的内容续播功能。In a possible implementation, the first electronic device is also used to display a first option and a second option, the first option is used to indicate to send the label of the first application interface to the second electronic device, and the second option is used to Instruct to send the file in the first application interface to the second electronic device. Then, if it is detected that the user selects the first option, the first electronic device can send the label of the first application interface to the second electronic device based on the above-mentioned wireless communication connection, so as to realize the "one touch connection" content replay function.
第二方面,本申请提供一种内容接续方法,该方法可应用于第一方面中的内容接续系统;其中,第一电子设备在显示第一应用的第一应用界面时,可通过其第一NFC单元从获取第二电子设备的设备信息;第一电子设备按照该设备信息与第二电子设备建立无线通信连接,该无线通信连接为蓝牙连接或Wi-Fi P2P连接;第一电子设备基于该无线通信连接向第二电子设备发送第一应用界面的标签,该标签用于指示第一应用界面中的显示内容;第二电子设备接收到第一应用界面的标签后,可根据该标签显示与第一应用界面对应的第二应用界面,第一应用界面与第二应用界面中包含相同的显示内容。In the second aspect, the present application provides a content connection method, which can be applied to the content connection system in the first aspect; wherein, when the first electronic device displays the first application interface of the first application, The NFC unit obtains the device information of the second electronic device; the first electronic device establishes a wireless communication connection with the second electronic device according to the device information, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the first electronic device is based on the The wireless communication connection sends the label of the first application interface to the second electronic device, the label is used to indicate the display content in the first application interface; after receiving the label of the first application interface, the second electronic device can display and A second application interface corresponding to the first application interface, and the first application interface and the second application interface contain the same display content.
在一种可能的实现方式中,第一电子设备通过第一NFC单元从获取第二电子设备的设备信息,包括:响应于靠近或接触第二电子设备中第二NFC单元的操作,第一电子设备通过第一NFC单元从第二NFC单元中获取第二电子设备的设备信息。In a possible implementation manner, obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: in response to an operation of approaching or touching the second NFC unit in the second electronic device, the first electronic device The device obtains the device information of the second electronic device from the second NFC unit through the first NFC unit.
在一种可能的实现方式中,第一电子设备通过第一NFC单元从获取第二电子设备的设备信息,包括:第一电子设备通过第一NFC单元发送电磁波信号,该电磁波信号用于驱动第二NFC单元发送第二电子设备的设备信息;进而,第一电子设备可通过第一NFC单元从第二NFC单元中获取第二电子设备的设备信息。In a possible implementation manner, obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: the first electronic device sends an electromagnetic wave signal through the first NFC unit, and the electromagnetic wave signal is used to drive the second electronic device. The second NFC unit sends the device information of the second electronic device; furthermore, the first electronic device can obtain the device information of the second electronic device from the second NFC unit through the first NFC unit.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备获取第一应 用界面的标签。In a possible implementation manner, the above content connection method further includes: the first electronic device obtains the label of the first application interface.
示例性的,第一电子设备获取第一应用界面的标签,包括:第一电子设备中的碰一碰应用向正在前台运行的第一应用发送第一请求,第一请求用于请求获取正在显示的第一应用界面的标签;响应于第一请求,第一应用获取第一应用界面的标签。Exemplarily, acquiring the label of the first application interface by the first electronic device includes: a bumper application in the first electronic device sends a first request to a first application running in the foreground, and the first request is used to request to acquire the current display The label of the first application interface; in response to the first request, the first application obtains the label of the first application interface.
在一种可能的实现方式中,第一应用获取第一应用界面的标签,包括:第一电子设备从第一应用的应用服务器中获取第一应用界面的标签。In a possible implementation manner, acquiring the label of the first application interface by the first application includes: the first electronic device acquires the label of the first application interface from an application server of the first application.
示例性的,第一电子设备从第一应用的应用服务器中获取第一应用界面的标签,包括:第一电子设备向该应用服务器发送第二请求,第二请求中包括与第一应界面对应的一个或多个索引;该应用服务器根据第二请求中的一个或多个索引生成第一应用界面的标签,并向第一电子设备发送第一应用界面的标签。Exemplarily, that the first electronic device obtains the label of the first application interface from the application server of the first application includes: the first electronic device sends a second request to the application server, and the second request includes corresponding to the first application interface The application server generates the label of the first application interface according to the one or more indexes in the second request, and sends the label of the first application interface to the first electronic device.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备从应用服务器获取认证信息,该认证信息用于登录用户在第一应用中注册的账号;进而,第一电子设备可将该认证信息基于上述无线通信连接发送给第二电子设备;第二电子设备接收到该认证信息后,可使用该认证信息登录安装在第二电子设备中的第一应用。In a possible implementation manner, the foregoing content connection method further includes: the first electronic device obtains authentication information from the application server, and the authentication information is used to log in to the user's account registered in the first application; further, the first electronic device may The authentication information is sent to the second electronic device based on the aforementioned wireless communication connection; after receiving the authentication information, the second electronic device can use the authentication information to log in to the first application installed in the second electronic device.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备预测用户在第一应用界面中的浏览位置;并且,第一电子设备可基于上述无线通信连接向第二电子设备发送该浏览位置。这样,第二电子设备可根据第一应用界面的标签和该浏览位置显示第二应用界面。In a possible implementation manner, the foregoing content connection method further includes: the first electronic device predicts the user's browsing position in the first application interface; and the first electronic device may send to the second electronic device based on the foregoing wireless communication connection The browse location. In this way, the second electronic device can display the second application interface according to the label of the first application interface and the browsing position.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备基于无线通信连接向第二电子设备发送第一应用界面中包含的文件。这样,第二电子设备可根据第一应用界面的标签和从第一电子设备接收的文件显示第二应用界面。In a possible implementation manner, the foregoing content connection method further includes: the first electronic device sends the file contained in the first application interface to the second electronic device based on the wireless communication connection. In this way, the second electronic device can display the second application interface according to the label of the first application interface and the file received from the first electronic device.
在一种可能的实现方式中,在第二电子设备根据第一应用界面的标签显示第二应用界面之前,还包括:第二电子设备启动已安装的第一应用,并将第一应用界面的标签发送给第一应用。In a possible implementation, before the second electronic device displays the second application interface according to the label of the first application interface, the method further includes: the second electronic device starts the installed first application and sets the The label is sent to the first application.
或者,当第二电子设备中未安装第一应用时,第二电子设备可根据第一应用界面的标签使用浏览器打开第二应用界面;或者,第二电子设备可提示用户在第二电子设备中下载并安装第一应用。Or, when the first application is not installed in the second electronic device, the second electronic device can use a browser to open the second application interface according to the label of the first application interface; or, the second electronic device can prompt the user to log in to the second electronic device Download and install the first application.
在一种可能的实现方式中,上述设备信息可包括第二电子设备的标识;其中,第一电子设备按照该设备信息与第二电子设备建立无线通信连接,包括:第一电子设备按照第二电子设备的标识与第二电子设备建立蓝牙连接;或者,第一电子设备按照第二电子设备的标识与第二电子设备建立蓝牙连接;进而,第一电子设备通过该蓝牙连接从第二电子设备中获取连接配置信息;并使用该连接配置信息与第二电子设备建立Wi-Fi P2P连接。In a possible implementation manner, the above-mentioned device information may include the identification of the second electronic device; wherein the first electronic device establishes a wireless communication connection with the second electronic device according to the device information, including: The identification of the electronic device establishes a Bluetooth connection with the second electronic device; or, the first electronic device establishes a Bluetooth connection with the second electronic device according to the identification of the second electronic device; and further, the first electronic device obtains a Bluetooth connection from the second electronic device through the Bluetooth connection To obtain connection configuration information in the, and use the connection configuration information to establish a Wi-Fi P2P connection with the second electronic device.
在一种可能的实现方式中,第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签,包括:若第一应用为预设的应用,或者,第一应用界面为预设的应用界面,则第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: if the first application is a preset application, or the first application interface is a preset application If an application interface is set, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签,包括:若第一NFC单元与第二NFC单元靠近或接触时的停留 时间满足第一预设条件,则第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签;或者;若第一NFC单元与第二NFC单元靠近或接触时的信号强度满足第二预设条件,则第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签;或者;若第一NFC单元与第二NFC单元之间的距离满足第三预设条件,则第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation manner, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: if the residence time when the first NFC unit and the second NFC unit are close to or in contact According to the first preset condition, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection; or; if the signal strength when the first NFC unit and the second NFC unit are close to or in contact with each other meets the second According to a preset condition, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection; or; if the distance between the first NFC unit and the second NFC unit satisfies the third preset condition, The first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,在第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签之前,还包括:第一电子设备显示第一选项和第二选项,第一选项用于指示向第二电子设备发送第一应用界面的标签,第二选项用于指示向第二电子设备发送第一应用界面中的文件。那么,如果检测到用户选中第一选项,则第一电子设备可基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation manner, before the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, the method further includes: the first electronic device displays the first option and the second option, and The option is used to indicate to send the label of the first application interface to the second electronic device, and the second option is to indicate to send the file in the first application interface to the second electronic device. Then, if it is detected that the user selects the first option, the first electronic device may send the label of the first application interface to the second electronic device based on the wireless communication connection.
第三方面,本申请提供一种第一电子设备,包括处理器,以及与该处理器耦合的第一NFC单元、显示屏、通信模块以及存储器,第一NFC单元为NFC芯片或电子标签;其中,处理器用于:指示显示屏显示第一应用的第一应用界面;处理器还用于:指示第一NFC单元获取第二电子设备的设备信息;处理器还用于:指示通信模块按照该设备信息与第二电子设备建立无线通信连接,该无线通信连接为蓝牙连接或Wi-Fi P2P连接;处理器还用于:指示通信模块基于无线通信连接向第二电子设备发送第一应用界面的标签,该标签用于指示第一应用界面中的显示内容,以使得第二电子设备根据该标签显示与第一应用界面对应的第一应用的第二应用界面。In a third aspect, the present application provides a first electronic device, including a processor, and a first NFC unit, a display screen, a communication module, and a memory coupled to the processor. The first NFC unit is an NFC chip or an electronic tag; where , The processor is used to: instruct the display screen to display the first application interface of the first application; the processor is also used to: instruct the first NFC unit to obtain the device information of the second electronic device; the processor is also used to: instruct the communication module to follow the device The information establishes a wireless communication connection with the second electronic device, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the processor is further configured to: instruct the communication module to send the label of the first application interface to the second electronic device based on the wireless communication connection The label is used to indicate the display content in the first application interface, so that the second electronic device displays the second application interface of the first application corresponding to the first application interface according to the label.
在一种可能的实现方式中,第一NFC单元具体用于:检测第一电子设备靠近或接触第二电子设备中第二NFC单元的操作;响应于靠近或接触第二NFC单元的操作,从第二NFC单元中读取第二电子设备的设备信息。In a possible implementation manner, the first NFC unit is specifically used to: detect the operation of the first electronic device approaching or touching the second NFC unit in the second electronic device; in response to the operation approaching or touching the second NFC unit, from The device information of the second electronic device is read in the second NFC unit.
在一种可能的实现方式中,第一NFC单元具体用于:发送电磁波信号,该电磁波信号用于驱动第二电子设备中第二NFC单元发送第二电子设备的设备信息;从第二NFC单元中获取第二电子设备的设备信息。In a possible implementation, the first NFC unit is specifically used to: send an electromagnetic wave signal, which is used to drive the second NFC unit in the second electronic device to send the device information of the second electronic device; and from the second NFC unit To obtain the device information of the second electronic device.
在一种可能的实现方式中,上述处理器还用于:指示通信模块从第一应用的应用服务器中获取第一应用界面的标签。In a possible implementation manner, the foregoing processor is further configured to instruct the communication module to obtain the label of the first application interface from the application server of the first application.
在一种可能的实现方式中,上述处理器还用于:指示通信模块从第一应用的应用服务器中获取认证信息,该认证信息用于登录用户在第一应用中注册的账号;以及,指示通信模块将该认证信息基于无线通信连接发送给第二电子设备。In a possible implementation manner, the above-mentioned processor is further configured to: instruct the communication module to obtain authentication information from the application server of the first application, and the authentication information is used to log in to the user's account registered in the first application; and, instruct The communication module sends the authentication information to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,上述处理器还用于:预测用户在第一应用界面中的浏览位置;以及,指示通信模基于无线通信连接向第二电子设备发送该浏览位置。In a possible implementation manner, the above-mentioned processor is further configured to: predict the user's browsing position in the first application interface; and instruct the communication module to send the browsing position to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,上述处理器还用于:指示通信模块基于无线通信连接向第二电子设备发送第一应用界面中包含的文件。In a possible implementation manner, the foregoing processor is further configured to: instruct the communication module to send the file contained in the first application interface to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,上述处理器具体用于:若第一应用为预设的应用,或者,第一应用界面为预设的应用界面,则指示通信模块基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation manner, the above-mentioned processor is specifically configured to: if the first application is a preset application, or the first application interface is a preset application interface, instruct the communication module to communicate with the second application based on the wireless communication connection. The electronic device sends the label of the first application interface.
在一种可能的实现方式中,上述处理器具体用于:确定第一NFC单元与第二电子设备中第二NFC单元靠近或接触时的停留时间是否满足第一预设条件;或者,确定第一NFC单元与第二电子设备中第二NFC单元靠近或接触时的信号强度是否满足第二 预设条件;或者,确定第一NFC单元与第二电子设备中第二NFC单元之间的距离是否满足第三预设条件;若满足第一预设条件、第二预设条件或第三预设条件中的至少一个,则指示通信模块基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation manner, the above-mentioned processor is specifically configured to: determine whether the residence time when the first NFC unit is close to or in contact with the second NFC unit in the second electronic device meets the first preset condition; or, to determine Whether the signal strength when an NFC unit is close to or in contact with the second NFC unit in the second electronic device meets the second preset condition; or, whether the distance between the first NFC unit and the second NFC unit in the second electronic device is determined The third preset condition is satisfied; if at least one of the first preset condition, the second preset condition, or the third preset condition is satisfied, the communication module is instructed to send the information of the first application interface to the second electronic device based on the wireless communication connection label.
在一种可能的实现方式中,上述处理器还用于:指示显示屏显示第一选项和第二选项,第一选项用于指示向第二电子设备发送第一应用界面的标签,第二选项用于指示向第二电子设备发送第一应用界面中的文件。In a possible implementation manner, the above-mentioned processor is further configured to: instruct the display screen to display the first option and the second option, the first option is used to indicate to send the label of the first application interface to the second electronic device, and the second option It is used to instruct to send the file in the first application interface to the second electronic device.
第四方面,本申请提供一种内容接续方法,包括:第一电子设备在显示第一应用的第一应用界面时,可通过其第一NFC单元从获取第二电子设备的设备信息;第一电子设备按照该设备信息与第二电子设备建立无线通信连接,该无线通信连接为蓝牙连接或Wi-Fi P2P连接;第一电子设备基于该无线通信连接向第二电子设备发送第一应用界面的标签,该标签用于指示第一应用界面中的显示内容,以使得第二电子设备根据该标签显示与第一应用界面对应的第二应用界面,第一应用界面与第二应用界面中包含相同的显示内容。In a fourth aspect, the present application provides a content connection method, including: when the first electronic device displays the first application interface of the first application, it can obtain the device information of the second electronic device through its first NFC unit; The electronic device establishes a wireless communication connection with the second electronic device according to the device information. The wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the first electronic device sends the information of the first application interface to the second electronic device based on the wireless communication connection. A label, the label is used to indicate the display content in the first application interface, so that the second electronic device displays a second application interface corresponding to the first application interface according to the label, and the first application interface and the second application interface contain the same Display content.
在一种可能的实现方式中,第一电子设备通过第一NFC单元从获取第二电子设备的设备信息,包括:响应于第一NFC单元靠近或接触第二电子设备中第二NFC单元的操作,第一电子设备从第二NFC单元中读取第二电子设备的设备信息。In a possible implementation manner, obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: responding to an operation of the first NFC unit approaching or touching the second NFC unit in the second electronic device , The first electronic device reads the device information of the second electronic device from the second NFC unit.
在一种可能的实现方式中,第一电子设备通过第一NFC单元从获取第二电子设备的设备信息,包括:第一电子设备发送电磁波信号,该电磁波信号用于驱动第二电子设备中第二NFC单元发送第二电子设备的设备信息;第一电子设备从第二NFC单元中获取第二电子设备的设备信息。In a possible implementation manner, obtaining the device information of the second electronic device by the first electronic device through the first NFC unit includes: the first electronic device sends an electromagnetic wave signal, and the electromagnetic wave signal is used to drive the second electronic device in the second electronic device. The second NFC unit sends the device information of the second electronic device; the first electronic device obtains the device information of the second electronic device from the second NFC unit.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备从第一应用的应用服务器中获取第一应用界面的标签。In a possible implementation manner, the above content connection method further includes: the first electronic device obtains the label of the first application interface from the application server of the first application.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备从第一应用的应用服务器中获取认证信息,该认证信息用于登录用户在第一应用中注册的账号;进而,第一电子设备可将该认证信息基于该无线通信连接发送给第二电子设备。In a possible implementation, the above content connection method further includes: the first electronic device obtains authentication information from the application server of the first application, the authentication information is used to log in to the user's account registered in the first application; further, The first electronic device may send the authentication information to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备预测用户在第一应用界面中的浏览位置;进而,第一电子设备可基于该无线通信连接向第二电子设备发送该浏览位置。In a possible implementation, the above content connection method further includes: the first electronic device predicts the user's browsing position in the first application interface; further, the first electronic device may send to the second electronic device based on the wireless communication connection The browse location.
在一种可能的实现方式中,上述内容接续方法还包括:第一电子设备可基于该无线通信连接向第二电子设备发送第一应用界面中包含的文件。In a possible implementation manner, the foregoing content connection method further includes: the first electronic device may send the file contained in the first application interface to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签,包括:若第一应用为预设的应用,或者,第一应用界面为预设的应用界面,则第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: if the first application is a preset application, or the first application interface is a preset application If an application interface is set, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签,包括:第一电子设备确定第一NFC单元与第二电子设备中第二NFC单元靠近或接触时的停留时间是否满足第一预设条件;或者,确定第一NFC单元与第二电子设备中第二NFC单元靠近或接触时的信号强度是否满足第二预设条件;或者,确定第一NFC单元与第二电子设备中第二NFC单元之间的距离是否满足第三预 设条件;若满足第一预设条件、第二预设条件或第三预设条件中的至少一个,则第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, including: the first electronic device determines that the first NFC unit and the second NFC in the second electronic device Whether the dwell time when the unit approaches or contacts meets the first preset condition; or, it is determined whether the signal strength when the first NFC unit approaches or contacts the second NFC unit in the second electronic device meets the second preset condition; or, Determine whether the distance between the first NFC unit and the second NFC unit in the second electronic device satisfies the third preset condition; if it satisfies at least one of the first preset condition, the second preset condition, or the third preset condition , The first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
在一种可能的实现方式中,在第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签之前,还包括:第一电子设备显示第一选项和第二选项,第一选项用于指示向第二电子设备发送第一应用界面的标签,第二选项用于指示向第二电子设备发送第一应用界面中的文件。那么,如果检测到用户选中第一选项,则第一电子设备基于无线通信连接向第二电子设备发送第一应用界面的标签。In a possible implementation manner, before the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection, the method further includes: the first electronic device displays the first option and the second option, and The option is used to indicate to send the label of the first application interface to the second electronic device, and the second option is to indicate to send the file in the first application interface to the second electronic device. Then, if it is detected that the user selects the first option, the first electronic device sends the label of the first application interface to the second electronic device based on the wireless communication connection.
第五方面,本申请提供一种第二电子设备,包括处理器,以及与该处理器耦合的第二NFC单元、显示屏、通信模块以及存储器,第二NFC单元为NFC芯片或电子标签,第二NFC单元包括第二电子设备的设备信息;其中,In a fifth aspect, the present application provides a second electronic device, including a processor, and a second NFC unit, a display screen, a communication module, and a memory coupled with the processor. The second NFC unit is an NFC chip or an electronic tag. The second NFC unit includes the device information of the second electronic device; wherein,
通信模块用于:与第一电子设备建立无线通信连接,该无线通信连接为蓝牙连接或Wi-Fi P2P连接;基于无线通信连接接收第一电子设备发送的第一应用界面的标签,第一应用界面为第一电子设备正在显示的界面,该标签用于指示第一应用界面中的显示内容;处理器用于:根据该标签指示显示屏显示与第一应用界面对应的第一应用的第二应用界面,第一应用界面与第二应用界面中包含相同的显示内容。The communication module is used to establish a wireless communication connection with the first electronic device, the wireless communication connection being a Bluetooth connection or a Wi-Fi P2P connection; receiving the label of the first application interface sent by the first electronic device based on the wireless communication connection, the first application The interface is the interface being displayed by the first electronic device, the label is used to indicate the display content in the first application interface; the processor is used to: according to the label instruct the display screen to display the second application of the first application corresponding to the first application interface Interface, the first application interface and the second application interface contain the same display content.
在一种可能的实现方式中,上述处理器具体用于:响应于第一电子设备中第一NFC单元靠近或接触第二NFC单元的操作,指示通信模块与第一电子设备建立无线通信连接。In a possible implementation manner, the foregoing processor is specifically configured to: in response to an operation of the first NFC unit in the first electronic device approaching or contacting the second NFC unit, instruct the communication module to establish a wireless communication connection with the first electronic device.
在一种可能的实现方式中,上述通信模块还用于:接收第一电子设备发送的认证信息,该认证信息用于登录用户在第一应用中注册的账号;上述处理器还用于:使用该认证信息登录安装在第二电子设备中的第一应用。In a possible implementation manner, the above-mentioned communication module is further configured to: receive authentication information sent by the first electronic device, where the authentication information is used to log in to the user's account registered in the first application; the above-mentioned processor is also used to: use The authentication information logs in the first application installed in the second electronic device.
在一种可能的实现方式中,上述通信模块还用于:接收第一电子设备发送的用户在第一应用界面中的浏览位置;此时,上述处理器具体用于:根据该标签和该浏览位置,指示显示屏显示与第一应用界面对应的第二应用界面。In a possible implementation manner, the aforementioned communication module is further configured to: receive the user's browsing position in the first application interface sent by the first electronic device; at this time, the aforementioned processor is specifically configured to: according to the tag and the browsing The position indicates that the display screen displays the second application interface corresponding to the first application interface.
在一种可能的实现方式中,上述通信模块还用于:接收第一电子设备发送的第一应用界面中包含的文件;此时,上述处理器具体用于:根据该标签和从第一电子设备接收到的该文件,指示显示屏显示与第一应用界面对应的第二应用界面。In a possible implementation manner, the above-mentioned communication module is further configured to: receive the file contained in the first application interface sent by the first electronic device; at this time, the above-mentioned processor is specifically configured to: according to the label and from the first electronic device The file received by the device instructs the display screen to display the second application interface corresponding to the first application interface.
在一种可能的实现方式中,上述处理器还用于:根据第一应用界面的标签使用浏览器在显示屏中打开与第一应用界面对应的第二应用界面;或者,在显示屏中提示用户在第二电子设备中安装第一应用。In a possible implementation manner, the above-mentioned processor is further configured to: use a browser to open a second application interface corresponding to the first application interface on the display screen according to the label of the first application interface; or, prompt on the display screen The user installs the first application in the second electronic device.
第六方面,本申请提供一种内容接续方法,包括:第二电子设备与第一电子设备建立无线通信连接,该无线通信连接为蓝牙连接或Wi-Fi P2P连接;第二电子设备基于该无线通信连接接收第一电子设备发送的第一应用界面的标签,第一应用界面为第一电子设备正在显示的界面,该标签用于指示第一应用界面中的显示内容;进而,第二电子设备根据该标签显示与第一应用界面对应的第二应用界面,第一应用界面与第二应用界面中包含相同的显示内容。In a sixth aspect, this application provides a content connection method, including: a second electronic device establishes a wireless communication connection with the first electronic device, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; the second electronic device is based on the wireless The communication connection receives the label of the first application interface sent by the first electronic device, the first application interface is the interface being displayed by the first electronic device, and the label is used to indicate the display content in the first application interface; further, the second electronic device According to the label, a second application interface corresponding to the first application interface is displayed, and the first application interface and the second application interface contain the same display content.
在一种可能的实现方式中,第二电子设备中包括第二NFC单元,第二NFC单元为NFC芯片或电子标签;其中,第二电子设备与第一电子设备建立无线通信连接,包括:响应于第一电子设备中第一NFC单元靠近或接触第二NFC单元的操作,第二电 子设备与第一电子设备建立无线通信连接。In a possible implementation, the second electronic device includes a second NFC unit, and the second NFC unit is an NFC chip or an electronic tag; wherein the second electronic device establishes a wireless communication connection with the first electronic device, including: responding When the first NFC unit in the first electronic device approaches or contacts the second NFC unit, the second electronic device establishes a wireless communication connection with the first electronic device.
在一种可能的实现方式中,上述内容接续方法还包括:第二电子设备接收第一电子设备发送的认证信息,该认证信息用于登录用户在第一应用中注册的账号;进而,第二电子设备可使用该认证信息登录安装在第二电子设备中的第一应用。In a possible implementation manner, the above content connection method further includes: the second electronic device receives authentication information sent by the first electronic device, and the authentication information is used to log in to the user's account registered in the first application; further, the second electronic device The electronic device can use the authentication information to log in to the first application installed in the second electronic device.
在一种可能的实现方式中,上述内容接续方法还包括:第二电子设备接收第一电子设备发送的用户在第一应用界面中的浏览位置;那么,第二电子设备可根据该标签和该浏览位置显示与第一应用界面对应的第二应用界面。In a possible implementation manner, the above content connection method further includes: the second electronic device receives the user's browsing position in the first application interface sent by the first electronic device; then, the second electronic device can use the tag and the The browsing position displays a second application interface corresponding to the first application interface.
在一种可能的实现方式中,上述内容接续方法还包括:第二电子设备接收第一电子设备发送的第一应用界面中包含的文件;那么,第二电子设备可根据该标签和从第一电子设备接收到的该文件显示与第一应用界面对应的第二应用界面。In a possible implementation manner, the foregoing content connection method further includes: the second electronic device receives the file contained in the first application interface sent by the first electronic device; then, the second electronic device can communicate with the first application interface according to the label. The file received by the electronic device displays a second application interface corresponding to the first application interface.
在一种可能的实现方式中,在第二电子设备基于该无线通信连接接收第一电子设备发送的第一应用界面的标签之后,还包括:第二电子设备根据第一应用界面的标签使用浏览器打开与第一应用界面对应的第二应用界面;或者,提示用户在第二电子设备中安装第一应用。In a possible implementation manner, after the second electronic device receives the label of the first application interface sent by the first electronic device based on the wireless communication connection, the method further includes: the second electronic device uses the browser according to the label of the first application interface. The device opens a second application interface corresponding to the first application interface; or, prompts the user to install the first application in the second electronic device.
第七方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在上述第一电子设备上运行时,使得第一电子设备执行如第四方面中任一项所述的内容接续方法。In a seventh aspect, the present application provides a computer storage medium including computer instructions, which when the computer instructions run on the above-mentioned first electronic device, cause the first electronic device to execute the content connection method according to any one of the fourth aspect .
第八方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在上述第二电子设备上运行时,使得第二电子设备执行如第六方面中任一项所述的内容接续方法。In an eighth aspect, the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on the above-mentioned second electronic device, cause the second electronic device to execute the content connection method described in any one of the sixth aspect .
第九方面,本申请提供一种计算机程序产品,当计算机程序产品在上述第一电子设备上运行时,使得第一电子设备执行如第四方面中任一项所述的播内容接续方法。In a ninth aspect, the present application provides a computer program product that, when the computer program product runs on the above-mentioned first electronic device, causes the first electronic device to execute the method for continuing to broadcast content as described in any one of the fourth aspect.
第十方面,本申请提供一种计算机程序产品,当计算机程序产品在上述第二电子设备上运行时,使得第二电子设备执行如第六方面中任一项所述的播内容接续方法。In a tenth aspect, the present application provides a computer program product, which when the computer program product runs on the above-mentioned second electronic device, causes the second electronic device to execute the method for continuing to broadcast content as described in any one of the sixth aspect.
可以理解地,上述提供的内容接续方法、电子设备、计算机存储介质以及计算机程序产品均用于上文所提供的内容接续系统,因此,其所能达到的有益效果可参考上文所提供的对应的系统中的有益效果,此处不再赘述。It is understandable that the content connection method, electronic equipment, computer storage medium, and computer program product provided above are all used in the content connection system provided above. Therefore, the beneficial effects that can be achieved can be referred to the corresponding ones provided above. The beneficial effects in the system are not repeated here.
附图说明Description of the drawings
图1为本申请实施例提供的一种内容接续系统的架构示意图;FIG. 1 is a schematic structural diagram of a content connection system provided by an embodiment of the application;
图2为本申请实施例提供的一种笔记本电脑的示意图;2 is a schematic diagram of a notebook computer provided by an embodiment of the application;
图3为本申请实施例提供的一种内容接续方法的交互示意图一;3 is a schematic diagram 1 of interaction of a content connection method provided by an embodiment of this application;
图4为本申请实施例提供的一种内容接续方法的场景示意图一;FIG. 4 is a schematic diagram 1 of a content connection method provided by an embodiment of the application;
图5为本申请实施例提供的一种电子设备的结构示意图一;FIG. 5 is a first structural diagram of an electronic device according to an embodiment of the application;
图6为本申请实施例提供的一种电子设备内操作系统的架构示意图;FIG. 6 is a schematic structural diagram of an operating system in an electronic device provided by an embodiment of this application;
图7为本申请实施例提供的一种内容接续方法的场景示意图二;FIG. 7 is a schematic diagram 2 of a content connection method provided by an embodiment of this application;
图8为本申请实施例提供的一种内容接续方法的交互示意图二;FIG. 8 is a second schematic diagram of interaction of a content connection method provided by an embodiment of this application;
图9为本申请实施例提供的一种内容接续方法的场景示意图三;FIG. 9 is a schematic diagram 3 of a content connection method provided by an embodiment of the application;
图10为本申请实施例提供的一种内容接续方法的场景示意图四;FIG. 10 is a schematic diagram 4 of a content connection method provided by an embodiment of this application;
图11为本申请实施例提供的一种内容接续方法的场景示意图五;11 is a schematic diagram 5 of a content connection method provided by an embodiment of the application;
图12为本申请实施例提供的一种内容接续方法的场景示意图六;FIG. 12 is a sixth schematic diagram of a content connection method provided by an embodiment of this application;
图13为本申请实施例提供的一种内容接续方法的场景示意图七;13 is a schematic diagram 7 of a content connection method provided by an embodiment of this application;
图14为本申请实施例提供的一种内容接续方法的场景示意图八;14 is a schematic diagram eight of a content connection method provided by an embodiment of this application;
图15为本申请实施例提供的一种电子设备的结构示意图二;FIG. 15 is a second structural diagram of an electronic device according to an embodiment of the application;
图16为本申请实施例提供的一种电子设备的结构示意图三。FIG. 16 is a third structural diagram of an electronic device provided by an embodiment of this application.
具体实施方式detailed description
下面将结合附图对本实施例的实施方式进行详细描述。The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
本申请实施例提供的一种内容接续方法,可应用于图1所示的内容接续系统200中。如图1所示,该内容接续系统200中可包括第一电子设备101和第二电子设备102。The content connection method provided by the embodiment of the present application can be applied to the content connection system 200 shown in FIG. 1. As shown in FIG. 1, the content connection system 200 may include a first electronic device 101 and a second electronic device 102.
第一电子设备101和第二电子设备102具体可以为手机、平板电脑、智能电视、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、手持计算机、上网本、个人数字助理(Personal Digital Assistant,PDA)、可穿戴电子设备、车载设备、虚拟现实设备等,本申请实施例对此不做任何限制。例如,第一电子设备101和第二电子设备102可以均为手机,或者,第一电子设备101和第二电子设备102可以均为笔记本电脑,或者,第一电子设备101可以为手机或平板电脑、第二电子设备102可以为笔记本电脑或智能电视等。The first electronic device 101 and the second electronic device 102 may specifically be mobile phones, tablet computers, smart TVs, notebook computers, Ultra-mobile Personal Computers (UMPC), handheld computers, netbooks, personal digital assistants (Personal Digital Assistant, PDA), wearable electronic equipment, vehicle-mounted equipment, virtual reality equipment, etc., the embodiments of the present application do not make any restrictions on this. For example, the first electronic device 101 and the second electronic device 102 may both be mobile phones, or the first electronic device 101 and the second electronic device 102 may both be laptop computers, or the first electronic device 101 may be a mobile phone or a tablet computer. , The second electronic device 102 can be a notebook computer or a smart TV.
以第一电子设备101为手机、第二电子设备102为笔记本电脑举例,在一些场景下,用户可能需要将手机中正在显示的网页、图片、文本、动画或视频等显示内容切换至笔记本电脑中续播。当然,如果手机在显示上述显示内容时同时播放有对应的音频内容,则也可以将该音频内容切换至笔记本电脑中续播。例如,用户在回家路上使用手机中的视频APP播放视频A,当用户回家后,可将手机中播放的视频A切换至笔记本电脑中继续播放,从而实现同一内容在多个电子设备之间的无缝续播功能。Taking the first electronic device 101 as a mobile phone and the second electronic device 102 as a laptop, for example, in some scenarios, the user may need to switch the displayed content such as web pages, pictures, text, animations or videos on the phone to the laptop. Rebroadcast. Of course, if the mobile phone simultaneously plays the corresponding audio content while displaying the above display content, the audio content can also be switched to the notebook computer to continue playing. For example, the user uses the video APP in the mobile phone to play video A on the way home. When the user goes home, he can switch the video A played in the mobile phone to the laptop to continue playing, so that the same content can be played between multiple electronic devices The seamless replay function.
示例性的,检测到用户在两个电子设备之间有跨设备续播的需求时,第一电子设备101可与第二电子设备102先建立通信连接,再通过该通信连接将显示内容(或音频内容)的相关信息发送给第二电子设备102,由第二电子设备102完成本次续播任务。Exemplarily, when it is detected that the user has a cross-device resuming requirement between two electronic devices, the first electronic device 101 may first establish a communication connection with the second electronic device 102, and then display content (or The related information of the audio content) is sent to the second electronic device 102, and the second electronic device 102 completes this replay task.
以第一电子设备101为手机、第二电子设备102为笔记本电脑举例,如图2所示,可在笔记本电脑上设置电子标签201,电子标签也可称为NFC(near field communication,近场通信)标签。电子标签201中一般设置有线圈,在笔记本电脑出厂时可预先向电子标签201的线圈中写入该笔记本电脑的设备信息,例如笔记本电脑的蓝牙MAC(media access control,媒体访问控制)地址等。或者,也可以在笔记本电脑中预先设置NFC芯片201,NFC芯片201中也可以存储该笔记本电脑的设备信息。下面的具体实施方式中提及的电子标签201可用NFC芯片替换,在下文的描述中不再一一说明。Taking the first electronic device 101 as a mobile phone and the second electronic device 102 as a notebook computer as an example, as shown in Figure 2, an electronic tag 201 can be set on the notebook computer. The electronic tag can also be called NFC (near field communication). )label. The electronic tag 201 is generally provided with a coil, and the device information of the notebook computer, such as the Bluetooth MAC (media access control) address of the notebook computer, can be written into the coil of the electronic tag 201 in advance when the notebook computer leaves the factory. Alternatively, the NFC chip 201 may be preset in the notebook computer, and the device information of the notebook computer may also be stored in the NFC chip 201. The electronic tag 201 mentioned in the following specific embodiments can be replaced with an NFC chip, and will not be described one by one in the following description.
示例性的,如图3所示,当用户需要将手机中的播放内容切换至笔记本电脑上续播时,可开启手机的NFC功能,将手机靠近笔记本电脑,使手机的NFC芯片靠近或接触笔记本电脑上的电子标签201。这样,手机可在与电子标签201彼此靠近的情况下,通过发射近场信号从电子标签201中读取笔记本电脑的设备信息。进而,手机可根据笔记本电脑的设备信息与笔记本电脑建立无线通信连接。例如,该无线通信连接具体可以为蓝牙连接、Wi-Fi连接或Wi-Fi P2P(peer to peer,点对点)连接等,本申 请实施例对此不做任何限制。Exemplarily, as shown in Figure 3, when the user needs to switch the playback content in the mobile phone to the laptop for replay, the NFC function of the mobile phone can be turned on, and the mobile phone can be brought close to the laptop so that the NFC chip of the mobile phone is close to or touches the laptop Electronic label 201 on the computer. In this way, when the mobile phone and the electronic tag 201 are close to each other, the device information of the notebook computer can be read from the electronic tag 201 by emitting near-field signals. Furthermore, the mobile phone can establish a wireless communication connection with the notebook computer according to the device information of the notebook computer. For example, the wireless communication connection may specifically be a Bluetooth connection, a Wi-Fi connection, or a Wi-Fi P2P (peer to peer) connection, etc. This application embodiment does not impose any restriction on this.
仍如图3所示,手机与笔记本电脑建立无线通信连接后,手机可从正在前台运行的应用中获取当前具体显示内容的标签(tag)。该显示内容的标签用于记录用户对当前显示内容的浏览位置。如图4所示,以手机正在前台运行视频APP的视频A(例如,《九州缥缈录》的第十一集)举例,手机可以请求视频APP查询视频A的播放页面的标识,例如播放页面的URL(uniform resource locator,统一资源定位符),以及视频A的播放进度(例如,播放进度为00:05秒)。进而,仍如图4所示,手机可将视频A的播放进度和播放页面的标识作为当前显示内容的标签发送给笔记本电脑。那么,如果笔记本电脑中也安装有相同的视频APP,则笔记本电脑在接收上述显示内容的标签后,可以打开笔记本电脑上安装的该视频APP,使得笔记本电脑中的视频APP能够按照上述播放页面的标识打开视频A的播放页面,并按照上述视频A的播放进度继续在笔记本电脑中续播视频A。Still as shown in FIG. 3, after the mobile phone establishes a wireless communication connection with the notebook computer, the mobile phone can obtain the current specific display content tag from the application running in the foreground. The label of the displayed content is used to record the user's browsing position of the currently displayed content. As shown in Figure 4, taking the mobile phone running the video APP in the foreground of Video A (for example, the eleventh episode of "Kyushu Miaolu") for example, the mobile phone can request the video APP to query the identification of the playback page of Video A, such as the playback page URL (uniform resource locator, uniform resource locator), and the playback progress of video A (for example, the playback progress is 00:05 seconds). Furthermore, as shown in FIG. 4, the mobile phone can send the playback progress of video A and the identification of the playback page as tags of the currently displayed content to the notebook computer. Then, if the same video APP is also installed in the laptop, the laptop can open the video APP installed on the laptop after receiving the label of the above display content, so that the video APP in the laptop can follow the above-mentioned playback page. Mark to open the playback page of video A, and continue to play video A on the laptop according to the playback progress of video A above.
当然,如果笔记本电脑中没有安装视频APP,笔记本电脑也可以按照手机发来的播放页面的标识使用浏览器打开视频A的播放页面,并按照上述视频A的播放进度继续在笔记本电脑中续播视频A。Of course, if the video APP is not installed on the laptop, the laptop can also use the browser to open the playback page of video A according to the identification of the playback page sent by the mobile phone, and continue to play the video in the laptop according to the playback progress of the above video A A.
也就是说,当用户想切换电子设备浏览同一内容时,可通过碰触两个电子设备的方式触发第一电子设备与第二电子设备快速建立无线通信连接,并自动将第一电子设备中正在显示的内容切换至第二电子设备中接续播放,从而简化同一内容在进行跨设备交互时用户的操作流程,提高和丰富了用户的使用体验。That is to say, when the user wants to switch the electronic device to browse the same content, the first electronic device can be triggered to quickly establish a wireless communication connection with the second electronic device by touching the two electronic devices, and the first electronic device is automatically The displayed content is switched to the second electronic device for continuous playback, thereby simplifying the user's operation process when the same content is interacted across devices, and improving and enriching the user's experience.
另外,上述实施例中是以手机将其显示内容切换至笔记本电脑中接续播放举例说明的,可以理解的是,也可以将笔记本电脑作为上述第一电子设备101,将手机作为上述第二电子设备102,进而按照上述方法将笔记本电脑中的显示内容切换至手机中接续播放,本申请实施例对此不做任何限制。也就是说,第一电子设备101和第二电子设备102在进行内容接续时的角色是可以互换的。第二电子设备102也可将正在显示的内容切换至第一电子设备101中继续播放。In addition, in the above embodiment, the display content of the mobile phone is switched to the notebook computer to continue playing. It is understandable that the notebook computer can also be used as the first electronic device 101 and the mobile phone can be used as the second electronic device. 102. Then switch the display content in the notebook computer to the mobile phone for continuous playback according to the foregoing method, and the embodiment of the present application does not impose any limitation on this. In other words, the roles of the first electronic device 101 and the second electronic device 102 during content connection are interchangeable. The second electronic device 102 can also switch the content being displayed to the first electronic device 101 to continue playing.
后续实施例中将结合具体示例对上述第一电子设备101与第二电子设备102之间的内容接续方法进行详细阐述,故此处不予赘述。In the following embodiments, the content connection method between the first electronic device 101 and the second electronic device 102 will be described in detail with reference to specific examples, so it will not be repeated here.
以手机作为上述内容接续系统200中的第一电子设备101举例,图5示出了手机的结构示意图。Taking a mobile phone as an example of the first electronic device 101 in the content connection system 200 described above, FIG. 5 shows a schematic structural diagram of the mobile phone.
手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180等。The mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, and mobile The communication module 150, the wireless communication module 160, the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, the sensor module 180 and so on.
可以理解的是,本发明实施例示意的结构并不构成对手机的具体限定。在本申请另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understandable that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone. In other embodiments of the present application, the mobile phone may include more or fewer components than those shown in the figure, or combine certain components, or disassemble certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit, GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
手机的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone can be realized by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
天线1和天线2用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied on a mobile phone. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在手机上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on mobile phones, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems ( Global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
在一些实施例中,手机的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。所述无线通 信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the mobile phone is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
手机通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone achieves display functions through GPU, display 194, and application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile phone may include one or N display screens 194, and N is a positive integer greater than one.
手机可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile phone can realize shooting function through ISP, camera 193, video codec, GPU, display 194 and application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats. In some embodiments, the mobile phone may include 1 or N cameras 193, and N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the mobile phone selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
视频编解码器用于对数字视频压缩或解压缩。手机可以支持一种或多种视频编解码器。这样,手机可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The phone can support one or more video codecs. In this way, the mobile phone can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
手机可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The mobile phone can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the mobile phone answers a call or voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机可以设置至少一个麦克风170C。在另一些实施例中,手机可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C. The mobile phone can be equipped with at least one microphone 170C. In other embodiments, the mobile phone may be provided with two microphones 170C, in addition to collecting sound signals, it may also achieve a noise reduction function. In other embodiments, the mobile phone can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
传感器模块180中可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
当然,手机还可以包括充电管理模块140、电源管理模块141、电池142、按键190、指示器192以及1个或多个SIM卡接口等,本申请实施例对此不做任何限制。Of course, the mobile phone may also include a charging management module 140, a power management module 141, a battery 142, a button 190, an indicator 192, and one or more SIM card interfaces, etc. The embodiment of the present application does not impose any limitation on this.
上述手机的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明手机的软件结构。The software system of the above mobile phone may adopt a layered architecture, event-driven architecture, micro-core architecture, micro-service architecture, or cloud architecture. The embodiment of the present application takes a layered Android system as an example to illustrate the software structure of a mobile phone.
图6中的(a)是本申请实施例的电子设备100的软件结构框图。(A) in FIG. 6 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图6中的(a)所示,应用程序层中可以安装通话,备忘录,浏览器,联系人,相机,图库,日历,地图,蓝牙,音乐,视频,短信息等APP(应用,application)。As shown in (a) in Figure 6, the application layer can install apps (applications) such as call, memo, browser, contacts, camera, gallery, calendar, map, Bluetooth, music, video, short message, etc. .
在本申请实施例中,仍如图6中的(a)所示,应用程序层中还可以包括碰一碰应用。该碰一碰应用可用于在检测到用户触发手机的碰一碰功能时,调用应用程序框架层中的NFC服务等与另一电子设备建立无线通信连接。并且,该碰一碰应用可用于从应用程序层中正在运行的前台应用中获取当前显示内容的标签,以便手机将当前显示内容的标签发送给另一电子设备完成续接播放。In the embodiment of the present application, as shown in (a) in FIG. 6, the application layer may also include a bump application. The bump application can be used to call the NFC service in the application framework layer to establish a wireless communication connection with another electronic device when it is detected that the user triggers the bump function of the mobile phone. In addition, the bump application can be used to obtain the label of the currently displayed content from the foreground application running in the application layer, so that the mobile phone sends the label of the currently displayed content to another electronic device to complete continuous playback.
也就是说,碰一碰应用可作为桥梁与创建无线通信连接的各类服务交互,并与应用程序层中需要接续的应用交互,使得手机可将应用中需要接续的显示内容通过碰一碰的方式切换至其他电子设备中播放,从而为用户提供“一碰续接”的跨设备播放功能。In other words, the touch application can be used as a bridge to interact with various services that create wireless communication connections, and interact with applications that need to be connected in the application layer, so that the phone can display content that needs to be connected in the application through the touch The method is switched to play in other electronic devices, so as to provide users with the cross-device play function of "one touch and reconnect".
示例性的,碰一碰应用可在手机开机后以常驻进程的形式长期运行在手机的应用程序层。Exemplarily, the bump application may run on the application layer of the mobile phone as a resident process for a long time after the mobile phone is turned on.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图6中的(a)所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in (a) in Figure 6, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
在本申请实施例中,仍如图6中的(a)所示,应用程序框架层中还可以运行NFC服务(NFC service)、蓝牙服务(Bluetooth service)以及Wi-Fi服务(Wi-Fi service)等。In the embodiment of the present application, as shown in (a) in Figure 6, the application framework layer can also run NFC service (NFC service), Bluetooth service (Bluetooth service), and Wi-Fi service (Wi-Fi service). )Wait.
示例性的,手机打开NFC功能后可在应用程序框架层中开始运行NFC服务。当手机与另一电子设备(例如笔记本电脑)的电子标签靠近或接触时,NFC服务可调用内核层的NFC驱动读取电子标签中的设备信息,例如笔记本电脑的MAC地址等。NFC服务可将获取到的MAC地址上报给碰一碰应用。进而,碰一碰应用可根据该MAC地址调用蓝牙服务,通过蓝牙驱动与对应的笔记本电脑建立蓝牙连接。Exemplarily, the mobile phone can start running the NFC service in the application framework layer after turning on the NFC function. When the mobile phone is close to or in contact with the electronic tag of another electronic device (such as a laptop), the NFC service can call the NFC driver of the kernel layer to read the device information in the electronic tag, such as the MAC address of the laptop. The NFC service can report the obtained MAC address to the bumper application. Furthermore, the bump application can call the Bluetooth service according to the MAC address, and establish a Bluetooth connection with the corresponding notebook computer through the Bluetooth driver.
当然,手机还可以从电子标签中获取用于进行身份鉴权的认证信息,例如,笔记本电脑使用的密钥、token(令牌)或设备序列号等。这样,在与笔记本电脑建立蓝牙连接的同时,手机还可使用该认证信息与笔记本电脑完成身份鉴权,以保证蓝牙连接的安全性。Of course, the mobile phone can also obtain the authentication information used for identity authentication from the electronic tag, for example, the key used by the laptop computer, the token (token), or the device serial number. In this way, while establishing a Bluetooth connection with the laptop computer, the mobile phone can also use the authentication information to complete identity authentication with the laptop computer to ensure the security of the Bluetooth connection.
在一些实施例中,手机与笔记本电脑建立蓝牙连接后,手机还可以使用该蓝牙连接获取与笔记本电脑建立P2P连接所需的SSID(service set identifier,服务集标识)和密码等连接配置信息。进而,碰一碰应用可调用Wi-Fi服务,使用上述SSID和密码通过Wi-Fi驱动与笔记本电脑建立Wi-Fi P2P连接。由于Wi-Fi P2P连接的传输速度以及安全性较高,因此,后续手机与笔记本电脑可基于建立的Wi-Fi P2P连接进行数据 传输。In some embodiments, after the mobile phone establishes a Bluetooth connection with the laptop computer, the mobile phone can also use the Bluetooth connection to obtain connection configuration information such as SSID (service set identifier) and password required to establish a P2P connection with the laptop computer. In addition, the touch application can call Wi-Fi services, and use the above-mentioned SSID and password to establish a Wi-Fi P2P connection with the laptop through the Wi-Fi driver. Due to the high transmission speed and security of Wi-Fi P2P connections, subsequent mobile phones and laptops can perform data transmission based on the established Wi-Fi P2P connection.
当然,手机也可在与笔记本电脑建立蓝牙连接后,使用该蓝牙连接与笔记本电脑进行数据传输,此时手机无需再获取笔记本电脑的SSID和密码,也无需调用Wi-Fi服务与笔记本电脑建立Wi-Fi P2P连接。Of course, the mobile phone can also use the Bluetooth connection to transfer data with the notebook computer after the Bluetooth connection is established with the notebook computer. At this time, the mobile phone does not need to obtain the SSID and password of the notebook computer, nor does it need to call the Wi-Fi service to establish Wi-Fi with the notebook computer -Fi P2P connection.
在本申请实施例中,当碰一碰应用检测到手机与笔记本电脑的电子标签触碰时,碰一碰应用还可以请求正在前台运行的应用获取当前显示内容的标签。如图7所示,手机触碰笔记本电脑的电子标签时正在使用WPS应用浏览word文档,此时手机显示的为该word文档的第2页。检测到手机触碰笔记本电脑的电子标签后,手机中的碰一碰应用可请求WPS应用生成当前显示内容的标签,以记录用户此时在手机中的浏览位置。例如,WPS应用可记录当前word文档的名称为“2018.8.8会议纪要”,并且,WPS应用可记录当前word文档的显示位置为第2页。进而,WPS应用可将该word文档的名称和显示位置作为当前显示内容的标签发送给碰一碰应用,碰一碰应用可通过已建立的蓝牙连接或Wi-Fi P2P连接将当前显示内容的标签发送给笔记本电脑。In the embodiment of the present application, when the bump application detects that the electronic tags of the mobile phone and the laptop are touching, the bump application may also request the application running in the foreground to obtain the label of the currently displayed content. As shown in Figure 7, when the mobile phone touches the electronic tag of the laptop computer, the WPS application is used to browse the word document, and the mobile phone displays the second page of the word document. After detecting that the mobile phone touches the electronic label of the laptop computer, the touch application in the mobile phone can request the WPS application to generate a label of the currently displayed content to record the user's browsing position in the mobile phone at this time. For example, the WPS application can record the name of the current word document as "2018.8.8 meeting minutes", and the WPS application can record the display position of the current word document as page 2. Furthermore, the WPS application can send the name and display position of the word document as the label of the currently displayed content to the bumper app, and the bumper app can use the established Bluetooth connection or Wi-Fi P2P connection to send the label of the currently displayed content Send to the laptop.
与手机的系统架构类似的,如图6中的(b)所示,也可以在笔记本电脑的应用程序中设置碰一碰服务。例如,可在笔记本电脑的手机管家应用中设置碰一碰服务。笔记本电脑的内核层中可以安装Wi-Fi驱动和蓝牙驱动。笔记本电脑通过Wi-Fi驱动或蓝牙驱动接收到手机发来的当前显示内容的标签后,可通过碰一碰服务将当前显示内容的标签传递给笔记本电脑中的WPS应用。进而,仍如图7所示,笔记本电脑中的WPS应用可根据当前显示内容的标签查找笔记本电脑中已保存的名称为“2018.8.8会议纪要”的word文档,打开并显示该word文档的第2页,实现该word文档在手机可笔记本电脑之间的无缝续接。Similar to the system architecture of the mobile phone, as shown in (b) in Figure 6, the touch service can also be set in the application of the notebook computer. For example, you can set up a touch service in the mobile phone housekeeper application of your laptop. Wi-Fi driver and Bluetooth driver can be installed in the core layer of the laptop. After the notebook computer receives the label of the current display content sent by the mobile phone through the Wi-Fi driver or Bluetooth driver, it can pass the label of the current display content to the WPS application in the notebook computer through the one-touch service. Furthermore, as shown in Figure 7, the WPS application in the notebook computer can search for the word document named "2018.8.8 Meeting Minutes" saved in the notebook computer according to the label of the currently displayed content, open and display the word document 2 pages to realize the seamless connection of the word document between the mobile phone and the laptop.
在一些实施例中,手机除了向笔记本电脑发送当前显示内容的标签外,还可以将正在播放的word文档也发送给笔记本电脑。这样,当笔记本电脑中未保存有名称为“2018.8.8会议纪要”的word文档时,笔记本电脑可以从手机接收该word文档,按照当前显示内容的标签打开该word文档的第2页,实现该word文档在手机和笔记本电脑之间的无缝续接。In some embodiments, in addition to sending the label of the currently displayed content to the notebook computer, the mobile phone may also send the word document being played to the notebook computer. In this way, when the word document named "2018.8.8 meeting minutes" is not saved in the notebook computer, the notebook computer can receive the word document from the mobile phone, and open the second page of the word document according to the label of the currently displayed content to realize the The seamless connection of word documents between mobile phones and laptops.
可以看出,设备之间通过碰一碰的方式可方便快捷的触发两个电子设备之间建立连接,并自动完成同一内容的接续任务,减少用户在进行跨设备交互时的操作复杂度,提高用户的使用体验。It can be seen that the device can easily and quickly trigger the establishment of a connection between two electronic devices by touching it, and automatically complete the connection task of the same content, which reduces the complexity of the user’s operation when interacting across devices and improves User experience.
另外,上述窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。In addition, the above-mentioned window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
上述内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The above-mentioned content provider is used to store and obtain data, and make these data accessible by applications. The data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
上述视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The above-mentioned view system includes visual controls, such as controls for displaying text and controls for displaying pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
上述电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The above-mentioned telephone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
上述资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布 局文件,视频文件等等。The above resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
上述通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The above notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
如图6中的(a)所示,系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。As shown in (a) in Figure 6, the system library may include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动等,本申请实施例对此不做任何限制。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, etc., which are not limited in the embodiment of the present application.
以下将结合附图详细阐述本申请实施例提供的一种内容接续方法。Hereinafter, a content connection method provided by an embodiment of the present application will be described in detail with reference to the accompanying drawings.
如图8所示,以用户将手机(即第一电子设备)中的显示内容切换至笔记本电脑(即第二电子设备)中接续播放为例,本申请实施例提供的一种内容接续方法可以包括以下步骤:As shown in FIG. 8, taking the user switching the display content in the mobile phone (i.e., the first electronic device) to the notebook computer (i.e., the second electronic device) as an example, a content connection method provided in this embodiment of the application can It includes the following steps:
S801、手机显示第一应用的应用界面。S801. The mobile phone displays the application interface of the first application.
示例性的,以微博APP为第一应用举例,如图9所示,用户打开微博APP后,手机可显示微博APP的应用界面901,即此时手机中的显示内容为应用界面901中显示的文本、图片、音频等。例如,应用界面901为微博APP中用户“张三”的微博主页,用户正在浏览该微博主页中的多条微博内容。Exemplarily, taking the Weibo APP as the first application example, as shown in Figure 9, after the user opens the Weibo APP, the mobile phone can display the application interface 901 of the Weibo APP, that is, the display content in the mobile phone at this time is the application interface 901 The text, pictures, audio, etc. displayed in the. For example, the application interface 901 is the Weibo homepage of the user "Zhang San" in the Weibo APP, and the user is browsing multiple pieces of Weibo content in the Weibo homepage.
另外,用户打开微博APP后,手机可以开始运行微博APP的进程。此时,微博APP的进程可向手机中的碰一碰应用注册监听服务,后续当碰一碰应用监听到用户输入碰一碰操作时,可触发碰一碰应用请求微博APP获取当前显示内容的标签,以实现显示内容(即上述应用界面901)的续接功能。In addition, after the user opens the Weibo APP, the mobile phone can start the process of running the Weibo APP. At this point, the process of the Weibo APP can register for the monitoring service with the bumper app in the mobile phone, and subsequently when the bumper app monitors the user input touch operation, it can trigger the bumper app to request the Weibo app to obtain the current display The label of the content is used to realize the connection function of the displayed content (that is, the above-mentioned application interface 901).
S802、响应于用户输入的碰一碰操作,手机获取笔记本电脑的设备信息。S802. In response to a touch operation input by the user, the mobile phone obtains device information of the notebook computer.
用户在浏览上述应用界面901时,如果需要将正在浏览的显示内容(即应用界面 901)切换至另一电子设备(例如笔记本电脑)中继续播放,如图10所示,则用户可使用手机触碰笔记本电脑上设置的电子标签201。手机靠近或触碰电子标签201时,即手机与电子标签201进行碰一碰操作后,手机可使用其NFC功能读取电子标签201中记录的笔记本电脑的设备信息。When the user browses the above-mentioned application interface 901, if the display content being browsed (ie, the application interface 901) needs to be switched to another electronic device (such as a laptop) to continue playing, as shown in Figure 10, the user can use the mobile phone to touch Touch the electronic label 201 set on the laptop. When the mobile phone approaches or touches the electronic tag 201, that is, after the mobile phone and the electronic tag 201 perform a touch operation, the mobile phone can use its NFC function to read the device information of the notebook computer recorded in the electronic tag 201.
为了方便本领域技术人员理解,本申请实施例这里对上述电子标签201的工作原理进行介绍。To facilitate the understanding of those skilled in the art, the working principle of the above-mentioned electronic tag 201 is introduced in the embodiment of the present application.
示例性的,电子标签201可以包括三种实现形式,即:被动式标签、半主动式标签和主动式标签。Exemplarily, the electronic tag 201 may include three implementation forms, namely: a passive tag, a semi-active tag, and an active tag.
(1)被动式标签:当电子标签201为被动式标签时,电子标签201中没有内部供电电源。电子标签201与其他设备的NFC芯片靠近时,可以接收到其他设备的NFC芯片发送的电磁波信号。此时,电子标签201的内部集成电路(integrated circuit,IC)通过接收到的电磁波信号进行驱动。当电子标签201接收到足够强度的电磁波信号时,可以向其他设备的NFC芯片发送电子标签201中保存的数据,如上述笔记本电脑的设备信息。(1) Passive tag: When the electronic tag 201 is a passive tag, there is no internal power supply in the electronic tag 201. When the electronic tag 201 is close to the NFC chip of other devices, it can receive electromagnetic wave signals sent by the NFC chip of other devices. At this time, the internal integrated circuit (IC) of the electronic tag 201 is driven by the received electromagnetic wave signal. When the electronic tag 201 receives electromagnetic wave signals of sufficient strength, it can send the data stored in the electronic tag 201 to the NFC chip of other devices, such as the device information of the above-mentioned notebook computer.
(2)半主动式标签:半主动式标签的工作方式与被动式标签的工作方式类似。当电子标签201为半主动式标签时,电子标签201中包括一个小型电池,该小型电池的电力足以驱动电子标签201的内部IC,使得IC处于工作的状态。由于半主动式标签中包括上述小型电池;因此相比于被动式标签,半主动式标签的反应速度更快。(2) Semi-active tags: The working mode of semi-active tags is similar to that of passive tags. When the electronic tag 201 is a semi-active tag, the electronic tag 201 includes a small battery whose power is sufficient to drive the internal IC of the electronic tag 201, so that the IC is in a working state. Since the semi-active tag includes the above-mentioned small battery; therefore, the reaction speed of the semi-active tag is faster than that of the passive tag.
(3)主动式标签:当电子标签201为主动式标签时,电子标签201中包括内部供电电源,用以供应内部IC所需电源以产生对外的讯号。一般来说,主动式标签允许在较长的距离进行NFC通信,并且主动式标签拥有较大的存储空间,可以用来储存其他设备的NFC芯片传输过来的数据。(3) Active tag: When the electronic tag 201 is an active tag, the electronic tag 201 includes an internal power supply for supplying power required by the internal IC to generate external signals. Generally speaking, active tags allow for NFC communication over a longer distance, and active tags have a larger storage space, which can be used to store data transmitted by the NFC chip of other devices.
本申请实施例中,上述电子标签201可以是上述被动式标签、半主动式标签或者主动式标签中的任一种。在实际应用中,考虑到被动式标签具有价格低廉、体积小巧和无需电源的优点,可将笔记本电脑中的电子标签201设置为被动式标签。In the embodiment of the present application, the above-mentioned electronic tag 201 may be any one of the above-mentioned passive tag, semi-active tag, or active tag. In practical applications, considering that the passive tag has the advantages of low price, small size and no power supply, the electronic tag 201 in the notebook computer can be set as a passive tag.
或者,手机检测到触碰电子标签201的碰一碰操作后,如果手机还未启用其NFC功能,则手机可响应该碰一碰操作自动打开NFC功能读取电子标签201中的设备信息,或者,手机可提示用户手动打开NFC功能,从而使用手机的NFC功能读取电子标签201中的设备信息。Or, after the mobile phone detects the one-touch operation of touching the electronic tag 201, if the mobile phone has not activated its NFC function, the mobile phone can automatically turn on the NFC function in response to the one-touch operation to read the device information in the electronic tag 201, or , The mobile phone can prompt the user to manually turn on the NFC function, so that the NFC function of the mobile phone can be used to read the device information in the electronic tag 201.
示例性的,上述设备信息中可以包括笔记本电脑的标识,例如笔记本电脑的蓝牙MAC地址、笔记本电脑的名称、使用的信道等。另外,上述设备信息中还可以包括后续手机与笔记本电脑建立无线通信连接时用于身份鉴权的认证信息。例如,该认证信息可以为笔记本电脑使用的token、预制共享密钥(pre-shared key,PSK)或设备序列号等,本申请实施例对此不做任何限制。Exemplarily, the above device information may include the identification of the laptop, such as the Bluetooth MAC address of the laptop, the name of the laptop, the channel used, etc. In addition, the above device information may also include authentication information used for identity authentication when the mobile phone and the notebook computer establish a wireless communication connection. For example, the authentication information may be a token used by a laptop computer, a pre-shared key (PSK), or a device serial number, etc., which is not limited in the embodiment of the present application.
步骤S802是以用户通过碰一碰的操作触发手机通过NFC功能获取笔记本电脑的设备信息举例说明的,可以理解的是,本领域技术人员还可以根据实际经验或实际应用场景设置其他方法获取笔记本电脑的设备信息。例如,可将笔记本电脑的设备信息预先写入二维码或条形码中,那么,用户使用手机扫描该二维码或条形码后,也可获取到笔记本电脑的设备信息。又例如,笔记本电脑检测到用户对上述电子标签201输 入碰一碰操作后,可触发笔记本电脑在显示屏中显示包含设备信息的二维码或条形码。进而,用户使用手机扫描该二维码或条形码后,也可获取到笔记本电脑的设备信息。Step S802 is exemplified by the user triggering the mobile phone to obtain the device information of the laptop through the NFC function through a touch operation. It is understandable that those skilled in the art can also set other methods to obtain the laptop according to actual experience or actual application scenarios. Device information. For example, the device information of the notebook computer can be written into the QR code or barcode in advance. Then, after the user scans the QR code or barcode with the mobile phone, the device information of the notebook computer can also be obtained. For another example, after the notebook computer detects that the user inputs a touch operation on the above electronic tag 201, it can trigger the notebook computer to display a two-dimensional code or bar code containing device information on the display screen. Furthermore, after the user scans the two-dimensional code or barcode with the mobile phone, the device information of the notebook computer can also be obtained.
S803、手机根据上述设备信息与笔记本电脑建立无线通信连接。S803. The mobile phone establishes a wireless communication connection with the notebook computer according to the above device information.
手机获取到笔记本电脑的设备信息后,可基于该设备信息与笔记本电脑建立蓝牙连接、Wi-Fi P2P连接等无线通信连接,以便手机基于该无线通信连接将正在播放的应用界面901切换至笔记本电脑中续播。After the mobile phone obtains the device information of the notebook computer, it can establish a Bluetooth connection, Wi-Fi P2P connection and other wireless communication connections with the notebook computer based on the device information, so that the mobile phone can switch the playing application interface 901 to the notebook computer based on the wireless communication connection In the resume.
示例性的,手机可按照蓝牙协议中BR/EDR(基础速率和增强速率)的工作模式,按照笔记本电脑的标识(例如蓝牙MAC地址)与笔记本电脑建立ACL(asynchronous connection less,异步无连接)连接,从而建立手机与笔记本电脑之间的蓝牙通道,例如蓝牙socket通道。Exemplarily, the mobile phone can establish an ACL (asynchronous connectionless, asynchronous connectionless) connection with the notebook computer according to the identification of the notebook computer (such as the Bluetooth MAC address) according to the BR/EDR (basic rate and enhanced rate) operating mode in the Bluetooth protocol , So as to establish a Bluetooth channel between the mobile phone and the laptop, such as a Bluetooth socket channel.
又或者,手机可按照蓝牙协议中BLE(bluetooh low energy,蓝牙低功耗)的工作模式,按照笔记本电脑的标识(例如蓝牙MAC地址)与笔记本电脑建立BLE连接,从而建立手机与笔记本电脑之间的蓝牙通道。Or, the mobile phone can establish a BLE connection with the notebook computer according to the BLE (bluetooh low energy, Bluetooth low energy) working mode in the Bluetooth protocol, and establish a BLE connection between the mobile phone and the notebook computer according to the laptop's identification (such as Bluetooth MAC address) Bluetooth channel.
手机与笔记本电脑建立蓝牙通道后,为了保证后续蓝牙传输的安全性,手机还可以根据上述设备信息中携带的认证信息与笔记本电脑进行身份鉴权。例如,手机可将从电子标签201中获取到的token发送给笔记本电脑,当笔记本电脑确定该token为正确的token后,笔记本电脑对手机的身份鉴权通过。又例如,手机可以根据从电子标签201中获取到的设备序列号等认证信息生成笔记本电脑使用的公钥,例如rsa256公钥,进而,手机可将该公钥发送给笔记本电脑,当笔记本电脑确定该公钥为笔记本电脑自身正确的公钥后,笔记本电脑对手机的身份鉴权通过。After the mobile phone and the notebook computer establish a Bluetooth channel, in order to ensure the security of subsequent Bluetooth transmission, the mobile phone can also perform identity authentication with the notebook computer based on the authentication information carried in the above device information. For example, the mobile phone can send the token obtained from the electronic tag 201 to the laptop. When the laptop determines that the token is the correct token, the laptop passes the identity authentication of the mobile phone. For another example, the mobile phone can generate the public key used by the notebook computer, such as the rsa256 public key, based on the authentication information such as the device serial number obtained from the electronic tag 201, and then the mobile phone can send the public key to the notebook computer, and when the notebook computer determines After the public key is the correct public key of the notebook computer, the identity authentication of the mobile phone by the notebook computer is passed.
后续,手机与笔记本电脑可使用经过身份鉴权的加密算法(或解密算法)在已建立的蓝牙通道上传输数据,从而将手机中正在播放的应用界面901切换至笔记本电脑中续播。Subsequently, the mobile phone and the laptop computer can use the encryption algorithm (or decryption algorithm) that has passed the identity authentication to transmit data on the established Bluetooth channel, thereby switching the application interface 901 currently playing in the mobile phone to the laptop computer for replay.
在一些实施例中,手机与笔记本电脑建立蓝牙通道后,手机还可以基于该蓝牙通道获取与笔记本电脑建立Wi-Fi P2P通道所需的连接配置信息。例如,该连接配置信息可以包括Wi-Fi P2P通道的SSID、密码、MAC地址和支持的频段等。手机获取到这些连接配置信息后,可使用该连接配置信息与笔记本电脑建立Wi-Fi P2P通道。手机与笔记本电脑建立Wi-Fi P2P通道后,并不会影响手机和笔记本电脑原本接入的Wi-Fi网络。In some embodiments, after the mobile phone and the notebook computer establish a Bluetooth channel, the mobile phone can also obtain connection configuration information required to establish a Wi-Fi P2P channel with the notebook computer based on the Bluetooth channel. For example, the connection configuration information may include the SSID, password, MAC address, and supported frequency band of the Wi-Fi P2P channel. After the mobile phone obtains the connection configuration information, it can use the connection configuration information to establish a Wi-Fi P2P channel with the laptop. After the mobile phone and the notebook computer establish a Wi-Fi P2P channel, it will not affect the Wi-Fi network originally connected to the mobile phone and notebook computer.
由于Wi-Fi P2P通道的安全性和传输速度更高,因此,手机后续与笔记本电脑可在已建立的Wi-Fi P2P通道上传输数据,从而将手机中正在播放的应用界面901切换至笔记本电脑中续播。Due to the higher security and transmission speed of the Wi-Fi P2P channel, the mobile phone and the laptop can transmit data on the established Wi-Fi P2P channel, thereby switching the application interface 901 being played on the phone to the laptop In the resume.
在一些实施例中,由于Wi-Fi P2P通道的SSID或密码等连接配置信息可以动态变化,那么,手机与笔记本电脑建立蓝牙通道后,笔记本电脑可自动根据当前Wi-Fi P2P通道所使用的SSID、密码等连接配置信息生成二维码,并将该二维码显示在笔记本电脑的屏幕中。这样,用户使用手机扫描该二维码也可获取与笔记本电脑建立Wi-Fi P2P通道所需的连接配置信息。进而,手机可使用连接配置信息与笔记本电脑建立Wi-Fi P2P通道。In some embodiments, since the connection configuration information such as the SSID or password of the Wi-Fi P2P channel can be dynamically changed, then after the mobile phone and the laptop establish a Bluetooth channel, the laptop can automatically use the SSID of the current Wi-Fi P2P channel The connection configuration information such as, password, etc. generates a QR code and displays the QR code on the screen of the laptop. In this way, the user can also obtain the connection configuration information required to establish a Wi-Fi P2P channel with the laptop by scanning the QR code with the mobile phone. Furthermore, the mobile phone can use the connection configuration information to establish a Wi-Fi P2P channel with the notebook computer.
在另一些实施例中,笔记本电脑上电子标签201中的信息可以是动态变化的。例 如,笔记本电脑中的处理器可与电子标签201电连接。那么,笔记本电脑中的处理器可将当前Wi-Fi P2P通道所使用的SSID、MAC地址、密码等连接配置信息动态的更新在电子标签201中。这样,当用户使用手机触碰电子标签201时,手机可从电子标签201中读取到此时与笔记本电脑建立Wi-Fi P2P通道所需的连接配置信息。进而,手机可使用该连接配置信息直接与笔记本电脑建立Wi-Fi P2P通道,无需再与笔记本电脑建立蓝牙通道。In other embodiments, the information in the electronic tag 201 on the notebook computer may be dynamically changed. For example, the processor in the notebook computer can be electrically connected to the electronic tag 201. Then, the processor in the notebook computer can dynamically update the connection configuration information such as the SSID, MAC address, and password used by the current Wi-Fi P2P channel in the electronic label 201. In this way, when the user touches the electronic tag 201 with the mobile phone, the mobile phone can read from the electronic tag 201 the connection configuration information required to establish a Wi-Fi P2P channel with the laptop at this time. Furthermore, the mobile phone can use the connection configuration information to directly establish a Wi-Fi P2P channel with the laptop, without the need to establish a Bluetooth channel with the laptop.
在另一些实施例中,笔记本电脑中也可设置NFC芯片,NFC芯片中可以存储笔记本电脑的设备信息。例如,笔记本电脑中的处理器可与NFC芯片电连接。示例性的,如图11中的(a)所示,可在笔记本电脑的壳体上预先标识出与NFC芯片对应的触碰区域1101。具有NFC功能的手机等设备靠近触碰区域1101后可有效检测到笔记本电脑中NFC芯片发出的NFC信号。上述触碰区域1101可以通过文字、图片或颜色标识在笔记本电脑的壳体上。这样,当用户使用手机触碰笔记本电脑的触碰区域1101时,手机可从笔记本电脑的NFC芯片中读取笔记本电脑的设备信息,并与笔记本电脑建立无线通信连接。In other embodiments, an NFC chip may also be provided in the notebook computer, and the device information of the notebook computer may be stored in the NFC chip. For example, the processor in a notebook computer can be electrically connected to the NFC chip. Exemplarily, as shown in FIG. 11(a), the touch area 1101 corresponding to the NFC chip may be pre-marked on the casing of the notebook computer. NFC-enabled mobile phones and other devices can effectively detect the NFC signal sent by the NFC chip in the notebook computer after being close to the touch area 1101. The above-mentioned touch area 1101 can be marked on the casing of the notebook computer by text, picture or color. In this way, when the user touches the touch area 1101 of the notebook computer with the mobile phone, the mobile phone can read the device information of the notebook computer from the NFC chip of the notebook computer, and establish a wireless communication connection with the notebook computer.
或者,笔记本电脑中的处理器可将当前Wi-Fi P2P通道所使用的SSID、MAC地址、密码等连接配置信息动态的更新在笔记本电脑的NFC芯片中。这样,当用户使用手机触碰上述触碰区域1101时,手机可从NFC芯片中读取到此时与笔记本电脑建立Wi-Fi P2P通道所需的连接配置信息。进而,手机可使用该连接配置信息直接与笔记本电脑建立Wi-Fi P2P通道,无需再与笔记本电脑建立无线通信连接。Or, the processor in the notebook computer can dynamically update the connection configuration information such as the SSID, MAC address, and password used by the current Wi-Fi P2P channel in the NFC chip of the notebook computer. In this way, when the user touches the touch area 1101 with the mobile phone, the mobile phone can read from the NFC chip the connection configuration information required to establish a Wi-Fi P2P channel with the notebook computer at this time. Furthermore, the mobile phone can use the connection configuration information to directly establish a Wi-Fi P2P channel with the notebook computer, eliminating the need to establish a wireless communication connection with the notebook computer.
又或者,如图11中的(b)所示,笔记本电脑中设置有NFC芯片,当检测到用户首次打开笔记本电脑的NFC功能时,笔记本电脑可通过文字、视频或动画等形式显示碰一碰操作的教程,从而向用户提示笔记本电脑中与NFC芯片对应的触碰区域具体在哪里。这样,用户可按照该提示使用手机向笔记本电脑的触碰区域输入碰一碰操作,从而读取笔记本电脑的NFC芯片中存储的设备信息(或连接配置信息),以便手机根据上述设备信息(或连接配置信息)与笔记本电脑建立蓝牙通道(或Wi-Fi P2P通道)。当然,用户也可以在笔记本电脑的设置功能或相关的应用中打开上述碰一碰操作的教程,本申请实施例对此不做任何限制。Or, as shown in Figure 11(b), the notebook computer is equipped with an NFC chip. When it is detected that the user turns on the NFC function of the notebook computer for the first time, the notebook computer can display the touch by text, video or animation. The operation tutorial, so as to prompt the user where the touch area corresponding to the NFC chip in the notebook computer is. In this way, the user can use the mobile phone to input the touch operation to the touch area of the notebook computer according to the prompt, thereby reading the device information (or connection configuration information) stored in the NFC chip of the notebook computer, so that the mobile phone can follow the above device information (or Connection configuration information) establish a Bluetooth channel (or Wi-Fi P2P channel) with the laptop. Of course, the user can also open the above-mentioned bump operation tutorial in the setting function of the notebook computer or related applications, and the embodiment of the present application does not impose any limitation on this.
另外,手机与笔记本电脑建立蓝牙通道或Wi-Fi P2P通道后,手机还可以进一步获取笔记本电脑的IP地址。这样,手机后续可根据笔记本电脑的IP地址,在蓝牙通道或Wi-Fi P2P通道上基于TCP(transmission control protocol,传输控制协议)/IP协议建立TCP连接,从而使用该TCP连接与笔记本电脑进行数据交互。In addition, after the mobile phone and the notebook computer establish a Bluetooth channel or Wi-Fi P2P channel, the mobile phone can further obtain the IP address of the notebook computer. In this way, the mobile phone can subsequently establish a TCP connection based on the TCP (transmission control protocol)/IP protocol on the Bluetooth channel or Wi-Fi P2P channel according to the IP address of the laptop, and then use the TCP connection to communicate with the laptop. Interactive.
S804、手机获取上述应用界面的标签。S804. The mobile phone obtains the label of the above application interface.
手机检测到用户输入碰一碰操作后,一方面可通过执行上述步骤S802-S803建立手机与笔记本电脑之间的无线通信连接,另一方面,手机可执行步骤S804获取当前显示内容(即当前应用界面)的标签,该显示内容的标签可用于指示用户对当前应用界面的浏览位置。After the mobile phone detects the user's touch operation, on the one hand, it can establish a wireless communication connection between the mobile phone and the laptop by performing the above steps S802-S803; on the other hand, the mobile phone can perform step S804 to obtain the current display content (that is, the current application Interface) label, the label of the displayed content can be used to indicate the user's browsing position of the current application interface.
示例性的,手机检测到触碰电子标签201的碰一碰操作后,可查询当前正在运行的前台应用。一般,手机可实时记录当前正在运行的APP或任务(task)。例如,手机在运行应用时可建立相应的应用栈,通常,应用栈栈顶的内容即为当前手机正在运 行和显示的内容。那么,手机检测到触碰电子标签201的碰一碰操作后,碰一碰应用可在应用栈的栈顶中查询到手机当前正在运行微博APP的应用界面901。如果微博APP已经在碰一碰应用中注册过监听服务,说明微博APP支持“一碰续接”的跨设备播放功能,则碰一碰应用可向微博APP发送请求消息,该请求消息用于请求微博APP获取当前显示内容(即应用界面901)的标签。Exemplarily, after the mobile phone detects the touch operation of touching the electronic tag 201, it can query the currently running foreground application. Generally, the mobile phone can record the currently running APP or task in real time. For example, a mobile phone can establish a corresponding application stack when running an application. Generally, the top content of the application stack is the content currently running and displayed on the mobile phone. Then, after the mobile phone detects the touch operation of touching the electronic tag 201, the touch application can query the application interface 901 of the Weibo APP currently running on the mobile phone in the top of the application stack. If the Weibo APP has been registered for the monitoring service in the Bumper app, it means that the Weibo APP supports the cross-device playback function of "One Touch Renew", and the Bumper app can send a request message to the Weibo APP. The request message It is used to request the Weibo APP to obtain the label of the currently displayed content (ie the application interface 901).
微博APP接收到碰一碰应用发来的请求消息后,可生成与当前正在显示的应用界面901对应的标签,从而记录用户当前在微博APP中具体的浏览内容和浏览位置。示例性的,如图12所示,微博APP在手机中显示的应用界面901中的每一条内容都具有对应的索引。例如,“张三”的微博主页对应的索引为001,“张三”的微博主页中显示的第一条微博对应的索引为002,“张三”的微博主页中显示的第二条微博对应的索引为003,……。那么,微博APP可将应用界面901中每一条内容的索引按照一定顺序发送给微博APP的应用服务器。应用服务器可根据这些索引按照一定的格式生成应用界面901的标签(tag),该标签可用于指示当前微博APP正在显示的具体内容。应用服务器可将生成的应用界面901的标签发送给手机的微博APP。进而,微博APP可通过调用预设的回调函数将应用界面901的标签传递给碰一碰应用。After the Weibo APP receives the request message from the bump application, it can generate a label corresponding to the currently displayed application interface 901, so as to record the user's current specific browsing content and browsing position in the Weibo APP. Exemplarily, as shown in FIG. 12, each piece of content in the application interface 901 displayed on the mobile phone of the Weibo APP has a corresponding index. For example, the index corresponding to the Weibo homepage of "Zhang San" is 001, the index corresponding to the first Weibo displayed on the Weibo homepage of "Zhang San" is 002, and the index displayed on the Weibo homepage of "Zhang San" is 002. The corresponding indexes of the two microblogs are 003,.... Then, the Weibo APP can send the index of each piece of content in the application interface 901 to the application server of the Weibo APP in a certain order. The application server can generate a tag of the application interface 901 in a certain format according to these indexes, and the tag can be used to indicate the specific content currently being displayed by the Weibo APP. The application server may send the generated label of the application interface 901 to the Weibo APP of the mobile phone. Furthermore, the Weibo APP can transfer the label of the application interface 901 to the bumper application by calling a preset callback function.
或者,微博APP在显示应用界面901时,应用服务器可记录与应用界面901对应的一个或多个索引。例如,当微博APP需要显示应用界面901时可向应用服务器发送对应的显示请求,应用服务器可响应该显示请求确定并保存与应用界面901对应的索引:001、002以及003。进而,应用服务器可将与每个索引对应的显示数据发送给手机,使得手机可按照该显示数据显示出应用界面901,但此时手机中未保存应用界面901中的各个索引。那么,微博APP接收到碰一碰应用发来的请求消息后,可请求应用服务器生成应用界面901的标签。进而,应用服务器可根据已保存的应用界面901中的各个索引生成应用界面901的标签(tag),并将应用界面901的标签发送给手机的微博APP。这样,微博APP也可通过调用预设的回调函数将应用界面901的标签传递给碰一碰应用。Alternatively, when the Weibo APP displays the application interface 901, the application server may record one or more indexes corresponding to the application interface 901. For example, when the Weibo APP needs to display the application interface 901, it can send a corresponding display request to the application server, and the application server can determine and save the indexes corresponding to the application interface 901: 001, 002, and 003 in response to the display request. Furthermore, the application server can send the display data corresponding to each index to the mobile phone, so that the mobile phone can display the application interface 901 according to the display data, but at this time, the mobile phone does not save each index in the application interface 901. Then, after the Weibo APP receives the request message from the bump application, it can request the application server to generate the label of the application interface 901. Furthermore, the application server may generate a tag of the application interface 901 according to each index in the saved application interface 901, and send the tag of the application interface 901 to the Weibo APP of the mobile phone. In this way, the Weibo APP can also transfer the label of the application interface 901 to the bumper application by calling a preset callback function.
另外,应用服务器还可以向手机发送用于登录微博APP的认证信息。例如,该认证信息可以为应用服务器生成的安全token。或者,该认证信息可以为用户当前登录的微博账号和密码等。后续,手机可将应用界面901的标签以及上述认证信息发送给笔记本电脑,以使得笔记本电脑可根据上述认证信息自动登录用户的微博账号并显示应用界面901。In addition, the application server can also send authentication information for logging in to the Weibo APP to the mobile phone. For example, the authentication information may be a security token generated by the application server. Alternatively, the authentication information may be the user's currently logged-in Weibo account and password. Subsequently, the mobile phone may send the label of the application interface 901 and the above-mentioned authentication information to the notebook computer, so that the notebook computer can automatically log in to the user's Weibo account according to the above-mentioned authentication information and display the application interface 901.
在一些实施例中,手机中正在运行的前台应用也可以响应碰一碰应用发送的请求消息生成当前显示内容的标签,无需与应用服务器交互便可生成当前显示内容的标签。例如,以手机中正在运行的前台应用为WPS应用举例,WPS应用接收到碰一碰应用发送的请求消息后,可响应该请求消息查询当前打开的word文档的名称以及该word文档的显示位置,并将该word文档的名称以及显示位置作为当前显示内容的标签传递给碰一碰应用。In some embodiments, the foreground application running in the mobile phone can also generate a label of the currently displayed content in response to a request message sent by the bumper application, and can generate a label of the currently displayed content without interacting with the application server. For example, taking the foreground application running on the mobile phone as the WPS application, after receiving the request message sent by the bump application, the WPS application can respond to the request message to query the name of the currently opened word document and the display position of the word document. And pass the name and display position of the word document as the label of the current display content to the bumper application.
需要说明的是,每个应用的应用厂商可以自定义如何响应碰一碰应用发送的请求消息生成当前显示内容的标签,本申请实施例对此不做任何限制。例如,不同应用在接收到碰一碰应用发送的请求消息后,可按照各自应用厂商预先定义的方式与应用服 务器交互,并按照预先定义的格式生成当前显示内容的标签。由于该显示内容的标签能够反映出手机运行该应用时正在播放的具体内容,因此后续笔记本电脑获取到该标签后,能够在对应的应用或网站中接续播放该标签所指示的应用界面。It should be noted that the application manufacturer of each application can customize how to generate the label of the current display content in response to the request message sent by the bumper application, and the embodiment of the present application does not impose any limitation on this. For example, after different applications receive the request message sent by the bumper application, they can interact with the application server in a manner predefined by the respective application manufacturer, and generate a label of the currently displayed content according to a predefined format. Since the label of the displayed content can reflect the specific content being played when the mobile phone runs the application, after the subsequent notebook computer obtains the label, it can continue to play the application interface indicated by the label in the corresponding application or website.
S805、手机基于上述无线通信连接向笔记本电脑发送上述应用界面的标签。S805: The mobile phone sends the label of the application interface to the notebook computer based on the wireless communication connection.
手机获取到当前应用界面的标签后,可通过步骤S804中与笔记本电脑建立的无线通信连接,向笔记本电脑发送上述应用界面的标签,从而续播手机中的显示内容。After the mobile phone obtains the label of the current application interface, it can send the label of the application interface to the notebook computer through the wireless communication connection established with the notebook computer in step S804, so as to resume the display content in the mobile phone.
仍以手机正在运行微博APP的应用界面901举例,碰一碰应用接收到微博APP发来的应用界面901的标签后,可调用蓝牙服务或Wi-Fi服务使用已建立的蓝牙通道或Wi-Fi P2P通道向笔记本电脑发送应用界面901的标签。Still taking the application interface 901 of the Weibo APP running on the mobile phone as an example, after the application receives the label of the application interface 901 sent by the Weibo APP, the Bluetooth service or Wi-Fi service can be called to use the established Bluetooth channel or Wi -Fi P2P channel sends the label of the application interface 901 to the laptop.
在一些实施例中,除了向笔记本电脑发送应用界面901的标签外,手机还可以将微博APP的应用服务器发来的认证信息发送给笔记本电脑,以便笔记本电脑可以按照该认证信息自动登录用户的微博账号。In some embodiments, in addition to sending the label of the application interface 901 to the laptop, the mobile phone can also send the authentication information sent by the application server of the Weibo APP to the laptop, so that the laptop can automatically log in to the user according to the authentication information. Weibo account.
在一些实施例中,除了向笔记本电脑发送应用界面901的标签外,手机还可以将应用界面901中包含的图片、视频、音频或文档等文件发送给笔记本电脑。这样,笔记本电脑在接续播放应用界面901时,无需再额外下载应用界面901中包含的图片、视频、音频或文档等资源。In some embodiments, in addition to sending the label of the application interface 901 to the notebook computer, the mobile phone can also send files such as pictures, videos, audios, or documents contained in the application interface 901 to the notebook computer. In this way, when the notebook computer continues to play the application interface 901, there is no need to additionally download resources such as pictures, videos, audios, or documents included in the application interface 901.
S806、笔记本电脑按照上述应用界面的标签继续显示第一应用的应用界面。S806. The notebook computer continues to display the application interface of the first application according to the label of the above application interface.
仍以手机正在运行微博APP的应用界面901举例,笔记本电脑接收到手机发来的应用界面901的标签后,可通过笔记本电脑中的碰一碰服务将应用界面901的标签传递给笔记本电脑中安装的微博APP。并且,笔记本电脑可将手机发来的认证信息也传递给笔记本电脑中安装的微博APP。如图13所示,笔记本电脑中的微博APP可根据该认证信息自动登录用户的微博账号,并且,笔记本电脑中的微博APP还可根据应用界面901的标签与微博APP的应用服务器交互,从应用服务器获取该标签对应的显示内容。这样,笔记本电脑中的微博APP可根据应用服务器发送的显示内容显示出与应用界面901对应的应用界面1301。其中,笔记本电脑显示的应用界面1301与手机显示的应用界面901中包含相同的显示内容,实现同一显示内容在手机和笔记本电脑上的跨设备续接播放功能。Still taking the application interface 901 of the Weibo APP running on the mobile phone as an example, after the laptop receives the label of the application interface 901 from the mobile phone, it can transfer the label of the application interface 901 to the laptop through the touch service in the laptop. Weibo APP installed. In addition, the laptop can also pass the authentication information sent by the mobile phone to the Weibo APP installed in the laptop. As shown in Figure 13, the Weibo APP in the laptop can automatically log in to the user’s Weibo account according to the authentication information, and the Weibo APP in the laptop can also interact with the application server of the Weibo APP according to the label of the application interface 901 Interactively, obtain the display content corresponding to the label from the application server. In this way, the Weibo APP in the notebook computer can display the application interface 1301 corresponding to the application interface 901 according to the display content sent by the application server. Wherein, the application interface 1301 displayed on the laptop computer and the application interface 901 displayed on the mobile phone include the same display content, so as to realize the cross-device continuous playback function of the same display content on the mobile phone and the laptop computer.
当然,如果笔记本电脑中没有安装微博APP,笔记本电脑也可以使用浏览器打开并登录用户的微博账号,并按照应用界面901的标签重新打开与应用界面901对应的应用界面,实现同一显示内容在手机和笔记本电脑上的跨设备续接功能。或者,如果笔记本电脑中没有安装微博APP,笔记本电脑也可以提示用户安装微博APP。例如,笔记本电脑可自动跳转至应用市场中微博APP的下载界面。如果笔记本电脑检测到用户下载了微博APP,则笔记本电脑中的微博APP可按照上述方法自动登录用户的微博账号,并按照应用界面901的标签显示对应的应用界面1301。Of course, if the Weibo APP is not installed on the laptop, the laptop can also use a browser to open and log in to the user’s Weibo account, and reopen the application interface corresponding to the application interface 901 according to the label of the application interface 901 to achieve the same display content Cross-device connection function on mobile phones and laptops. Or, if the Weibo APP is not installed in the laptop, the laptop can also prompt the user to install the Weibo APP. For example, the laptop can automatically jump to the download interface of the Weibo APP in the application market. If the notebook computer detects that the user has downloaded the Weibo APP, the Weibo APP in the notebook computer can automatically log in to the user's Weibo account according to the above method, and display the corresponding application interface 1301 according to the label of the application interface 901.
需要说明的是,如图13所示,手机中显示的微博APP的应用界面901与笔记本电脑中显示的微博APP的应用界面1301中的显示布局和显示效果可以不相同,本申请实施例对此不做任何限制。It should be noted that, as shown in FIG. 13, the display layout and display effect of the application interface 901 of the Weibo APP displayed on the mobile phone and the application interface 1301 of the Weibo APP displayed on the notebook computer may be different. There are no restrictions on this.
在一些实施例中,应用(例如上述微博APP)获取到的当前显示内容的标签可能出现信息不全的现象。例如,上述应用界面901的标签中可能仅记录了当前微博APP 显示的页面为“张三”的微博主页。此时,手机或笔记本电脑根据该标签无法准确确定出用户正在浏览“张三”的微博主页的具体位置。那么,手机还可以记录用户在应用界面901的具体操作,例如用户在应用界面901中的滑动操作。进而,手机可根据用户在应用界面901中的具体操作预测用户在应用界面901中的浏览位置。例如,手机可根据用户在应用界面901中输入滑动操作的次数或滑动距离预测用户正在浏览当前微博主页中的第5条微博。那么,手机在向笔记本电脑发送上述应用界面901的标签的同时,可一并发送手机预测出的用户当前的浏览位置。这样,笔记本电脑还可以结合手机预测出的浏览位置为用户接续显示与应用界面901对应的应用界面。以手机预测出的浏览位置为微博主页中的第5条微博举例,笔记本电脑可根据应用界面901的标签打开“张三”的微博主页,并显示该微博主页中包含第5条微博内容的应用界面。例如,笔记本电脑可在“张三”的微博主页中显示第4条至第6条微博的内容。In some embodiments, the label of the currently displayed content acquired by the application (such as the above-mentioned Weibo APP) may have incomplete information. For example, the label of the aforementioned application interface 901 may only record that the page displayed by the current Weibo APP is the Weibo homepage of "Zhang San". At this time, the mobile phone or laptop cannot accurately determine the specific location of the Weibo homepage that the user is browsing based on the tag. Then, the mobile phone can also record the user's specific operation on the application interface 901, for example, the user's sliding operation on the application interface 901. Furthermore, the mobile phone can predict the user's browsing position in the application interface 901 according to the user's specific operations in the application interface 901. For example, the mobile phone can predict that the user is browsing the fifth Weibo in the current Weibo homepage based on the number of sliding operations or the sliding distance entered by the user in the application interface 901. Then, when the mobile phone sends the label of the application interface 901 to the notebook computer, it can also send the current browsing position of the user predicted by the mobile phone. In this way, the notebook computer can also continuously display the application interface corresponding to the application interface 901 for the user in combination with the browsing position predicted by the mobile phone. Taking the browsing position predicted by the mobile phone as the fifth microblog in the Weibo homepage, the laptop can open the microblog homepage of "Zhang San" according to the label of the application interface 901, and display that the microblog homepage contains Article 5 Application interface for Weibo content. For example, a laptop computer can display the contents of Article 4 to Article 6 on the Weibo homepage of "Zhang San".
另外,由于手机与笔记本电脑的显示能力不同,那么,手机在预测用户的浏览位置时,还可以根据手机与笔记本电脑在分辨率、字体大小或行间距等显示方面的差异,确定与用户在手机中的浏览位置对应的在笔记本电脑中的浏览位置。例如,由于笔记本电脑中一页内容可显示出的行数更多,因此用户在手机中浏览的第3页内容与笔记本电脑中的第2页内容对应,那么,手机可将预测出的用户当前的浏览位置确定为第2页,后续,笔记本电脑接收到该浏览位置后可以结合该浏览位置更加准确的为用户从同一位置开始继续播放当前的显示内容。In addition, due to the different display capabilities of mobile phones and laptops, when the mobile phone predicts the user’s browsing location, it can also determine the display difference between the mobile phone and the laptop in terms of resolution, font size, or line spacing. The browsing position in corresponds to the browsing position in the laptop. For example, because the content of a page in a laptop computer can display more lines, the content of the third page browsed by the user on the mobile phone corresponds to the content of the second page in the laptop computer, then the mobile phone can predict the current user The browsing position of is determined to be the second page, and subsequently, after the notebook computer receives the browsing position, it can be combined with the browsing position to be more accurate for the user to continue playing the current display content from the same position.
在本申请的一些实施例中,用户除了可以通过碰一碰的方式触发手机将当前的显示内容切换至笔记本电脑中接续播放外,用户也可以通过碰一碰的方式触发手机将当前显示的文件传输至笔记本电脑中,即为用户提供“一碰传”的跨设备传输功能。In some embodiments of the present application, in addition to triggering the mobile phone to switch the current display content to the notebook computer to continue playing by one touch, the user can also trigger the mobile phone to display the file currently displayed by one touch. Transfer to a laptop computer, which provides users with the "one touch transfer" cross-device transfer function.
示例性的,与上述步骤S801-S806类似的,手机在显示某一本地文件(例如照片、视频或文档等)时,如果用户需要将该文件传输至笔记本电脑,则用户可使用手机触碰笔记本电脑上设置的电子标签,以获取笔记本电脑的设备信息。进而,手机可根据该设备信息自动与笔记本电脑建立无线通信连接,并自动将当前显示的文件通过该无线通信连接传输给笔记本电脑。Exemplarily, similar to the above steps S801-S806, when the mobile phone displays a local file (such as a photo, video, or document, etc.), if the user needs to transfer the file to the laptop, the user can touch the laptop with the phone The electronic label set on the computer to obtain the device information of the notebook computer. Furthermore, the mobile phone can automatically establish a wireless communication connection with the notebook computer according to the device information, and automatically transmit the currently displayed file to the notebook computer through the wireless communication connection.
可以看出,与上述步骤S801-S806提供的“一碰续接”的跨设备播放功能类似的,在续接显示内容或传输文件之前,均需要用户通过碰一碰的方式触发手机与笔记本电脑建立无线通信连接。It can be seen that, similar to the "one-touch connection" cross-device playback function provided in the above steps S801-S806, the user is required to trigger the mobile phone and the laptop by touching the display content or transferring files. Establish a wireless communication connection.
那么,在一些实施例中,当检测到用户使用手机触碰笔记本电脑上设置的电子标签后,或者,当手机与笔记本电脑建立了无线通信连接后,如图14中的(a)所示,手机可向用户提供“一碰续接”的选项1201以及“一碰传”的选项1202。或者,如图14中的(b)所示,笔记本电脑也可向用户提供“一碰续接”的选项1301以及“一碰传”的选项1302。如果检测到用户选择选项1201(或1301),说明用户希望在笔记本电脑上接续播放手机上的显示内容,则手机可继续按照上述步骤S802-S806将当前的显示内容切换至笔记本电脑上接续播放。如果检测到用户选择选项1202(或1302),说明用户希望将手机中正在显示的文件传输至笔记本电脑,则手机可自动将当前显示的文件传输给笔记本电脑。Then, in some embodiments, when it is detected that the user uses the mobile phone to touch the electronic label set on the notebook computer, or when the mobile phone and the notebook computer establish a wireless communication connection, as shown in Figure 14 (a), The mobile phone can provide the user with an option 1201 of "one touch connection" and an option 1202 of "one touch transfer". Alternatively, as shown in (b) of FIG. 14, the notebook computer may also provide the user with an option 1301 of "one touch to continue" and an option 1302 of "one touch to transfer". If it is detected that the user selects option 1201 (or 1301), indicating that the user wants to continue to play the displayed content on the mobile phone on the laptop, the mobile phone can continue to switch the current display content to the laptop for continuous playback according to the above steps S802-S806. If it is detected that the user selects option 1202 (or 1302), it means that the user wants to transfer the file being displayed in the mobile phone to the notebook computer, and the mobile phone can automatically transfer the currently displayed file to the notebook computer.
在另一些实施例中,手机还可以根据手机与电子标签之间的距离,确定是在笔记 本电脑中续接播放当前的显示内容还是向笔记本电脑传输当前显示的文件。例如,NFC通信模式可支持10cm以内的数据交互。如果检测到手机与电子标签之间的距离小于预设值(例如小于2cm)时,说明用户希望在笔记本电脑上接续播放手机上的显示内容,则手机可继续按照上述步骤S802-S806将当前的显示内容切换至笔记本电脑上接续播放。如果检测到手机与电子标签之间的距离大于预设值,说明用户希望将手机中正在显示的文件传输至笔记本电脑,则手机可自动将当前显示的文件传输给笔记本电脑。In other embodiments, the mobile phone can also determine whether to continue playing the current display content in the notebook computer or to transfer the currently displayed file to the notebook computer according to the distance between the mobile phone and the electronic tag. For example, the NFC communication mode can support data interaction within 10cm. If it is detected that the distance between the mobile phone and the electronic tag is less than the preset value (for example, less than 2cm), it means that the user wants to continue to play the displayed content on the mobile phone on the laptop, and the mobile phone can continue to follow the above steps S802-S806 to change the current The display content is switched to continue playing on the laptop. If it is detected that the distance between the mobile phone and the electronic tag is greater than the preset value, indicating that the user wants to transfer the file being displayed in the mobile phone to the laptop, the mobile phone can automatically transfer the currently displayed file to the laptop.
在另一些实施例中,手机还可以根据手机与电子标签之间的NFC信号强度,确定是在笔记本电脑中续接播放当前的显示内容还是向笔记本电脑传输当前显示的文件。例如,如果检测到手机与电子标签之间的NFC信号强度大于预设阈值,说明用户希望在笔记本电脑上接续播放手机上的显示内容,则手机可继续按照上述步骤S802-S806将当前的显示内容切换至笔记本电脑上接续播放。如果检测到手机与电子标签之间的NFC信号强度小于预设阈值,说明用户希望将手机中正在显示的文件传输至笔记本电脑,则手机可自动将当前显示的文件传输给笔记本电脑。In other embodiments, the mobile phone can also determine whether to continue playing the current display content in the notebook computer or to transfer the currently displayed file to the notebook computer according to the strength of the NFC signal between the mobile phone and the electronic tag. For example, if it is detected that the NFC signal strength between the mobile phone and the electronic tag is greater than the preset threshold, indicating that the user wants to continue to play the display content on the mobile phone on the laptop, the mobile phone can continue to follow the above steps S802-S806 to display the current display content Switch to the laptop to continue playing. If it is detected that the strength of the NFC signal between the mobile phone and the electronic tag is less than the preset threshold, indicating that the user wants to transfer the file being displayed in the mobile phone to the laptop, the mobile phone can automatically transfer the currently displayed file to the laptop.
在另一些实施例中,手机还可以根据手机触碰电子标签的时间长短确定在笔记本电脑中续接播放当前的显示内容或者向笔记本电脑传输当前显示的文件。例如,如果检测到手机接触电子标签的时间大于预设值,说明用户希望在笔记本电脑上接续播放手机上的显示内容,则手机可继续按照上述步骤S802-S806将当前的显示内容切换至笔记本电脑上接续播放。如果检测到手机接触电子标签的时间小于预设值,说明用户希望将手机中正在显示的文件传输至笔记本电脑,则手机可自动将当前显示的文件传输给笔记本电脑。In some other embodiments, the mobile phone may also determine whether to continue playing the current display content or transfer the currently displayed file to the notebook computer according to the length of time the mobile phone touches the electronic tag. For example, if it is detected that the time for the mobile phone to touch the electronic tag is greater than the preset value, indicating that the user wants to continue to play the display content on the mobile phone on the laptop, the mobile phone can continue to switch the current display content to the laptop according to the above steps S802-S806 Continue to play on. If it is detected that the time for the mobile phone to touch the electronic tag is less than the preset value, indicating that the user wants to transfer the file being displayed in the mobile phone to the laptop, the mobile phone can automatically transfer the currently displayed file to the laptop.
在另一些实施例中,手机中也可以预先设置支持“一碰续接”功能的应用场景以及支持“一碰传”功能的应用场景。例如,当检测到用户使用手机触碰笔记本电脑上的电子标签后,手机可获取正在前台运行的应用的标识(例如packagename)或正在前台运行的应用界面的标识(例如activityname)。如果正在前台运行的应用(或应用界面)为预设的支持“一碰传”功能的应用(或应用界面),则手机可自动将当前显示的文件传输给笔记本电脑。如果正在前台运行的应用(或应用界面)为预设的支持“一碰续接”功能的应用(或应用界面),则手机可按照上述步骤S802-S806将当前的显示内容切换至笔记本电脑上接续播放。In other embodiments, the mobile phone may also be preset with application scenarios that support the "one-touch connection" function and application scenarios that support the "one-touch transfer" function. For example, when it is detected that the user touches the electronic label on the laptop with the mobile phone, the mobile phone can obtain the identifier of the application running in the foreground (such as packagename) or the identifier of the application interface running in the foreground (such as activityname). If the application (or application interface) running in the foreground is a preset application (or application interface) that supports the "one touch transfer" function, the mobile phone can automatically transfer the currently displayed file to the laptop. If the application (or application interface) running in the foreground is a preset application (or application interface) that supports the "one touch connection" function, the mobile phone can switch the current display content to the laptop according to the above steps S802-S806 Continue to play.
又或者,当检测到用户使用手机触碰笔记本电脑上的电子标签后,手机也可以识别当前应用界面中是否包含本地照片、视频、音频或文档等文件。如果包含一项或多项本地文件,则手机可自动将当前显示的文件传输给笔记本电脑,完成“一碰传”的功能;如果不包含本地文件,则手机可自动将当前的显示内容切换至笔记本电脑上接续播放,完成“一碰续接”的功能,本申请实施例对此不做任何限制。Or, when it is detected that the user touches the electronic label on the laptop with the mobile phone, the mobile phone can also identify whether the current application interface contains files such as local photos, videos, audios, or documents. If it contains one or more local files, the phone can automatically transfer the currently displayed file to the laptop to complete the "one touch transfer" function; if it does not contain local files, the phone can automatically switch the current display content to The laptop continues to play and completes the "one-touch connection" function, which is not limited in the embodiment of the application.
需要说明的是,上述各实施例中是以手机为第一电子设备、以笔记本电脑为第二电子设备,以将手机中的显示内容切换至笔记本电脑中续接播放为应用场景举例说明的。可以理解的是,当用户想切换任意电子设备中正在播放的显示内容至另一电子设备时,均可通过碰触这两个电子设备的方式触发第一电子设备与第二电子设备快速建立无线通信连接,并自动将第一电子设备中的显示内容切换至第二电子设备中接续播 放,从而简化同一内容在进行跨设备续接时用户的操作流程,提高和丰富了用户的使用体验。It should be noted that in the above embodiments, the mobile phone is used as the first electronic device and the notebook computer is used as the second electronic device, and the display content of the mobile phone is switched to the notebook computer for continuous playback. It is understandable that when the user wants to switch the display content being played in any electronic device to another electronic device, they can touch the two electronic devices to trigger the first electronic device and the second electronic device to quickly establish a wireless connection. Communication connection, and automatically switch the display content in the first electronic device to the second electronic device for continuous playback, thereby simplifying the user's operation process when the same content is connected across devices, improving and enriching the user's experience.
如图15所示,本申请实施例公开了一种第一电子设备,例如上述手机。第一电子设备具体可以包括:触摸屏1501,所述触摸屏1501包括触摸传感器1506和显示屏1507;一个或多个处理器1502;存储器1503;通信模块1508;第一NFC单元1509,第一NFC单元1509可以是NFC芯片或电子标签;一个或多个应用程序(未示出);以及一个或多个计算机程序1504,上述各器件可以通过一个或多个通信总线1505连接。其中该一个或多个计算机程序1504被存储在上述存储器1503中并被配置为被该一个或多个处理器1502执行,该一个或多个计算机程序1504包括指令,该指令可以用于执行上述实施例中的各个步骤。As shown in FIG. 15, an embodiment of the present application discloses a first electronic device, such as the aforementioned mobile phone. The first electronic device may specifically include: a touch screen 1501 that includes a touch sensor 1506 and a display screen 1507; one or more processors 1502; a memory 1503; a communication module 1508; a first NFC unit 1509, a first NFC unit 1509 It may be an NFC chip or an electronic tag; one or more application programs (not shown); and one or more computer programs 1504. The above-mentioned devices may be connected through one or more communication buses 1505. The one or more computer programs 1504 are stored in the aforementioned memory 1503 and configured to be executed by the one or more processors 1502, and the one or more computer programs 1504 include instructions, which can be used to execute the aforementioned implementations. The steps in the example.
如图16所示,本申请实施例公开了一种第二电子设备,例如上述笔记本电脑。第二电子设备具体包括:显示屏1601;一个或多个处理器1602;存储器1603;第二NFC单元1606,第二NFC单元1606可以是NFC芯片或电子标签,第二NFC单元1606中保存有第二电子设备的设备信息;通信模块1607;一个或多个应用程序(未示出);以及一个或多个计算机程序1604,上述各器件可以通过一个或多个通信总线1605连接。其中该一个或多个计算机程序1604被存储在上述存储器1603中并被配置为被该一个或多个处理器1602执行,该一个或多个计算机程序1604包括指令,该指令可以用于执行上述实施例中的各个步骤。As shown in FIG. 16, an embodiment of the present application discloses a second electronic device, such as the aforementioned notebook computer. The second electronic device specifically includes: a display screen 1601; one or more processors 1602; a memory 1603; a second NFC unit 1606. The second NFC unit 1606 may be an NFC chip or an electronic tag. The second NFC unit 1606 stores the 2. Device information of the electronic device; a communication module 1607; one or more application programs (not shown); and one or more computer programs 1604. The above-mentioned devices can be connected through one or more communication buses 1605. The one or more computer programs 1604 are stored in the aforementioned memory 1603 and configured to be executed by the one or more processors 1602, and the one or more computer programs 1604 include instructions, which can be used to execute the aforementioned implementations. The steps in the example.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, device, and unit described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not repeated here.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The functional units in the various embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the part that contributes to the prior art or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage The medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited to this. Any changes or substitutions within the technical scope disclosed in the embodiments of the present application shall be covered by this Within the protection scope of the application embodiments. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims (32)

  1. 一种内容接续系统,其特征在于,所述系统包括第一电子设备和第二电子设备,所述第一电子设备配置有第一近场通信NFC单元,所述第二电子设备配置有第二NFC单元,所述第二NFC单元包括所述第二电子设备的设备信息,所述NFC单元为NFC芯片或电子标签;其中,A content connection system, characterized in that the system comprises a first electronic device and a second electronic device, the first electronic device is configured with a first near field communication NFC unit, and the second electronic device is configured with a second NFC unit, the second NFC unit includes device information of the second electronic device, and the NFC unit is an NFC chip or an electronic tag; wherein,
    所述第一电子设备在显示第一应用的第一应用界面时,所述第一电子设备通过所述第一NFC单元从所述第二NFC单元中获取所述第二电子设备的设备信息;When the first electronic device displays the first application interface of the first application, the first electronic device obtains the device information of the second electronic device from the second NFC unit through the first NFC unit;
    所述第一电子设备按照所述设备信息与所述第二电子设备建立无线通信连接,所述无线通信连接为蓝牙连接或Wi-Fi点对点P2P连接;The first electronic device establishes a wireless communication connection with the second electronic device according to the device information, and the wireless communication connection is a Bluetooth connection or a Wi-Fi point-to-point P2P connection;
    所述第一电子设备基于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签,所述标签用于指示所述第一应用界面中的显示内容;Sending, by the first electronic device, a label of the first application interface to the second electronic device based on the wireless communication connection, the label being used to indicate display content in the first application interface;
    所述第二电子设备根据所述标签显示与所述第一应用界面对应的所述第一应用的第二应用界面,所述第一应用界面与所述第二应用界面中包含相同的显示内容。The second electronic device displays the second application interface of the first application corresponding to the first application interface according to the label, and the first application interface and the second application interface contain the same display content .
  2. 根据权利要求1所述的内容接续系统,其特征在于,The content connection system according to claim 1, wherein:
    所述第一电子设备具体用于:响应于靠近或接触所述第二NFC单元的操作,通过所述第一NFC单元从所述第二NFC单元中获取所述第二电子设备的设备信息。The first electronic device is specifically configured to: in response to an operation of approaching or contacting the second NFC unit, obtain the device information of the second electronic device from the second NFC unit through the first NFC unit.
  3. 根据权利要求1所述的内容接续系统,其特征在于,The content connection system according to claim 1, wherein:
    所述第一电子设备具体用于:通过所述第一NFC单元发送电磁波信号,所述电磁波信号用于驱动所述第二NFC单元发送所述第二电子设备的设备信息;通过所述第一NFC单元从所述第二NFC单元中获取所述第二电子设备的设备信息。The first electronic device is specifically configured to: send an electromagnetic wave signal through the first NFC unit, and the electromagnetic wave signal is used to drive the second NFC unit to send the device information of the second electronic device; The NFC unit obtains the device information of the second electronic device from the second NFC unit.
  4. 根据权利要求1-3中任一项所述的内容接续系统,其特征在于,The content connection system according to any one of claims 1-3, wherein:
    所述第一电子设备还用于:获取所述第一应用界面的标签。The first electronic device is further configured to obtain a label of the first application interface.
  5. 根据权利要求4所述的内容接续系统,其特征在于,The content connection system according to claim 4, wherein:
    所述第一电子设备具体用于:所述第一电子设备中的碰一碰应用向正在前台运行的所述第一应用发送第一请求,所述第一请求用于请求获取正在显示的所述第一应用界面的标签;响应于所述第一请求,所述第一应用获取所述第一应用界面的标签。The first electronic device is specifically configured to: the bump application in the first electronic device sends a first request to the first application that is running in the foreground, and the first request is used to request to obtain all that is being displayed. The label of the first application interface; in response to the first request, the first application obtains the label of the first application interface.
  6. 根据权利要求5所述的内容接续系统,其特征在于,The content connection system according to claim 5, wherein:
    所述第一电子设备具体用于:从所述第一应用的应用服务器中获取所述第一应用界面的标签。The first electronic device is specifically configured to obtain the label of the first application interface from the application server of the first application.
  7. 根据权利要求6所述的内容接续系统,其特征在于,The content connection system according to claim 6, wherein:
    所述第一电子设备具体用于:向所述应用服务器发送第二请求,所述第二请求中包括与所述第一应界面对应的一个或多个索引;The first electronic device is specifically configured to: send a second request to the application server, where the second request includes one or more indexes corresponding to the first response interface;
    所述应用服务器还用于:根据所述第二请求中的一个或多个索引生成所述第一应用界面的标签,并向所述第一电子设备发送所述第一应用界面的标签。The application server is further configured to generate a label of the first application interface according to one or more indexes in the second request, and send the label of the first application interface to the first electronic device.
  8. 根据权利要求6或7所述的内容接续系统,其特征在于,The content connection system according to claim 6 or 7, wherein:
    所述第一电子设备还用于:从所述应用服务器获取认证信息,所述认证信息用于登录用户在所述第一应用中注册的账号;将所述认证信息基于所述无线通信连接发送给所述第二电子设备;The first electronic device is further configured to: obtain authentication information from the application server, where the authentication information is used to log in the user's account registered in the first application; and send the authentication information based on the wireless communication connection To the second electronic device;
    所述第二电子设备还用于:使用所述认证信息登录安装在所述第二电子设备中的 第一应用。The second electronic device is further configured to log in the first application installed in the second electronic device using the authentication information.
  9. 根据权利要求1-8中任一项所述的内容接续系统,其特征在于,The content connection system according to any one of claims 1-8, wherein:
    所述第一电子设备还用于:预测用户在所述第一应用界面中的浏览位置;基于所述无线通信连接向所述第二电子设备发送所述浏览位置;The first electronic device is further configured to: predict the user's browsing position in the first application interface; send the browsing position to the second electronic device based on the wireless communication connection;
    所述第二电子设备具体用于:根据所述第一应用界面的标签和所述浏览位置显示所述第二应用界面。The second electronic device is specifically configured to display the second application interface according to the label of the first application interface and the browsing position.
  10. 根据权利要求1-9中任一项所述的内容接续系统,其特征在于,The content connection system according to any one of claims 1-9, wherein:
    所述第一电子设备还用于:基于所述无线通信连接向所述第二电子设备发送所述第一应用界面中包含的文件;The first electronic device is further configured to: send files contained in the first application interface to the second electronic device based on the wireless communication connection;
    所述第二电子设备具体用于:根据所述第一应用界面的标签和从所述第一电子设备接收的所述文件显示所述第二应用界面。The second electronic device is specifically configured to display the second application interface according to the label of the first application interface and the file received from the first electronic device.
  11. 根据权利要求1-10中任一项所述的内容接续系统,其特征在于,The content connection system according to any one of claims 1-10, wherein:
    所述第二电子设备还用于:启动已安装的所述第一应用,并将所述第一应用界面的标签发送给所述第一应用,以使得所述第一应用根据所述标签显示所述第二应用界面;或者,The second electronic device is further configured to: start the installed first application, and send the label of the first application interface to the first application, so that the first application displays according to the label The second application interface; or,
    所述第二电子设备具体用于:根据所述第一应用界面的标签使用浏览器打开所述第二应用界面。The second electronic device is specifically configured to: use a browser to open the second application interface according to the label of the first application interface.
  12. 根据权利要求11所述的内容接续系统,其特征在于,The content connection system according to claim 11, wherein:
    所述第二电子设备还用于:提示用户在所述第二电子设备中下载并安装所述第一应用。The second electronic device is also used to prompt the user to download and install the first application in the second electronic device.
  13. 根据权利要求1-12中任一项所述的内容接续系统,其特征在于,所述设备信息包括所述第二电子设备的标识;The content connection system according to any one of claims 1-12, wherein the device information includes an identification of the second electronic device;
    所述第一电子设备具体用于:按照所述第二电子设备的标识与所述第二电子设备建立蓝牙连接;或者,按照所述第二电子设备的标识与所述第二电子设备建立蓝牙连接;通过所述蓝牙连接从所述第二电子设备中获取连接配置信息;使用所述连接配置信息与所述第二电子设备建立Wi-Fi P2P连接。The first electronic device is specifically configured to: establish a Bluetooth connection with the second electronic device according to the identification of the second electronic device; or, establish a Bluetooth connection with the second electronic device according to the identification of the second electronic device Connection; obtaining connection configuration information from the second electronic device through the Bluetooth connection; using the connection configuration information to establish a Wi-Fi P2P connection with the second electronic device.
  14. 根据权利要求1-13中任一项所述的内容接续系统,其特征在于,The content connection system according to any one of claims 1-13, wherein:
    所述第一电子设备具体用于:若所述第一应用为预设的应用,或者,所述第一应用界面为预设的应用界面,则基于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签。The first electronic device is specifically configured to: if the first application is a preset application, or the first application interface is a preset application interface, then send the message to the second electronic device based on the wireless communication connection The device sends the label of the first application interface.
  15. 根据权利要求1-13中任一项所述的内容接续系统,其特征在于,所述第一电子设备具体用于:The content connection system according to any one of claims 1-13, wherein the first electronic device is specifically configured to:
    若所述第一NFC单元与所述第二NFC单元靠近或接触时的停留时间满足第一预设条件,则基于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签;或者;If the stay time when the first NFC unit is close to or in contact with the second NFC unit satisfies the first preset condition, then based on the wireless communication connection, send the information of the first application interface to the second electronic device. Label; or
    若所述第一NFC单元与所述第二NFC单元靠近或接触时的信号强度满足第二预设条件,则基于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签;或者;If the signal strength when the first NFC unit is close to or in contact with the second NFC unit satisfies a second preset condition, then based on the wireless communication connection, send the information of the first application interface to the second electronic device. Label; or
    若所述第一NFC单元与所述第二NFC单元之间的距离满足第三预设条件,则基 于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签。If the distance between the first NFC unit and the second NFC unit satisfies a third preset condition, the label of the first application interface is sent to the second electronic device based on the wireless communication connection.
  16. 根据权利要求1-13中任一项所述的内容接续系统,其特征在于,The content connection system according to any one of claims 1-13, wherein:
    所述第一电子设备还用于:显示第一选项和第二选项,所述第一选项用于指示向所述第二电子设备发送所述第一应用界面的标签,所述第二选项用于指示向所述第二电子设备发送所述第一应用界面中的文件。The first electronic device is further configured to display a first option and a second option, the first option is used to indicate to send the label of the first application interface to the second electronic device, and the second option is used Instructs to send the file in the first application interface to the second electronic device.
  17. 一种第一电子设备,其特征在于,所述第一电子设备包括处理器,以及与所述处理器耦合的第一NFC单元、显示屏、通信模块以及存储器,所述第一NFC单元为NFC芯片或电子标签;其中,A first electronic device, wherein the first electronic device includes a processor, and a first NFC unit, a display screen, a communication module, and a memory coupled to the processor, and the first NFC unit is NFC Chip or electronic label; among them,
    所述处理器用于:指示所述显示屏显示第一应用的第一应用界面;The processor is configured to instruct the display screen to display the first application interface of the first application;
    所述处理器还用于:指示所述第一NFC单元获取第二电子设备的设备信息;The processor is further configured to: instruct the first NFC unit to obtain device information of the second electronic device;
    所述处理器还用于:指示所述通信模块按照所述设备信息与所述第二电子设备建立无线通信连接,所述无线通信连接为蓝牙连接或Wi-Fi P2P连接;The processor is further configured to instruct the communication module to establish a wireless communication connection with the second electronic device according to the device information, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection;
    所述处理器还用于:指示所述通信模块基于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签,所述标签用于指示所述第一应用界面中的显示内容,以使得所述第二电子设备根据所述标签显示与所述第一应用界面对应的所述第一应用的第二应用界面。The processor is further configured to instruct the communication module to send a label of the first application interface to the second electronic device based on the wireless communication connection, where the label is used to indicate the label of the first application interface The content is displayed so that the second electronic device displays the second application interface of the first application corresponding to the first application interface according to the label.
  18. 根据权利要求17所述的第一电子设备,其特征在于,The first electronic device according to claim 17, wherein:
    所述第一NFC单元具体用于:检测所述第一电子设备靠近或接触所述第二电子设备中第二NFC单元的操作;响应于靠近或接触所述第二NFC单元的操作,从所述第二NFC单元中读取所述第二电子设备的设备信息。The first NFC unit is specifically configured to: detect the operation of the first electronic device approaching or touching the second NFC unit in the second electronic device; in response to the operation of approaching or touching the second NFC unit, The device information of the second electronic device is read in the second NFC unit.
  19. 根据权利要求17所述的第一电子设备,其特征在于,The first electronic device according to claim 17, wherein:
    所述第一NFC单元具体用于:发送电磁波信号,所述电磁波信号用于驱动所述第二电子设备中第二NFC单元发送所述第二电子设备的设备信息;从所述第二NFC单元中获取所述第二电子设备的设备信息。The first NFC unit is specifically configured to: send an electromagnetic wave signal, which is used to drive a second NFC unit in the second electronic device to send device information of the second electronic device; and from the second NFC unit To obtain the device information of the second electronic device.
  20. 根据权利要求17-19中任一项所述的第一电子设备,其特征在于,The first electronic device according to any one of claims 17-19, wherein:
    所述处理器还用于:指示所述通信模块从所述第一应用的应用服务器中获取所述第一应用界面的标签。The processor is further configured to instruct the communication module to obtain the label of the first application interface from the application server of the first application.
  21. 根据权利要求17-20中任一项所述的第一电子设备,其特征在于,The first electronic device according to any one of claims 17-20, wherein:
    所述处理器还用于:指示所述通信模块从所述第一应用的应用服务器中获取认证信息,所述认证信息用于登录用户在所述第一应用中注册的账号;以及,指示所述通信模块将所述认证信息基于所述无线通信连接发送给所述第二电子设备。The processor is further configured to: instruct the communication module to obtain authentication information from the application server of the first application, where the authentication information is used to log in to the user account registered in the first application; The communication module sends the authentication information to the second electronic device based on the wireless communication connection.
  22. 根据权利要求17-21中任一项所述的第一电子设备,其特征在于,The first electronic device according to any one of claims 17-21, wherein:
    所述处理器还用于:预测用户在所述第一应用界面中的浏览位置;以及,指示所述通信模基于所述无线通信连接向所述第二电子设备发送所述浏览位置。The processor is further configured to predict the user's browsing position in the first application interface; and instruct the communication module to send the browsing position to the second electronic device based on the wireless communication connection.
  23. 根据权利要求17-22中任一项所述的第一电子设备,其特征在于,The first electronic device according to any one of claims 17-22, wherein:
    所述处理器还用于:指示所述通信模块基于所述无线通信连接向所述第二电子设备发送所述第一应用界面中包含的文件。The processor is further configured to instruct the communication module to send the file contained in the first application interface to the second electronic device based on the wireless communication connection.
  24. 根据权利要求17-23中任一项所述的第一电子设备,其特征在于,The first electronic device according to any one of claims 17-23, wherein:
    所述处理器具体用于:若所述第一应用为预设的应用,或者,所述第一应用界面 为预设的应用界面,则指示所述通信模块基于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签。The processor is specifically configured to: if the first application is a preset application, or the first application interface is a preset application interface, instruct the communication module to send the communication module to the communication module based on the wireless communication connection. The second electronic device sends the label of the first application interface.
  25. 根据权利要求17-23中任一项所述的第一电子设备,其特征在于,The first electronic device according to any one of claims 17-23, wherein:
    所述处理器具体用于:确定所述第一NFC单元与所述第二电子设备中第二NFC单元靠近或接触时的停留时间是否满足第一预设条件;或者,确定所述第一NFC单元与所述第二电子设备中第二NFC单元靠近或接触时的信号强度是否满足第二预设条件;或者,确定所述第一NFC单元与所述第二电子设备中第二NFC单元之间的距离是否满足第三预设条件;若满足所述第一预设条件、所述第二预设条件或所述第三预设条件中的至少一个,则指示所述通信模块基于所述无线通信连接向所述第二电子设备发送所述第一应用界面的标签。The processor is specifically configured to: determine whether the stay time when the first NFC unit is close to or in contact with the second NFC unit in the second electronic device meets a first preset condition; or, determine the first NFC Whether the signal strength when the unit is close to or in contact with the second NFC unit in the second electronic device meets a second preset condition; or, it is determined whether the first NFC unit and the second NFC unit in the second electronic device are Whether the distance between them meets the third preset condition; if at least one of the first preset condition, the second preset condition, or the third preset condition is satisfied, instruct the communication module to be based on the The wireless communication connection sends the label of the first application interface to the second electronic device.
  26. 根据权利要求17-23中任一项所述的第一电子设备,其特征在于,The first electronic device according to any one of claims 17-23, wherein:
    所述处理器还用于:指示所述显示屏显示第一选项和第二选项,所述第一选项用于指示向所述第二电子设备发送所述第一应用界面的标签,所述第二选项用于指示向所述第二电子设备发送所述第一应用界面中的文件。The processor is further configured to instruct the display screen to display a first option and a second option, the first option is used to instruct to send a label of the first application interface to the second electronic device, and the The second option is used to indicate to send the file in the first application interface to the second electronic device.
  27. 一种第二电子设备,其特征在于,所述第二电子设备包括处理器,以及与所述处理器耦合的第二NFC单元、显示屏、通信模块以及存储器,所述第二NFC单元为NFC芯片或电子标签,所述第二NFC单元包括所述第二电子设备的设备信息;其中,A second electronic device, wherein the second electronic device includes a processor, and a second NFC unit, a display screen, a communication module, and a memory coupled to the processor, and the second NFC unit is NFC Chip or electronic tag, the second NFC unit includes the device information of the second electronic device; wherein,
    所述通信模块用于:与第一电子设备建立无线通信连接,所述无线通信连接为蓝牙连接或Wi-Fi P2P连接;基于所述无线通信连接接收第一电子设备发送的第一应用界面的标签,所述第一应用界面为所述第一电子设备正在显示的界面,所述标签用于指示所述第一应用界面中的显示内容;The communication module is used to establish a wireless communication connection with a first electronic device, and the wireless communication connection is a Bluetooth connection or a Wi-Fi P2P connection; and based on the wireless communication connection to receive the first application interface sent by the first electronic device A label, where the first application interface is an interface being displayed by the first electronic device, and the label is used to indicate display content in the first application interface;
    所述处理器用于:根据所述标签指示所述显示屏显示与所述第一应用界面对应的所述第一应用的第二应用界面,所述第一应用界面与所述第二应用界面中包含相同的显示内容。The processor is configured to: instruct the display screen to display a second application interface of the first application corresponding to the first application interface according to the label, and the first application interface and the second application interface are Contains the same display content.
  28. 根据权利要求27所述的第二电子设备,其特征在于,The second electronic device according to claim 27, wherein:
    所述处理器具体用于:响应于所述第一电子设备中第一NFC单元靠近或接触所述第二NFC单元的操作,指示所述通信模块与所述第一电子设备建立无线通信连接。The processor is specifically configured to: in response to an operation of the first NFC unit in the first electronic device approaching or contacting the second NFC unit, instruct the communication module to establish a wireless communication connection with the first electronic device.
  29. 根据权利要求27或28所述的第二电子设备,其特征在于,The second electronic device according to claim 27 or 28, wherein:
    所述通信模块还用于:接收所述第一电子设备发送的认证信息,所述认证信息用于登录用户在所述第一应用中注册的账号;The communication module is further configured to: receive authentication information sent by the first electronic device, where the authentication information is used to log in to the user's account registered in the first application;
    所述处理器还用于:使用所述认证信息登录安装在所述第二电子设备中的第一应用。The processor is further configured to use the authentication information to log in the first application installed in the second electronic device.
  30. 根据权利要求27-29中任一项所述的第二电子设备,其特征在于,The second electronic device according to any one of claims 27-29, wherein:
    所述通信模块还用于:接收所述第一电子设备发送的用户在所述第一应用界面中的浏览位置;The communication module is further configured to: receive the user's browsing position in the first application interface sent by the first electronic device;
    所述处理器具体用于:根据所述标签和所述浏览位置,指示所述显示屏显示与所述第一应用界面对应的第二应用界面。The processor is specifically configured to instruct the display screen to display a second application interface corresponding to the first application interface according to the tag and the browsing position.
  31. 根据权利要求27-30中任一项所述的第二电子设备,其特征在于,The second electronic device according to any one of claims 27-30, wherein:
    所述通信模块还用于:接收所述第一电子设备发送的所述第一应用界面中包含的文件;The communication module is further configured to: receive files included in the first application interface sent by the first electronic device;
    所述处理器具体用于:根据所述标签和从所述第一电子设备接收到的所述文件,指示所述显示屏显示与所述第一应用界面对应的第二应用界面。The processor is specifically configured to: according to the tag and the file received from the first electronic device, instruct the display screen to display a second application interface corresponding to the first application interface.
  32. 根据权利要求27-31中任一项所述的第二电子设备,其特征在于,The second electronic device according to any one of claims 27-31, wherein:
    所述处理器还用于:根据所述第一应用界面的标签使用浏览器在所述显示屏中打开与所述第一应用界面对应的第二应用界面;或者,在所述显示屏中提示用户在所述第二电子设备中安装所述第一应用。The processor is further configured to: use a browser to open a second application interface corresponding to the first application interface on the display screen according to the label of the first application interface; or, prompt in the display screen The user installs the first application in the second electronic device.
PCT/CN2020/107085 2019-08-06 2020-08-05 Content continuation method and system, and electronic device WO2021023220A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910722098.4 2019-08-06
CN201910722098 2019-08-06
CN201910918888.XA CN112351412A (en) 2019-08-06 2019-09-26 Content connection method, system and electronic equipment
CN201910918888.X 2019-09-26

Publications (1)

Publication Number Publication Date
WO2021023220A1 true WO2021023220A1 (en) 2021-02-11

Family

ID=74367854

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/107085 WO2021023220A1 (en) 2019-08-06 2020-08-05 Content continuation method and system, and electronic device

Country Status (2)

Country Link
CN (2) CN112351412A (en)
WO (1) WO2021023220A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979125A (en) * 2022-08-02 2022-08-30 天津联想协同科技有限公司 Method, device, terminal and storage medium for rapidly uploading files to network disk
CN115379043A (en) * 2021-05-18 2022-11-22 华为技术有限公司 Cross-device text continuing method and electronic device
WO2023046028A1 (en) * 2021-09-24 2023-03-30 华为技术有限公司 Screen identification method for distributed display, medium and electronic device
CN116243759A (en) * 2021-12-08 2023-06-09 荣耀终端有限公司 NFC communication method, electronic device, storage medium and program product
WO2024067308A1 (en) * 2022-09-30 2024-04-04 华为技术有限公司 Smart device control method, electronic device, and system
CN115379043B (en) * 2021-05-18 2024-06-04 华为技术有限公司 Cross-equipment text connection method and electronic equipment

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840106A (en) * 2021-02-01 2022-08-02 湖南微步信息科技有限责任公司 Application continuing operation method and system based on different devices
WO2022165939A1 (en) * 2021-02-04 2022-08-11 华为技术有限公司 Cross-device authentication method and electronic devices
CN113064641B (en) * 2021-03-15 2023-12-22 无锡小天鹅电器有限公司 Starting method and system of preset platform of electric control equipment, terminal and electric control equipment
CN113064683B (en) * 2021-03-15 2023-12-05 无锡小天鹅电器有限公司 Display method and system for control interface of electric control equipment, terminal and electric control equipment
CN115202546A (en) * 2021-04-14 2022-10-18 华为技术有限公司 Cross-device interaction method and device
CN114143760A (en) * 2021-07-08 2022-03-04 深圳市汇顶科技股份有限公司 Data transmission method, system, chip, electronic device and storage medium
CN114189748B (en) * 2021-12-03 2024-04-30 易方信息科技股份有限公司 Video playing control method, device, computer equipment and storage medium
CN116263683A (en) * 2021-12-13 2023-06-16 华为技术有限公司 Cross-equipment display method and equipment system for application interface
CN114501449B (en) * 2022-01-28 2024-02-09 Oppo广东移动通信有限公司 Information query method, device, electronic equipment and storage medium
CN117527822A (en) * 2022-07-26 2024-02-06 华为技术有限公司 Data synchronization method, electronic equipment and system
CN117880737A (en) * 2022-10-12 2024-04-12 华为技术有限公司 NFC (near field communication) position prompting method and NFC position prompting equipment
CN116016752A (en) * 2022-12-29 2023-04-25 联想(北京)有限公司 Control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679334A (en) * 2015-03-02 2015-06-03 南京物联传感技术有限公司 Data interaction display system and data interaction display method
CN105354002A (en) * 2015-10-29 2016-02-24 南京秦杜明视信息技术有限公司 System and method for implementing video seamless switching among multiple screens
CN106488018A (en) * 2016-10-09 2017-03-08 努比亚技术有限公司 Terminal task management, splicing device and method, terminal
CN106911948A (en) * 2017-03-15 2017-06-30 联想(北京)有限公司 A kind of display control method, device, control device and electronic equipment
US20180262793A1 (en) * 2017-03-09 2018-09-13 Google Inc. Reverse Casting from a First Screen Device to a Second Screen Device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595775B (en) * 2013-11-04 2018-01-19 惠州Tcl移动通信有限公司 The sharing method and system of media file
US9483997B2 (en) * 2014-03-10 2016-11-01 Sony Corporation Proximity detection of candidate companion display device in same room as primary display using infrared signaling
KR102279600B1 (en) * 2015-06-12 2021-07-20 삼성전자주식회사 Method for operating in a portable device, method for operating in a content reproducing apparatus, the protable device, and the content reproducing apparatus
CN106101773A (en) * 2016-06-30 2016-11-09 北京小米移动软件有限公司 Content is with shielding method, device and display device
CN112969096A (en) * 2016-10-20 2021-06-15 北京小米移动软件有限公司 Media playing method and device and electronic equipment
CN107704785A (en) * 2017-09-04 2018-02-16 惠州Tcl移动通信有限公司 Simplify method, storage medium and the mobile terminal of wireless connection using NFC
CN109275021A (en) * 2018-10-16 2019-01-25 深圳市酷开网络科技有限公司 Video resume control method, system and storage medium based on multiple terminals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679334A (en) * 2015-03-02 2015-06-03 南京物联传感技术有限公司 Data interaction display system and data interaction display method
CN105354002A (en) * 2015-10-29 2016-02-24 南京秦杜明视信息技术有限公司 System and method for implementing video seamless switching among multiple screens
CN106488018A (en) * 2016-10-09 2017-03-08 努比亚技术有限公司 Terminal task management, splicing device and method, terminal
US20180262793A1 (en) * 2017-03-09 2018-09-13 Google Inc. Reverse Casting from a First Screen Device to a Second Screen Device
CN106911948A (en) * 2017-03-15 2017-06-30 联想(北京)有限公司 A kind of display control method, device, control device and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379043A (en) * 2021-05-18 2022-11-22 华为技术有限公司 Cross-device text continuing method and electronic device
CN115379043B (en) * 2021-05-18 2024-06-04 华为技术有限公司 Cross-equipment text connection method and electronic equipment
WO2023046028A1 (en) * 2021-09-24 2023-03-30 华为技术有限公司 Screen identification method for distributed display, medium and electronic device
CN116243759A (en) * 2021-12-08 2023-06-09 荣耀终端有限公司 NFC communication method, electronic device, storage medium and program product
CN116243759B (en) * 2021-12-08 2024-04-02 荣耀终端有限公司 NFC communication method, electronic device, storage medium and program product
CN114979125A (en) * 2022-08-02 2022-08-30 天津联想协同科技有限公司 Method, device, terminal and storage medium for rapidly uploading files to network disk
CN114979125B (en) * 2022-08-02 2023-01-06 天津联想协同科技有限公司 Method, device, terminal and storage medium for rapidly uploading files to network disk
WO2024067308A1 (en) * 2022-09-30 2024-04-04 华为技术有限公司 Smart device control method, electronic device, and system

Also Published As

Publication number Publication date
CN112351412A (en) 2021-02-09
CN112291764B (en) 2023-04-07
CN112291764A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
WO2021023220A1 (en) Content continuation method and system, and electronic device
WO2020238774A1 (en) Notification message preview method and electronic device
WO2020244495A1 (en) Screen projection display method and electronic device
WO2020244492A1 (en) Screen projection display method and electronic device
WO2021013158A1 (en) Display method and related apparatus
US11818420B2 (en) Cross-device content projection method and electronic device
EP4060475A1 (en) Multi-screen cooperation method and system, and electronic device
WO2020155014A1 (en) Smart home device sharing system and method, and electronic device
WO2021233079A1 (en) Cross-device content projection method, and electronic device
CN112394895A (en) Cross-equipment display method and device of picture and electronic equipment
WO2021104114A1 (en) Method for providing wireless fidelity (wifi) network access service, and electronic device
US20220353819A1 (en) Method for Reducing Power Consumption of Mobile Terminal and Mobile Terminal
WO2022078295A1 (en) Device recommendation method and electronic device
CN112130788A (en) Content sharing method and device
WO2022127661A1 (en) Application sharing method, and electronic device and storage medium
WO2021104259A1 (en) Method and terminal for data sharing between fast application and native application
CN113170279B (en) Communication method based on low-power Bluetooth and related device
CN115438354A (en) User privacy protection method and device
WO2023005711A1 (en) Service recommendation method and electronic device
WO2020051916A1 (en) Method for transmitting information and electronic device
WO2022143310A1 (en) Double-channel screen projection method and electronic device
WO2022052706A1 (en) Service sharing method, system and electronic device
WO2022228065A1 (en) Function skipping method and electronic device
WO2021227847A9 (en) Method and apparatus for applying file
WO2022068654A1 (en) Interaction method and apparatus for terminal device

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: 20849633

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20849633

Country of ref document: EP

Kind code of ref document: A1