Cross-system device collaboration method, device and computer-readable storage medium

By deploying cross-platform modules in the application, the problem of high development difficulty in application flow between different operating system devices is solved, and low-cost implementation of cross-system application flow is achieved.

WO2026037000A1PCT designated stage Publication Date: 2026-02-19HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/106726
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-12
Filing Date
2025-07-02
Publication Date
2026-02-19

AI Technical Summary

Technical Problem

When enabling application transfer between devices with different operating systems, existing technologies require the development of different application versions for each operating system, resulting in high development difficulty and cost.

Method used

Deploying cross-platform modules in an application enables the application to communicate across different operating systems, facilitating application flow and reducing the difficulty and workload of application development.

Benefits of technology

By enabling application flow through cross-platform modules, application developers no longer need to develop applications multiple times for different operating systems, significantly reducing development difficulty and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025106726_19022026_PF_FP_ABST
    Figure CN2025106726_19022026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computers. Provided are a cross-system device collaboration method, a device and a computer-readable storage medium. In the present application, a cross-platform module is deployed in an application, such that the application can implement a distributed capability by means of the cross-platform module, without requiring an application developer to develop a plurality of versions of the application for different operating systems, and the application only needs to be developed once to enable cross‑operating‑system mutual release and inter‑operating-system communication, thereby realizing application migration and reducing the difficulty and workload of application development.
Need to check novelty before this filing date? Find Prior Art

Description

Cross-system device collaboration methods, devices, and computer-readable storage media

[0001] This application claims priority to Chinese Patent Application No. 202411105367.X, filed on August 12, 2024, entitled "Cross-system Device Collaboration Method, Device and Computer-readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of computer technology, and in particular to a cross-system device coordination method, device, and computer-readable storage medium. Background Technology

[0003] With the development of technology, the number of applications (applications) on devices is becoming increasingly rich, and their usage scenarios are becoming increasingly widespread. Currently, users often encounter application migration scenarios when using applications. Application migration refers to sharing the state and data of an application between different devices, allowing users to continue using the same application's services on different devices without interruption. For example, a user is using an application on device A, and during use, the application's content is sent to device B, allowing device B to continue running the application.

[0004] Different devices may run different operating systems (OS). For example, device A may run HarmonyOS. The operating system on device B is Android. Operating System. If an application needs to switch between devices A and B, which have different operating systems, the application developer needs to develop separate application versions for each device's operating system. This is more difficult and costly. Summary of the Invention

[0005] Based on the above research, this application provides a cross-system device collaboration method, device, and computer-readable storage medium. This eliminates the need for application developers to create multiple versions of the application for different operating systems; instead, development is only required once, enabling application portability across different operating systems. This reduces the difficulty and workload of application development.

[0006] To achieve the above objectives, this application adopts the following technical solution:

[0007] In a first aspect, a cross-system device collaboration method is provided, applied to a first device, the method comprising: running a first application, the first application including a first cross-platform module; and sending application data of the first application to a second device through the first cross-platform module, wherein the operating systems of the first device and the second device are different.

[0008] The above-mentioned first aspect provides the following solutions: by deploying the cross-platform module in the application, the application can realize cross-system data transmission through the cross-platform module, the application developer does not need to develop multiple versions of the application for different operating systems, and the application can communicate between different operating systems only once, thereby reducing the difficulty and workload of application development.

[0009] As a possible implementation, the second device runs the first application, the first application on the second device includes the second cross-platform module; the first application of the first application is sent to the second device through the first cross-platform module, including: the first application in the first device communicates with the second cross-platform module through the first cross-platform module, and sends the application data to the first application in the second device based on the communication, to realize the data transmission between the first application in the first device and the first application in the second device. In this way, by deploying the cross-platform module in the application, the application can communicate between different operating systems through the cross-platform module, the application developer does not need to develop multiple versions of the application for different operating systems, and the difficulty and workload of application development are reduced.

[0010] Exemplarily, the first application running in the first device and the first application running in the second device can be the same application, i.e. the application developed by the same application developer to provide the same service. For example, the first application running in the first device can be the A application developed by the a application developer, and the first application in the second device can also be the A application developed by the a application developer.

[0011] Exemplarily, the first application in the first device can call the communication module of the first device through the first cross-platform module, and establish communication with the communication module of the second device, so as to realize communication with the second cross-platform module.

[0012] As a possible implementation, the second device runs the second application, and the second application includes the third cross-platform module; the first application of the first application is sent to the second device through the first cross-platform module, including: the first application in the first device communicates with the third cross-platform module through the first cross-platform module, and sends the application data to the second application in the second device based on the communication, to realize the data transmission between the first application in the first device and the second application in the second device. In this way, by deploying the cross-platform module in the application, different applications can also communicate between different operating systems through the cross-platform module, and application flow transfer is realized.

[0013] Exemplarily, the first application running in the first device and the second application running in the second device can be different applications, i.e., applications developed by different application developers. For example, the first application running in the first device can be an A application developed by an a application developer, and the second application running in the second device can also be a B application developed by a b application developer. The first application and the second application can provide different services, or the first application and the second application can provide the same service.

[0014] Exemplarily, the first application in the first device can call the communication module of the first device through the first cross-platform module to establish communication with the communication module of the second device, so as to realize communication with the third cross-platform module.

[0015] As a possible implementation, the cross-platform modules in the applications are developed using the same development paradigm, and the applications can provide unified distributed capabilities through the cross-platform modules.

[0016] Exemplarily, the first application can be any one of a map application, an audio application, and a document editing application. The second application can also be any one of a map application, an audio application, and a document editing application.

[0017] As a possible implementation, the operating system of the second device is provided with the same capability as the first cross-platform module; the first application in the first device communicates with the operating system of the second device through the first cross-platform module, and sends application data to the second device based on the communication, to realize data transmission between the first application in the first device and the second device. In this way, by deploying the cross-platform module in the application, the application can communicate with the device having the distributed capability through the cross-platform module, so as to realize distributed behaviors such as navigation transfer, audio transfer, and file sharing.

[0018] As a possible implementation, the first cross-platform module includes a first interface plug-in, the first interface plug-in has the capability of calling the communication module of the device with a different operating system, and is used to support data transmission between the devices with different operating systems. In this way, the application can call the communication module of the device with a different operating system through the interface plug-in, without the need for the application developer to develop multiple versions of the application for different operating systems, and the application can also communicate between different operating systems to realize application transfer, thereby reducing the difficulty and workload of application development.

[0019] Exemplarily, the second cross-platform module includes a second interface plug-in, the second interface plug-in also has the capability of calling the communication module of the device with a different operating system, and is used to support data transmission between the devices with different operating systems.

[0020] Exemplarily, the third cross-platform module comprises a third interface plug-in, and the third interface plug-in also has the capability of calling the communication module of the device of the different operating system, and is used to support the data transmission between the devices with different operating systems.

[0021] As a possible implementation, the first interface plug-in in the first cross-platform module and the second interface plug-in in the second cross-platform module satisfy the same calling form, and are used to provide the same interface calling capability for the first application on different operating systems. In this way, by providing the same interface calling capability for the application on different operating systems through the interface plug-in, the difference between the operating systems of different devices can be shielded, the application development party does not need to develop multiple versions of the application for different operating systems, and the application can also be able to call the hardware resources of the device, such as the communication module of the device, installed with different operating systems through the interface plug-in, and realize cross-device and cross-system data transmission through the communication module.

[0022] Exemplarily, the first interface plug-in in the first cross-platform module and the third interface plug-in in the third cross-platform module satisfy the same calling form, and are used to provide the same interface calling capability for the application on different operating systems.

[0023] As a possible implementation, the method further comprises: the first application calling the communication module of the first device through the first interface plug-in, and sending the application data of the first application to the second device through the communication module. In this way, the application calls the communication module of the device through the interface plug-in, and performs data transmission based on the communication module, so as to realize application flow, and the application development party does not need to develop multiple versions of the application for different operating systems, thereby reducing the difficulty and workload of application development.

[0024] As a possible implementation, the method further comprises: the first application calling the communication module of the first device through the first interface plug-in, searching for connectable devices, the connectable devices comprising the second device; and the first application calling the communication module of the first device through the first interface plug-in, and establishing a connection with the second device. In this way, the application calls the communication module through the interface plug-in to realize device discovery and device connection, and the application development party does not need to develop multiple versions of the application for different operating systems, the application can also communicate between different operating systems, realize application flow, and reduce the difficulty and workload of application development.

[0025] As a possible implementation, the first application calls a communication module of the first device through the first interface plug-in to search for connectable devices, including: the first application calls the communication module of the first device through the first interface plug-in, and receives a broadcast message through the communication module; in a case where the broadcast message of the second device is received, it is determined that the connectable device includes the second device. In this way, the application calls the communication module through the interface plug-in to implement device discovery, which can not require the application developer to develop multiple versions of the application for different operating systems, and can enable the application to communicate between different operating systems, implement application flow, and reduce the difficulty and workload of application development.

[0026] The broadcast message is used for the first device to discover the corresponding device.

[0027] As a possible implementation, the first application calls a communication module of the first device through the first interface plug-in to search for connectable devices, including: the first application calls the communication module of the first device through the first interface plug-in, and receives a broadcast message through the communication module; in a case where the broadcast message of the second device is received, it is determined that the connectable device includes the second device. In this way, the application calls the communication module through the interface plug-in to implement device discovery, which can not require the application developer to develop multiple versions of the application for different operating systems, and can enable the application to communicate between different operating systems, implement application flow, and reduce the difficulty and workload of application development.

[0028] The first information is used to discover the corresponding device, and the second information is information fed back by the corresponding device according to the first information.

[0029] As an example, after the first application calls the communication module of the first device through the first interface plug-in to search for connectable devices, the method further includes:

[0030] displaying a device list, the device list including an identifier of one or more candidate devices, wherein the candidate device is a device that sends the broadcast message and / or the second information; receiving a selection operation of a user, and determining the second device according to the selection operation of the user on the identifier of the one or more candidate devices. In this way, by displaying the device list, the user can be facilitated to select the device that the user wants to perform application flow, improve the accuracy of application flow, and improve the user experience.

[0031] As an example, the method further comprises: in a case where the distance between the first device and the second device is within a preset distance range, the first application calling a communication module of the first device through the first interface plug-in, obtaining connection information of the second device; and establishing a connection with the second device according to the connection information of the second device. In this way, the application calls the communication module through the interface plug-in to realize device connection, which can not require the application developer to develop multiple versions of the application for different operating systems, and can enable the application to communicate between different operating systems, realize application flow, and reduce the difficulty and workload of application development.

[0032] As an example, the method further comprises: after receiving the broadcast information of the second device or receiving the second information fed back by the second device according to the first information, performing trusted verification with the second device. In this way, the reliability of the connection between devices can be improved, thereby improving the security of data during application flow.

[0033] As a possible implementation, the first cross-platform module further comprises an application interface processing module, and the application interface processing module is configured to draw interface content of an application interface of the first application; and the first cross-platform module is configured to send application data of the first application to the second device, including: the first application calling a communication module of the first device through the first interface plug-in, and sending the interface content of the application interface of the first application to the second device through the communication module. In this way, the application draws the interface through the application interface processing module, which can enable the application to present the same user interface on devices with different operating systems, and solve the problem of UI cross-platform reuse.

[0034] Illustratively, the application interface processing module comprises an application interface framework and a graphics rendering engine.

[0035] As a possible implementation, the first cross-platform module further comprises an application compiling module, and the method further comprises: the application compiling module is configured to parse and compile the business code of the first application, and execute the business code of the first application to obtain the application data of the first application. In this way, the application compiling module parses and compiles the application business code, which can support the application to run on different devices or operating systems.

[0036] As an example, the application can further provide a switch module through the cross-platform module, and in a case where the state of the switch module is an open state, the distributed capability of the application is opened, and in a case where the state of the switch module is a closed state, the distributed capability of the application is closed. In this way, without application flow, the device can avoid constantly sending information to find surrounding devices, thereby reducing the power consumption of the device.

[0037] In a second aspect, a cross-system device coordination apparatus is provided, comprising a processing module and a flow transfer module; the processing module is configured to run a first application, the first application comprising a first cross-platform module; and the flow transfer module is configured to send application data of the first application to a second device via the first cross-platform module, the first device and the second device having different operating systems.

[0038] The above-mentioned second aspect provides the beneficial effects as described in any of the embodiments of the first aspect, which will not be repeated here. The controller has the function of implementing the behaviors in the method instances of any of the embodiments of the first aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0039] In a third aspect, a communication system is provided, comprising a first device and a second device, the first device and the second device having different operating systems; the first device and the second device comprising a first application, the first application in the first device comprising a first cross-platform module, and the first application in the second device comprising a second cross-platform module; the first device is configured to perform the method according to any of the possible embodiments of the first aspect; and the second device is configured to receive the application data sent by the first device via the second cross-platform module, and run the first application included in the second device according to the application data.

[0040] As a possible embodiment, the second device further comprises a second application, the second application comprising a third cross-platform module; the first application in the first device communicates with the third cross-platform module via the first cross-platform module, so as to realize data transmission between the first application in the first device and the second application in the second device.

[0041] The above-mentioned third aspect provides the beneficial effects as described in any of the embodiments of the first aspect, which will not be repeated here. The controller has the function of implementing the behaviors in the method instances of any of the embodiments of the first aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0042] In a fourth aspect, a communication system is provided, comprising a first device and a second device, the first device and the second device having different operating systems; the first device comprising a first application, the first application comprising a cross-platform module; the operating system of the second device providing the same capability as the cross-platform module; and the first device is configured to communicate with the operating system of the second device via the platform module of the first application, so as to realize data transmission between the first application in the first device and the second device.

[0043] The fourth aspect provides the scheme, through deploying the cross-platform module in the application and / or providing the same capability as the cross-platform module in the operating system, so that the application can discover the device through the cross-platform module, and communicate with the device with the distributed capability of the operating system, etc., without the need for the application developer to develop multiple versions of the application for different operating systems, but only need to develop the application once, that is, to communicate between different operating systems through a set of codes, to realize the distributed behaviors such as navigation flow transfer, audio flow transfer, and file sharing, thereby reducing the difficulty and cost of application development.

[0044] As a possible implementation, the second device includes the first application, and the second device is further configured to run the first application included in the second device according to the received application data, where the first application included in the second device does not include the cross-platform module.

[0045] In a fifth aspect, a device is provided, including a memory and a processor, the memory is coupled to the processor, and the processor is configured to execute a computer program stored in the memory, so that the device performs the method in any possible implementation of the first aspect.

[0046] In a sixth aspect, a computer readable storage medium is provided, including a computer program or instructions, when the computer program or instructions are executed on a computer, the computer program or instructions make the computer perform the method in any possible implementation of the first aspect.

[0047] In a seventh aspect, a computer program product is provided, including a computer program or instructions, when the computer program or instructions are executed on a computer, the computer program or instructions make the computer perform the method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0048] FIG. 1 is a schematic diagram of application flow transfer in different operating systems;

[0049] FIG. 2 is a schematic diagram of a scene of a cross-system device cooperation method provided by an embodiment of the present application;

[0050] FIG. 3 is a schematic diagram of a function of a cross-platform module provided by an embodiment of the present application;

[0051] FIG. 4 is a schematic diagram of a function of a cross-platform module provided by an embodiment of the present application;

[0052] FIG. 5 is a schematic diagram of a deployment of a map application provided by an embodiment of the present application;

[0053] FIG. 6 is a schematic diagram of an interaction flow of a cross-system device cooperation method provided by an embodiment of the present application;

[0054] FIG. 7 is a schematic diagram of a user interface of a first device according to an embodiment of the present application;

[0055] FIG. 8 is a schematic diagram of an interface of an application flow according to an embodiment of the present application;

[0056] FIG. 9 is a schematic diagram of a timing flow of a navigation flow of a map application according to an embodiment of the present application;

[0057] FIG. 10 is a schematic diagram of an application interface of a map application according to an embodiment of the present application;

[0058] FIG. 11 is a schematic diagram of an application interface of a map application according to an embodiment of the present application;

[0059] FIG. 12 is a schematic diagram of an interface of a switch module according to an embodiment of the present application;

[0060] FIG. 13 is a schematic diagram of an interface of a device list according to an embodiment of the present application;

[0061] FIG. 14 is a schematic diagram of an interface of a verification code input area according to an embodiment of the present application;

[0062] FIG. 15 is a schematic diagram of a scenario of a navigation flow of a map application according to an embodiment of the present application;

[0063] FIG. 16 is a schematic diagram of a timing flow of an audio flow of an audio application according to an embodiment of the present application;

[0064] FIG. 17 is a schematic diagram of a scenario of a device cooperation method across systems according to an embodiment of the present application;

[0065] FIG. 18 is a schematic diagram of a structure of a device cooperation apparatus 600 across systems according to an embodiment of the present application;

[0066] FIG. 19 is a schematic diagram of a structure of a device 700 according to an embodiment of the present application. DETAILED DESCRIPTION

[0067] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0068] It should be noted that the collection, storage, use, processing, transmission, provision and disclosure of user personal information in the technical solutions of the present application comply with relevant laws and regulations and do not violate public order and good customs. For example, the processing of user personal information in the technical solutions of the present application is performed with the authorization of the user. This is uniformly described below, and will not be described again.

[0069] In the description of the embodiments of this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.

[0070] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0071] Furthermore, in the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the term "exemplary" is intended to present concepts in a concrete manner.

[0072] Currently, while cross-platform user interface (UI) frameworks such as React Native (RN) and Flutter have emerged, enabling applications to display the same UI across different operating systems and thus solving the problem of UI reuse across platforms to some extent, some system enhancement capabilities, such as distributed capabilities, still require application developers to develop multiple applications for different operating systems to achieve. Distributed capabilities refer to the ability to achieve multi-device communication and seamless collaboration across devices and operating systems.

[0073] For example, with Taking the operating system as an example, The operating system provides many distributed capabilities through the native soft bus, such as near-field device discovery and communication connections. Therefore, running on... Applications on the operating system can be accessed through The distributed capabilities provided by the operating system are used in the installation Application sharing between operating system devices. Application sharing refers to the sharing of application state and data between different devices, allowing users to use the same application service on different devices without interruption.

[0074] However, these distributed capabilities are not available on other operating systems, making it impossible for applications to flow between devices running different operating systems.

[0075] Because there are no standard distributed capability interfaces between different operating systems, if an application needs to switch between different operating systems, the application developer needs to develop an application version corresponding to each operating system. Then, at runtime, the application switches between operating systems by calling the corresponding operating system interfaces.

[0076] For example, taking a vehicle-to-everything (V2X) scenario as an example, a user uses application A on their mobile phone for navigation. When the user enters the vehicle, the navigation destination information needs to be transferred to application A on the vehicle's infotainment system. If the vehicle's operating system differs from the mobile phone's operating system, the application developer needs to develop different versions of application A for each system.

[0077] As shown in Figure 1, the mobile phone's operating system has Wait, the vehicle's operating system has wait.

[0078] In order for Application A, which runs on mobile phones with different operating systems, to transfer destination information to the vehicle's infotainment system with different operating systems, the application developer needs to develop different versions of Application A for different operating systems.

