CN112307405B - Cross-device application relay method, device, equipment, system and storage medium - Google Patents

Cross-device application relay method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN112307405B
CN112307405B CN202011283947.XA CN202011283947A CN112307405B CN 112307405 B CN112307405 B CN 112307405B CN 202011283947 A CN202011283947 A CN 202011283947A CN 112307405 B CN112307405 B CN 112307405B
Authority
CN
China
Prior art keywords
application
electronic device
relay
site information
service module
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202011283947.XA
Other languages
Chinese (zh)
Other versions
CN112307405A (en
Inventor
毕浩
杨俊拯
钟卫东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011283947.XA priority Critical patent/CN112307405B/en
Publication of CN112307405A publication Critical patent/CN112307405A/en
Priority to PCT/CN2021/119383 priority patent/WO2022100285A1/en
Application granted granted Critical
Publication of CN112307405B publication Critical patent/CN112307405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment, a system and a storage medium for relay application of cross equipment, wherein first electronic equipment comprises a first application, second electronic equipment comprises a second application, and the method comprises the following steps: the method comprises the steps that application site information of a target file is obtained, and the target file is operated on the first application; if the first application is determined to run in the foreground, the application site information is transmitted to a cloud server, the application site information is used for the second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic device and the second electronic device is realized.

Description

Cross-device application relay method, device, equipment, system and storage medium
Technical Field
The application relates to the technical field of electronics, in particular to a method, a device, equipment, a system and a storage medium for relay application of cross equipment.
Background
The application relay refers to an application sharing operation process on different electronic devices, so that an operation is realized by using a first application on a previous electronic device, and the operation is continuously realized on a subsequent electronic device, for example, a user browses a webpage on the first application on the previous electronic device, and a second application on the subsequent electronic device can continuously browse the same webpage through the application relay. However, the application relay in the prior art can only support close-range application relay, and is difficult to provide more convenient and intelligent experience for users.
Disclosure of Invention
The embodiment of the application relay method, device, equipment, system and storage medium for cross-equipment can be used for transferring through a cloud server, and remote application relay between first electronic equipment and second electronic equipment is achieved.
In a first aspect, an embodiment of the present application provides a method for relaying an application across devices, where the method is applied to a first electronic device, and the first electronic device includes a first application, and the method includes the following steps:
acquiring application site information of a target file, wherein the target file runs in the first application;
if the first application is determined to run in the foreground, the application site information is transmitted to a cloud server, the application site information is used for a second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device.
In a second aspect, an embodiment of the present application provides a method for applying relay across devices, applied to a second electronic device, where the method includes:
pulling application site information from a cloud server, wherein the application site information is obtained by a first electronic device and is used for obtaining application site information of a target file running in a first application; if the first application is determined to run in the foreground, transmitting application site information to the cloud server;
And accessing the target file on the first electronic equipment according to the application site information.
In a third aspect, an embodiment of the present application provides a cross-device application relay apparatus, applied to a first electronic device, where the first electronic device includes a first application, and the apparatus includes:
the acquisition unit is used for acquiring application site information of a target file, wherein the target file runs in the first application;
the transmission unit is used for transmitting the application site information to a cloud server if the first application is determined to be operated in the foreground, the application site information is used for a second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device.
In a fourth aspect, an embodiment of the present application provides a cross-device application relay apparatus, applied to a second electronic device, where the apparatus includes:
the pulling unit is used for pulling application field information from the cloud server, wherein the application field information is obtained by the first electronic equipment and is used for obtaining application field information of a target file running in the first application; if the first application is determined to run in the foreground, transmitting application site information to the cloud server;
And the processing unit is used for accessing the target file on the first electronic equipment according to the application site information.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the first or second aspects of embodiments of the present application.
In a sixth aspect, embodiments of the present application provide an application relay system, comprising a first electronic device, a second electronic device, and a cloud server, the first electronic device comprising a first application, the second electronic device comprising a second application, wherein,
the first electronic equipment is used for acquiring application site information of a first application opening target file; if the first application is determined to run in the foreground, transmitting the application site information to a cloud server;
the second electronic device is used for pulling the application site information from the cloud server; and accessing the target file on the first electronic equipment according to the application site information.
In a seventh aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps as described in the first aspect or the second aspect of the embodiments of the present application.
In an eighth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the first or second aspects of the embodiments of the present application. The computer program product may be a software installation package.
By implementing the embodiment of the application, the following beneficial effects are achieved:
it can be seen that, in the cross-device application relay method, device, equipment, system and storage medium provided in the embodiments of the present application, a first electronic device includes a first application, and a target file is run in the first application by acquiring application field information of the target file; if the first application is determined to run in the foreground, the application site information is transmitted to a cloud server, the application site information is used for the second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic device and the second electronic device is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a system architecture diagram of a cross-device application relay system for implementing a cross-device application relay method according to an embodiment of the present application;
fig. 1B is a schematic illustration of an application relay framework across devices provided in an embodiment of the present application;
fig. 1C is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 1D is a schematic flow chart of a method for applying relay across devices according to an embodiment of the present application;
fig. 1E is a schematic illustration of a presentation of video playback relay across devices according to an embodiment of the present application;
fig. 2A is a schematic flow chart of a method for applying relay across devices according to an embodiment of the present application;
fig. 2B is a schematic illustration of a pop-up notification box of a second electronic device according to an embodiment of the present application;
FIG. 3 is a flow chart of another cross-device relay method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5A is a schematic structural diagram of a cross-device relay device according to an embodiment of the present application;
FIG. 5B is a variation of the cross-device application relay depicted in FIG. 5A provided in an embodiment of the present application;
fig. 6A is a schematic structural diagram of a cross-device relay device according to an embodiment of the present application;
fig. 6B is a variation of the cross-device application relay depicted in fig. 6A provided in an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The embodiments of the present application are described in detail below.
Referring to fig. 1A, fig. 1A is a system architecture diagram of a cross-device application relay system for implementing a cross-device application relay method disclosed in an embodiment of the present application, where the cross-device application relay system includes a first electronic device, a cloud server, and a second electronic device, where the first electronic device may include a first application, and the second electronic device may include a second application, and the first application and the second application may be the same type of application, or may be different types of applications that may implement the same function.
Referring to fig. 1B, fig. 1B is a schematic illustration of a cross-device application relay framework disclosed in the embodiment of the present application, where each of a first electronic device and a second electronic device is provided with the same functional modules for implementing application relay, specifically, the first electronic device may include a first software development kit (Software Development Kit, SDK), a first relay service module and a first file service module, optionally, the first electronic device may further include a first hardware service module and a first near field communication (Near Field Communication, NFC) module, the first SDK is connected with the first relay service module, the first relay service module is connected with the cloud server, the first hardware service module is connected with the first relay service module, and the first NFC module is connected with the first hardware service module, where the first hardware service module is used for calling the first NFC module.
The first SDK is used for supporting multiple languages for the SDK provided for the first application and can interact with the first relay service module. The first SDK can realize an application site information storage function, and when a new tag (tab), a new document or a file such as an audio/video file and the like are opened by the first application, the current application site information storage function of the first SDK can be called to store all valid current application site information of the current first application. The timing of calling the application site information can be determined by the first application. After the second electronic device starts relaying, the first SDK may provide the first application in the first electronic device with an ability to automatically pause, in particular, may provide a callback interface for pausing the service to the first application, i.e. when a relaying event has occurred, the first application on the relayed first electronic device may be notified. When a user opens a first application, a first SDK is called to check whether relay requirements exist, if so, application site information is obtained, and relay recovery is carried out on the first application. Optionally, in the embodiment of the present application, the first electronic device may further include other applications and SDKs corresponding to the other applications respectively.
The first relay service module is a resident service on the first electronic equipment, and can provide an http interface to the outside to interact with the cloud server, the local first SDK and the first hardware service. The first relay service module can be responsible for judging and managing application site information of a plurality of local applications and can be interacted with the cloud server to obtain effective application site information of the second electronic equipment. There may be a plurality of first applications sending application site information to the first relay service module through a plurality of SDKs, but only the latest piece of site information is recorded and is considered to be relayed only when the corresponding first application is running in the foreground.
Specifically, the first relay service module may be configured to receive application field information sent by the first SDK, and may also receive application field information of other applications sent by other SDKs; the first relay service module may further manage application site information of a plurality of applications, and determine which application site information is application site information of the first electronic device that needs to be relayed, for example, may determine application site information of the first application running in the foreground as effective application site information that needs to be relayed; the first relay service module can be used for regularly pulling application site information stored by the cloud server, and the cloud server manages a plurality of electronic devices under the same account and can judge which electronic device application site information can be relayed; the first relay service module can also be used for receiving a query request of the first SDK for applying relay information; the first relay service module can also be used for monitoring the occurrence of a relay event, and when the relay occurs, the first SDK of the relayed first application is called back, the first application is informed of the success of the event relay, the first application determines how to process the event relay, for example, the video playing from the first electronic equipment to the second electronic equipment completes the relay, and the video playing application of the first electronic equipment can determine to pause the playing of the current equipment after receiving the success notification of the relay; the first relay service module can be further used for keeping heartbeat with the cloud server, and the first electronic equipment may have abnormality, power failure and the like, so that the reported application relay information may be out of date and invalid, and the state of the first electronic equipment can be monitored through the heartbeat.
In the remote relay, whether the specific trigger of the relay is applied or not can be selected by a user; in the near field operation, the process of reducing the judgment can be performed by the first NFC module, when the first NFC module and the second NFC module are touched, the judgment operation is not required to be performed by the user to determine whether to trigger the application relay, but the application relay is directly performed, and the relay party (for example, the second electronic device) can directly complete the application relay without the user to select and confirm.
The first file service module may be configured to provide an http file service module, and the external application (for example, the second application of the second electronic device) may request access to a local file of the first electronic device, for example, local multimedia data, through an http address, and provide the local file to the external application in a streaming manner.
The second electronic device may include a second SDK, a second relay service module, a second hardware service, and a second file service module, and optionally, the second electronic device may further include a second NFC module, where the second SDK is connected to the second relay service module, and the second relay service module is connected to the cloud server. It can be understood that each functional module in the second electronic device is the same as the corresponding functional module in the first electronic device, which is not described herein.
The cloud server can be used for synchronizing application site information of a plurality of electronic devices under the same account, deciding which site information is in a valid state, and maintaining relay events. Specifically, the cloud server may be configured to receive reported application field information of each electronic device, and maintain application field information of a plurality of electronic devices of a user; the cloud server can be further used for receiving heartbeats of all the electronic devices and maintaining a state of a field information list, wherein the field information list can comprise a plurality of application field information of all the electronic devices, and if outdated application field information exists, the outdated application field information can be deleted; the cloud server can also be used for receiving a relay success notification uploaded by the second electronic equipment, and applying a field information deletion event after maintaining the expiration time; the cloud server may be further configured to receive an application site information acquisition request of a plurality of electronic devices, for example, receive an application site information acquisition request of a second electronic device, and select valid site information to return to the second electronic device.
In the embodiment of the application, based on the cross-equipment application relay system shown in fig. 1A and the application relay framework shown in fig. 1B, the following functions can be realized:
The first electronic device is configured to obtain application field information of a target file, where the target file runs in the first application; if the first application is determined to run in the foreground, transmitting the application site information to a cloud server;
the second electronic device is used for pulling the application site information from the cloud server; and accessing the target file on the first electronic equipment according to the application site information.
Optionally, the first electronic device includes a first SDK, a first relay service module, and a first file service module, where in terms of the obtaining application site information of the target file,
the first file service module is used for generating a protocol address of the first application opening target file;
the first SDK is used for sending the application site information to the first relay service module.
Optionally, the second electronic device includes a second application, a second SDK, and a second relay service module, wherein,
the second relay service module is used for pulling the application site information from the cloud server and sending the application site information to the SDK; the second application is invoked in a manner that,
The second SDK is used for notifying the application site information to the second application;
and the second application is used for accessing the first file service module on the first electronic equipment according to the network address so as to open the target file.
Optionally, the second relay service module is further configured to send a relay success notification to the cloud server;
the cloud server is used for forwarding the relay success notification to a first relay service module of the first electronic equipment;
the first relay service module is further configured to transmit the relay success notification to the first application through a callback interface of the first SDK;
the first application is configured to trigger a preset operation after receiving the relay success notification.
Optionally, if the second electronic device does not include the NFC module or does not open the NFC module, before the second relay service module invokes the second application, the second relay service module is further configured to pop up a notification box, where the notification box is configured to prompt to determine whether to open the target file in the second application.
It can be seen that in the cross-equipment application relay system provided in the embodiment of the present application, application field information of a target file is obtained through a first electronic device, and the target file is run in a first application; if the first application is determined to run in the foreground, transmitting application site information to a cloud server; the second electronic equipment pulls application site information from the cloud server; and accessing the target file on the first electronic equipment according to the application site information, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic equipment and the second electronic equipment is realized.
Referring to fig. 1C, fig. 1C is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, and the sensor includes:
the electronic device 100 may include control circuitry that may include storage and processing circuitry 110. The storage and processing circuitry 110 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form solid state drives, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and the like, as embodiments of the present application are not limited. Processing circuitry in the storage and processing circuitry 110 may be used to control the operation of the electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as internet browsing applications, voice over internet protocol (Voice over Internet Protocol, VOIP) telephone call applications, email applications, media playing applications, operating system functions, and the like. Such software may be used to perform some control operations, such as image acquisition based on a camera, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on status indicators such as status indicators of light emitting diodes, touch event detection based on a touch sensor, functions associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in electronic device 100, to name a few.
The electronic device 100 may include an input-output circuit 150. The input-output circuit 150 is operable to cause the electronic device 100 to effect input and output of data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to an external device. The input-output circuit 150 may further include a sensor 170. The sensor 170 may include an ultrasonic fingerprint recognition module, an ambient light sensor, a proximity sensor based on light and capacitance, a touch sensor (e.g., based on a light touch sensor and/or a capacitance touch sensor, where the touch sensor may be part of a touch display screen or may be used independently as a touch sensor structure), an acceleration sensor, and other sensors, etc., where the ultrasonic fingerprint recognition module may be integrated under the screen, or the ultrasonic fingerprint recognition module may be disposed on a side or a back of an electronic device, which is not limited herein, and the ultrasonic fingerprint recognition module may be used to collect fingerprint images.
The sensor 170 may include a first camera and a second camera, the first camera may be a front camera or a rear camera, the second camera may be an infrared (Infrared Radiation, IR) camera or a visible light camera, and when the IR camera shoots, the pupil reflects infrared light, so that the IR camera shoots pupil images more accurately than the RGB camera; the visible light camera needs to perform more subsequent pupil detection, the calculation precision and accuracy are higher than those of the IR camera, the universality is better than that of the IR camera, and the calculation amount is large.
The input-output circuit 150 may also include one or more display screens, such as display screen 130. The display 130 may include one or a combination of several of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. Display 130 may include an array of touch sensors (i.e., display 130 may be a touch-sensitive display). The touch sensor may be a capacitive touch sensor formed of an array of transparent touch sensor electrodes, such as Indium Tin Oxide (ITO) electrodes, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, etc., as embodiments of the present application are not limited.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuitry 120 may be used to provide the electronic device 100 with the ability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in the communication circuitry 120 may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry in the communication circuitry 120 may include circuitry for supporting near field communication (Near Field Communication, NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communication circuit 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, levers, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, and other status indicators, etc.
A user may control the operation of the electronic device 100 by inputting commands through the input-output circuit 150, and may use output data of the input-output circuit 150 to enable receiving status information and other outputs from the electronic device 100.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The display device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, computing devices, or other processing apparatuses connected to a wireless modem, etc. having a wireless communication function.
Referring to fig. 1D, fig. 1D is a schematic flow chart of a cross-device application relay method provided in an embodiment of the present application, which is applied to a first electronic device shown in fig. 1C, and as shown in fig. 1D, the cross-device application relay method provided in the present application includes:
101. and acquiring application site information of a target file, wherein the target file runs on the first application.
The target file may include a web page, a document, a tag (tab), a multimedia file, etc., and the multimedia file may be an audio/video file, etc., for example.
The application site information refers to information of recording an application site running state when the first application opens the target file, and the application site information may include attribute information of the target file, for example, if the target file opened by the first application is a web page, the application site information may include attribute information such as a link address of the web page, a web page name, a current display progress of the web page, and the like. If the target file is a local file, the application site information may further include an http address of the target file, where the http address is an http address corresponding to the target file generated by the first file service module, for example, if the first application is playing a local video, the application site information may include attribute information such as a video name and a playing progress of the current playing, and an http address of the video.
Optionally, the first electronic device further includes a first software development kit SDK, a first relay service module, and a first file service module, and the obtaining the application site information of the target file may include:
11. generating a protocol address of the first application opening target file through the first file service module;
12. and sending the application site information to the first relay service module through the first SDK, wherein the application site information comprises the network address of the target file and the attribute information of the target file.
The first SDK is connected with the first relay service module, and the first relay service module is connected with the cloud server.
The protocol address of the opening target file may be, for example, an http address.
In a specific implementation, the first file service module may generate a protocol address of the first application opening target file; packaging the network address and the attribute information of the target file into application site information through a first SDK, and storing the application site information; transmitting the application site information to a first relay service module; if the first relay service module determines that the first application runs in the foreground, the application site information is transmitted to the cloud server, so that the application site information can be transferred through the cloud server to complete application relay with the second electronic equipment, a protocol address of a target file opened by the first application is generated through the first file service module, and the second electronic equipment realizes application relay of the local file according to the protocol address.
102. If the first application is determined to run in the foreground, the application site information is transmitted to a cloud server, the application site information is used for a second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device.
If it is determined that the first application is running in the foreground, which indicates that application site information of the first application is valid application site information, application relay needs to be performed on the application site information, the electronic device may transmit the application site information to the cloud server, where the application site information may carry a status flag for identifying that the application site information is valid application site information, further, the cloud server may receive an application site information acquisition request sent by the second electronic device, the cloud server may send the application site information of the first application to the second electronic device after determining that the application site information of the first application is valid application site information requiring application relay according to the status flag, and the second electronic device accesses a target file on the first electronic device according to the application site information, for example, if a user browses a web page through the first application on the first electronic device, the application site information may be saved through the first SDK, the application site information may include a web page name, a web page link, a display progress and other attribute information, the first SDK sends the application site information to the first relay service module, and the first application site information is sent to the second electronic device after determining that the application site information of the first application site information is valid, and the second application site information is required to be browsed, and the second application site information is displayed on the first electronic device according to the first electronic device, and the web page is displayed on the web page, and the web page is displayed on the first electronic device.
In a specific implementation, the second electronic device accesses the target file on the first electronic device according to the application site information, which may specifically include: if the target file is a local file of the first electronic device, the first file service module on the first electronic device can be accessed according to the network address of the target file so as to open the target file. For example, as shown in fig. 1E, fig. 1E is a schematic diagram of demonstration of a cross-device video playing relay provided in the embodiment of the present application, if a user plays a video file through a first application on a first electronic device, where the video file is a local video file on the first electronic device, application field information of the video playing may be saved through a first SDK, the application field information may include attribute information such as a video name, a playing progress and an http address of the video file, the first SDK sends the application field information to a first relay service module, the first relay service module determines that the first application is running in a foreground, then transmits the application field information to a cloud server, the second electronic device sends an application field information acquisition request to the cloud server, and finally, the second electronic device plays the video on a second application according to the video name, the playing progress and the http address of the video file, and starts playing the video on the same playing progress, so as to implement the video playing relay.
Optionally, the second electronic device includes a second application and a second relay service module, and the method further includes:
receiving a relay success notification sent by the cloud server through the first relay service module, and transmitting the relay success notification to the first application through a callback interface of the first SDK, wherein the relay success notification is a relay success notification sent to the cloud server by the second relay service module after the second application accesses a target file on the first electronic device according to the application site information;
triggering a preset operation by the first application after receiving the relay success notification.
The second SDK is connected with a second relay service module, and the second relay service module is connected with the cloud server.
The preset operation may be, for example, a play pause operation, a web page closing operation, or a first application closing operation, which is not limited herein.
In a specific implementation, after the second application on the second electronic device accesses the target file on the first electronic device according to the application site information, the second relay service module may send a relay success notification to the cloud server, the cloud server forwards the relay success notification to the first relay service module of the first electronic device, the first electronic device receives the relay success notification sent by the cloud server through the first relay service module, and transmits the relay success notification to the first application through the callback interface of the first SDK, and after receiving the relay success notification, the first application triggers a preset operation, for example, pauses playing the video being played, closes the webpage being browsed or directly closes the first application, so that the corresponding preset operation of the first electronic device can be performed after the second electronic device completes the application relay.
It can be seen that the application relay method of the cross-device application in the embodiment of the application is applied to a first electronic device, the first electronic device comprises a first application, and application field information of a first application opening target file is obtained through the first electronic device; if the first application is determined to run in the foreground, transmitting application site information to a cloud server; the application site information is used for accessing the target file on the first electronic device according to the application site information after the second electronic device pulls the application site information from the cloud server, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic device and the second electronic device is realized.
Referring to fig. 2A, fig. 2A is a schematic flow chart of a cross-device relay application method provided in an embodiment of the present application, and the method is applied to a second electronic device, and includes:
201. pulling application site information from a cloud server, wherein the application site information is obtained by a first electronic device and is used for obtaining application site information of a target file running in a first application; and if the first application is determined to run in the foreground, transmitting application site information to the cloud server.
In a specific implementation, the second electronic device may send an application field information acquisition request to the cloud server, and then receive application field information sent by the cloud server.
202. And accessing the target file on the first electronic equipment according to the application site information.
The application site information refers to information of recording an application site running state when the first application opens the target file, and the application site information may include attribute information of the target file, for example, if the target file opened by the first application is a web page, the application site information may include attribute information such as a link address of the web page, a web page name, a current display progress of the web page, and the like. If the target file is a local file, the application site information may further include an http address of the target file, where the http address is an http address corresponding to the target file generated by the first file service module, for example, if the first application is playing a local video, the application site information may include attribute information such as a video name and a playing progress of the current playing, and an http address of the video.
In a specific implementation, the second electronic device may access, through the second application, the target file on the first electronic device according to the application presence information, for example, when a user browses a web page through the first electronic device, the second application on the second electronic device may access the web page according to the link address of the web page, the name of the web page, the current display progress of the web page, and other application presence information, and display the web page with the display progress.
Optionally, the second electronic device includes a second application, a second SDK, and a second relay service module, the application field information includes a protocol address of the target file, the pulling the application field information from the cloud server, accessing the target file on the first electronic device according to the application field information, and includes:
pulling the application site information from the cloud server through the second relay service module, and sending the application site information to the second SDK; invoking a second application;
notifying the application site information to the second application through the second SDK;
and accessing a first file service module on the first electronic equipment according to the network address by the second application so as to open the target file.
The second SDK is connected with a second relay service module, and the second relay service module is connected with the cloud server.
In the implementation, the application site information can be pulled to the cloud server through the second relay service module, and the application site information is sent to the second SDK; then invoking a second application; notifying the application site information to a second application through a second SDK; accessing a first file service module on the first electronic device by the second application according to the network address to open the target file, for example, sending an application site information acquisition request to a cloud server by the second electronic device, sending the application site information to the second electronic device by the cloud server, playing the video on the second application by the second electronic device according to the video name, the playing progress, the http address of the video file and other application site information, and starting to play the video at the same playing progress so as to realize video playing relay.
Optionally, after the accessing, by the second application, the first file service module on the first electronic device according to the network address to open the target file, the method further includes:
the relay success notification is sent to the cloud server through the second relay service module, and is used for being sent to a first relay service module of the first electronic device by the cloud server, the first electronic device transmits the relay success notification to the first application through a callback interface of the first SDK through the first relay service module, and the first application triggers a preset operation after receiving the relay success notification.
The preset operation may be, for example, a play pause operation, a web page closing operation, or a first application closing operation, which is not limited herein.
In a specific implementation, after the second application on the second electronic device accesses the target file on the first electronic device according to the application site information, the second relay service module may send a relay success notification to the cloud server, the cloud server forwards the relay success notification to the first relay service module of the first electronic device, the first electronic device receives the relay success notification sent by the cloud server through the first relay service module, and transmits the relay success notification to the first application through the callback interface of the first SDK, and after receiving the relay success notification, the first application triggers a preset operation, for example, pauses playing the video being played, closes the webpage being browsed or directly closes the first application, so that the corresponding preset operation of the first electronic device can be performed after the second electronic device completes the application relay.
Optionally, if the second electronic device does not include the NFC module or the NFC module is not turned on, before the second relay service module invokes the second application, the method further includes:
and the second relay service module pops up a notification frame, wherein the notification frame is used for prompting to determine whether to open the target file in the second application.
In a specific implementation, if near field communication is performed between the first electronic device and the second electronic device through the NFC module, when the first NFC module and the second NFC module are touched, a judgment operation is not required to be performed by a user to determine whether to trigger application relay, and the second electronic device can directly complete application relay without popping up a notification frame to prompt the user to select and confirm whether to perform application relay.
Referring to fig. 2B, fig. 2B is a schematic illustration of a pop-up notification frame of a second electronic device in the embodiment of the present application, where if a first electronic device and a second electronic device are remotely shared, the second electronic device may pop-up a notification frame after receiving application site information of a first application, prompt a user to select whether to apply a relay on the second electronic device, for example, if a first web page browsed by the first electronic device needs to be relayed, a notification frame "whether to relay the first web page on the device" may pop-up a notification frame "on the second electronic device, if the user selects to determine to open, the second electronic device invokes the second application to apply the relay, otherwise, the process is terminated.
It can be seen that, in the embodiment of the present application, the application field information is application field information of a first application opening target file obtained by a first electronic device by pulling application field information from a cloud server; if the first application is determined to run in the foreground, transmitting application site information to the cloud server; and accessing the target file on the first electronic equipment according to the application site information, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic equipment and the second electronic equipment is realized.
Referring to fig. 3, fig. 3 is a flowchart of a cross-device application relay method provided in an embodiment of the present application, which is applied to a cross-device application relay system, where the application relay system includes a first electronic device, a second electronic device, and a cloud server, the first electronic device includes a first application, the second electronic device includes a second application,
301. the method comprises the steps that first electronic equipment obtains application site information of a target file, and the target file runs in a first application;
302. if the first application is determined to run in the foreground, the first electronic device transmits the application site information to a cloud server;
303. The second electronic equipment pulls the application site information from the cloud server;
304. and the second electronic equipment accesses the target file on the first electronic equipment according to the application site information.
The specific implementation process of the above steps 301 to 304 may refer to the corresponding descriptions in steps 101 to 102 and steps 201 to 202, which are not described herein.
It can be seen that, in the embodiment of the present application, application field information of a first application opening target file is obtained through a first electronic device; if the first application is determined to run in the foreground, transmitting application site information to a cloud server; the second electronic equipment pulls application site information from the cloud server; and accessing the target file on the first electronic equipment according to the application site information, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic equipment and the second electronic equipment is realized.
The following is a device for implementing the above-mentioned relay method applied across devices, concretely as follows:
in accordance with the foregoing, referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the first electronic device includes: a processor 410, a communication interface 430, and a memory 420; and one or more programs 421, the one or more programs 421 being stored in the memory 420 and configured to be executed by the processor, the programs 421 comprising instructions for performing the steps of:
Acquiring application site information of a target file, wherein the target file runs in the first application;
if the first application is determined to run in the foreground, the application site information is transmitted to a cloud server, the application site information is used for a second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device.
In one possible example, the first electronic device further includes a first software development kit SDK, a first relay service module, and a first file service module, and the program 421 includes instructions for performing the following steps in terms of obtaining application site information of a target file:
generating a network address of the target file through the first file service module;
and sending the application site information to the first relay service module through the first SDK, wherein the application site information comprises the network address of the target file and the attribute information of the target file.
In one possible example, the second electronic device includes a second application and a second relay service module, and the program 421 further includes instructions for performing the steps of:
Receiving a relay success notification sent by the cloud server through the first relay service module, and transmitting the relay success notification to the first application through a callback interface of the first SDK, wherein the relay success notification is a relay success notification sent to the cloud server by the second relay service module after the second application accesses a target file on the first electronic device according to the application site information;
triggering a preset operation by the first application after receiving the relay success notification.
It should be noted that, the specific implementation steps and other implementation steps in the embodiments of the present application may refer to the steps of the method embodiment shown in fig. 1D, and will not be described in detail herein to avoid repetition.
In accordance with the above, the second electronic device includes: a processor, a communication interface, and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for:
pulling application site information from a cloud server, wherein the application site information is obtained by a first electronic device and is used for obtaining application site information of a target file running in a first application; if the first application is determined to run in the foreground, transmitting application site information to the cloud server;
And accessing the target file on the first electronic equipment according to the application site information.
In one possible example, the second electronic device includes a second application, a second SDK, and a second relay service module, the application site information includes a protocol address of the target file, the pulling application site information from the cloud server, the program including instructions for performing the steps of:
pulling the application site information from the cloud server through the second relay service module, and sending the application site information to the second SDK; invoking the second application;
notifying the application site information to the second application through the second SDK;
and accessing a first file service module on the first electronic equipment according to the network address by the second application so as to open the target file.
In one possible example, after the second application accesses the target file on the first electronic device according to the application presence information, the program further comprises instructions for:
And sending a relay success notification to the cloud server through the second relay service module, wherein the relay success notification is used for being sent to a first relay service module of the first electronic equipment by the cloud server, transmitting the relay success notification to the first application through a callback interface of the first SDK by the first electronic equipment through the first relay service module, and triggering a preset operation after receiving the relay success notification by the first application.
In one possible example, if the second electronic device does not include a near field communication NFC module or the NFC module is not turned on, the program further includes instructions for, before the second relay service module invokes the second application:
and the second relay service module pops up a notification frame, wherein the notification frame is used for prompting to determine whether to open the target file in the second application.
It should be noted that, in the implementation process, each step of the method may be implemented by an integrated logic circuit of hardware in a processor or an instruction in a software form. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software elements in the processor for execution. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein. Specific implementation steps and other implementation steps in the embodiments of the present application may refer to the steps of the method embodiment shown in fig. 2A, and will not be described in detail herein to avoid repetition.
Referring to fig. 5A, fig. 5A is a schematic structural diagram of a cross-device application relay apparatus 500 according to the present embodiment, where the cross-device application relay apparatus 500 is applied to a first electronic device, the first electronic device includes a first application, and the apparatus 500 includes an acquisition unit 501 and a transmission unit 502, where,
the acquiring unit 501 is configured to acquire application field information of a target file, where the target file runs in the first application;
the transmitting unit 502 is configured to transmit the application field information to a cloud server if it is determined that the first application is running in the foreground, where the application field information is used for a second electronic device to access the target file on the first electronic device according to the application field information, and the cloud server is used for providing the application field information to the second electronic device.
Optionally, the first electronic device further includes a first software development kit SDK, a first relay service module, and a first file service module, where in terms of the obtaining application site information of the target file, the obtaining unit 501 is specifically configured to:
generating a network address of the target file through the first file service module;
And sending the application site information to the first relay service module through the first SDK, wherein the application site information comprises the network address of the target file and the attribute information of the target file.
Optionally, the second electronic device includes a second application and a second relay service module, as shown in fig. 5B, and fig. 5B is a modified apparatus of the cross-device application relay apparatus described in fig. 5A, and compared with fig. 5A, the method may further include: a control unit 503, wherein,
the transmission unit 502 is configured to receive, by using the first relay service module, a relay success notification sent by the cloud server, and transmit the relay success notification to the first application through a callback interface of the first SDK, where the relay success notification is a relay success notification sent by the second relay service module to the cloud server after the second application accesses the target file on the first electronic device according to the application site information;
the control unit 503 is configured to trigger, by the first application, a preset operation after receiving the relay success notification.
It can be seen that the cross-device application relay device described in the embodiments of the present application is applied to a first electronic device, where the first electronic device includes a first application, and obtains application field information of a target file through the first electronic device, where the target file runs in the first application; if the first application is determined to run in the foreground, transmitting application site information to a cloud server; the application site information is used for accessing the target file on the first electronic device according to the application site information after the second electronic device pulls the application site information from the cloud server, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic device and the second electronic device is realized.
It should be noted that, the specific implementation steps and other implementation steps in the embodiments of the present application may refer to the steps of the method embodiment shown in fig. 1D, and will not be described in detail herein to avoid repetition.
Referring to fig. 6A, fig. 6A is a schematic structural diagram of a cross-device application relay apparatus 600 provided in the present embodiment, where the cross-device application relay apparatus 600 is applied to a second electronic device, and the apparatus 600 includes a pulling unit 601 and a processing unit 602, where,
the pulling unit 601 is configured to pull application field information from a cloud server, where the application field information is application field information of a target file running in a first application obtained by a first electronic device; if the first application is determined to run in the foreground, transmitting application site information to the cloud server;
the processing unit 602 is configured to access the target file on the first electronic device according to the application site information.
Optionally, the second electronic device includes a second application, a second SDK, and a second relay service module, where the application field information includes a protocol address of the target file, the pulling application field information is pulled from the cloud server, and the pulling unit 601 is specifically configured to pull, by using the second relay service module, the application field information to the cloud server, and send the application field information to the second SDK, in accessing the target file on the first electronic device according to the application field information; invoking the second application;
The processing unit 602 is specifically configured to notify, through the second SDK, the second application of the application site information; and accessing a first file service module on the first electronic equipment according to the network address by the second application so as to open the target file.
Optionally, as shown in fig. 6B, fig. 6B is a variant of the cross-device application relay device described in fig. 6A, which may further include a sending unit 603 in comparison with fig. 6A, wherein after the second application accesses the target file on the first electronic device according to the application site information,
the sending unit 603 is configured to send a relay success notification to the cloud server through the second relay service module, where the relay success notification is used for being sent by the cloud server to a first relay service module of the first electronic device, the relay success notification is transmitted by the first electronic device to the first application through a callback interface of the first SDK through the first relay service module, and after receiving the relay success notification, the first application triggers a preset operation.
Optionally, if the second electronic device does not include the NFC module or the NFC module is not turned on, before the second relay service module invokes the second application, the processing unit 602 is further configured to:
And the second relay service module pops up a notification frame, wherein the notification frame is used for prompting to determine whether to open the target file in the second application.
It can be seen that, in the embodiment of the present application, the application field information is obtained by the first electronic device by pulling the application field information from the cloud server, where the application field information is the application field information of the target file running in the first application; if the first application is determined to run in the foreground, transmitting application site information to the cloud server; and accessing the target file on the first electronic equipment according to the application site information, so that the transfer can be performed through the cloud server, and the remote application relay between the first electronic equipment and the second electronic equipment is realized.
It should be noted that, the specific implementation steps and other implementation steps in the embodiments of the present application may refer to the steps of the method embodiment shown in fig. 2A, and will not be described in detail herein to avoid repetition.
It may be understood that the functions of each program module of the cross-device relay apparatus according to the present embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not repeated herein.
The embodiment of the application also provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the embodiments of the method, where the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (11)

1. A method of applying relay across devices, the method being applied to a first electronic device, the first electronic device including a first application, a software development kit first SDK, a first relay service module, and a first file service module, the method comprising:
The method for acquiring the application site information of the target file comprises the following steps: generating a network address of the target file through the first file service module, and sending the application site information to the first relay service module through the first SDK, wherein the application site information comprises the network address of the target file and attribute information of the target file; the target file runs on the first application;
if the first application is determined to run in the foreground, transmitting the application site information to a cloud server, wherein the application site information is used for a second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device; the second electronic device comprises a second application and a second relay service module;
receiving a relay success notification sent by the cloud server through the first relay service module, and transmitting the relay success notification to the first application through a callback interface of the first SDK, wherein the relay success notification is a relay success notification sent to the cloud server by the second relay service module after the second application accesses a target file on the first electronic device according to the application site information;
Triggering a preset operation by the first application after receiving the relay success notification.
2. A method of relay application across devices, characterized by being applied to a second electronic device, the second electronic device comprising a second application, a second SDK, and a second relay service module, the method comprising:
pulling application site information from a cloud server, wherein the application site information is obtained by a first electronic device and comprises a network address of a target file running in a first application; if the first application is determined to run in the foreground, transmitting application site information to the cloud server;
accessing the target file on the first electronic device according to the application site information;
the pulling application site information from the cloud server, accessing the target file on the first electronic device according to the application site information, includes: pulling the application site information from the cloud server through the second relay service module, and sending the application site information to the second SDK; invoking the second application; notifying the application site information to the second application through the second SDK; and accessing a first file service module on the first electronic equipment according to the network address by the second application so as to open the target file.
3. The method of claim 2, wherein after said accessing, by said second application, a first file service module on said first electronic device according to said network address to open said target file, said method further comprises:
the relay success notification is sent to the cloud server through the second relay service module, and is used for being sent to a first relay service module of the first electronic device by the cloud server, the first electronic device transmits the relay success notification to the first application through a callback interface of a first SDK through the first relay service module, and the first application triggers a preset operation after receiving the relay success notification.
4. The method as recited in claim 2, wherein if the second electronic device does not include a near field communication, NFC, module or the NFC module is not turned on, the method further comprises, prior to the second relay service module invoking the second application:
and the second relay service module pops up a notification frame, wherein the notification frame is used for prompting to determine whether to open the target file in the second application.
5. The cross-equipment application relay system is characterized by comprising a first electronic device, a second electronic device and a cloud server, wherein the first electronic device comprises a first application, a first SDK, a first relay service module and a first file service module, the second electronic device comprises a second application, a second SDK and a second relay service module,
the first electronic device is configured to obtain application field information of a target file, where the target file runs in the first application; if the first application is determined to run in the foreground, transmitting the application site information to a cloud server;
the second electronic device is used for pulling the application site information from the cloud server; accessing a target file on the first electronic device according to the application site information;
the first file service module is used for generating a network address of the first application opening target file in the aspect of acquiring the application site information of the target file; the first SDK is used for sending the application site information to the first relay service module;
the second relay service module is used for pulling the application site information from the cloud server and sending the application site information to the SDK; the second application is invoked in a manner that,
The second SDK is used for notifying the application site information to the second application;
and the second application is used for accessing the first file service module on the first electronic equipment according to the network address so as to open the target file.
6. The system of claim 5, wherein the system further comprises a controller configured to control the controller,
the second relay service module is further configured to send a relay success notification to the cloud server;
the cloud server is used for forwarding the relay success notification to a first relay service module of the first electronic equipment;
the first relay service module is further configured to transmit the relay success notification to the first application through a callback interface of the first SDK;
the first application is configured to trigger a preset operation after receiving the relay success notification.
7. The system of claim 6, wherein if the second electronic device does not include an NFC module or the NFC module is not turned on, the second relay service module is further configured to pop up a notification box, where the notification box is configured to prompt a determination of whether to open the target file at the second application before the second relay service module invokes the second application.
8. An application relay apparatus across devices, applied to a first electronic device, the first electronic device including a first application, a software development kit first SDK, a first relay service module, and a first file service module, the apparatus comprising:
an obtaining unit, configured to obtain application field information of a target file, including: generating a network address of the target file through the first file service module, and sending the application site information to the first relay service module through the first SDK, wherein the application site information comprises the network address of the target file and attribute information of the target file; the target file runs on the first application;
the transmission unit is used for transmitting the application site information to a cloud server if the first application is determined to be operated in the foreground, the application site information is used for a second electronic device to access the target file on the first electronic device according to the application site information, and the cloud server is used for providing the application site information for the second electronic device; the second electronic device comprises a second application and a second relay service module;
The transmission unit is further configured to receive, through the first relay service module, a relay success notification sent by the cloud server, and transmit the relay success notification to the first application through a callback interface of the first SDK, where the relay success notification is a relay success notification sent by the second relay service module to the cloud server after the second application accesses the target file on the first electronic device according to the application site information;
the control unit is used for triggering a preset operation after receiving the relay success notification through the first application.
9. An application relay apparatus across devices, characterized by being applied to a second electronic device, the second electronic device comprising a second application, a second SDK, and a second relay service module, the apparatus comprising:
the system comprises a pulling unit, a cloud server and a first electronic device, wherein the pulling unit is used for pulling application field information from the cloud server, the application field information is obtained by the first electronic device and used for obtaining application field information of a target file running in a first application, and the application field information comprises a network address of the target file; if the first application is determined to run in the foreground, transmitting application site information to the cloud server;
The processing unit is used for accessing the target file on the first electronic device according to the application site information;
the processing unit is further specifically configured to pull application field information from a cloud server, access the target file on the first electronic device according to the application field information, and include: pulling the application site information from the cloud server through the second relay service module, and sending the application site information to the second SDK; invoking the second application; notifying the application site information to the second application through the second SDK; and accessing a first file service module on the first electronic equipment according to the network address by the second application so as to open the target file.
10. An electronic device comprising a processor, a memory for storing one or more programs and configured to be executed by the processor, the program comprising instructions for performing the steps in the method of any of claims 1-4, and a communication interface.
11. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-4.
CN202011283947.XA 2020-11-16 2020-11-16 Cross-device application relay method, device, equipment, system and storage medium Active CN112307405B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011283947.XA CN112307405B (en) 2020-11-16 2020-11-16 Cross-device application relay method, device, equipment, system and storage medium
PCT/CN2021/119383 WO2022100285A1 (en) 2020-11-16 2021-09-18 Cross-device application handoff method, apparatus and system, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011283947.XA CN112307405B (en) 2020-11-16 2020-11-16 Cross-device application relay method, device, equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN112307405A CN112307405A (en) 2021-02-02
CN112307405B true CN112307405B (en) 2024-03-22

Family

ID=74334694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011283947.XA Active CN112307405B (en) 2020-11-16 2020-11-16 Cross-device application relay method, device, equipment, system and storage medium

Country Status (2)

Country Link
CN (1) CN112307405B (en)
WO (1) WO2022100285A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258086A (en) * 2020-11-13 2021-01-22 Oppo广东移动通信有限公司 Cross-device task relay method and device, cloud platform and storage medium
CN112307405B (en) * 2020-11-16 2024-03-22 Oppo广东移动通信有限公司 Cross-device application relay method, device, equipment, system and storage medium
CN113128993A (en) * 2021-04-09 2021-07-16 中国银联股份有限公司 Payment method, payment device, electronic equipment and storage medium
CN115706823A (en) * 2021-08-05 2023-02-17 聚好看科技股份有限公司 Service capability reporting method of terminal equipment and terminal equipment
CN113687760A (en) * 2021-08-18 2021-11-23 华东师范大学 Interactive screen based on stacked perception interactive module, and method and system thereof
CN114501449B (en) * 2022-01-28 2024-02-09 Oppo广东移动通信有限公司 Information query method, device, electronic equipment and storage medium
CN117834568A (en) * 2022-09-27 2024-04-05 比亚迪股份有限公司 Data relay method, device, system, storage medium, equipment and vehicle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027489A (en) * 2016-04-28 2016-10-12 腾讯科技(深圳)有限公司 Internet online method, device and system
CN107205166A (en) * 2017-05-05 2017-09-26 中广热点云科技有限公司 A kind of terminal device exchange method and system based on Cloud Server
CN107391357A (en) * 2017-08-17 2017-11-24 杭州师范大学 Application crashes replay method, device and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473577B2 (en) * 2010-10-13 2013-06-25 Google Inc. Continuous application execution between multiple devices
US20140359637A1 (en) * 2013-06-03 2014-12-04 Microsoft Corporation Task continuance across devices
CN104519397A (en) * 2013-09-29 2015-04-15 北大方正集团有限公司 Audio and video screen-projection playing method, set-top box and terminal device
CN103546774A (en) * 2013-10-21 2014-01-29 Tcl集团股份有限公司 Method and system for realizing seamless access to media file
CN113504851A (en) * 2018-11-14 2021-10-15 华为技术有限公司 Method for playing multimedia data and electronic equipment
CN110958475A (en) * 2019-10-30 2020-04-03 华为终端有限公司 Cross-device content projection method and electronic device
CN112307405B (en) * 2020-11-16 2024-03-22 Oppo广东移动通信有限公司 Cross-device application relay method, device, equipment, system and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027489A (en) * 2016-04-28 2016-10-12 腾讯科技(深圳)有限公司 Internet online method, device and system
CN107205166A (en) * 2017-05-05 2017-09-26 中广热点云科技有限公司 A kind of terminal device exchange method and system based on Cloud Server
CN107391357A (en) * 2017-08-17 2017-11-24 杭州师范大学 Application crashes replay method, device and mobile terminal

Also Published As

Publication number Publication date
WO2022100285A1 (en) 2022-05-19
CN112307405A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN112307405B (en) Cross-device application relay method, device, equipment, system and storage medium
US11210049B2 (en) Display control method and terminal
CN106993227B (en) Method and device for information display
US10965859B2 (en) Smart watch-based mobile terminal camera control method and control system
CN110995990B (en) Camera control method and electronic equipment
CN110673913B (en) Notification message display method and mobile terminal
US11785304B2 (en) Video preview method and electronic device
CN112136100A (en) Shooting method and electronic equipment
WO2014201863A1 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
US20140369525A1 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
CN109756767B (en) Preview data playing method, device and storage medium
US10506292B2 (en) Video player calling method, apparatus, and storage medium
CN108415652A (en) A kind of text handling method and mobile terminal
CN107168609A (en) status bar display method, device and terminal
CN108933964B (en) Bullet screen display method, playing device and control terminal
CN109408150A (en) It is a kind of to apply loading method and mobile terminal fastly
EP3876484A1 (en) Data transmission method and relevant product
CN111124223A (en) Application interface switching method and electronic equipment
CN109669662A (en) A kind of pronunciation inputting method, device, storage medium and mobile terminal
CN109672845B (en) Video call method and device and mobile terminal
CN108924035B (en) File sharing method and terminal
CN111309392B (en) Equipment control method and electronic equipment
CN111694497A (en) Page combination method and electronic equipment
CN107734153A (en) A kind of call control method, terminal and computer-readable recording medium
CN108959382B (en) Audio and video detection method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant