Application presentation method, electronic equipment and external equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU SHIYUAN ELECTRONICS CO LTD
- Filing Date
- 2024-01-15
- Publication Date
- 2026-05-05
AI Technical Summary
In dual operating system devices, the process of presenting applications across systems is cumbersome, resulting in inefficiency.
By installing a collaborative application on the first operating system, actively request application list information from the second operating system using a cross-system communication mechanism, and perform editing operations in the desktop editing window, the target application information is generated and transmitted to the desktop launcher to present the target application on the desktop of the first operating system.
It realizes simple and fast presentation of cross-system applications, saves computing power and memory resources, improves user experience, and does not need to install capture programs on the second operating system and monitors the status of the first operating system at the moment.
Smart Images

Figure CN121986319A_ABST
Abstract
Description
Application presentation method, electronic device, and external device Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular to a method for presenting an application, an electronic device, and an external device. Background Art
[0002] The dual-system device provided by the related art can be equipped with dual operating systems, wherein the dual operating systems include a first operating system and a second operating system, and both the first operating system and the second operating system can install applications. In some application scenarios, when the dual-system device is currently running the first operating system and people need to open applications in the second operating system, people need to operate the dual-system device, exit the first operating system from the foreground, switch the second operating system to the foreground, and the second operating system will display its own applications on the desktop. The user then searches for the application to be opened on the desktop of the second operating system. This process is relatively cumbersome and inefficient in opening applications.
[0003] Summary of the Invention
[0004] One purpose of the embodiments of the present application is to provide a method for presenting an application, an electronic device, and an external device to solve the technical problem that the process of presenting an application across systems in related technologies is relatively complicated.
[0005] In a first aspect, an embodiment of the present application provides an application presentation method, applied to an electronic device, the electronic device being configured to communicate with an external device, the electronic device running a first operating system, the external device running a second operating system, the second operating system being different from the first operating system, the first operating system being installed with a collaborative application and a desktop launcher, the method comprising:
[0006] In response to the start operation received by the collaborative application, controlling the collaborative application to send an application list request to the external device, so that the external device returns application list information according to the application list request, the application list information including application information of at least one candidate application, the at least one candidate application being an application running on the second operating system;
[0007] Controlling the collaborative application to present a desktop editing window, wherein the desktop editing window includes application information of at least one of the candidate applications;
[0008] generating target application information in response to an edit operation input to the candidate application in the desktop editing window, the target application information including application information of at least one target application, the target application being the candidate application selected for display;
[0009] The cooperative application is controlled to transmit the target application information to the desktop launcher, so that the desktop launcher presents the target application on the desktop of the first operating system.
[0010] Optionally, the generating target application information in response to an editing operation input on the candidate application in the desktop editing window includes:
[0011] If the editing operation includes an adding operation, generating target application information based on the application information of the candidate application in response to the adding operation input to the candidate application in the desktop editing window; or
[0012] If the editing operation includes a cancel operation, the candidate application is eliminated in response to the cancel operation input to the candidate application in the desktop editing window.
[0013] Optionally, the target application information further includes a preset icon corresponding to each target application, and controlling the collaborative application to transmit the target application information to the desktop launcher so that the desktop launcher presents the target application on the desktop of the first operating system includes:
[0014] The collaborative application is controlled to transmit the target application information to the desktop launcher, so that the desktop launcher presents a preset icon of the target application on the desktop of the first operating system.
[0015] Optionally, the method further includes:
[0016] sending an icon acquisition request to the external device based on the collaborative application, so that the external device returns a target application icon corresponding to each target application according to the icon acquisition request;
[0017] updating the target application information according to the target application icon to obtain updated target application information;
[0018] The cooperative application is controlled to transmit the updated target application information to the desktop launcher, so that the desktop launcher performs a refresh operation to replace a preset icon of the target application with the target application icon.
[0019] Optionally, the method further includes:
[0020] In response to an application opening request sent by the desktop launcher, launching the collaborative application, wherein the application opening request is used to request the second operating system to open a preset application, an icon of the preset application is presented on the desktop of the first operating system, and the preset application is installed on the second operating system;
[0021] Controlling the collaborative application to send an application startup request to the external device, so that the external device starts a preset application according to the application startup request;
[0022] The application interface of the collaborative application is controlled to present the application interface of the preset application.
[0023] Optionally, the first operating system is installed with an intermediate layer application, the intermediate layer application can perform data transmission with the second operating system, and controlling the application interface of the collaborative application to present the application interface of the preset application includes:
[0024] Controlling the collaborative application to call the middle-layer application to obtain application data, where the application data is data of the preset application;
[0025] The collaborative application is controlled to load the application data so as to present the application interface of the preset application on the application interface of the collaborative application.
[0026] Optionally, before sending the application start request, the method further includes:
[0027] In response to the application opening request sent by the desktop launcher, obtaining desktop data of the second operating system based on the collaborative application;
[0028] The application interface of the collaborative application is controlled according to the desktop data to present the desktop of the second operating system.
[0029] Optionally, the first operating system is installed with an intermediate layer application, and the intermediate layer application can perform data transmission with the second operating system. Responding to the application opening request sent by the desktop launcher and obtaining desktop data of the second operating system based on the collaborative application includes:
[0030] In response to the application opening request sent by the desktop launcher, the collaborative application is controlled to call the desktop data of the second operating system obtained by the middle layer application.
[0031] Optionally, the first operating system configures a clipboard, and the method further includes:
[0032] acquiring the copied data sent by the external device based on the collaborative application;
[0033] The copied data is transmitted to the first operating system, so that the first operating system updates the copied data to the clipboard.
[0034] In a second aspect, an embodiment of the present application provides an application presentation method, which is applied to an external device, the external device being used to communicate with an electronic device, the electronic device running a first operating system, and the external device running a second operating system, the second operating system being different from the first operating system, the first operating system being installed with a collaborative application and a desktop launcher, the method comprising:
[0035] Obtaining an application list request sent by the collaborative application, where the application list information includes application information of at least one candidate application, where the at least one candidate application is an application running on the second operating system;
[0036] In response to the application list request, the application list information is sent to the collaborative application. The collaborative application can present a desktop editing window, and the desktop editing window includes application information corresponding to the candidate application. The collaborative application transmits target application information to the desktop launcher in response to the editing operation input on the candidate application in the desktop editing window. The target application information includes application information of at least one target application. The target application is the candidate application selected for display in the desktop editing window. The desktop launcher presents the target application on the desktop of the first operating system according to the target application information.
[0037] Optionally, the method further includes:
[0038] Obtaining an icon acquisition request sent by the collaborative application;
[0039] According to the icon acquisition request, the target application icon corresponding to each target application is sent to the collaborative application, so that the collaborative application updates the target application information according to the target application icon, and the desktop launcher performs a refresh operation according to the updated target application information to replace the preset icon of the target application with the target application icon.
[0040] Optionally, the first operating system is installed with an intermediate layer application, and the intermediate layer application can perform data transmission with the second operating system. The method further includes:
[0041] Obtaining a data acquisition request sent by the middle-tier application;
[0042] In response to the data acquisition request, application data is sent to the middle-layer application so that the collaborative application presents the application interface of the preset application on the application interface of the collaborative application according to the application data, and the application data is the data of the preset application.
[0043] Optionally, the first operating system is installed with an intermediate layer application, and the intermediate layer application can perform data transmission with the second operating system. The method further includes:
[0044] Obtaining a desktop acquisition request sent by the middle-layer application;
[0045] In response to the desktop acquisition request, desktop data of the second operating system is sent to the middle-layer application, so that the collaborative application calls the desktop data to present the desktop of the second operating system on the application interface of the collaborative application.
[0046] Optionally, the method further includes:
[0047] The copied data is sent to the cooperative application, so that the cooperative application transmits the copied data to the first operating system, and the first operating system updates the copied data to the clipboard.
[0048] In a third aspect, an embodiment of the present application provides an electronic device, characterized in that it includes a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the electronic device implements the above-mentioned method.
[0049] In a fourth aspect, an embodiment of the present application provides an external device comprising a memory and a processor, wherein the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the external device implements the above-mentioned method.
[0050] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the above method or the above method.
[0051] The embodiments of the present application can achieve the following technical effects: In the application presentation method provided in the embodiments of the present application, in response to a startup operation received by a collaborative application, the collaborative application is controlled to send an application list request to an external device, so that the external device returns application list information according to the application list request, the application list information includes application information of at least one candidate application, and the at least one candidate application is an application running on the second operating system; the collaborative application is controlled to present a desktop editing window, and the desktop editing window includes application information of at least one candidate application; in response to an editing operation input on the candidate application in the desktop editing window, target application information is generated, and the target application information includes application information of at least one target application, and the target application is a candidate application selected for display; the collaborative application is controlled to transmit the target application information to the desktop launcher, so that the desktop launcher presents the target application on the desktop of the first operating system. First, the embodiments of the present application can complete the task of presenting applications across systems based on the collaborative application. This method is simple and fast, and does not require manual switching between multiple operating systems. Second, in the embodiments of the present application, after the collaborative application is started, the collaborative application actively requests the application information of the application from the second operating system, without the need to install a capture program on the second operating system, and without the need for the first operating system to always work in a monitoring state, which can save computing power resources and memory resources. Again, the embodiment of the present application performs editing operations through the desktop editing window, and can customize the presentation of applications of the second operating system on the first operating system without displaying all applications of the second operating system on the desktop of the first operating system without reservation, thereby avoiding occupying too much memory of the first operating system and improving the user experience.
[0052] For better understanding and implementation, the embodiments of the present application are described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0054] FIG1 is a schematic diagram of a system architecture of a display system provided in an embodiment of the present application;
[0055] FIG2 is a circuit principle block diagram of the electronic device shown in FIG1 ;
[0056] FIG3 is a flow chart of a method for presenting an application program according to an embodiment of the present application, wherein the execution subject is an electronic device;
[0057] FIG4 is a schematic diagram of a desktop of a first operating system provided in an embodiment of the present application, wherein a collaborative application is installed on the desktop;
[0058] FIG5 is a schematic diagram of a desktop editing window provided in an embodiment of the present application;
[0059] FIG6 is a schematic diagram of a process for cross-system application presentation between a desktop launcher, a collaborative application, and a second operating system according to an embodiment of the present application;
[0060] FIG7 is a schematic diagram of a process for updating a target application icon of a target application between a desktop launcher, a collaborative application, and a second operating system according to an embodiment of the present application;
[0061] FIG8 is a schematic diagram showing an application interface of a “music application” displayed on an application interface of a collaborative application after the “music application” is opened across systems according to an embodiment of the present application;
[0062] FIG9 is a schematic diagram of launching a preset application across systems according to an embodiment of the present application;
[0063] FIG10 is a flow chart of a method for presenting an application according to another embodiment of the present invention, wherein the execution subject is an external device;
[0064] FIG11 is a schematic structural diagram of a device for presenting an application program according to an embodiment of the present application, wherein the execution subject is an electronic device;
[0065] FIG12 is a schematic structural diagram of an application presentation device provided by another embodiment of the present application, wherein the execution subject is an external device;
[0066] FIG13 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0068] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other and are all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device or the order in the flow chart. Furthermore, the words "first", "second", "third", etc. used in this application do not limit the data and execution order, but only distinguish between the same items or similar items with basically the same functions and effects.
[0069] The related technology also provides another dual-system device, which can be equipped with a first operating system and a second operating system, and the first operating system can communicate with the second operating system. The second operating system sets a capture program, which actively scans the application information of the application installed in the second operating system, and sends the application information of the scanned application to the first operating system. Among them, the first operating system is in a listening state. When the first operating system listens to the application information sent by the capture program of the second operating system, the desktop launcher of the first operating system presents the application of the second operating system on the desktop of the first operating system according to the application information of the application provided by the capture program. The user can view the application installed in the second operating system on the desktop of the first operating system. In addition, the capture program scans the application information of the second operating system about the installed application at a preset frequency, so as to send the application information of the application of the second operating system to the first operating system in a timely manner.
[0070] First, the relevant technology requires the second operating system to actively send the application information of the local application to the first operating system. The first operating system needs to continue working in a listening state to receive the application information sent by the second operating system, which will consume more computing power and memory resources.
[0071] Secondly, the capture program of the second operating system needs to scan the application information of the second operating system about the installed application program, which may easily cause the second operating system to need to allocate more memory resources and computing power resources to meet the needs of the capture program.
[0072] Based on this, the embodiments of the present application have made at least the following improvements:
[0073] First, the embodiment of the present application can complete the task of presenting applications across systems based on collaborative applications. This method is simple and fast, and does not require manual switching between multiple operating systems.
[0074] Secondly, an embodiment of the present application installs a collaborative application on the first operating system. When the collaborative application is started, the collaborative application uses the cross-system communication method between the first operating system and the second operating system to actively initiate an application list request to the second operating system on the first operating system, requesting the second operating system to send application information of the application installed in the second operating system to the collaborative application. The collaborative application sends the application information of the application of the second operating system to the desktop launcher of the first operating system, and the desktop launcher of the first operating system presents the application of the second operating system on the desktop.
[0075] In an embodiment of the present application, after the collaborative application is started, the collaborative application actively requests the application information of the application from the second operating system. There is no need to install a capture program on the second operating system, and there is no need for the first operating system to work in a listening state at all times, which can save computing power and memory resources.
[0076] Again, the embodiment of the present application can customize the presentation of the application of the second operating system on the first operating system. The embodiment of the present application presents a desktop editing window on the collaborative application, and the desktop editing window includes the application information of the application of the second operating system. The user can add or not add the application of the second operating system to the desktop editing window according to his own needs. The collaborative application determines the application of the second operating system to be selected for display based on the user's editing operation in the desktop editing window, and then transmits the selected application to the desktop launcher of the first operating system. The desktop launcher can present the selected application on the desktop of the first operating system, thus achieving the purpose of customized presentation of the application of the second operating system, without having to display all the applications of the second operating system on the desktop of the first operating system without reservation, avoiding occupying too much memory of the first operating system.
[0077] Finally, the embodiment of the present application can open the application of the second operating system on the first operating system. As mentioned above, the embodiment of the present application presents the application of the second operating system on the desktop of the first operating system through the collaborative application. When the user opens the preset application of the second operating system on the desktop of the first operating system, the first operating system automatically starts the collaborative application. The collaborative application presents the desktop of the second operating system on its application interface and requests the second operating system to open the preset application. The second operating system sends the display data of the preset application to the first operating system. The collaborative application calls the display data of the preset application obtained by the first operating system, so that the application interface of the preset application can be presented on the application interface of the collaborative application.
[0078] In addition, when presenting the desktop of the second operating system or the application interface of the preset application of the second operating system, the related technology requires that the external device transmit display data to the electronic device through the HDMI channel. The display data includes the desktop of the second operating system or the application interface of the preset application of the second operating system. The electronic device then parses the display data so that the desktop of the second operating system or the application interface of the preset application of the second operating system can be presented on the desktop of the first operating system. In other words, the electronic device of the related technology needs to switch to the HDMI channel before it can receive the display data sent by the external device based on the HDMI channel.
[0079] The collaborative application provided in the embodiment of the present application does not need to switch to the HDMI channel. The collaborative application can call the middle-layer application to obtain the display data of the second operating system, and present the application interface of the preset application or the desktop of the second operating system on the application interface of the collaborative application. This can reduce the delay caused by switching and is beneficial to the management and maintenance of the application.
[0080] In addition, since the data of the preset application is loaded into the application interface of the collaborative application for presentation, and the collaborative application is also just an application installed on the first operating system, the presentation of the preset application on the application interface of the collaborative application is relatively independent of the use of other applications installed on the first operating system and do not affect each other.
[0081] In the related art, the data of the preset application is directly loaded to the desktop of the first operating system for presentation. When the user needs to use other applications on the first operating system, the user needs to exit the presentation of the preset application on the desktop of the first operating system before using other applications. However, in the embodiment of the present application, the user can switch the collaborative application to run in the background, which is equivalent to switching the preset application to the background, and then the user can directly use other applications. When the other application ends running in the foreground, the user can switch the collaborative application to run in the foreground again, so that the data of the preset application can continue to be loaded into the application interface of the collaborative application for presentation.
[0082] The embodiment of the present application loads the data of the preset application onto the application interface of the collaborative application for presentation, maintaining relative independence, which is beneficial for the user to control the presentation of the preset application by operating the collaborative application, and is also beneficial for the user to quickly and conveniently operate other applications of the first operating system.
[0083] An embodiment of the present application provides a display system. Referring to FIG. 1 , the display system 100 includes an electronic device 11 and an external device 12 .
[0084] The electronic device 11 can provide a display interface to present various applications, various files, conference screens, or receive user interaction operations, etc. The electronic device 11 includes a conference tablet, desktop computer, tablet computer, mobile phone, electronic blackboard, electronic whiteboard, or multimedia screen.
[0085] In some embodiments, referring to FIG. 2 , the electronic device 11 includes a display screen 111 , a multimedia interface 112 , a camera 113 , a microphone 114 , a speaker 115 , and a controller 116 .
[0086] The display screen 111 is used to present a display interface, wherein the display screen 111 may be a touch screen.
[0087] The multimedia interface 112 is used to receive various multimedia data. The multimedia interface 112 includes an HDMI interface, a VGA interface, a USB interface, or a network interface.
[0088] The camera 113 is used to capture the surrounding environment of the electronic device 11 .
[0089] The microphone 114 is used to collect sounds from the surrounding environment of the electronic device 11 .
[0090] The speaker 115 is used to play sound. When the electronic device 11 is used in a conference scene, the camera 113 can transmit the conference scene image to other participants, the microphone 114 can transmit the conference scene sound to other participants, and the speaker 115 can play the speeches of other participants at the conference scene.
[0091] The controller 116 is electrically connected to the display screen 111, the multimedia interface 112, the camera 113, the microphone 114, and the speaker 115. The controller 116 serves as the control core of the electronic device 100 and is used to process various business logics.
[0092] The external device 12 is communicatively connected to the electronic device 11, wherein the communication connection includes a wireless communication connection and a wired communication connection. The wireless communication connection includes a WIFI communication connection, a Bluetooth communication connection, a 6G communication connection, a 5G communication connection, a 4G communication connection, a 3G communication connection, or a 2G communication connection. The wired communication connection includes a network cable communication connection, an optical fiber communication connection, or various interface communication connections. The various interface communication connections include a USB interface communication connection. The USB interface communication connection includes a Type-C interface communication connection, a Type-A interface communication connection, a Type-B interface communication connection, etc. In some embodiments, the external device 12 can be plugged into the electronic device 11 and can also be unplugged from the electronic device 11.
[0093] Both the external device 12 and the electronic device 11 can support the following operating systems: Windows operating system, Android operating system, Hongmeng operating system, MacOS operating system, IOS operating system or Linux operating system, etc.
[0094] The external device 12 can implement functions that the electronic device 11 cannot implement, wherein the operating system running on the external device 12 is different from the operating system running on the electronic device 11. Specifically, the operating system running on the electronic device 11 is a first operating system, and the operating system running on the external device 12 is a second operating system, and the first operating system and the second operating system are different.
[0095] For example, when the first operating system is an Android operating system, the second operating system is a Windows operating system. When the first operating system is a Windows operating system, the second operating system is an Android operating system. And so on, which is not repeated here.
[0096] It is understandable that the external device 12 can be installed inside the electronic device 11 , so that the external device 12 is a part of the electronic device 11 .
[0097] It can also be understood that the external device 12 can be separated from the electronic device 11 and installed outside the electronic device 11, so that the external device 12 and the electronic device 11 become two relatively independent devices.
[0098] Both the electronic device 11 and the external device 12 can support the installation of various applications, such as one or more of the following applications: shopping applications, drawing applications, presentation applications, word processing applications, spreadsheet applications, game applications, telephone applications, video conferencing applications, email applications, instant messaging applications, training support applications, photo applications, digital camera applications, digital video recorder applications, web browsing applications, digital music player applications, and digital video player applications, etc.
[0099] It is understandable that the electronic device 11 and the external device 12 may be two independent physical entities. For example, the electronic device 11 has an independent housing, the external device 12 also has an independent housing, the electronic device 11 has an independent motherboard, and the external device 12 also has an independent motherboard.
[0100] It can also be understood that the electronic device 11 and the external device 12 can be two devices that are relatively independent in function but integrated into the same physical entity. For example, the electronic device 11 and the external device 12 are installed in the same housing, and the electronic device 11 and the external device 12 share the same motherboard.
[0101] The present application embodiment describes in detail the application requirements between the electronic device 11 and the external device 12 with reference to the following examples:
[0102] The electronic device 11 runs the Android operating system, and the external device 12 runs the Windows operating system. The electronic device 11 installs a collaborative application, a desktop launcher and multiple first applications on the Android operating system, and the external device 12 installs multiple second applications on the Windows operating system. However, the Android operating system does not support the installation of second applications.
[0103] When holding a meeting, the user turns on the electronic device 11, and the electronic device 11 starts the Android operating system. When the meeting needs to use the second application of the external device 12, the electronic device 11 starts the external device 12, and the external device 12 starts the Windows operating system.
[0104] The user clicks on the cooperative application on the desktop of the electronic device 11, and the cooperative application is started. The cooperative application sends an application list request to the external device 12, so that the external device 12 returns application list information according to the application list request.
[0105] In some embodiments, the collaboration application directly presents all applications of the Windows operating system based on the application list information.
[0106] In some embodiments, after the collaborative application receives the application list information, the user clicks the "Settings" UI button on the application interface of the collaborative application, and the collaborative application pops up a desktop editing window. The user can add the applications they need on the desktop editing window, and then click the "Confirm" UI button. The collaborative application will transmit the application information of the selected application to the desktop launcher, and the desktop launcher can present the selected application on the desktop of the first operating system. At this point, the desktop of the electronic device 11 can present the second application of the external device 12.
[0107] The user clicks the icon of the second application on the desktop of the electronic device 11, and the Android operating system of the electronic device 11 automatically starts the collaborative application. The collaborative application requests the external device 12 to open the second application in the Windows operating system, and the external device 12 sends the application data of the second application to the collaborative application via the API interface. The collaborative application can present the application interface of the second application on its own application interface, that is, the electronic device 11 presents the application interface of the second application, so that the user can visually feel that the second application is opened on the electronic device 11.
[0108] An embodiment of the present application provides a method for presenting an application, which is applied to an electronic device. The electronic device is used to communicate with an external device, the electronic device runs a first operating system, and the external device runs a second operating system, which is different from the first operating system. The first operating system has a collaborative application and a desktop launcher installed. Referring to FIG3, the method includes the following steps:
[0109] S31: In response to the start operation received by the cooperative application, control the cooperative application to send an application list request to the external device, so that the external device returns application list information according to the application list request.
[0110] In this step, the collaborative application is an application that can map an application on the second operating system to an application on the first operating system. The launch operation is an operation used to launch the collaborative application, which can be a single-click operation, a double-click operation, a multi-click operation, or a sliding operation. The user can input a launch operation on the desktop of the first operating system to launch the collaborative application, and the collaborative application will enter the launch state. Once launched, the collaborative application will display its application interface.
[0111] The application list request is a request from the collaborative application to the external device to return application list information. The application list information includes application information of at least one candidate application, where the at least one candidate application is an application running on the second operating system. The application information includes information such as the application name and attributes.
[0112] After the collaborative application is launched, it generates an application list request and sends it to the second operating system of the external device based on the first operating system. Upon receiving the application list request, the second operating system may select applications that appear on the desktop of the external device as candidate applications, package application information of at least one candidate application into application list information, and communicate with the first operating system to return the application list information to the collaborative application through the first operating system. The second operating system may return the application list information to the collaborative application in a target data format, such as JSON format.
[0113] Referring to FIG4 , the electronic device has multiple applications and a collaborative application 41 installed on a first operating system. As shown in FIG4 , the application with the icon "OPS" and the name "OPS Collaboration Settings" is collaborative application 41. When a user clicks collaborative application 41 on the desktop of the first operating system, collaborative application 41 is launched.
[0114] S32: Control the collaborative application to present a desktop editing window, where the desktop editing window includes application information of at least one candidate application.
[0115] In this step, the desktop editing window is a window used to edit the candidate application.
[0116] In some embodiments, controlling the collaborative application to present the desktop editing window includes: when the collaborative application receives the application list information, controlling the application interface of the collaborative application to present the desktop editing window.
[0117] In some embodiments, controlling the collaborative application to present the desktop editing window includes: when the collaborative application receives the application list information, responding to a setting operation received by a setting UI button of the collaborative application, presenting the desktop editing window.
[0118] S33: In response to an editing operation input to a candidate application in the desktop editing window, target application information is generated.
[0119] In this step, the editing operation is an operation of editing the candidate application, wherein the editing operation includes an adding operation, a canceling operation, an icon replacing operation, a name modifying operation, and the like. The adding operation is an operation of adding the candidate application to the desktop of the first operating system for presentation, wherein the adding operation may be performed by checking or marking the location of the candidate application. The canceling operation is an operation of prohibiting the candidate application from being added to the desktop of the first operating system for presentation, wherein the canceling operation may be performed without checking or marking the location of the candidate application. The icon replacing operation is an operation of adjusting the icon of the candidate application. The name modifying operation is an operation of modifying the name of the candidate application.
[0120] The target application information includes application information of at least one target application program, where the target application program is a candidate application program selected for display.
[0121] In some embodiments, generating target application information in response to an editing operation on a candidate application input in a desktop editing window includes the following steps: if the editing operation includes an add operation, then in response to the add operation on the candidate application input in the desktop editing window, the target application information is generated based on the application information of the candidate application; or, if the editing operation includes a cancel operation, then in response to the cancel operation on the candidate application input in the desktop editing window, the candidate application is eliminated; or, if the editing operation includes an icon replacement operation, then in response to the icon replacement operation on the candidate application input in the desktop editing window, a preset icon is selected as the icon of the candidate application; or, if the editing operation includes a name modification operation, then in response to the name modification operation on the candidate application input in the desktop editing window, the name of the candidate application is modified.
[0122] Generating target application information according to application information of candidate applications includes the following steps: determining the added candidate application as the target application, and packaging the application information of the target application into target application information.
[0123] Please refer to Figure 5. After the collaborative application 41 receives the application list information sent by the external device, the user clicks the "Settings" UI button on the application interface of the collaborative application 41, and the collaborative application 41 presents the desktop editing window 42. The desktop editing window 42 includes the application information of the candidate application, wherein the user can perform an add operation or a cancel operation in the add area / cancel area 43, perform an icon replacement operation in the icon replacement area 44, and perform a name modification operation in the name modification area 45. When the user clicks the "Finish" UI button on the application interface of the collaborative application 41, the collaborative application 41 generates the target application information. The embodiment of the present application performs editing operations through the desktop editing window, and can customize the presentation of applications of the second operating system on the first operating system. There is no need to display all applications of the second operating system on the desktop of the first operating system without reservation, so as to avoid occupying too much memory of the first operating system and also improve the user experience.
[0124] S34: Control the cooperative application to transmit the target application information to the desktop launcher, so that the desktop launcher presents the target application on the desktop of the first operating system.
[0125] In this step, the desktop launcher is a program that can present the target application of the second operating system on the desktop of the first operating system, thereby completing the task of mapping the application of the second operating system to the desktop of the first operating system.
[0126] Referring to FIG6 , both the desktop launcher 61 and the collaborative application 62 are running on a first operating system 63 . The first operating system 63 is installed on the electronic device, and the second operating system 64 is installed on an external device. In order to further illustrate the application presentation method provided in the embodiment of the present application, this embodiment is described in detail with reference to FIG6 . The specific process of the application presentation method is as follows:
[0127] S61 : The desktop launcher 61 opens the collaboration application 62 .
[0128] S62 : The cooperation application 62 sends an application list request to the second operating system 64 .
[0129] S63 : The second operating system 64 returns the application list information to the cooperative application 62 .
[0130] S64: The collaboration application 62 presents a desktop editing window to add a target application.
[0131] S65 : The cooperative application 62 sends the application information of the target application to the desktop launcher 61 .
[0132] S66: The desktop launcher 61 presents the target application.
[0133] The embodiments of the present application can complete the task of presenting applications across multiple systems based on collaborative applications. This method is simple and fast, and does not require manual switching between multiple operating systems. In addition, after the collaborative application is launched, the collaborative application actively requests the application information of the application from the second operating system, eliminating the need to install a capture program on the second operating system and eliminating the need for the first operating system to be in a constant monitoring state. This can save computing power and memory resources.
[0134] The application list information returned by the collaborative application requesting the external device does not need to include the real icons of the candidate applications, and the data volume of the real icons is relatively large. If the real icons are encapsulated in the application list information and sent to the collaborative application, it will easily cause packet loss or large delays.
[0135] In some embodiments, the target application information also includes a preset icon corresponding to each target application, wherein the preset icon is stored locally in the collaborating application. In the desktop editing window, embodiments of the present application configure a preset icon for each candidate application. Step S34 includes: controlling the collaborating application to transmit the target application information to the desktop launcher, so that the desktop launcher presents the preset icon of the target application on the desktop of the first operating system.
[0136] In an embodiment of the present application, the collaborative application responds to an edit operation entered on a candidate application in the desktop editing window by directly calling a local preset icon to configure the candidate application. Therefore, the target application information generated by the collaborative application includes the preset icon for the target application, which is pre-stored locally in the collaborative application. The desktop launcher presents the target application on the desktop of the first operating system according to the preset icon. This avoids significant delays or packet loss caused by an external device carrying the actual icon of the candidate application back to the application list.
[0137] In some embodiments, the presentation method also includes the following steps: sending an icon acquisition request to an external device based on the collaborative application, so that the external device returns a target application icon corresponding to each target application according to the icon acquisition request, updating the target application information according to the target application icon, obtaining the updated target application information, and controlling the collaborative application to transmit the updated target application information to the desktop launcher, so that the desktop launcher performs a refresh operation to replace the preset icon of the target application with the target application icon.
[0138] The icon acquisition request is a request by a collaborative application to request an external device to return a target application icon.
[0139] In some embodiments, after generating the target application information, sending an icon acquisition request to the external device based on the collaborative application includes the following steps: after detecting that the collaborative application generates the target application information, sending an icon acquisition request to the external device based on the collaborative application.
[0140] In some embodiments, sending the icon acquisition request to the external device based on the collaboration application includes the following steps: in response to the restart operation received by the collaboration application, controlling the collaboration application to send the icon acquisition request to the external device.
[0141] Updating the target application information according to the target application icon includes the following steps: searching for a target application corresponding to the target application icon in the target application information, replacing a preset icon of the target application with the target application icon, and obtaining updated target application information.
[0142] In order to elaborate on the process of updating the target application icon provided by the embodiment of the present application, this embodiment is elaborated in detail with reference to FIG. 7 . The process of updating the target application icon is as follows:
[0143] S61 : The desktop launcher 61 opens the collaboration application 62 .
[0144] S62 : The cooperation application 62 sends an application list request to the second operating system 64 .
[0145] S63 : The second operating system 64 returns the application list information to the cooperative application 62 .
[0146] S64: The collaboration application 62 presents a desktop editing window to add a target application.
[0147] S65 : The cooperative application 62 sends the application information of the target application to the desktop launcher 61 .
[0148] S66: The desktop launcher 61 presents the target application.
[0149] S67 : The cooperation application 62 sends an icon acquisition request to the second operating system 64 .
[0150] S68 : The second operating system 64 returns the target application icon to the cooperative application 62 .
[0151] S69: The cooperative application 62 updates the target application information according to the target application icon to obtain the updated target application information.
[0152] S610 : The cooperative application 62 sends the updated target application information to the desktop launcher 61 .
[0153] S611: The desktop launcher 61 performs a refresh operation to replace the preset icon of the target application program with the target application icon.
[0154] This embodiment separates the acquisition phase of the target application's application information and the acquisition phase of the target application's icon, avoiding the problem of excessive return data caused by acquiring both the target application's application information and the target application's icon at the same time, thereby avoiding packet loss and long delays.
[0155] In some embodiments, the presentation method further includes the following steps: responding to an application opening request sent by a desktop launcher, launching a collaborative application, the application opening request being used to request the second operating system to open a preset application, the icon of the preset application being presented on the desktop of the first operating system, and the preset application being installed on the second operating system, controlling the collaborative application to send an application starting request to an external device so that the external device starts the preset application according to the application starting request, and controlling the application interface of the collaborative application to present the application interface of the preset application.
[0156] The embodiment of the present application loads the data of the preset application onto the application interface of the collaborative application for presentation, maintaining relative independence, which is beneficial for the user to control the presentation of the preset application by operating the collaborative application, and is also beneficial for the user to quickly and conveniently operate other applications of the first operating system.
[0157] When the desktop launcher detects that a user inputs a launch operation for a preset application on the desktop of the first operating system, the desktop launcher generates an application launch request and sends the application launch request to the collaborative application. The application launch request carries application information of the preset application. The collaborative application detects the application launch request sent by the desktop launcher and enters a launch state.
[0158] Controlling the collaborative application to send an application launch request to the external device includes the following steps: controlling the collaborative application to parse the application open request to obtain application information of the preset application, generating an application launch request based on the application information of the preset application, and sending the application launch request to the external device, wherein the application launch request includes the application information of the preset application. After receiving the application launch request based on the second operating system, the external device parses the application launch request to obtain the application information of the preset application, then searches for the preset application based on the application information of the preset application, and launches the preset application. After the second operating system completes the startup of the preset application, the preset application enters normal operation.
[0159] In some embodiments, controlling the application interface of the collaborative application to present the application interface of the preset application includes the following steps: controlling the collaborative application to communicate with the second operating system through the first operating system to obtain application data of the preset application, controlling the collaborative application to use a preset rendering tool to render the application data of the preset application to obtain the application interface, and controlling the application interface of the preset application to be presented on the application interface of the collaborative application.
[0160] In this embodiment, the cooperative application can notify the first operating system to obtain application data of the preset application from the second operating system, so as to present the application interface of the preset application on the application interface of the cooperative application.
[0161] In some embodiments, a first operating system is installed with an intermediate-layer application that can transmit data with a second operating system. Controlling the application interface of the collaborative application to present the application interface of the preset application includes the following steps: controlling the collaborative application to call application data obtained by the intermediate-layer application, where the application data is data of the preset application, and controlling the collaborative application to load the application data so that the application interface of the preset application is presented on the application interface of the collaborative application. This embodiment can control the collaborative application to call application data obtained by the intermediate-layer application, thereby simplifying the design of the collaborative application.
[0162] Controlling the collaborative application to load application data so as to present the application interface of the preset application on the application interface of the collaborative application includes the following steps: controlling the collaborative application to render the application data of the preset application using a preset rendering tool to obtain the application interface; and controlling the application interface of the preset application to be presented on the application interface of the collaborative application. The preset rendering tool includes, for example, the Surface View tool.
[0163] Although the collaborating application is installed on the first operating system and the default application is installed on the second operating system, the collaborating application is able to load and present the default application's data. It is understood that the collaborating application provides an environment or platform for running the default application, wherein the collaborating application and the default application can communicate through inter-process communication mechanisms, such as pipes, sockets, and shared memory. The collaborating application transfers control flow, data, and resources to the default application through the inter-process communication mechanism, so that the default application can perform its corresponding functions. During execution, the default application can also interact with the collaborating application, for example, to report status, receive input, or request resources.
[0164] A mid-tier application is an application that provides services for communication or other functions between a collaborating application and the first operating system. Logically, a mid-tier application sits between the collaborating application and the first operating system. A mid-tier application can access the display data of a second operating system through the first operating system and store the second operating system's display data locally on the first operating system. The collaborating application can then access the display data of the second operating system obtained by the mid-tier application from the first operating system's local storage.
[0165] In this embodiment, by setting up an intermediate layer application, when the display data of the second operating system needs to be presented on the first operating system, the collaborative application does not need to switch to the HDMI channel to obtain the display data of the second operating system, and can directly call the display data of the second operating system obtained by the intermediate layer application.
[0166] Since the middle-tier application can communicate with the first operating system efficiently, it effectively separates the underlying technical details from the upper-level business logic, which is equivalent to shielding most of the underlying technical details from the collaborative application. This means that the collaborative application does not need to consider too many technical details of communicating with the first operating system in its design. Designers can focus more on the business logic and functional implementation of the collaborative application to meet growing business needs.
[0167] Referring to Figure 8 , after the application mapping operation described above, the desktop of the first operating system can display the "Music Application," which is installed on the second operating system. When the user clicks the "Music Application" on the desktop of the first operating system, the desktop launcher of the first operating system detects the input launch operation for the "Music Application," and the desktop launcher launches the collaborative application.
[0168] The collaborative application sends an application launch request to the external device. Upon receiving the application launch request, the external device launches the "Music Application." After the second operating system completes its launch, the "Music Application" enters normal operation. The middle-layer application obtains the application data for the "Music Application" sent by the second operating system through the first operating system. The collaborative application loads the application data obtained by the middle-layer application. The collaborative application's application interface then displays the "Music Application" interface 800.
[0169] In the embodiment of the present application, there is no need to switch external channels to obtain application data of the preset application. The collaborative application can call the middle-layer application to obtain the application data of the second operating system, and present the application interface of the preset application or the desktop of the second operating system in the application interface of the collaborative application. This can reduce the delay caused by switching and is also beneficial to the management and maintenance of the application.
[0170] Before sending the application launch request, the presentation method further includes the following steps: responding to the application launcher's application launch request, based on the desktop data of the second operating system obtained by the collaborative application, controlling the collaborative application's application interface to present the desktop of the second operating system according to the desktop data. This embodiment presents the desktop of the second operating system through the collaborative application, simulating the process of mapping the desktop of the second operating system to the display interface of the electronic device, which helps to improve the realism of the mapping and thereby enhance the user experience.
[0171] The first operating system is installed with a middle-layer application that can exchange data with the second operating system. Responding to an application open request sent by a desktop launcher and obtaining desktop data of the second operating system based on a collaborative application includes the following steps: responding to the application open request sent by the desktop launcher and controlling the collaborative application to call the middle-layer application to obtain desktop data of the second operating system. This embodiment can control the collaborative application to call the middle-layer application to obtain desktop data, thereby simplifying the design of the collaborative application.
[0172] In order to elaborate on the process of launching a preset application across systems provided by the embodiment of the present application, this embodiment is elaborated in detail with reference to FIG9 . The process of launching a preset application across systems is as follows:
[0173] S61 : The desktop launcher 61 opens the collaboration application 62 .
[0174] S62 : The cooperation application 62 sends an application list request to the second operating system 64 .
[0175] S63 : The second operating system 64 returns the application list information to the cooperative application 62 .
[0176] S64: The collaboration application 62 presents a desktop editing window to add a target application.
[0177] S65 : The cooperative application 62 sends the application information of the target application to the desktop launcher 61 .
[0178] S66: The desktop launcher 61 presents the target application.
[0179] S67 : The cooperation application 62 sends an icon acquisition request to the second operating system 64 .
[0180] S68 : The second operating system 64 returns the target application icon to the cooperative application 62 .
[0181] S69: Update the target application information according to the target application icon to obtain updated target application information.
[0182] S610 : The cooperative application 62 sends the updated target application information to the desktop launcher 61 .
[0183] S611: The desktop launcher 61 performs a refresh operation to replace the preset icon of the target application program with the target application icon.
[0184] S612: The desktop launcher 61 detects an operation of opening a preset application.
[0185] S613: The desktop launcher 61 sends an application opening request to the cooperative application 62 to launch the cooperative application.
[0186] S614: The application interface of the collaboration application 62 presents the desktop of the second operating system.
[0187] S615 : The cooperation application 62 sends an application start request to the second operating system 64 .
[0188] S616: The second operating system 64 starts a preset application.
[0189] S617: The second operating system 64 sends the application data of the preset application to the middle-layer application.
[0190] S618: The cooperative application 62 calls the middle-layer application to obtain the application data of the preset application.
[0191] S619: The application interface of the collaborative application 62 presents the application interface of the preset application.
[0192] This embodiment can not only quickly and concisely map the target application of the second operating system to the desktop of the first operating system through the collaborative application, but also enable the collaborative application to manage the playback, program and display of the target application.
[0193] In some embodiments, the first operating system configures a clipboard, and the presentation method further includes: acquiring copy data sent by the external device based on the collaborative application, and transmitting the copy data to the first operating system, so that the first operating system updates the copy data to the clipboard.
[0194] For example, if a user copies a webpage, image, or text on a second operating system, the second operating system receives the copied data. The second operating system then sends the copied data to a collaborative application, which then transmits the copied data to the first operating system, allowing the first operating system to set the copied data to the clipboard. This allows for efficient and fast data transfer between systems.
[0195] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of this application, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, or may be executed interchangeably, etc.
[0196] As another aspect of an embodiment of the present application, an embodiment of the present application provides an application presentation method, which is applied to an external device, the external device being used to communicate with an electronic device, the electronic device running a first operating system, and the external device running a second operating system, the second operating system being different from the first operating system, and the first operating system having a collaborative application and a desktop launcher installed. Referring to FIG. 10 , the application presentation method includes the following steps:
[0197] S101: Obtain an application list request sent by a collaborative application, where the application list information includes application information of at least one candidate application, and the at least one candidate application is an application running on a second operating system.
[0198] S102: Respond to the application list request and send application list information to the collaborative application.
[0199] The collaborative application can present a desktop editing window, which includes application information corresponding to the candidate application. The collaborative application transmits target application information to the desktop launcher in response to the editing operation input on the candidate application in the desktop editing window. The target application information includes application information of at least one target application. The target application is the candidate application selected for display in the desktop editing window. The desktop launcher presents the target application on the desktop of the first operating system based on the target application information.
[0200] The embodiment of the present application can complete the task of presenting applications across systems based on collaborative applications. This method is simple and fast, and does not require manual switching between multiple operating systems. Secondly, in the embodiment of the present application, after the collaborative application is started, the collaborative application actively requests the application information of the application from the second operating system. There is no need to install a capture program on the second operating system, and there is no need for the first operating system to work in a listening state at all times, which can save computing power and memory resources. Thirdly, the embodiment of the present application performs editing operations through the desktop editing window, and can customize the presentation of the second operating system's applications on the first operating system. There is no need to display all the second operating system's applications on the desktop of the first operating system without reservation, so as to avoid occupying too much memory of the first operating system and also improve the user experience.
[0201] In some embodiments, the presentation method also includes the following steps: obtaining an icon acquisition request sent by the collaborative application, sending the target application icon corresponding to each target application to the collaborative application according to the icon acquisition request, so that the collaborative application updates the target application information according to the target application icon, and the desktop launcher performs a refresh operation according to the updated target application information to replace the preset icon of the target application with the target application icon.
[0202] In some embodiments, the first operating system is installed with an intermediate layer application, and the intermediate layer application can transmit data with the second operating system. The method also includes: obtaining a data acquisition request sent by the intermediate layer application, responding to the data acquisition request, and sending application data to the intermediate layer application, so that the collaborative application presents the application interface of the preset application on the application interface of the collaborative application based on the application data, and the application data is the data of the preset application.
[0203] In some embodiments, the first operating system is installed with a middle-layer application, and the middle-layer application can transmit data with the second operating system. The method also includes: obtaining a desktop acquisition request sent by the middle-layer application, responding to the desktop acquisition request, and sending the desktop data of the second operating system to the middle-layer application, so that the collaborative application calls the desktop data to present the desktop of the second operating system on the application interface of the collaborative application.
[0204] In some embodiments, the presentation method further includes the following steps: sending the copied data to the cooperative application, so that the cooperative application transmits the copied data to the first operating system, and the first operating system updates the copied data to the clipboard.
[0205] It is understandable that the technical details not described in the above embodiments may refer to the technical details described in the corresponding embodiments of Figures 1 to 9, which will not be repeated here.
[0206] As another aspect of the present invention, an embodiment of the present invention provides an application presentation device. The application presentation device may be a software module comprising a plurality of instructions stored in a memory, and a processor may access the memory and invoke the instructions for execution to implement the application presentation method described in each of the above embodiments.
[0207] 11 , the application presentation device 1100 includes a request sending module 1101 , a window presentation module 1102 , an editing operation module 1103 , and an application presentation module 1104 .
[0208] The request sending module 1101 is used to respond to the startup operation received by the collaborative application, and control the collaborative application to send an application list request to the external device, so that the external device returns application list information according to the application list request, and the application list information includes application information of at least one candidate application, and the at least one candidate application is an application running on the second operating system. The window rendering module 1102 is used to control the collaborative application to present the desktop editing window, and the desktop editing window includes application information of at least one candidate application. The editing operation module 1103 is used to respond to the editing operation input on the candidate application in the desktop editing window, and generate target application information, and the target application information includes application information of at least one target application, and the target application is the candidate application selected for display. The application rendering module 1104 is used to control the collaborative application to transmit the target application information to the desktop launcher, so that the desktop launcher presents the target application on the desktop of the first operating system.
[0209] The embodiment of the present application can complete the task of presenting applications across systems based on collaborative applications. This method is simple and fast, and does not require manual switching between multiple operating systems. Secondly, in the embodiment of the present application, after the collaborative application is started, the collaborative application actively requests the application information of the application from the second operating system. There is no need to install a capture program on the second operating system, and there is no need for the first operating system to work in a listening state at all times, which can save computing power and memory resources. Thirdly, the embodiment of the present application performs editing operations through the desktop editing window, and can customize the presentation of the second operating system's applications on the first operating system. There is no need to display all the second operating system's applications on the desktop of the first operating system without reservation, so as to avoid occupying too much memory of the first operating system and also improve the user experience.
[0210] The editing operation module 1103 is specifically used for: if the editing operation includes an add operation, then responding to the add operation input to the candidate application in the desktop editing window, generating target application information based on the application information of the candidate application; or, if the editing operation includes a cancel operation, then responding to the cancel operation input to the candidate application in the desktop editing window, eliminating the candidate application.
[0211] The target application information also includes a preset icon corresponding to each target application. The application presentation module 1104 is specifically used to: control the collaborative application to transmit the target application information to the desktop launcher so that the desktop launcher presents the preset icon of the target application on the desktop of the first operating system.
[0212] Please continue to refer to Figure 11. The application presentation device 1100 also includes an icon acquisition module 1105. The icon acquisition module 1105 is used to: send an icon acquisition request to the external device based on the collaborative application, so that the external device returns the target application icon corresponding to each target application according to the icon acquisition request, updates the target application information according to the target application icon, obtains the updated target application information, and controls the collaborative application to transmit the updated target application information to the desktop launcher, so that the desktop launcher performs a refresh operation to replace the preset icon of the target application with the target application icon.
[0213] Please continue to refer to Figure 11. The application presentation device 1100 also includes an interface presentation module 1106. The interface presentation module 1106 is used to: respond to the application opening request sent by the desktop launcher, start the collaborative application, the application opening request is used to request the second operating system to open the preset application, the icon of the preset application is presented on the desktop of the first operating system, and the preset application is installed on the second operating system, control the collaborative application to send an application start request to the external device, so that the external device starts the preset application according to the application start request, and control the application interface of the collaborative application to present the application interface of the preset application.
[0214] The first operating system is installed with an intermediate layer application, which can transmit data with the second operating system. The interface presentation module 1106 is specifically used to: control the collaborative application to call the intermediate layer application to obtain application data, where the application data is the data of the preset application; control the collaborative application to load the application data to present the application interface of the preset application on the application interface of the collaborative application.
[0215] Please continue to refer to Figure 11. The application presentation device 1100 also includes a desktop presentation module 1107. The desktop presentation module 1107 is used to: respond to the application opening request sent by the desktop launcher, obtain the desktop data of the second operating system based on the collaborative application, and control the application interface of the collaborative application according to the desktop data to present the desktop of the second operating system.
[0216] The first operating system is installed with an intermediate layer application, which can transmit data with the second operating system. The desktop presentation module 1107 is specifically used to: respond to the application opening request sent by the desktop launcher, and control the collaborative application to call the intermediate layer application to obtain the desktop data of the second operating system.
[0217] Please continue to refer to Figure 11. The first operating system configures a clipboard, and the application presentation device 1100 also includes a data transfer module 1108. The data transfer module 1108 is used to: obtain the copied data sent by the external device based on the collaborative application, and transfer the copied data to the first operating system so that the first operating system updates the copied data to the clipboard.
[0218] It should be noted that the aforementioned application presentation device can execute the application presentation method provided in the embodiments of this application and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the application presentation device embodiments, please refer to the application presentation method provided in the embodiments of this application.
[0219] As another aspect of the embodiments of the present application, the embodiments of the present application provide an application presentation device. The application presentation device may be a software module comprising a plurality of instructions stored in a memory, and a processor may access the memory and invoke the instructions for execution to implement the application presentation method described in each of the above embodiments.
[0220] 12 , the application presentation device 120 includes a request acquisition module 121 and an information sending module 122 .
[0221] The request acquisition module 121 is used to acquire an application list request sent by a collaborative application. The application list information includes application information of at least one candidate application. The at least one candidate application is an application running on the second operating system.
[0222] The information sending module 122 is used to respond to the application list request and send application list information to the collaborative application. The collaborative application presents a desktop editing window, which includes application information corresponding to the candidate application. The collaborative application responds to the editing operation input on the candidate application in the desktop editing window and transmits the target application information to the desktop launcher. The target application information includes application information of at least one target application. The target application is the candidate application selected for display in the desktop editing window. The desktop launcher presents the target application on the desktop of the first operating system based on the target application information.
[0223] The embodiment of the present application can complete the task of presenting applications across systems based on collaborative applications. This method is simple and fast, and does not require manual switching between multiple operating systems. Secondly, in the embodiment of the present application, after the collaborative application is started, the collaborative application actively requests the application information of the application from the second operating system. There is no need to install a capture program on the second operating system, and there is no need for the first operating system to work in a listening state at all times, which can save computing power and memory resources. Thirdly, the embodiment of the present application performs editing operations through the desktop editing window, and can customize the presentation of the second operating system's applications on the first operating system. There is no need to display all the second operating system's applications on the desktop of the first operating system without reservation, so as to avoid occupying too much memory of the first operating system and also improve the user experience.
[0224] Please continue to refer to Figure 12. The application presentation device 120 also includes an icon sending module 123. The icon sending module 123 is used to obtain an icon acquisition request sent by the collaborative application, and send the target application icon corresponding to each target application to the collaborative application according to the icon acquisition request, so that the collaborative application updates the target application information according to the target application icon, and the desktop launcher performs a refresh operation according to the updated target application information to replace the preset icon of the target application with the target application icon.
[0225] The first operating system is installed with an intermediate layer application, and the intermediate layer application can transmit data with the second operating system. The information sending module 122 is specifically used to: obtain the data acquisition request sent by the intermediate layer application, respond to the data acquisition request, and send application data to the intermediate layer application so that the collaborative application can present the application interface of the preset application on the application interface of the collaborative application based on the application data. The application data is the data of the preset application.
[0226] Please continue to refer to Figure 12. The first operating system is installed with a middle-layer application, and the middle-layer application can transmit data with the second operating system. The application presentation device 120 also includes a desktop sending module 124. The desktop sending module 124 is used to obtain a desktop acquisition request sent by the middle-layer application, respond to the desktop acquisition request, and send the desktop data of the second operating system to the middle-layer application, so that the collaborative application calls the desktop data to present the desktop of the second operating system on the application interface of the collaborative application.
[0227] 12 , the application presentation device 120 further includes a data sending module 125 , which is configured to send the copied data to the collaborative application so that the collaborative application transmits the copied data to the first operating system, and the first operating system updates the copied data to the clipboard.
[0228] Referring to Figure 13 , Figure 13 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be the electronic device or external device provided in each of the above embodiments. The computer device 130 includes one or more processors 131 and a memory 132. The memory 132 is connected to the one or more processors 131, for example, via a bus.
[0229] The processor 131 is configured to support the computer device in executing the corresponding functions of the method in the above method embodiment. The processor can be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0230] Memory 132 is used to store program code, etc. Memory 132 may include volatile memory (VM), such as random access memory (RAM); non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the aforementioned types of memory.
[0231] The memory 132 may be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as the program instructions / modules corresponding to the application presentation method in the embodiments of the present application. The processor executes the non-volatile software programs, instructions, and modules stored in the memory to execute the various functional applications and data processing of the application presentation method and the application presentation device, thereby implementing the functions of the application presentation method and the various modules or units of the application presentation device provided in the above-mentioned method embodiments.
[0232] The memory 132 may include a program storage area and a data storage area. The program storage area may store an operating system and applications required for at least one function. The data storage area may store data generated by the use of the application presentation device. In some embodiments, the memory may optionally include a memory remote from the processor, and such remote memory may be connected to the application presentation device via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0233] The one or more modules are stored in the memory, and when executed by the one or more processors, perform the application presentation method in any of the above method embodiments, for example, execute the method steps described in the above method embodiments to realize the functions of the modules described in the above device embodiments.
[0234] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method as described in the above embodiment.
[0235] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0236] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for presenting an application program, characterized in that, Applied to an electronic device, the electronic device is used for communication connection with an external device. The electronic device runs a first operating system, and the external device runs a second operating system, which is different from the first operating system. The first operating system is installed with a collaboration application and a desktop launcher. The method includes: Responding to a start operation received by the collaboration application, controlling the collaboration application to send an application list request to the external device, so that the external device returns application list information according to the application list request. The application list information includes application information of at least one candidate application program, and the at least one candidate application program is an application program running on the second operating system; Controlling the collaboration application to present a desktop editing window, and the desktop editing window includes application information of at least one of the candidate application programs; Responding to an editing operation input to the candidate application program in the desktop editing window, generating target application information, and the target application information includes application information of at least one target application program, and the target application program is a candidate application program selected for display; Controlling the collaboration application to transmit the target application information to the desktop launcher, so that the desktop launcher presents the target application program on the desktop of the first operating system.
2. The method according to claim 1, characterized in that, The responding to an editing operation input to the candidate application program in the desktop editing window and generating target application information includes: If the editing operation includes an addition operation, responding to the addition operation input to the candidate application program in the desktop editing window, and generating target application information according to the application information of the candidate application program; or, If the editing operation includes a cancellation operation, responding to the cancellation operation input to the candidate application program in the desktop editing window, and removing the candidate application program.
3. The method according to claim 1, wherein The target application information further includes a preset icon corresponding to each target application program. The controlling the collaboration application to transmit the target application information to the desktop launcher, so that the desktop launcher presents the target application program on the desktop of the first operating system includes: Controlling the collaboration application to transmit the target application information to the desktop launcher, so that the desktop launcher presents the preset icon of the target application program on the desktop of the first operating system.
4. The method according to claim 1, wherein It further includes: Based on the collaboration application sending an icon acquisition request to the external device, so that the external device returns a target application icon corresponding to each target application program according to the icon acquisition request; Updating the target application information according to the target application icon to obtain updated target application information; Controlling the collaboration application to transmit the updated target application information to the desktop launcher, so that the desktop launcher performs a refresh operation to replace the preset icon of the target application program with the target application icon.
5. The method according to claim 1, characterized in that, It further includes: In response to an application opening request sent by the desktop launcher, start the collaborative application. The application opening request is used to request the second operating system to open a preset application. The icon of the preset application is presented on the desktop of the first operating system, and the preset application is installed on the second operating system; Control the collaborative application to send an application start request to the external device, so that the external device starts the preset application according to the application start request; Control the application interface of the collaborative application to present the application interface of the preset application.
6. The method according to claim 5, characterized in that, The first operating system installs an intermediate layer application program, and the intermediate layer application program can perform data transmission with the second operating system. The controlling the application interface of the collaborative application to present the application interface of the preset application includes: Control the collaborative application to call the application data obtained by the intermediate layer application program. The application data is the data of the preset application; Control the collaborative application to load the application data to present the application interface of the preset application on the application interface of the collaborative application.
7. The method according to claim 5, characterized in that, Before sending the application start request, it further includes: In response to an application opening request sent by the desktop launcher, obtain the desktop data of the second operating system based on the collaborative application; Control the application interface of the collaborative application to present the desktop of the second operating system according to the desktop data.
8. The method according to claim 7, wherein The first operating system installs an intermediate layer application program, and the intermediate layer application program can perform data transmission with the second operating system. The responding to an application opening request sent by the desktop launcher and obtaining the desktop data of the second operating system based on the collaborative application includes: In response to an application opening request sent by the desktop launcher, control the collaborative application to call the desktop data of the second operating system obtained by the intermediate layer application program.
9. The method according to any one of claims 1 to 8, characterized in that, The first operating system configures a clipboard, and the method further includes: Obtain the copied data sent by the external device based on the collaborative application; Transmit the copied data to the first operating system so that the first operating system updates the copied data to the clipboard.
10. A rendering method for an application program, characterized in that Applied to an external device, the external device is used to communicate with an electronic device. The electronic device runs a first operating system, and the external device runs a second operating system. The second operating system is different from the first operating system. The first operating system installs a collaborative application program and a desktop launcher. The method includes: Obtain an application list request sent by the collaborative application program. The application list information includes application information of at least one candidate application program. The at least one candidate application program is an application program running on the second operating system; In response to the application list request, send the application list information to the collaborative application, which can present a desktop editing window. The desktop editing window includes application information corresponding to the candidate applications. The collaborative application transmits the target application information to the desktop launcher in response to an editing operation input to the candidate applications in the desktop editing window. The target application information includes application information of at least one target application, and the target application is the candidate application selected and displayed in the desktop editing window. The desktop launcher presents the target application on the desktop of the first operating system according to the target application information.
11. The method according to claim 10, wherein, Further included are: Obtain an icon acquisition request sent by the collaborative application; According to the icon acquisition request, send the target application icon corresponding to each target application to the collaborative application, so that the collaborative application updates the target application information according to the target application icon, and the desktop launcher performs a refresh operation according to the updated target application information to replace the preset icon of the target application with the target application icon.
12. The method according to claim 10, wherein The first operating system is installed with an intermediate layer application, and the intermediate layer application can perform data transmission with the second operating system. The method further includes: Obtain a data acquisition request sent by the intermediate layer application; In response to the data acquisition request, send application data to the intermediate layer application, so that the collaborative application presents the application interface of the preset application on the application interface of the collaborative application according to the application data, and the application data is the data of the preset application.
13. The method according to claim 10, wherein The first operating system is installed with an intermediate layer application, and the intermediate layer application can perform data transmission with the second operating system. The method further includes: Obtain a desktop acquisition request sent by the intermediate layer application; In response to the desktop acquisition request, send the desktop data of the second operating system to the intermediate layer application, so that the collaborative application calls the desktop data to present the desktop of the second operating system on the application interface of the collaborative application. Operating system.
14. The method according to any one of claims 10 to 13, characterized in that, Further included are: Send copy data to the collaborative application, so that the collaborative application transmits the copy data to the first operating system, and the first operating system updates the copy data to the clipboard.
15. An electronic device, characterized in that, It includes a memory and a processor. The memory is connected to the processor. The processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the electronic device implements the method according to any one of claims 1-9.
16. An external device, characterized in that, It includes a memory and a processor. The memory is connected to the processor. The processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the external device implements the method according to any one of claims 10-14.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1-9 or the method according to any one of claims 10-14.