[0079] Continuing to refer to Figure 1, for example, let the installation... mobile phone (hereinafter referred to as Application A running on the mobile phone will transfer destination information to the installed device. The in-vehicle infotainment system (hereinafter referred to as (vehicle infotainment system) and installation The in-vehicle infotainment system (hereinafter referred to as (Car infotainment system) or installation The in-vehicle infotainment system (hereinafter referred to as (Car infotainment system). For example, let... Application A running on the phone transfers destination information to... In-vehicle infotainment system In-vehicle infotainment system or In-vehicle infotainment system. For example, let... Application A running on the phone transfers destination information to... In-vehicle infotainment system In-vehicle infotainment system or In-vehicle infotainment system. Based on the workflow scenario described above, application developers need to address the following: The A application of the operating system is developed for the corresponding system. Even in some scenarios, when the operating system of the mobile phone and the operating system of the car machine are of the same type, but the device types applied by the operating systems are different, the application developer needs to develop the corresponding A application for the device type applied by the operating system. In this way, the A application running on different operating systems can realize the flow.

[0080] The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine. The A application running on the mobile phone is developed to call the first interface of the operating system, and the A application running on the car machine is developed to call the second interface of the operating system of the car machine.

[0081] Because the application developer needs to develop the application multiple times for different operating systems, the development cost is high, which is not conducive to the distributed business across systems.

[0082] Based on the above research, the embodiment of the present application provides a cross-system device cooperation method, which deploys a cross-platform module in the application, so that the application can realize application flow through the cross-platform module on different operating systems. In this way, the application flow is realized through the cross-platform module, and the application developer does not need to develop the application multiple times for different operating systems, which can greatly reduce the application development cost.

[0083] The cross-system device cooperation method provided in the embodiment of the present application can be used in the application flow scenario between different devices. For example, the application data (such as pictures, audio, etc.) of the application currently running on one or more devices is flowed to another device or multiple devices, so that the other device or multiple devices continue to run the application data of the application.

[0084] In the embodiment of the present application, the application data of the application currently running on one or more devices is flowed to another device or multiple devices, which can be sending the application data of the application currently running on one or more devices to another device or multiple devices.

[0085] Exemplarily, the cross-system device cooperation method provided in the embodiments of the present application can be applied in a navigation task continuation scenario between different devices. For example, a user performs navigation through an A application on a mobile phone. When the user gets into a vehicle, if the vehicle needs to perform navigation, the mobile phone can transfer navigation data generated by the A application in the navigation task to the vehicle. The A application on the vehicle can continue the subsequent navigation task according to the navigation data after receiving the navigation data.

[0086] Exemplarily, the cross-system device cooperation method provided in the embodiments of the present application can also be applied in an audio stream transfer scenario between different devices. For example, a user performs audio playing through a B application on a mobile phone. When the user wants to perform audio playing through a home smart playing terminal (such as a smart television TV, a sound box, or a smart screen), the mobile phone can transfer audio data generated by the B application to the home smart playing terminal. The B application in the home smart playing terminal can continue the subsequent audio playing according to the audio data after receiving the audio data.

[0087] Exemplarily, the cross-system device cooperation method provided in the embodiments of the present application can also be applied in an application screen projection scenario between different devices, that is, the content of an application running on one device is projected onto the display screen or display medium of another device for display. For example, a user performs video calling through a C application on a mobile phone. When the user wants to perform video calling through a large-screen terminal (such as a smart screen), the mobile phone can transfer video stream generated by the C application to the large-screen terminal, and the large-screen terminal can display the video picture generated by the C application and play the audio data of the C application.

[0088] Exemplarily, the cross-system device cooperation method provided in the embodiments of the present application can also be applied in an application content sharing scenario between different devices. For example, a camera device runs a D application to collect video data, and the collected video data can be transferred to different devices for storage.

[0089] It can be understood that the above is only an example of the application scenario of the cross-system device cooperation method provided in the embodiments of the present application, and is not limited, and can be set according to actual needs.

[0090] For ease of understanding, the application scenario to which the cross-system device cooperation method provided in the embodiments of the present application is applied will be described below in conjunction with the accompanying drawings. Please refer to FIG. 2, which is a scenario diagram of the cross-system device cooperation method provided in the embodiments of the present application. As shown in FIG. 2, the scenario includes at least a first device 100 and a second device 200. The first device 100 and the second device 200 can establish a communication connection to realize application stream transfer.

[0091] In the embodiments of the present application, the first device 100 and the second device 200 can each be a terminal. The terminal can be a mobile phone, a tablet computer (Pad), a personal computer (PC), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical treatment, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a vehicle-mounted terminal, an RSU with terminal function, a home control device, and the like. The terminal can also be a vehicle-mounted module, a vehicle-mounted module group, a vehicle-mounted component, a vehicle-mounted chip, or a vehicle-mounted unit, and the like, which are built into a vehicle as one or more components or units. The embodiments of the present application do not limit the specific type of the terminal.

[0092] In the embodiments of the present application, the device types of the first device 100 and the second device 200 can be the same or different. For example, the first device 100 and the second device 200 are each a mobile phone. For another example, the first device 100 is a mobile phone, and the second device 200 is a car machine. For another example, the first device 100 is a mobile phone, and the second device 200 is a smart home device, such as a sound box, a smart screen, and the like.

[0093] In the embodiments of the present application, the first device 100 can be a source device of application flow transfer, that is, a device that initiates flow transfer of application data of an application running thereon. The second device 200 can be a destination device of application flow transfer, that is, a device that receives the transferred application data. In some examples, the second device 200 can also be a source device that initiates application flow transfer, and the first device 100 can also be a destination device that receives the transferred application data.

[0094] In the embodiments of the present application, the operating systems of the first device 100 and the second device 200 are different. For example, the operating system of the first device 100 can be the operating system of the second device 200 can be or For another example, the operating system of the first device 100 can be the operating system of the second device 200 can be or For example, the operating system of the first device 100 can be The operating system of the second device 200 can be Or

[0095] In some examples, the operating systems of the first device 100 and the second device 200 can also be the same. For example, the operating system of the first device 100 and the operating system of the second device 200 can both be For example, the operating system of the first device 100 and the operating system of the second device 200 can both be For example, the operating system of the first device 100 and the operating system of the second device 200 can both be

[0096] A plurality of applications are installed in the first device 100 and the second device 200, and the applications installed in the first device 100 and the second device 200 can be system applications or third-party applications. The system applications refer to applications installed in the device before the device is shipped and the operating system is installed. For example, the system applications include camera, gallery, calendar, call, map, Bluetooth, short message, etc. The third-party applications can be applications downloaded and installed by the user through an application store, such as and the like.

[0097] In the embodiments of the present application, the applications installed in the first device 100 and the second device 200 include a cross-platform module and a business module. The business module includes business code (such as TypeScript, TS code) of the application. When the application runs, the business code in the business module is executed, so that the application executes the corresponding business function. For example, when the application is a map type application, the business code in the business module in the application is executed when the application runs, and the application can execute the navigation business.

[0098] In the embodiments of the present application, the cross-platform module can provide distributed capabilities for the application, so that the application can work cooperatively between devices with different operating systems, realize application flow, or work cooperatively between devices with the same operating system, realize application flow. In some examples, the cross-platform module can also provide UI reuse capabilities for the application, so that the application can present the same user interface on devices with different operating systems.

[0099] In the embodiments of the present application, the cross-platform module in each application is developed using the same development paradigm, so that each application can provide unified distributed capabilities through the cross-platform module. In this way, for the application developer, by deploying the cross-platform module in the application, the application can be developed only once, and the application can be realized between different operating systems.

[0100] Please refer to FIG. 3, which is a function diagram of the cross-platform module provided in the embodiments of the present application. As shown in FIG. 3, the cross-platform module can include an application compiling module, an application interface processing module, and an interface plug-in.

[0101] The application compiling module can include an Ark runtime, which is used to parse and compile the business code of an application and can execute the parsed and compiled code, thereby implementing the business logic of the application. It can be understood that when the business code of the application is executed, the application can generate application data (such as a picture, audio, etc.).

[0102] The application interface processing module is used to draw the interface content in the application interface of an application. In the embodiments of the present application, the application interface processing module can include an application interface framework and a graphics rendering engine.

[0103] The application interface framework provides a UI interface development method of an application, and an application developer can edit the UI interface of the application through the application interface framework. Illustratively, the application interface framework can include an ArkUI framework. The ArkUI framework provides a series of UI components and layout strategies, so that an application development party can write UI logic and layout through the ArkUI framework to form a declarative UI definition. At the application runtime, the ArkUI framework can parse these UI definitions to build a UI component tree.

[0104] The graphics rendering engine is responsible for drawing and presenting the UI interface of an application. The graphics rendering engine can receive rendering instructions and perform specific application interface drawing based on the rendering instructions.

[0105] The interface plug-in is used to provide distributed capabilities of an application, so that the application can communicate across platforms and implement application flow.

[0106] In the embodiments of the present application, the interface plug-in satisfies the same calling form on different operating systems, and thus the interface plug-in can also provide the same interface calling capability for applications on different operating systems. The applications on different operating systems can be the same application, i.e., an application developed by the same application development party to provide the same service. The applications on different operating systems can also be different applications, i.e., applications developed by different application development parties to provide the same service or different services, and the specifics are not limited.

[0107] For example, taking the first device 100 and the second device 200 as an example, the operating systems of the first device 100 and the second device 200 are different. The first application runs on the first device 100 and the second device 200. Wherein, for the convenience of description, the cross-platform module in the first application on the first device 100 is the first cross-platform module, and the cross-platform module in the first application on the second device 200 is the second cross-platform module. The interface plug-in in the first cross-platform module is the first interface plug-in, and the interface plug-in in the second cross-platform module is the second interface plug-in. The first interface plug-in and the second interface plug-in satisfy the same calling form. In the case that the first interface plug-in and the second interface plug-in satisfy the same calling form, the interface calling capability provided by the first interface plug-in to the first application on the first device 100 is the same as the interface calling capability provided by the second interface plug-in to the first application on the second device 200.

[0108] For another example, the first application runs on the first device 100 and the second application runs on the second device 200. Wherein, the cross-platform module in the first application is the first cross-platform module, and the cross-platform module in the second application is the third cross-platform module. The interface plug-in in the first cross-platform module is the first interface plug-in, and the interface plug-in in the third cross-platform module is the third interface plug-in. The first interface plug-in and the third interface plug-in satisfy the same calling form. In the case that the first interface plug-in and the third interface plug-in satisfy the same calling form, the interface calling capability provided by the first interface plug-in to the first application on the first device 100 is the same as the interface calling capability provided by the third interface plug-in to the second application on the second device 200.

[0109] In the embodiments of the present application, in the case that the interface plug-in provides the same interface calling capability for the applications on different operating systems, the interface plug-in can shield the differences of different operating systems for the applications, so that the applications on different operating systems all adopt the same calling form to call the interface plug-in. For example, the calling form of the first application of the first device 100 to call the first interface plug-in is the same as the calling form of the first application on the second device 200 to call the second interface plug-in. In this way, the differences of different operating systems are shielded through the interface plug-in, so that the application developer does not need to develop the application for different operating systems multiple times, which can greatly reduce the application development cost.

[0110] In the embodiments of the present application, the interface plug-in also has the ability to call the communication module of the device of different operating systems, which is used to support the data transmission between devices with different operating systems. In this way, the applications on different operating systems can adopt the same calling form to call the interface plug-in, and call the hardware resources of the device, such as the communication module (such as network interface) of the device, through the interface plug-in, to realize the cross-device and cross-system data transmission. The application developer does not need to develop the application for different operating systems multiple times, which can greatly reduce the application development cost.

[0111] In some examples, the interface plug-in can also provide a unified data transmission channel, so that different devices can communicate remotely, implement data transmission, service discovery, and connection management, and the like. In some examples, the interface plug-in can also provide distributed data management functions to implement data sharing and synchronization functions between different devices. In some examples, the interface plug-in can also provide distributed device discovery and connection, so that devices can quickly discover peripheral devices and establish connections.

[0112] It can be understood that the above examples are only illustrative examples of the interface plug-in provided by the embodiments of the present application to apply distributed capabilities, and are not limiting. In some examples, the interface plug-in can also provide more application distributed capabilities. For example, distributed task scheduling capabilities, distributed security capabilities, and the like.

[0113] Based on the cross-platform module shown in FIG. 3, please refer to FIG. 4. When the application of the first device 100 is running, the Ark runtime of the application parses and compiles the business code of the application, executes the parsed and compiled code, and determines the business logic to be executed by the application.

[0114] In the case where the application of the first device 100 needs to perform interface rendering, the application in the first device 100, such as the Ark runtime in the application, can call the related API of the ArkUI framework in the application to build a UI component tree. When building the UI component tree, the ArkUI framework can calculate the position and size of each UI component, and determine the arrangement of each UI component on the interface. The ArkUI framework can also determine the style and animation effect of each UI component. Based on the arrangement, style, and animation effect of each UI component on the interface, the ArkUI framework generates rendering instructions and sends the rendering instructions to the graphics rendering engine in the application. The graphics rendering engine issues the rendering instructions to the operating system to draw the UI interface.

[0115] When the user interacts with the UI interface of the application, the ArkUI framework in the application can capture these interaction events and call the corresponding event handlers for processing, such as updating the UI interface or executing business logic. The event handler is a function or method for processing various events.

[0116] Illustratively, the ArkUI framework can capture the interaction events of the user on the UI interface, call the event handler corresponding to the interaction event, and render the interface through the graphics rendering engine.

[0117] In a case where the application in the first device 100 needs to perform application flow transfer, the application in the first device 100, such as the Ark runtime in the application, can parse and execute the business code of the application, call the interface plug-in, and establish a connection with a peripheral device, such as the second device 200. After the connection with the second device 200 is established, the Ark runtime of the application can call the interface plug-in to transfer the application data of the application to the second device 200.

[0118] In an embodiment of the present application, the interface plug-in can support multiple communication modes. Therefore, the application in the first device 100 can call the communication module of the first device 100 through the interface plug-in according to the communication mode supported by the interface plug-in. Then, the communication module of the first device 100 is used to establish a connection with the second device 200.

[0119] For example, the interface plug-in can support near field communication (NFC), Bluetooth (BT), wireless fidelity (WiFi), neighbor awareness networking (NAN), sparklink low energy (SLE), and the like.

[0120] In some examples, the interface plug-in can also support cellular network, satellite communication, and the like. The specific communication mode is not limited and can be set according to actual needs.

[0121] Taking a Bluetooth module as an example, the application in the first device 100 is used to call the communication module through the interface plug-in to establish a connection and perform application data flow transfer. The application in the first device 100, such as the Ark runtime in the application, can send a Bluetooth communication request to the operating system of the first device 100 through the interface plug-in in the application to request that the Bluetooth module be used to establish a connection with the second device 200. After receiving the Bluetooth communication request, the operating system of the first device 100 sends an instruction to the Bluetooth module through a Bluetooth driver. The Bluetooth module can establish a connection with the second device 200 according to the instruction.

[0122] After the connection with the second device 200 is established, the application in the first device 100, such as the Ark runtime in the application, can send application data to the operating system of the first device 100 through the interface plug-in in the application to request that the Bluetooth module be used to transfer the application data to the second device 200. After receiving the application data, the operating system of the first device 100 sends the application data to the Bluetooth module through the Bluetooth driver. The Bluetooth module can send the application data to the second device 200.

[0123] Correspondingly, after the Bluetooth module of the second device 200 receives the application data, the Bluetooth module feeds back the application data to the operating system of the second device 200 through a Bluetooth driver, the operating system of the second device 200 feeds back the application data to the application of the second device 200 through an interface plug-in in the application of the second device, and the application of the second device 200 can continue to run according to the application data, so as to realize the application flow.

[0124] Taking the NFC module as an example, the application in the first device 100 is called to establish a connection through an interface plug-in and to perform application data flow by using a communication module. After the NFC modules of the first device 100 and the second device 200 are turned on, if the distance between the first device 100 and the second device 200 is within a preset distance range, the NFC module of the first device 100 can negotiate a communication mode with the NFC module of the second device 200. It is assumed that after the communication mode is negotiated, the NFC module of the first device 100 is in a first communication mode, and the NFC module of the second device 200 is in a second communication mode. The preset distance range can be set according to actual requirements, and the embodiments of the present application do not make specific limitations.

[0125] Exemplarily, the first communication mode can be a reader mode, and the second communication mode can be a carder mode.

[0126] In the case that the NFC module of the first device 100 is in the reader mode, the first device 100 can read the data of the NFC tag through the NFC module. In the case that the NFC module of the second device 200 is in the carder mode, the NFC module of the second device 200 can be simulated as an NFC tag and can be read by other devices including the NFC module.

[0127] The first communication mode can be a reader mode and the second communication mode can be a carder mode. The application in the first device 100, such as the Ark runtime in the application, can send a NFC communication request to the operating system of the first device 100 through the interface plug-in in the application. After receiving the NFC communication request, the operating system of the first device 100 sends an instruction to the NFC module through the NFC driver, and the NFC module can read the connection information (such as the MAC address, port information, device name, etc. of the second device) in the NFC module of the second device 200. After obtaining the connection information, the application in the first device 100 can establish a connection between the first device 100 and the second device 200 based on the connection information. For example, the application in the first device 100 can call the interface plug-in to make the first device 100 connect to the second device 200 through Bluetooth or StarFlash based on the connection information. The process of the application in the first device 100 calling the interface plug-in to make the first device 100 connect to the second device 200 through Bluetooth or StarFlash can be referred to the above description, and will not be described here.

[0128] After establishing a connection (such as a Bluetooth connection) with the second device 200, the application in the first device 100, such as the Ark runtime in the application, can send application data to the operating system of the first device 100 through the interface plug-in in the application to request that the application data be forwarded to the second device 200 connected through the Bluetooth module. After receiving the application data, the operating system of the first device 100 sends the application data to the Bluetooth module through the Bluetooth driver. The Bluetooth module can send the application data to the second device 200 connected. Correspondingly, after receiving the application data, the Bluetooth module of the second device 200 feeds back the application data to the operating system of the second device 200 through the Bluetooth driver, and the operating system of the second device 200 feeds back the application data to the application of the second device 200 through the interface plug-in in the application of the second device. The application of the second device can continue to run according to the application data, thereby realizing the application forwarding.

[0129] It can be understood that when the first communication mode is a reader mode and the second communication mode is a carder mode, the NFC module of the first device 100 and the NFC module of the second device 200 can only communicate in one direction, that is, the NFC module of the first device 100 reads information from the NFC module of the second device 200, and the NFC module of the second device 200 cannot read information from the NFC module of the first device 100. Therefore, when the first device 100 establishes a connection with the second device 200 based on the connection information, such as a Bluetooth connection, a security check according to the Bluetooth specification is still required.

[0130] In order to improve the efficiency of establishing a connection, in some examples, the first communication mode and the second communication mode can also be a point-to-point mode. In the case that the NFC modules of the first device 100 and the second device 200 are in a point-to-point mode, the first device 100 and the second device 200 can exchange data through the NFC modules, including close-range transmission of information and security keys. In this way, through the point-to-point mode, the establishment of a connection, such as security verification when establishing a Bluetooth connection, can be avoided, the process of establishing a connection can be accelerated, and efficiency can be improved.

[0131] It can be understood that, after the NFC modules of the first device 100 and the second device 200 are turned on, if the distance between the first device 100 and the second device 200 is always within a preset distance range, the first device 100 and the second device 200 can also perform data transmission through the NFC modules to realize application flow transfer.

[0132] In the embodiments of the present application, the application developer can deploy a cross-platform module in the application, without the need for the application developer to develop multiple versions of the application for different operating systems. In the case of one-time development, the application can also present a unified interface on different operating systems through the application interface framework module and the graphics rendering engine, to realize the reuse capability of the UI interface, and to realize the distributed capability across devices and operating systems through the interface plug-in, such as application flow transfer between different operating systems.

[0133] It can be understood that, based on the cross-platform module shown in FIG. 4, the application developer can develop the application by using the task characteristics during application flow transfer, based on the business code, the interface plug-in providing the distributed capability, the application compilation module, the application interface framework module, the graphics rendering engine, and the like. Taking a map application as an example, please refer to FIG. 5, which is a deployment schematic diagram of a map application provided by the embodiments of the present application. The application developer can use the connection characteristics of the map application during application flow transfer, based on the interface plug-in, the application compilation module, the application interface framework module, the graphics rendering engine, and the TS code, to develop the map application only once, so that the developed map application can realize the distributed capability on different operating systems. The developed map application includes a map business module and a cross-platform module.

[0134] After the application is developed, the application developer can publish the developed application. After the application developer publishes the application, each device can download and install the application.

[0135] It can be understood that, after the device downloads and installs the application, the device can run the application, and when the application is running, the distributed capability of the application, such as application flow transfer, can be realized.

[0136] Based on the architecture diagrams shown in FIG. 2, FIG. 3 and FIG. 4, the cross-system device collaboration method provided by the embodiments of the present application is described below by taking the application flow transfer between the applications on the first device and the second device as an example. The operating systems of the first device and the second device are different, and a plurality of applications are installed on the first device and the second device. The applications installed on the first device and the second device can be the same or different.

[0137] For example, the first device and the second device can both include a first application. The first application in the first device and the first application in the second device can be the same application, i.e., an application developed by the same application development party for providing the same service. For example, the first application in the first device can be an A application developed by an a application development party, and the first application in the second device can also be the A application developed by the a application development party.

[0138] For another example, the first device includes a first application, and the second device includes a second application. The first application in the first device and the second application in the second device can be different applications, i.e., applications developed by different application development parties. For example, the first application in the first device can be an A application developed by an a application development party, and the second application in the second device can be a B application developed by a b application development party. The first application and the second application can provide different services, such as the first application providing a video collection service and the second application providing a video data storage service. The first application and the second application can also provide the same service, such as the first application and the second application both providing a map navigation service.

[0139] In the embodiments of the present application, the applications in the first device and the second device can include cross-platform modules. In this way, the applications in the first device and the second device can communicate through the cross-platform modules to perform data transmission, thereby realizing the application flow transfer.

[0140] Exemplarily, the cross-platform module included in the first application in the first device is taken as a first cross-platform module, and the cross-platform module included in the first application in the second device is taken as a second cross-platform module. The first application in the first device can communicate with the second cross-platform module through the first cross-platform module, and can send the application data of the first application to the first application in the second device through the communication between the first cross-platform module and the second cross-platform module, thereby realizing the data transmission between the first application in the first device and the first application in the second device, and realizing the application flow transfer between the first application in the first device and the first application in the second device.

[0141] Exemplarily, it is illustrated by taking the first cross-platform module included in the first application in the first device as the first cross-platform module, and the cross-platform module included in the second application in the second device as the third cross-platform module. The first application in the first device can communicate with the third cross-platform module through the first cross-platform module, and can send the application data of the first application to the second application in the second device through the communication between the first cross-platform module and the third cross-platform module, so as to realize the data transmission between the first application in the first device and the second application in the second device. Thus, the application flow between the first application in the first device and the second application in the second device is realized.

[0142] The application of the first device and the second device through the cross-platform module will be specifically described below. Please refer to FIG. 6, which is an interactive flow diagram of the cross-system device collaboration method provided by the embodiment of the application. As shown in FIG. 6, the interactive flow diagram of the cross-system device collaboration method provided by the embodiment of the application can include S301 to S305.

[0143] S301, the first device runs the first application, and the first application in the first device includes the first cross-platform module.

[0144] The first device can include at least one application, and the first application can be any one of the applications in the first device. The first application can be a system application or a third-party application. In the embodiment of the application, the first application has a distributed capability, which can be realized by the cross-platform module as shown in FIG. 3 and FIG. 4. The distributed capability refers to the capability of realizing multi-device communication and seamless collaboration across devices and operating systems.

[0145] Exemplarily, the first device can receive the operation of the user on the icon of the first application in the interface, and run the first application.

[0146] As shown in FIG. 7, taking the first device as a mobile phone and the first application as a camera as an example, the first device can provide a user interface 10 to the user during the running process, and the user interface 10 can include the icon of the camera 11 and the icons of other applications (such as email, weather, settings, calculator, photo, etc.). In the case that the user needs to use the camera 11, the icon of the camera 11 in the user interface 10 can be operated (such as clicking, sliding, etc.). The first device can respond to the operation of the user on the icon of the camera 11, and run the camera 11.

[0147] Exemplarily, the first device can also receive the voice operation of the user, and run the first application. For example, in the case that the user needs to use the first application, the voice operation instruction such as "open the first application" can be input to the first device. The first device receives the voice operation instruction input by the user, and runs the first application.

[0148] S302, the second device runs the first application, the first application in the second device includes a second cross-platform module.

[0149] Wherein, the operating system of the second device can be different from the operating system of the first device.

[0150] The second device also includes the first application. The second application in the second device is the same as the first application in the first device, that is, an application developed by the same application developer for providing the same service.

[0151] The first application in the second device also has a distributed capability, which can be implemented by a cross-platform module as shown in FIG. 3 and FIG. 4.

[0152] The process of running the first application by the second device can refer to the process of running the first application by the first device.

[0153] It can be understood that the execution order of S301 and S302 is not limited in the embodiments of the present application. S301 can be executed before S302, or S301 can be executed after S302, and S301 and S302 can also be executed synchronously.

[0154] It should be noted that, for the convenience of understanding, the cross-platform module included in the first application in the first device is described as the first cross-platform module, and the cross-platform module included in the first application in the second device is described as the second cross-platform module.

[0155] S303, the first device and the second device establish a connection.

[0156] In the embodiments of the present application, the first device and the second device can establish a connection through the cross-platform module in the application. Wherein, the cross-platform module includes an interface plug-in, the applications in the first device and the second device can call the communication module through the interface plug-in in the cross-platform module, and establish a connection through the communication module for data transmission.

[0157] Exemplarily, taking the interface plug-in in the first cross-platform module as the first interface plug-in, and taking the interface plug-in in the second cross-platform module as the second interface plug-in as an example. The first application in the first device can call the communication module (such as Bluetooth module, WiFi module) of the first device through the first interface plug-in, search for connectable devices, and wherein, in the case that the connectable devices include the second device, the first application in the first device calls the communication module of the first device through the first interface plug-in, and establishes a connection with the second device.

[0158] As an example, the specific implementation of the first application in the first device calling the communication module of the first device through the first interface plug-in to search for connectable devices can be:

[0159] The first application in the first device calls the communication module of the first device through the first interface plug-in, receives the broadcast information through the communication module, and the broadcast information is used for the first device to discover the corresponding device. In the case that the broadcast information of the second device is received through the communication module, it can be determined that the connectable device includes the second device.

[0160] The first application in the second device can call the communication module of the second device through the second interface plug-in, and send the broadcast information through the communication module of the second device. The broadcast information is used for publishing the self information, so that the first device discovers the second device. The broadcast information can include the MAC address, device name, port information and the like of the second device.

[0161] The first application in the first device can call the communication module of the first device through the first interface plug-in, and start the listening function through the communication module of the first device. After the communication module of the first device listens (receives) the broadcast information sent by the second device, the first application in the first device can call the communication module of the first device through the first interface plug-in, and initiate a connection request to the second device through the communication module of the first device. For example, according to the MAC address, device name, port information and the like of the second device, a connection request is initiated to the second device through the communication module of the first device.

[0162] The second device establishes a connection with the first device in response to the connection request.

[0163] Taking the architecture shown in FIG. 4 as an example, in the process of running, the first application in the second device, such as the Ark in the first application, can access the operating system of the second device through the second interface plug-in, call the communication module of the second device through the operating system of the second device, and send broadcast information to announce the existence of the second device.

[0164] Correspondingly, in the process of running, the first application in the first device, such as the Ark in the first application, can access the operating system of the first device through the first interface plug-in, call the communication module of the first device through the operating system of the first device, and listen through the communication module of the first device. After listening to the broadcast information sent by the second device, the communication module of the first device feeds back the broadcast information to the first application in the first device through the operating system and the first interface plug-in.

[0165] After obtaining the broadcast information, the first application in the first device, such as the Ark in the first application, can access the operating system of the first device through the first interface plug-in, call the communication module of the first device through the operating system of the first device, and initiate a connection request to the second device through the communication module of the first device.

[0166] The communication module of the second device can directly feed back the connection response information to the first device after receiving the connection request, so as to connect with the first device. The communication module of the second device can also feed back the connection request to the first application in the second device after receiving the connection request. The first application in the second device, such as the ark runtime of the first application, calls the communication module of the second device through the second interface plug-in, sends the connection response information through the communication module of the second device, and establishes a connection with the first device.

[0167] As another example, the first application in the first device calls the communication module of the first device through the first interface plug-in, and the specific implementation of searching for connectable devices can also be:

[0168] The first application in the first device calls the communication module of the first device through the first interface plug-in, sends the first information through the communication module, and receives the second information through the communication module. The first information is used to discover the corresponding device. After receiving the second information according to the first feedback of the second device, it can be determined that the connectable device includes the second device.

[0169] The first application in the first device can also call the communication module of the first device through the first interface plug-in, and send the first information through the communication module of the first device to find the surrounding connectable devices. The first information can include the MAC address, device name, port information, etc. of the first device. The communication module in the first device can send the first information in the form of broadcast or multicast.

[0170] The first application in the second device can call the communication module of the second device through the second interface plug-in, and start the listening function through the communication module of the second device. After the communication module of the second device listens (receives) the first information sent by the first device, the first application in the second device can call the communication module of the second device through the second interface plug-in, and send the second information to the first device through the communication module of the second device. For example, according to the device name and port information of the first device, the second information is sent to the first device through the communication module of the second device. The second information can include the MAC address, device name, port information, etc. of the second device.

[0171] After receiving the second information sent by the second device, the first application in the first device can call the communication module of the first device through the first interface plug-in, and initiate a connection request to the second device through the communication module of the first device. For example, according to the MAC address, device name, and port information of the second device, a connection request is initiated to the second device through the communication module of the first device. The second device responds to the connection request and establishes a connection with the first device.

[0172] Taking the architecture shown in FIG. 4 as an example, in the process of running, the first application in the first device, such as the ark in the first application, can access the operating system of the first device through the first interface plug-in, call the communication module of the first device through the operating system of the first device, and send the first information through the communication module of the first device.

[0173] Correspondingly, in the process of running, the first application in the second device, such as the ark in the first application, can access the operating system of the second device through the second interface plug-in, call the communication module of the second device through the operating system of the second device, and listen through the communication module of the second device. After listening to the first information sent by the first device, the communication module of the second device feeds back the first information to the first application in the second device through the operating system and the interface plug-in.

[0174] After obtaining the first information, the first application in the second device, such as the ark in the first application, can access the operating system of the second device through the second interface plug-in, call the communication module of the second device through the operating system of the second device, and send the second information to the first device.

[0175] After receiving the second information sent by the second device, the communication module of the first device feeds back the second information to the first application in the first device through the operating system and the first interface plug-in.

[0176] After obtaining the second information, the first application in the first device, such as the ark in the first application, can access the operating system of the first device through the first interface plug-in, call the communication module of the first device through the operating system of the first device, and initiate a connection request to the second device through the communication module of the first device. In this way, the connection between the first device and the second device is established.

[0177] In some examples, in order to enable the first device and the second device to quickly establish a connection, in the case where the first application in the first device sends the first information by calling the first interface plug-in, the first application in the second device can also send broadcast information through the second interface plug-in. In this way, the discovery efficiency and reliability of the device can be improved, and the first device and the second device can quickly establish a connection.

[0178] It can be understood that the above is only an example of the embodiment of the application for establishing a connection between the first device and the second device, and is not specifically limited. For example, in some examples, when the distance between the first device and the second device is within the preset distance range, the first application in the first device can also call the communication module (such as the NFC module) of the first device through the first interface plug-in to obtain the connection information of the second device. The connection information of the second device includes the MAC address, port information, and device name of the second device. After obtaining the connection information sent by the second device, the first application in the first device can call the communication module (such as the Bluetooth module) of the first device through the first interface plug-in, and initiate a connection request to the second device through the communication module (Bluetooth module) of the first device. For example, according to the MAC address, device name, and port information of the second device, a connection request is initiated to the second device through the communication module of the first device (such as the Bluetooth module). The second device responds to the connection request and establishes a connection with the first device.

[0179] S304, the first device converts the application data stream of the first application to the second device through the first cross-platform module in the first application.

[0180] Wherein, after the first device and the second device establish a connection, the first application in the first device can directly convert the application data stream of itself to the second device through the first cross-platform module, thereby realizing the application conversion between devices installed with different operating systems.

[0181] In some examples, after the first device and the second device establish a connection, the first application of the first device can receive the user's conversion operation and convert the application data stream of itself to the second device through the first cross-platform module.

[0182] For example, the first application in the first device can receive the user's conversion operation in the application interface and convert the application data stream of itself to the second device through the first cross-platform module.

[0183] As shown in FIG. 8, after the first device and the second device establish a connection, the first application in the first device can display prompt information 12a such as “whether to convert the application to the second device”, “yes” control 12b, and “no” control 12c in the current application interface 12. If the user needs to convert, the “yes” control 12b can be operated, and the first application in the first device receives the user's operation and converts the application data stream of itself to the second device through the first cross-platform module. It can be understood that if the user operates the “no” control 12c, the first application in the first device does not need to convert the application data stream to the second device.

[0184] For example, the first application in the first device can call the communication module of the first device through the first interface plug-in, and convert the application data stream to the second device through the communication module.

[0185] Taking the architecture shown in FIG. 4 as an example, in the process of running the first application in the first device, the first application, such as the ark in the first application, can access the operating system of the first device through the first interface plug-in, call the communication module of the first device through the operating system of the first device, and send application data to the second device through the communication module of the first device.

[0186] S305, the second device receives the application data and runs the first application in the second device according to the application data.

[0187] Wherein, after receiving the application data sent by the first device, the second device can feed back the application data to the first application in the second device, and the first application in the second device can continue the subsequent application task according to the application data, so that the service provided by the application is not interrupted.

[0188] Exemplarily, after receiving the application data, the communication module of the second device can feed back the application data to the first application in the second device through the second interface plug-in. The first application in the second device can continue to run according to the application data, so as to realize the application flow.

[0189] In some examples, the application data includes the interface content of the application interface of the current first application in the first device. The first application in the first device can call the communication module of the first device through the first interface plug-in, and flow the interface content of the application interface of the current first application to the second device through the communication module.

[0190] In some examples, after obtaining the interface content of the application interface of the first application in the first device, the first application in the second device can display the same interface content as the interface content of the application interface of the current first application in the first device.

[0191] It can be understood that the application interface of the first application can be obtained by the application interface framework module and the graphic rendering engine. For details, refer to the description of the application interface framework module and the graphic rendering engine above.

[0192] In some examples, when the first application in the second device performs subsequent application tasks according to the application data, it can also be storage, sharing and other processing of the application data, which is not limited.

[0193] It should be noted that, for the convenience of description, the process shown in FIG. 6 is taken as an example to illustrate the first application in the first device and the first application in the second device. The process of the first application in the first device and the second application in the second device communicating through the cross-platform module can also refer to the process shown in FIG. 6, which will not be repeated here.

[0194] The embodiment of the present application can enable the application to call the operating system through the unified distributed capability provided by the cross-platform module, so as to call the communication module of the device to realize the distributed communication and the distributed behavior, such as realizing the application flow between the same application or different applications. In addition, by deploying the cross-platform module in the application, the cross-platform module provides the distributed capability of the system for the application, so that the application development party does not need to develop multiple versions of the application for different operating systems, but only needs to develop once, so that the application can be published on different operating systems and communicate between different operating systems, realizes the application flow, and reduces the difficulty and workload of application development.

[0195] In some examples, the application on the device can also declare the listening function to the operating system of the device, so that the device can also listen through the operating system itself in the case that the application is not running. For example, after the first application in the first device declares the listening function to the operating system of the first device, the first device can listen to the broadcast information sent by the second device in the case that the first application is not running. After listening to the broadcast information, the first device can directly feed back the connection request to the second device and run the first application. The first application can also be run, and the broadcast information is fed back to the first application, and the first application feeds back the connection request to the second device through the cross-platform module.

[0196] For another example, after the first application in the second device declares the listening function to the operating system of the second device, the second device can listen to the first information sent by the first device in the case that the first application is not running. After listening to the first information, the second device can directly feed back the second information to the first device through the operating system and run the first application. The second device can also run the first application and feed back the first information to the first application. The first application feeds back the second information to the first device through the cross-platform module.

[0197] It can be understood that in the case that the first application in the first device declares the listening function to the operating system of the first device, S301 can be an optional step, and in the case that the first application in the second device declares the listening function to the operating system of the second device, S302 can be an optional step.

[0198] In order to reduce power consumption, it is avoided that the device sends information to find the surrounding device without application flow. In some examples of the present application, the application can also provide a switch module through the cross-platform module. In the case that the state of the switch module is an open state, the distributed capability of the application is opened, and in the case that the state of the switch module is a closed state, the distributed capability of the application is closed.

[0199] Exemplarily, when the state of the switch module on the first device is in the open state, the first application of the first device calls the communication module of the first device through the first interface plug-in, and sends the first information through the communication module of the first device to find the devices that can be connected around. When the state of the switch module on the first device is in the close state, the first application of the first device does not need to send the first information.

[0200] Exemplarily, when the state of the switch module on the second device is in the open state, the first application of the second device calls the communication module of the second device through the second interface plug-in, and sends the broadcast information through the communication module of the second device. When the state of the switch module on the second device is in the close state, the first application of the second device does not need to send the broadcast information.

[0201] Exemplarily, the device can control the state of the switch module by receiving the operation of the switch module by the user.

[0202] Taking the second device as an example, after the first application in the second device runs, the second device can display the switch module. After the switch module is displayed, the first application in the second device can obtain the operation of the switch module by the user, and obtain the state of the switch module according to the operation of the switch module by the user.

[0203] It can be understood that if the user needs to open the distributed capability of the first application in the second device, such as needs to perform application flow, the switch module can be opened. If the user does not need to open the distributed capability of the first application in the second device, such as does not need to perform application flow, the switch module can be closed.

[0204] When the user opens the switch module, the state of the switch module is in the open state, and when the user closes the switch module, the state of the switch module is in the close state.

[0205] The embodiment of the application can avoid the occupation of device resources by the distributed behavior of the application in the case of not needing to perform the distributed behavior, and can effectively reduce the power consumption of the device by setting the switch module and controlling the distributed capability of the application through the switch module.

[0206] In some scenarios, there can be multiple connectable devices around the first device. To make the first device connect with the second device to which the user wants to transfer the application flow. In some examples of the present application, the first application in the first device can also display a device list including the identification of one or more candidate devices, wherein the candidate device is the device that sends the broadcast information and / or the second information. After displaying the device list, the user can select the identification of one or more candidate devices in the device list, and the first application in the first device receives the selection operation of the user, and determines the second device according to the selection operation of the user on the identification of one or more candidate devices. It can be understood that the device corresponding to the identification selected by the user is the second device. After obtaining the second device, the first application in the first device can initiate a connection request to the second device to establish the connection between the first device and the second device.

[0207] By displaying the device list, the user can select the device to which the user wants to transfer the application flow, improve the accuracy of the application flow transfer, and improve the user experience.

[0208] To improve the reliability of the connection between the first device and the second device, in some examples, the connection between the first device and the second device can also be subjected to reliability verification. For example, after receiving the broadcast information of the second device or receiving the second information fed back by the second device according to the first information, the first device can send a verification request to the second device. The second device receives the verification request and displays the verification code. The first device receives the verification code input by the user, and sends a connection request to the second device according to the verification code input by the user, wherein the connection request carries the verification code input by the user. After receiving the connection request, the second device compares the verification code in the connection request with the generated verification code, and establishes the connection with the first device if the verification codes are consistent.

[0209] For example, after receiving the broadcast information of the second device or receiving the second information fed back by the second device according to the first information, the first application in the first device can call the communication module of the first device through the first interface plug-in, and send a verification request to the second device through the communication module of the first device. The first application of the second device receives the verification request, generates a verification code, and displays the verification code in the current application interface.

[0210] After the first application in the first device sends a verification request to the second device, the first application in the first device can display a verification code input area in the current application interface. The user can input the verification code displayed by the second device in the verification code input area. The first application in the first device can obtain the verification code in response to the operation of the user in the verification code input area.

[0211] When the first application in the first device gets the check code input by the user, the first application can call the communication module of the first device through the first interface plug-in, and send a connection request to the second device through the communication module of the first device, where the connection request carries the check code input by the user.

[0212] After the first application in the second device receives the connection request, the first application can compare the check code in the connection request with the displayed check code. When the check code in the connection request is consistent with the displayed check code, the first application in the second device can call the communication module of the second device through the second interface plug-in, send connection response information to the first device through the communication module of the second device, and thereby establish the connection between the first device and the second device.

[0213] It can be understood that the above is only an example of the trusted check of the first device and the second device in the embodiments of the present application, and is not a limitation. In some examples, other ways can also be implemented, and the specific implementation can be set according to actual needs. For example, in some examples, the first device can also display the check code, and the second device can display a check code input area after receiving the check request, the user can input the check code displayed by the first device in the check code input area displayed by the second device, and the second device can initiate trusted check to the first device according to the check code input by the user.

[0214] For another example, the first device and the second device can also perform trusted check through a pop-up prompt. The first application of the first device sends a connection request to the second device. After the first application of the second device receives the connection request, the first application of the second device can display a pop-up prompt of "please confirm whether to establish a connection with the first device". When the first application in the second device receives the confirmation operation of the user, the first application in the second device sends connection response information to the first device, and thereby establishes a trusted connection between the first device and the second device.

[0215] As an example, for the first device and the second device that have established a trusted connection, when the application flow of the same application (such as the first application in the first device and the first application in the second device) is transferred next time, the trusted check can not be performed, and the connection can be directly established to transfer the application flow.

[0216] Through the trusted check, the embodiments of the present application can improve the reliability of the connection between devices, and thereby improve the security of data during the application flow.

[0217] The following takes the first device as a mobile phone and the second device as a car machine, and takes the navigation flow of a map application as an example to illustrate the establishment of a connection between the mobile phone and the car machine by searching for connectable devices. The operating systems of the mobile phone and the car machine can be different. The mobile phone and the car machine both have a map application installed thereon, and the map applications installed on the mobile phone and the car machine both include a cross-platform module. For ease of understanding, the map application on the mobile phone is described as a first map application, and the map application on the car machine is described as a second map application. The first map application and the second map application can be the same application, i.e., a map application developed by the same application developer for providing navigation services, such as the first map application and the second map application both being A map application.

[0218] It can be understood that in some examples, the first map application and the second map application can be different applications, i.e., map applications developed by different application developers for providing navigation services, such as the first map application being A map application and the second map application being B map application.

[0219] Please refer to FIG. 9, which is a timing flow diagram of the navigation flow of a map application provided by an embodiment of the present application. As shown in FIG. 9, the navigation flow process of the map application provided by the embodiment of the present application can include S401 to S411.

[0220] S401, the mobile phone runs the first map application.

[0221] The first map application is installed in the mobile phone, and the mobile phone can receive the operation of the user on the first map application and run the first map application.

[0222] For example, the mobile phone can receive the operation of the user on the interface and run the first map application, or can receive the voice operation of the user and run the first map application. For details, please refer to the description of the operation of the first device on the first application above, which will not be described here.

[0223] S402, the mobile phone receives the destination information input by the user in the interface of the first map application and performs navigation according to the destination information.

[0224] For example, after the mobile phone runs the first map application, the first map application can display a first map interface. The user can input destination information in the first map interface. As shown in FIG. 10, the first map interface 20 displayed by the first map application in the mobile phone includes an address input control 21, and the user can input destination information in the address input control 21 of the first map interface 20. The mobile phone can receive the destination information input by the user in the address input control 21 and perform navigation according to the destination information.

[0225] Exemplarily, after the user inputs in the address input control of the first map interface, i.e., inputs the destination information, the first map application in the mobile phone can capture the input event of the user, and parse the destination information. Then the first map application can call the map API, and plan the route according to the current position of the user and the destination information, to obtain the navigation route.

[0226] In some examples, the mobile phone can display a second map interface, and display the navigation route in the second map interface. Exemplarily, as shown in FIG. 11, after obtaining the navigation route, the first map application running on the mobile phone can update the application interface to obtain a second map interface 30, and the second map interface 30 includes a navigation route 31.

[0227] Taking the architecture shown in FIG. 4 as an example, in the process of running, the first map application, such as the ArkUI framework in the first map application, can capture the input event of the user in the first map interface, call the map API according to the input event, plan the route according to the current position of the user and the destination information, and call the graphic rendering engine to render the second map interface.

[0228] It can be understood that in the process of navigation, the first map application running on the mobile phone can continuously track the current position, update the navigation route according to the current position, and dynamically display in the second map interface.

[0229] S403, the car machine starts and runs the second map application.

[0230] Exemplarily, after starting, the car machine can run the second map application by default. The car machine can also receive the operation of the user on the icon of the second map application, and run the second map application. The specific process can refer to the process of receiving the operation of the user on the first map application by the mobile phone, and running the first map application, which is not described herein.

[0231] In some examples, in the case that the car machine runs the second map application by default, the second map application can run in the background. In the case that the car machine receives the operation of the user and runs the second map application, the second map application can run in the foreground.

[0232] S404, the car machine receives the opening operation of the user on the switch module, and sends the broadcast information.

[0233] The second map application in the car machine can provide the switch module through the included cross-platform module. In the case that the state of the switch module is the opening state, the distributed capability of the second map application is opened, and in the case that the state of the switch module is the closing state, the distributed capability of the second map application is closed.

[0234] The second map application controls the state of the switch module by receiving the operation of the switch module by the user, to control the opening / closing of the distributed capability of the second map application. For example, the second map application can display the switch module on the car machine after the second map application runs on the car machine.

[0235] As an example, the switch module can be displayed in the application interface of the second map application. For example, as shown in (a) of FIG. 12, in the case that the second map application runs in the foreground, the second map application can display the switch module 41 in the current application interface 40. The switch module can also be displayed in the user interface of the car machine. For example, as shown in (b) of FIG. 12, in the case that the second map application runs in the background, the car machine displays the user interface 50 in the foreground, and the user interface 50 includes the switch module 51 and the icons of other applications (such as music playing, radio, map (i.e., the second map application), etc.).

[0236] After displaying the switch module, the second map application can obtain the operation of the switch module by the user, and obtain the state of the switch module according to the operation of the switch module by the user.

[0237] When the user opens the switch module, the state of the switch module is in the open state, and when the user closes the switch module, the state of the switch module is in the closed state.

[0238] The second map application in the car machine can send broadcast information through the cross-platform module included to announce its existence when the state of the switch module is in the open state. The process of the second map application sending the broadcast information can refer to the description of S303 above, and will not be described here.

[0239] In the embodiments of the present application, the first map application in the mobile phone can listen to the broadcast information sent by the car machine through the cross-platform module included. The specific process can refer to the description of S303 above, and will not be described here.

[0240] S405, the mobile phone sends first information to scan the car machine that can be connected around.

[0241] The first map application in the mobile phone can send the first information through the cross-platform module included to find the car machine that can be connected around. The specific process can refer to the process of the first application sending the first information in S303 above, and will not be described here.

[0242] In the embodiments of the present application, the second map application in the car machine can listen to the first information sent by the mobile phone through the cross-platform module included, and can send the second information to the mobile phone through the cross-platform module included. The specific process can refer to the description of S303 above, and will not be described here.

[0243] It can be understood that the embodiments of the present application do not limit the execution order of S404 and S405. S405 can be executed before S404, or can be executed after S404. In some examples, S404 and S405 can also be executed synchronously.

[0244] S406, the mobile phone displays a device list, receives a selection operation of the user on the device list, and obtains a car machine to be connected.

[0245] When there are multiple car machines around the mobile phone, in order to enable the mobile phone to establish a connection with the car machine that the user wants to navigate to, after the communication module in the mobile phone receives the second information fed back by the car machine according to the first information and / or the broadcast information sent by the car machine, the second information and / or the broadcast information can be fed back to the first map application. The first map application can display a device list according to the received second information and / or broadcast information.

[0246] Exemplarily, the first map application can display the device list in the current application interface, such as the second map interface. The device list can include the identification of the car machine that feeds back the second information and / or the car machine that sends the broadcast information. As shown in FIG. 13, the first map application can display a device list 32 in the second map interface 30, and the device list 32 includes the identification of the car machine X1, the identification of the car machine X2, and the identification of the car machine X3.

[0247] After the first map application displays the device list, the user can select the identification in the device list, that is, select the car machine to establish a connection with the mobile phone. The first map application in the mobile phone can determine the car machine corresponding to the identification selected by the user as the car machine to be connected in response to the selection operation of the user.

[0248] S407, the mobile phone sends a verification request to the car machine to be connected.

[0249] Among them, after the first map application in the mobile phone determines the car machine to be connected, the first map application in the mobile phone can send a verification request to the car machine through the cross-platform module included in the first map application.

[0250] S408, the car machine receives the verification request and displays a verification code.

[0251] Among them, after the second map application in the car machine receives the verification request, the second map application in the car machine can generate and display a verification code.

[0252] S409, the mobile phone receives the verification code input by the user, and establishes a connection with the car machine according to the verification code input by the user.

[0253] Among them, as shown in FIG. 14, after the first map application in the mobile phone sends a verification request to the car machine through the cross-platform module included in the first map application, the first map application in the mobile phone can display a verification code input area 33 in the current application interface, such as the second map application interface 30.

[0254] Users can enter the verification code displayed on the vehicle's infotainment system in the verification code input area. The First Map application can then respond to the user's input in the verification code input area and obtain the verification code.

[0255] In this embodiment of the application, after the first map application on the mobile phone obtains the verification code entered by the user, it can send a connection request to the vehicle system through the included cross-platform module. The connection request carries the verification code entered by the user.

[0256] Upon receiving a connection request, the second map application in the vehicle's infotainment system compares the verification code in the connection request with the displayed verification code. If the verification code in the connection request matches the displayed verification code, the second map application can send a connection response message to the mobile phone through its included cross-platform module, thereby establishing a connection between the mobile phone and the vehicle's infotainment system.

[0257] S410: The mobile phone transfers navigation data from the first map application to the vehicle's infotainment system.

[0258] Once the mobile phone and the vehicle's infotainment system are connected, the mobile phone can transfer navigation data from the First Map application to the vehicle's infotainment system.

[0259] For example, after receiving the connection response information sent by the vehicle's infotainment system, the first map application on the mobile phone can transfer navigation data to the vehicle's infotainment system through the included cross-platform module.

[0260] S411: The vehicle's infotainment system receives navigation data and performs navigation based on that data.

[0261] After receiving navigation data from the mobile phone, the vehicle's infotainment system can use the second map application to navigate based on that data.

[0262] For example, after receiving navigation data, the vehicle's communication module can feed the navigation data back to a second map application. Upon receiving the navigation data, the second map application can then continue navigation based on that data.

[0263] In some examples, navigation data may include destination information and the current user's location from the first map application's navigation process. After obtaining the navigation data, the second map application can plan a route based on the destination information and the current user's location, and then continue navigation according to the planned route, ensuring uninterrupted map navigation.

[0264] In some examples, navigation data may include information about a navigation route planned by a first map application. After obtaining the navigation data, a second map application can continue navigation based on the navigation route information in the navigation data, ensuring uninterrupted map navigation.

[0265] It can be understood that, in the process of navigation, the car machine can display a third map interface, in which the second map application displays a navigation route of the navigation. The third map interface is an application interface displayed by the second map application after the navigation.

[0266] In some examples, the navigation data can further include interface content of the application interface currently displayed by the first map application. After obtaining the navigation data, the second map application can display the third map interface according to the interface content of the navigation data, that is, the third map interface is the same as the interface content of the application interface currently displayed by the first map application.

[0267] In order to improve the convenience of operation, in some examples, as shown in FIG. 15, after the user selects the car machine X1, the first map application in the mobile phone can send a connection request to the car machine X1 through the included cross-platform module. After receiving the connection request, the second map application in the car machine X1 can directly display a pop-up prompt of “please confirm whether to establish a connection with the mobile phone”. After the second map application in the car machine X1 receives the confirmation operation of the user, the second map application in the car machine X1 sends connection response information to the mobile phone through the included cross-platform module. After receiving the connection response information sent by the car machine, the first map application in the mobile phone can transfer the navigation data to the car machine X1 through the included cross-platform module. The second map application in the car machine X1 continues to navigate. In this way, it is not necessary to verify by inputting a verification code, and the convenience of user operation is improved.

[0268] It can be understood that, in the case that the second map application declares a listening function to the operating system of the car machine, the car machine can also not run the second map application after starting. The car machine can also run the second map application after listening to the first information, and can also run the second map application after receiving the connection request, which is not limited.

[0269] Embodiments of the present application deploy a cross-platform module in a map application, without the need for application developers to develop multiple versions of map applications for different operating systems. Only one development is needed, which can realize navigation transfer between mobile phones and car machines with different operating systems, reducing the difficulty and workload of application development.

[0270] The following takes the first device as a mobile phone and the second device as a playback device, and takes the mobile phone and the playback device establishing a connection by searching for connectable devices as an example to describe the audio stream transfer of the audio application. The playback device can be a sound box, a smart screen, or the like. The operating systems of the mobile phone and the playback device can be different. The mobile phone and the playback device both have an audio application installed thereon, and the audio application installed on the mobile phone and the playback device both includes a cross-platform module. For ease of understanding, the audio application on the mobile phone is described as a first audio application, and the audio application on the vehicle machine is described as a second audio application. The first audio application and the second audio application can be the same application, i.e., an application developed by the same application developer for providing an audio playback service, such as the first audio application and the second audio application both being an A audio application. It can be understood that in some examples, the first audio application and the second audio application can be different applications, i.e., applications developed by different application developers for providing an audio playback service, such as the first audio application being an A audio application and the second audio application being a B audio application.

[0271] Please refer to FIG. 16, which is a timing flow diagram of the audio stream transfer of the audio application provided in the embodiments of the present application. As shown in FIG. 16, the audio stream transfer process of the audio application provided in the embodiments of the present application can include S501 to S506.

[0272] S501, the mobile phone runs the first audio application.

[0273] The process in which the mobile phone runs the first audio application can refer to the process in which the mobile phone runs the first map application, and will not be described here.

[0274] After the mobile phone runs the first audio application, the first audio application can play audio.

[0275] S502, the mobile phone sends first information to scan for connectable playback devices in the surrounding area.

[0276] When performing the audio stream transfer of the audio application, the mobile phone can first scan for connectable playback devices in the surrounding area, and then perform the audio stream transfer of the audio application after establishing a connection with the playback device.

[0277] In the embodiments of the present application, the first audio application in the mobile phone can send first information to the surrounding area through the cross-platform module included therein to find a playback device that can establish a connection.

[0278] It can be understood that, in order to enable the mobile phone and the playback device to quickly establish a connection and improve the discovery efficiency and reliability of the devices, the second audio application in the playback device can also send broadcast information through the cross-platform module included therein.

[0279] S503, the mobile phone displays a device list, receives a selection operation of the user on the device list, and obtains a playing device to be connected.

[0280] When there are multiple playing devices that can be connected, the first audio application in the mobile phone can also display a device list to facilitate the user to select a playing device to which the audio stream is to be transferred. The specific process can be referred to the description of S406, and will not be described here.

[0281] S504, the mobile phone performs trusted verification with the playing device to be connected, and establishes a connection with the playing device to be connected after the trusted verification is passed.

[0282] For the mobile phone and the playing device that establish a connection for the first time, in order to improve the reliability of the connection, trusted verification can also be performed between the mobile phone and the playing device to be connected. After the trusted verification is passed, the mobile phone and the playing device to be connected establish a connection. The specific process can be referred to the description of S407, S408 and S409, and will not be described here.

[0283] For the mobile phone and the playing device that have established a trusted connection through the cross-platform module of the audio application, trusted verification can not be performed, and a connection can be directly established to transfer the audio stream.

[0284] S505, the mobile phone transfers the audio data stream of the first audio application to the playing device.

[0285] After the mobile phone establishes a connection with the playing device to be connected, the first audio application in the mobile phone can transfer the audio data to the playing device through the included cross-platform module.

[0286] S506, the playing device receives the audio data and performs audio playing according to the audio data.

[0287] After receiving the audio data sent by the mobile phone, the playing device can continue to perform audio playing through the second audio application according to the audio data.

[0288] For example, after receiving the audio data, the communication module of the playing device can feed back the audio data to the second audio application. After obtaining the audio data, the second audio application can continue to perform audio playing according to the audio data.

[0289] In some examples, the audio data can include unplayed data of the currently played audio of the first audio application. After obtaining the audio data, the second audio application can continue to perform audio playing according to the unplayed data in the audio data, so that the playing of the currently played audio can be continued on the playing device, the audio stream can be transferred, and the audio playing is not interrupted.

[0290] In some examples, in order to switch the audio playing source in the mobile phone to the playing device in the target location area (such as home), the mobile phone acquires the current location information and network information, and performs device scanning according to the current location information and network information. Based on this, S502a can be further included before S502, which is an optional step.

[0291] In S502a, the mobile phone acquires the current location information and network information, and determines whether the current location information and network information meet the set device scanning condition.

[0292] Exemplarily, the first audio application in the mobile phone can acquire the current location information and network information, and determine whether the current location information and network information meet the set device scanning condition. In the case where the current location information and network information meet the set scanning condition, the first audio application in the mobile phone can send the third information through the included cross-platform module.

[0293] The current location information refers to the location information where the mobile phone is currently located, and the network information refers to the service set identifier (SSID), network name, etc. of the network to which the mobile phone is currently connected.

[0294] The first audio application in the mobile phone can send a location request and a network request to the operating system of the mobile phone through the included cross-platform module, to acquire the current location information and network information.

[0295] The mobile phone stores the location information of the target location area and the network information of the network set in the target location area. The specific implementation of the first audio application in the mobile phone to determine whether the current location information and network information meet the set device scanning condition can be that the current location information can be compared with the stored location information of the target location area, and the current network information can be compared with the network information of the network set in the specific location.

[0296] If the current location information is consistent with the stored location information of the target location area, and / or the current network information is consistent with the network information of the network set in the specific location, it is determined that the current location information and network information meet the set device scanning condition. Otherwise, the set device scanning condition is not met.

[0297] In the case where the current location information is consistent with the stored location information of the target location area, and / or the current network information is consistent with the network information of the network set in the specific location, it indicates that the mobile phone has entered the target location area, and / or has connected to the network set in the target location area. The first audio application in the mobile phone can send the first information through the included cross-platform module, to scan whether there is a connectable playing device in the target location area.

[0298] In the case of connecting to the network set in the target location area, the first audio application in the first device can scan by using the network, that is, the first audio application can call the WiFi communication module to send the first information through the interface plug-in to scan the playing device connected to the same network. It can be understood that, in the case of connecting to the network set in the target location area, the first audio application in the first device can also call the Bluetooth module, the NFC module and other communication modules to send the first information through the interface plug-in in the included cross-platform module to scan the playing device that can be connected in the same target location area.

[0299] In this way, by obtaining the current location information and network information, and performing device scanning based on the current location information and network information, the audio in the mobile phone can be seamlessly and smoothly switched to the playing device in the target location area after reaching the target location area.

[0300] The embodiment of the present application deploys the cross-platform module in the audio application, so that the audio application can realize audio stream transfer between the mobile phone and the playing device with different operating systems through the cross-platform module, and only needs to be developed once, that is, the audio stream transfer on different operating systems can be realized, which reduces the difficulty and workload of application development.

[0301] The above is only an example of application stream transfer in different scenarios by the embodiment of the present application. It can be understood that, by deploying the cross-platform module in the application, the embodiment of the present application can realize cross-operating system application stream transfer in more scenarios. For example, file sharing of a document editing application is described. The operating systems of the first device and the second device are different, and the first device and the second device both install the document editing application. The document editing application installed on the first device and the second device both includes the cross-platform module. The document editing application installed on the first device and the second device can be the same application or different applications.

[0302] The document editing application in the first device can scan the second device that can be connected through the included cross-platform module during running. After scanning the second device that can be connected, the document editing application in the first device can initiate connection through the included cross-platform module to establish connection between the first device and the second device. After establishing the connection, the document editing application in the first device can share the file currently being processed to the second device. After receiving the file shared by the document editing application in the first device, the document editing application in the second device can continue to process the file. For example, the file is displayed to facilitate the user to continue editing. For another example, the file can be stored. The specific implementation is not limited.

[0303] The cross-system device cooperation method provided in the embodiments of the present application enables the application to perform device discovery, communication and the like through the cross-platform module, without the need for the application developer to develop multiple versions of the application for different operating systems, but only needs to be developed once, that is, can be published on different operating systems, communicate between different operating systems, implement distributed behaviors such as navigation transfer, audio transfer, file sharing, and the like, thereby reducing the difficulty and cost of application development.

[0304] In some examples, the application can also communicate with the operating system with distributed capabilities through the cross-platform module to implement data transmission.

[0305] For ease of understanding, the first device and the third device are taken as examples for description below. As shown in FIG. 17, the first device and the third device both have the A application installed therein, and the operating systems of the first device and the third device are different. The A application in the first device deploys the cross-platform module, the operating system of the third device provides the same capability as the cross-platform module, and the operating system of the first device does not have the same capability as the cross-platform module. When the A application in the first device runs, device scanning can be performed through the cross-platform module in the A application.

[0306] When the third device is scanned, the A application in the first device can initiate connection with the third device through the included cross-platform module, and the third device can establish connection with the first device through the cross-platform module capability provided by the operating system thereof. The third device can listen through the operating system to respond to the device scanning of the first device and establish connection with the first device.

[0307] After the connection is established, the A application in the first device can send the application data of the A application to the third device through the included cross-platform module. The third device can receive the application data through the operating system and perform processing on the application data, such as storage, sharing and the like.

[0308] In the case where the third device includes the A application, after the third device receives the application data through the operating system, the third device can also feed back the application data to the A application in the third device, so that the A application processes according to the application data.

[0309] It can be understood that in the case where the operating system of the third device provides the same capability as the cross-platform module, the A application in the third device can not deploy the cross-platform module.

[0310] It can be understood that in the case where the first device scans the second device which has the A application installed and the A application deploys the cross-platform module, the application flow of the A application between the first device and the second device can refer to the example described in FIG. 6 above, which will not be described herein.

[0311] The embodiment of the present application makes the application capable of discovering devices through the cross-platform module and communicating with devices having distributed capability of the operating system, etc. by deploying the cross-platform module in the application and / or providing the same capability as the cross-platform module in the operating system, so that the application developer only needs to develop the application once, i.e. is capable of communicating between different operating systems through a set of codes, realizing distributed behaviors such as navigation flow transfer, audio flow transfer, file sharing, etc., thereby reducing the difficulty and cost of application development.

[0312] On the basis of the above, please refer to 18, the embodiment of the present application also provides a cross-system device collaboration apparatus 600 applied to the first device or the second device shown in FIG. 2. Exemplarily, the device collaboration apparatus 600 can be integrated in the first device or the second device in a hardware manner, or can be stored in the first device or the second device in a software manner. Taking the application to the first device as an example for description, as shown in FIG. 18, the device collaboration apparatus 600 includes a processing module 610 and a flow transfer module 620.

[0313] The processing module 610 is configured to run a first application, and the first application includes a first cross-platform module.

[0314] The flow transfer module 620 is configured to transfer application data of the first application to a second device through the first cross-platform module, and the operating system of the first device is different from that of the second device.

[0315] For the convenience and brevity of description, the specific working process of the device collaboration apparatus 600 described above can refer to the corresponding process in the foregoing method embodiment, which will not be described herein.

[0316] On the basis of the above, the embodiment of the present application also provides a device 700, which can be the first device or the second device in FIG. 2. Please refer to FIG. 19. FIG. 19 is a structural schematic diagram of the device 700 provided by the embodiment of the present application. As shown in FIG. 19, the device 700 includes a processor 710, an external memory interface 720, an internal memory 721, an antenna 1, an antenna 2, a mobile communication module 730, a wireless communication module 740, a sensor module 750, a display screen 760, etc.

[0317] The processor 710 can include one or more processing units, for example: the processor 710 can include a central processing unit (CPU), an application processor (AP), a modem processing unit, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a neural-network processing unit (NPU), a network processor (NP) and / or a communication processor (CP), etc. Different processing units can be independent components or integrated in one or more processors.

[0318] The controller can be the nerve center and command center of the device 700. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0319] The processor 710 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 710 is a cache memory. The memory can save instructions or data that have just been used or are frequently used by the processor 710. If the processor 710 needs to use the instructions or data again, it can be directly called from the memory, avoiding repeated access and reducing the waiting time of the processor 710.

[0320] The wireless communication function of the device 700 can be realized by the antenna 1, the antenna 2, the mobile communication module 730, the wireless communication module 740, the modem processing unit and the baseband processing unit, etc.

[0321] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the device 700 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example: the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0322] The mobile communication module 730 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the device 700. The mobile communication module 730 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.

[0323] The mobile communication module 730 can receive electromagnetic waves via the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit the processed signals to the modem processor for demodulation. The mobile communication module 730 can also amplify signals modulated by the modem processor, and convert the amplified signals into electromagnetic waves via the antenna 1 for emission. In some embodiments, at least part of the functions of the mobile communication module 730 can be implemented in the processor 710. In some embodiments, at least part of the functions of the mobile communication module 730 can be implemented in the same device as at least part of the processor 710.

[0324] The wireless communication module 740 can provide wireless communication solutions applied on the device 700, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, and the like. The wireless communication module 740 can be one or more devices that integrate at least one communication processing module. The wireless communication module 740 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 710. The wireless communication module 740 can also receive signals to be transmitted from the processor 710, perform frequency modulation and amplification, and convert the signals into electromagnetic waves via the antenna 2 for emission.

[0325] In some embodiments, the antenna 1 and the mobile communication module 730 of the device 700 are coupled, and the antenna 2 and the wireless communication module 740 are coupled, so that the device 700 can communicate with networks and other devices through wireless communication technologies.

[0326] The external memory interface 720 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the device 700. The external memory card communicates with the processor 710 via the external memory interface 720 to implement data storage functions. For example, music, video, and other files can be saved in the external memory card.

[0327] The internal memory 721 can be used to store computer-executable program code including instructions. The internal memory 721 can include a program storage area and a data storage area. The program storage area can store an operating system, application programs (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, a phone book, etc.) created during use of the device, and the like. In addition, the internal memory 721 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 710 executes various function applications and data processing of the device 200 by running instructions stored in the internal memory 721 and / or instructions stored in a memory disposed in the processor.

[0328] In embodiments of the present application, the sensor module 750 includes a touch sensor.

[0329] The touch sensor, also referred to as a "touch panel". The touch sensor can be disposed on the display screen 760, and the touch sensor and the display screen 760 form a touch screen, also referred to as a "touch screen". The touch sensor is used to detect a touch operation acting on or near the touch sensor. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type and provide visual output related to the touch operation through the display screen 760. In other embodiments, the touch sensor can also be disposed on the surface of the device 700, which is different from the position where the display screen 760 is located.

[0330] In embodiments of the present application, the display screen 760 can also be used to display application interfaces, interactive interfaces, and the like. The display screen 760 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), and the like. In some embodiments, the device 700 can include one or N display screens 760, where N is a positive integer greater than 1.

[0331] It can be understood that the structure of the embodiments of the present application does not constitute a specific limitation of the device 700. In other embodiments of the present application, the device 700 can include more or fewer components than those shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software or a combination of software and hardware.

[0332] In addition, the embodiments of the present application also provide a device, comprising: at least one application, the at least one application comprising a cross-platform module; a memory for storing computer program instructions; and a processor for executing the computer program instructions to enable the application to run and support the device to implement the above embodiments.

[0333] In addition, the embodiments of the present application also provide a communication system, comprising the first device and the second device shown in FIG. 2, the first device and the second device comprising a first application, the first application comprising a cross-platform module; the first application in the first device and the second device can perform application flow between the first device and the second device through the cross-platform module to implement the embodiments of the above method.

[0334] In addition, the embodiments of the present application also provide a communication system, comprising the first device and the third device shown in FIG. 17, the first device comprising a first application, the first application comprising a cross-platform module; the operating system of the third device is provided with the same capability as the cross-platform module; the first device is configured to communicate with the operating system of the third device through the platform module of the first application to implement data transmission between the first application in the first device and the third device.

[0335] In some examples, the third device can store the received application data. In some examples, the third device is further configured to run a first application included in the third device according to the received application data, the first application included in the third device not comprising a cross-platform module.

[0336] The embodiments of the present application also provide a computer readable storage medium having computer program instructions stored thereon, the computer program instructions, when executed by a processing circuit, implement the functions or steps in the above method.

[0337] In addition, the embodiments of the present application can also provide a computer program product containing instructions, when the computer program product is run on a computer, the computer executes the functions or steps in the above method.

[0338] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described computer readable storage medium, computer program product containing instructions, device and communication system can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.

[0339] It can be understood that, the steps of the methods or algorithms described in connection with the embodiments disclosed in the specification can be implemented by hardware, or by a combination of software and hardware. Whether the software instructions are executed on a separate processor or on a general-purpose processor, the processor receives and executes the software instructions, and produces corresponding results. The results can be stored in any form of a storage medium.

[0340] In an alternative, when implemented using software, the processes or functions described in the embodiments disclosed in the specification can be implemented in whole or in part by using a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments disclosed in the specification are implemented in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable apparatus. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center through a wired (such as a coaxial cable, optical fiber, digital subscriber line (DSL), or wireless (such as infrared, wireless, microwave, etc.)) manner. The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital video disk (DVD)), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0341] The above describes only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A cross-system device coordination method, characterized in that, The method is applied to a first device, and comprises: running a first application, the first application comprising a first cross-platform module; sending, by the first cross-platform module, application data of the first application to a second device, the first device having a different operating system from the second device.

2. The method of claim 1, wherein, The second device runs the first application, and the first application on the second device comprises a second cross-platform module; The sending, by the first cross-platform module, of the application data of the first application to the second device comprises: The first application in the first device communicates with the second cross-platform module through the first cross-platform module, and sends the application data to the first application in the second device based on the communication.

3. The method of claim 1, wherein, The second device runs a second application, and the second application comprises a third cross-platform module; The sending, by the first cross-platform module, of the application data of the first application to the second device comprises: The first application in the first device communicates with the third cross-platform module through the first cross-platform module, and sends the application data to the second application in the second device based on the communication.

4. The method of claim 1, wherein, The operating system of the second device is provided with the same capability as the first cross-platform module; The sending, by the first cross-platform module, of the application data of the first application to the second device comprises: The first application in the first device communicates with the operating system of the second device through the first cross-platform module, and sends the application data to the second device based on the communication.

5. The method according to any one of claims 1 to 4, characterized in that, The first cross-platform module comprises a first interface plug-in, the first interface plug-in having the capability of calling a communication module of a device with a different operating system, and being used to support data transmission between devices with different operating systems.

6. The method according to any one of claims 1 to 5, characterized in that, The first interface plug-in in the first cross-platform module and a second interface plug-in in the second cross-platform module satisfy the same calling form, and are used to provide the same interface calling capability for the first application on different operating systems; The second cross-platform module is a cross-platform module comprised by the first application on the second device.

7. The method according to claim 5 or 6, characterized in that, The sending, by the first cross-platform module, of the application data of the first application to the second device comprises: The first application calls the communication module of the first device through the first interface plug-in, and sends the application data of the first application to the second device through the communication module.

8. The method according to any one of claims 5-7, characterized in that, The method further comprises: The first application calls the communication module of the first device through the first interface plug-in, searches for connectable devices, and the connectable devices comprise the second device; The first application calls the communication module of the first device through the first interface plug-in, and establishes a connection with the second device.

9. The method of claim 8, wherein, The first application calls the communication module of the first device through the first interface plug-in, searches for connectable devices, and comprises: The first application calls the communication module of the first device through the first interface plug-in, and receives broadcast information through the communication module; In a case where the broadcast message of the second device is received, it is determined that the connectable devices comprise the second device.

10. The method according to claim 8 or 9, characterized in that, The first application calls a communication module of the first device through the first interface plug-in, searches for connectable devices, and includes: The first application calls the communication module of the first device through the first interface plug-in, sends first information through the communication module, and receives second information through the communication module; In a case where the second information of the second device is received, it is determined that the connectable device includes the second device.

11. The method according to any one of claims 5-7, characterized in that, The method further includes: In a case where the distance between the first device and the second device is within a preset distance range, the first application calls the communication module of the first device through the first interface plug-in, obtains connection information of the second device, and establishes a connection with the second device according to the connection information of the second device.

12. The method according to any one of claims 5-11, characterized in that, The first cross-platform module further includes an application compiling module, and the method further includes: The business code of the first application is parsed and compiled through the application compiling module, and the business code of the first application is executed to obtain application data of the first application.

13. The method according to any one of claims 5-12, characterized in that, The first cross-platform module further includes an application interface processing module, and the application interface processing module is configured to draw interface content in an application interface of the first application; The first cross-platform module further includes an application interface processing module, and the application interface processing module is configured to draw interface content in an application interface of the first application; The first application calls the communication module of the first device through the first interface plug-in, and sends the interface content of the application interface of the first application to the second device through the communication module.

14. The method according to any one of claims 1 to 13, characterized in that, The first application is any one of a map application, an audio application, and a document editing application.

15. An apparatus, comprising: It includes: At least one application including a cross-platform module; A memory for storing a computer program; A processor for executing the computer program stored in the memory, running the application, and performing the method of any one of claims 1-14.

16. A computer-readable storage medium, characterized in that, The computer readable storage medium includes a computer program or instructions, which, when executed on a computer, cause the computer to perform the method of any one of claims 1-14.

17. A computer program product, characterised in that, The computer program product includes: a computer program or instructions, when the computer program or instructions are executed on a computer, cause the computer to perform the method of any one of claims 1-14. The computer program product includes: a computer program or instructions, when the computer program or instructions are executed on a computer, cause the computer to perform the method of any one of claims 1-14.

Citation Information

Patent Citations

  • Method and device for providing services for cross-system application

    CN106951294A

  • Cross-platform communication data fusion distribution design implementation method

    CN113055486A

  • Method and device for realizing functions in application program, electronic equipment and storage medium

    CN113094123A

  • Device and method for operating application programs across operating systems

    CN115391061A

  • Application cross-device circulation method, related device and communication system

    CN118113305A