CN114090172B - Cross-system widget multiplexing method and device - Google Patents
Cross-system widget multiplexing method and device Download PDFInfo
- Publication number
- CN114090172B CN114090172B CN202111327605.8A CN202111327605A CN114090172B CN 114090172 B CN114090172 B CN 114090172B CN 202111327605 A CN202111327605 A CN 202111327605A CN 114090172 B CN114090172 B CN 114090172B
- Authority
- CN
- China
- Prior art keywords
- target
- window
- widget
- host
- displaying
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45537—Provision of facilities of other operating environments, e.g. WINE
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a cross-system widget multiplexing method and device, wherein the method comprises the following steps: determining target small parts to be displayed; the target widget is a widget applied to a second system; the second system and the first system are different operating systems; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for bearing the target widget; the target content is display content contained in the host window. The small parts in the second system which cannot be directly loaded in the first system can be displayed in the first system, the interaction function between the user and the small parts is realized, the development efficiency of the Linux operating system is greatly improved, the system functions are enriched, and the user experience is improved.
Description
Technical Field
The application relates to the field of system software development, in particular to a cross-system widget multiplexing method and device.
Background
At present, the domestic operating system market mainly takes foreign operating systems as main parts, and has great potential safety hazards in the aspect of information network safety. With the increasing importance of the state on the information safety, the development of the domestic autonomous operating system developed from the Linux operating system based on the open source is increasingly strong.
However, linux operating systems are not well-defined in ecology, and available application resources are relatively scarce.
Disclosure of Invention
The application aims to provide a cross-system widget multiplexing method and device, which are used for using widgets in other operating systems on a Linux operating system so as to improve the development efficiency of the Linux operating system and enrich the system functions.
The application provides a cross-system widget multiplexing method, which comprises the following steps:
Determining target small parts to be displayed; the target widget is a widget applied to a second system; the second system and the first system are different operating systems; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for bearing the target widget; the target content is display content contained in the host window.
Optionally, after the determining the target widget to be displayed, the method further includes: sending a first message to the second system, controlling the second system to create the host window, and adding the target widget in the host window; the displaying the target content in the target window based on the host window generated by the second system comprises the following steps: receiving a second message sent by the second system; the second message includes the target content; and displaying the target content in the target window in response to the second message.
Optionally, before the determining the target widget to be displayed, the method further includes: acquiring and displaying a widget list comprising at least one widget identifier; the determining the target widget to be displayed comprises the following steps: receiving a first input; the first input is used for dragging the target widget identifier from the widget list to a target display area; the target widget identifier is an identifier corresponding to the target widget in the at least one widget identifier; the displaying the target content in the target window comprises the following steps: and displaying the target window in the target display area in response to the first input.
Optionally, after the target content is displayed in the target window based on the host window generated by the second system, the method further includes: receiving a second input; the second input is used for adjusting the display area of the target window; and responding to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording the display information of the target window in an expansion mark of the target window.
Optionally, after the target window is updated and displayed based on the display area adjusted by the second input and the display information of the target window is recorded in the extended mark of the target window, the method further includes: and when the target window is reloaded, displaying the target window according to the display information recorded by the expansion identification.
Optionally, the target display area is: the method comprises the steps that a display area for displaying a target window is used in an application window of a target application; the display information includes: the position information of the target display area in the application window; the target window and the application window have the same life cycle; and when reloading the target window, displaying the target window according to the display information recorded by the expansion identification, wherein the method comprises the following steps: and when the application window is reloaded, displaying the target window in a superposition manner on the application window according to the display information recorded by the extension identification.
Optionally, after the target content is displayed in the target window, the method further includes: receiving a target operation for the target widget; updating display content contained in the host window based on the target operation in the second system; and updating the display content of the target window in the first system based on the updated host window.
The application also provides a cross-system widget multiplexing device, comprising:
The determining module is used for determining target small parts to be displayed; the target widget is a widget applied to a second system; the second system and the first system are different operating systems; the display module is used for displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for bearing the target widget; the target content is display content contained in the host window.
Optionally, the apparatus further comprises: a transmitting module and a receiving module; the sending module is used for sending a first message to the second system, controlling the second system to create the host window and adding the target widget in the host window; the receiving module is used for receiving a second message sent by the second system; the second message includes the target content; the display module is specifically configured to respond to the second message, and display the target content in the target window.
Optionally, the apparatus further comprises: the system comprises an acquisition module and a user input module; the acquisition module is used for acquiring and displaying a widget list containing at least one widget identifier; the user input module is used for receiving a first input; the first input is used for dragging the target widget identifier from the widget list to a target display area; the target widget identifier is an identifier corresponding to the target widget in the at least one widget identifier; the display module is specifically configured to respond to the first input, and display the target window in the target display area.
Optionally, the user input module is further configured to receive a second input; the second input is used for adjusting the display area of the target window; and the display module is also used for responding to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording the display information of the target window in the expansion identification mark of the target window.
Optionally, the display module is specifically configured to display the target window according to the display information recorded by the extension identifier when reloading the target window.
Optionally, the target display area is: the method comprises the steps that a display area for displaying a target window is used in an application window of a target application; the display information includes: the position information of the target display area in the application window; the target window and the application window have the same life cycle; and the display module is specifically used for displaying the target window in a superposition manner on the application window according to the display information recorded by the expansion identification when the application window is reloaded.
Optionally, the apparatus further comprises: a content updating module; the user input module is further used for receiving target operation aiming at the target widget; the content updating module is used for updating the display content contained in the host window based on the target operation in the second system; the display module is further configured to update, in the first system, display content of the target window based on the updated host window.
The present application also provides a computer program product comprising computer programs/instructions which when executed by a processor implement the steps of a cross-system widget multiplexing method as described in any one of the above.
The application also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the cross-system widget multiplexing method as described in any one of the above when executing the program.
The present application also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a cross-system widget multiplexing method as described in any one of the above.
According to the cross-system widget multiplexing method and device, after the target widget in the second system to be displayed is determined, the display content contained in the host window is displayed in the target window of the first system based on the host window which is generated by the second system and bears the target widget. The first system can use the small parts in the second system, so that the software development efficiency of the first system is improved, and the system functions are enriched.
Drawings
In order to more clearly illustrate the application or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system architecture to which the cross-system widget multiplexing method provided by the present application is applied;
FIG. 2 is a flow chart of a cross-system widget multiplexing method provided by the application;
FIG. 3 is a schematic diagram of an application mode of a cross-system widget multiplexing method provided by the application;
Fig. 4 is a schematic structural diagram of a cross-system widget multiplexing device provided by the present application;
Fig. 5 is a schematic structural diagram of an electronic device provided by the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
At present, the domestic operating system market mainly takes foreign operating systems as main parts, and has great potential safety hazards in the aspect of information network safety. The Linux operating system is used as a mature and open-source operating system, and can rapidly solve the situation of lack of domestic operating systems. With the increasing importance of the state on the information safety, the development of the domestic autonomous operating system developed from the Linux operating system based on the open source is increasingly strong. However, limited by the market share and the number of developers of the Linux operating system, domestic operating systems based on the Linux operating system are slow to develop.
Because the number of developers of the Linux operating system is small, development tools for developing the Linux operating system are small, including development frames, available resource libraries, components, widgets and the like. Android widgets are extended functions of Android programs and can be embedded in other applications besides the application. For example, the time widget of the clock can be embedded into a desktop or locked screen, and the presentation mode of the system time is expanded by a unique means. And the Android widget enables a user to enrich and expand system windows such as an Android desktop, a screen locking and the like after the application with the widget is installed. There are many schemes of Linux compatible with Android windows, but no method for applying Android widgets in Linux windows exists. The Android widget characteristics cannot be applied to a Linux system window, so that the characteristics of the Linux window are enriched, and the characteristics of the Android application are perfectly displayed.
Based on the above, the application contemplates that the widget of the Android operating system can be added and used in the Linux operating system by the cross-system widget multiplexing method provided by the embodiment of the application.
It should be noted that in the embodiment of the present application, the first system and the second system have respective underlying environments, and the second system operates in the first system. The underlying environment, referred to herein, refers to the first system and the second system having respective application frameworks Framewok and driver environments. This does not limit the first system and the second system to different types of operating systems.
For example, the first system and the second operation are both Android operating systems or are both GNU/Linux operating systems. The first system may be implemented in a second system in a number of ways, for example by means of a virtual machine, by means of LXC, by means of a container. In some embodiments, the second system runs in the first system and shares Linux Kernel. For example, the first system is a GNU/Linux operating system such as Ubuntu, debian, redHat. The first system is not limited to running on a physical machine, but may be an operating system hosted on other operating systems, such as a WSL in a Windows system. For example, the second system is an Android (Android) operating system, covering the Android OS issued by Google and AOSP and various derivative systems based on AOSP, such as MIUI, EMUI, one UI, etc. In addition, the second system may be a Tizen, meego, hong mong or the like operating system.
For convenience of explanation, in the following embodiments, the first system is taken as a Linux operating system, and the second system is taken as an Android operating system for illustration.
Because the function in the Android operating system is used in the Linux operating system, an Android kernel needs to be added in the Linux operating system, as shown in fig. 1, an operating system architecture schematic diagram applied to the cross-system widget multiplexing method provided by the embodiment of the application is provided. In the embodiment of the application, the Linux operating system can comprise a Linux kernel and an Android kernel.
The cross-system widget multiplexing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
As shown in fig. 2, a cross-system widget multiplexing method according to an embodiment of the present application may include the following steps 201 and 202:
Step 201, determining target small parts to be displayed.
Wherein the target widget is a widget applied to a second system; the second system is a different operating system than the first system.
Illustratively, the widget in the second system cannot be directly loaded in the first system, and thus, embodiments of the present application provide widget functionality that may be added to the interface of an application or presented in a separate window in the first system.
Illustratively, based on the widget functions provided by the embodiment of the application, a developer can add the widget on the interface of the application program, and a user can also directly add the widget on the desktop.
Illustratively, when the first system determines the target widget to be presented based on the user's add-on of the widget, or based on the widget that the developer adds in the interface during the application interface loading process.
The first system and the second system may be different operating system kernels, for example.
And 202, displaying target content in a target window based on the host window generated by the second system.
Wherein the host window is used for bearing the target widget; the target content is display content contained in the host window.
Illustratively, the host window is a window generated in the second system for carrying the target widget. According to the embodiment of the application, the host window in the second system can be displayed in the first system through the scheme that the Linux operating system in the related technology is compatible with the Android window. To realize the function of displaying the target widget carried by the host window in the second system.
Specifically, the technical scheme of the Linux operating system compatible Android window can be a mode of transmitting display contents contained in the host window to a first system in an image frame mode for display, or a mode of sharing the display memory contents, or other modes for realizing the Linux operating system compatible Android window.
The target window may be a separate window, or may be a window superimposed on a window interface of an application program of the first system. That is, in the embodiment of the present application, the target widget may exist independently or may be embedded in an application program.
It will be appreciated that since the widget is a miniature application view, it may be embedded in other applications (e.g., desktop) and receive periodic updates, it is difficult to directly acquire and control its UI resources. Based on this, the technical scheme that the Linux operating system provided in the related technology is compatible with the Android window cannot directly obtain the window handle (handle) or the window ID of the widget window, and further it is difficult to directly display the display content of the widget window into the Linux operating system.
Based on the defects of the related art, the embodiment of the application thinks that the widget can be added into the created host window in a way that the host window bears the widget, and then the display content contained in the host window is displayed in the Linux operating system through the technical scheme that the Linux operating system in the related art is compatible with the Android window, so that the cross-system widget multiplexing is realized.
In this way, after determining the target widget in the second system to be displayed, based on the host window generated by the second system and bearing the target widget, displaying the display content contained in the host window in the target window of the first system. The first system can use the small parts in the second system, so that the software development efficiency of the first system is improved, and the system functions are enriched.
Optionally, in the embodiment of the present application, after determining the target widget to be displayed, the first system may instruct the second system to create a host window, and add the target widget in the host window, and then display the display content included in the host window in the first system.
Illustratively, after the step 201, the cross-system widget multiplexing method provided by the embodiment of the present application may further include the following step 201a1:
Step 201a1, a first message is sent to the second system, the second system is controlled to create the hosting window, and the target widget is added in the hosting window.
Illustratively, after the above-mentioned host window is created in the second system and the target widget determined in the above-mentioned step 201 is added to the host window, the display content contained in the host window may be displayed by the following steps.
Illustratively, the step 202 may include the following steps 202a1 and 202a2:
step 202a1, receiving a second message sent by the second system.
Wherein the second message includes the target content.
Step 202a2, in response to the second message, displaying the target content in the target window.
Illustratively, the second system, after creating the host window and adding the above-mentioned target widget in the host window, sends the display content contained in the host window to the first system. And the first system displays the display content contained in the host window in the target window of the first system after receiving the display content.
In this way, the method can enable the first system to acquire the resources of the target widget in the second system by creating the host window in the second system and adding the target widget in the host window, so that the widget is displayed in the target window of the first system.
Alternatively, in embodiments of the present application, the first system may provide a list of widgets for the user and application developer to select the widgets that need to be created.
Illustratively, before the step 201, the cross-system widget multiplexing method provided by the embodiment of the present application may further include the following step 203:
Step 203, obtaining and displaying a widget list including at least one widget identifier.
Illustratively, the widget list described above contains a list of widgets that the first system supports, or allows the developer to add in the application.
For example, the user may cause the user-selected target widget to be displayed at a specified location by selecting and dragging the target widget from the widget list. The developer can drag the target widget to a designated position of the interface in the application development interface, so that the target widget can be displayed in the designated position when the application interface is loaded.
Illustratively, the first system may determine the target widget to be displayed by the following steps, i.e., the above step 201 may include the following step 201b:
Step 201b, receiving a first input.
The first input is used for dragging the target widget identifier from the widget list to a target display area; and the target widget identifier is an identifier corresponding to the target widget in the at least one widget identifier.
The first system, upon receiving the first input, may display a target window containing the target widget, for example, by the following steps.
Illustratively, the step 202 may include the following step 202b:
step 202b, in response to the first input, displaying the target window in the target display area.
For example, the user may cause the first system to display the target widget in the target display area by dragging the target widget identifier corresponding to the target widget to the target display area.
The target display area may be an area on a desktop window of the first system, or may be an area on an application window of the application program.
In this manner, the user may directly select and drag the target widget to the specified location from the widget list, such that the first system directly displays the user-selected target widget at the specified location.
Further optionally, in an embodiment of the present application, after the first system displays the target window, the user may also adjust a size and a position of the target window, and when the first system reloads the target window, the first system may know to display the target window at the adjusted position based on the adjusted size.
Illustratively, after the step 202, the cross-system widget multiplexing method provided by the embodiment of the present application may further include the following steps 204 and 205:
step 204, receiving a second input.
Wherein the second input is used to adjust a display area of the target window.
And step 205, in response to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording the display information of the target window in the expansion identification record of the target window.
For example, the attribute of the target window may include an extension mark, the first system may record display information of the target window in the extension mark, and then, when the first system reloads the target window, the target window may be displayed by the window size and the window display position of the target window recorded by the extension mark of the target window.
Illustratively, after the step 205, the cross-system widget multiplexing method provided by the embodiment of the present application may further include the following step 206:
And 206, displaying the target window according to the display information recorded by the expansion identification when reloading the target window.
Illustratively, based on the above-described display manner of the target window, embodiments of the present application may include the following two examples.
Example 1:
In example 1, the target window is presented in the form of an independent window, for example, the target window is independently displayed on a desktop window of the first system.
For example, in an application scenario in which a target window is presented in the form of a separate window, a user may adjust the display position and size of the target window in the desktop window. When the first system is restarted, the desktop window of the first system is reloaded, and at this time, the target window is displayed according to the display position and the display size of the target window in the desktop window, which are recorded by the extension mark.
Example 2:
In example 2, the target window is a window embedded in an application interface of the target application.
Illustratively, the target display area is: the method comprises the steps that a display area for displaying a target window is used in an application window of a target application; the display information includes: the position information of the target display area in the application window; the target window has the same lifecycle as the application window.
Illustratively, the step 206 may include the following step 206a:
And 206a, when the application window is reloaded, displaying the target window in a superposition manner on the application window according to the display information recorded by the extension identification.
For example, as shown in fig. 3, an application mode of the cross-system widget multiplexing method according to the embodiment of the present application is shown. Taking the example of overlapping and displaying the widget on an application interface of the Linux application, the Linux window is a reserved position of the Android widget. Android is a widget displayed into Linux, creating a host window. Window manager, overlapping widget window and Linux window, realizing widget, application at Linux end
Specifically, at the Android end, a service is provided for Linux, and all the widgets of the Android end and detailed information (name, size and preview) of the widgets are obtained. Creating a display window for each widget applied to the Linux end, adding HostView to the window to display the widget, and transmitting the identification of the widget to a Linux window manager as a window extension identification.
And on the Linux end, all windows of the Android widget are displayed, and a window protocol is extended. The method comprises the steps of obtaining available Android widgets, dragging the widgets into a Linux window by a user, automatically adjusting the layout of the widgets after the widgets are placed according to the sizes and the dragging positions of the widgets, recording the position information of the widgets and the identifiers of the widgets, and transmitting the position information and the identifiers of the widgets to a window manager. And after the window is drawn, if the Android widget information exists in the expansion protocol of the window, the window manager finds the widget window of the Android end corresponding to the widget according to the widget identifier, and draws the window to the position of the Linux window appointed in the expansion protocol in Linux.
Optionally, in an embodiment of the present application, the first system further allows the user to interact with the target widget after displaying the target widget.
Illustratively, after the step 202, the cross-system widget multiplexing method provided by the embodiment of the present application may further include the following steps 207 to 209:
Step 207, receiving a target operation for the target widget.
Step 208, updating display content contained in the host window based on the target operation in the second system.
Step 209, updating the display content of the target window in the first system based on the updated host window.
Illustratively, when a user performs a target operation on a target widget displayed in a target window, the first system transmits the target operation to the second system, and the second system updates the target widget in the host window based on the target operation after receiving the target operation. And then, the second system transmits the display content contained in the updated host window to the first system, and the first system updates the display content of the target window after receiving the display content contained in the updated host window.
In this way, interactive behavior with the target widget may be implemented on the first system.
According to the cross-system widget multiplexing method provided by the embodiment of the application, when the first system needs to display the target widget in the target window, the target widget is displayed on the first system based on the method of displaying the Android window in the Linux operating system in a compatible manner by creating the host window in the second system and adding the target widget in the host window, so that the widget in the second system which cannot be directly loaded in the first system can be displayed in the first system, the interaction function between a user and the widget is realized, the development efficiency of the Linux operating system is greatly improved, the system functions are enriched, and the user experience is improved.
It should be noted that, in the cross-system widget multiplexing method provided by the embodiment of the present application, the execution body may be a cross-system widget multiplexing device, or a control module in the cross-system widget multiplexing device for executing the cross-system widget multiplexing method. In the embodiment of the application, a cross-system widget multiplexing device is taken as an example to execute a cross-system widget multiplexing method, and the cross-system widget multiplexing device provided by the embodiment of the application is described.
In the embodiment of the present application, the method is shown in the drawings. The cross-system widget multiplexing method is exemplified by a figure in combination with an embodiment of the present application. In specific implementation, the cross-system widget multiplexing method shown in the foregoing method drawings may also be implemented in combination with any other drawing that may be combined and is illustrated in the foregoing embodiment, which is not repeated herein.
The cross-system widget multiplexing device provided by the application is described below, and the cross-system widget multiplexing method described below and the cross-system widget multiplexing method described above can be referred to correspondingly.
Fig. 4 is a schematic structural diagram of a cross-system widget multiplexing device according to an embodiment of the present application, as shown in fig. 4, including:
A determining module 401, configured to determine a target widget to be displayed; the target widget is a widget applied to a second system; the second system and the first system are different operating systems; a display module 402, configured to display target content in a target window based on the host window generated by the second system; wherein the host window is used for bearing the target widget; the target content is display content contained in the host window.
Optionally, the apparatus further comprises: a transmitting module 403 and a receiving module 404; the sending module 403 is configured to send a first message to the second system, control the second system to create the host window, and add the target widget in the host window; the receiving module 404 is configured to receive a second message sent by the second system; the second message includes the target content; the display module 402 is specifically configured to display the target content in the target window in response to the second message.
Optionally, the apparatus further comprises: an acquisition module 405 and a user input module 406; the acquiring module 405 is configured to acquire and display a widget list including at least one widget identifier; the user input module 406 is further configured to receive a first input; the first input is used for dragging the target widget identifier from the widget list to a target display area; the target widget identifier is an identifier corresponding to the target widget in the at least one widget identifier; the display module 402 is specifically configured to display the target window in the target display area in response to the first input.
Optionally, the user input module 406 is further configured to receive a second input; the second input is used for adjusting the display area of the target window; the display module 402 is further configured to update and display the target window based on the display area adjusted by the second input in response to the second input, and record display information of the target window in an extended identifier of the target window.
Optionally, the display module 402 is specifically configured to display the target window according to the display information recorded by the extension identifier when reloading the target window.
Optionally, the target display area is: the method comprises the steps that a display area for displaying a target window is used in an application window of a target application; the display information includes: the position information of the target display area in the application window; the target window and the application window have the same life cycle; the display module 402 is specifically configured to superimpose and display the target window on the application window according to the display information recorded by the extension identifier when reloading the application window.
Optionally, the apparatus further comprises: a content update module 407; the user input module 406 is further configured to receive a target operation for the target widget; the content updating module 407 is configured to update, in the second system, display content included in the host window based on the target operation; the display module 402 is further configured to update, in the first system, display content of the target window based on the updated host window.
According to the cross-system widget multiplexing device, when the first system needs to display the target widget in the target window, the target widget is displayed on the first system based on the method of displaying the Android window in a compatible mode of the Linux operating system by creating the host window in the second system and adding the target widget in the host window, so that the widget in the second system which cannot be directly loaded in the first system can be displayed in the first system, the interaction function between a user and the widget is realized, the development efficiency of the Linux operating system is greatly improved, the system functions are enriched, and the user experience is improved.
Fig. 5 illustrates a physical schematic diagram of an electronic device, as shown in fig. 5, which may include: processor 510, communication interface (Communications Interface) 520, memory 530, and communication bus 540, wherein processor 510, communication interface 520, memory 530 complete communication with each other through communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a cross-system widget multiplexing method comprising: determining target small parts to be displayed; the target widget is a widget applied to a second system; the second system and the first system are different operating systems; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for bearing the target widget; the target content is display content contained in the host window.
Further, the logic instructions in the memory 530 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a cross-system widget multiplexing method provided by the methods described above, the method comprising: determining target small parts to be displayed; the target widget is a widget applied to a second system; the second system and the first system are different operating systems; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for bearing the target widget; the target content is display content contained in the host window.
In yet another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the above-provided cross-system widget multiplexing method, the method comprising: determining target small parts to be displayed; the target widget is a widget applied to a second system; the second system and the first system are different operating systems; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for bearing the target widget; the target content is display content contained in the host window.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (8)
1. A cross-system widget multiplexing method applied to a first system, comprising:
determining target small parts to be displayed; sending a first message to a second system, controlling the second system to create a host window, and adding the target widget in the host window; the target widget is a widget applied to a second system; the second system and the first system are different operating systems;
Displaying target content in a target window based on the host window generated by the second system; receiving a target operation for the target widget; updating display content contained in the host window based on the target operation in the second system; updating display content of the target window in the first system based on the updated host window; the target window comprises a window overlapped on a window interface of an application program of the first system;
Wherein the host window is used for bearing the target widget; the target content is display content contained in the host window;
The displaying the target content in the target window based on the host window generated by the second system comprises the following steps: receiving a second message sent by the second system; the second message includes the target content; and displaying the target content in the target window in response to the second message.
2. The method of claim 1, wherein prior to the determining the target widget to be displayed, the method further comprises:
acquiring and displaying a widget list comprising at least one widget identifier;
the determining the target widget to be displayed comprises the following steps:
receiving a first input; the first input is used for dragging the target widget identifier from the widget list to a target display area; the target widget identifier is an identifier corresponding to the target widget in the at least one widget identifier;
the displaying the target content in the target window comprises the following steps:
And displaying the target window in the target display area in response to the first input.
3. The method of claim 2, wherein the method further comprises, after displaying the target content in the target window based on the host window generated by the second system:
receiving a second input; the second input is used for adjusting the display area of the target window;
And responding to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording the display information of the target window in an expansion identification record of the target window.
4. The method of claim 3, wherein in response to the second input, after updating the display area adjusted based on the second input to display the target window and recording display information of the target window in an extended identification record of the target window, the method further comprises:
And when the target window is reloaded, displaying the target window according to the display information recorded by the expansion identification.
5. The method of claim 4, wherein the target display area is: the method comprises the steps that a display area for displaying a target window is used in an application window of a target application; the display information includes: the position information of the target display area in the application window; the target window and the application window have the same life cycle;
And when reloading the target window, displaying the target window according to the display information recorded by the expansion identification, wherein the method comprises the following steps:
And when the application window is reloaded, displaying the target window in a superposition manner on the application window according to the display information recorded by the extension identification.
6. A cross-system widget multiplexing apparatus, the apparatus comprising:
The determining module is used for determining target small parts to be displayed; sending a first message to a second system, controlling the second system to create a host window, and adding the target widget in the host window; the target widget is a widget applied to a second system; the second system and the first system are different operating systems;
the display module is used for displaying target content in a target window based on the host window generated by the second system; receiving a target operation for the target widget; updating display content contained in the host window based on the target operation in the second system; updating display content of the target window in the first system based on the updated host window; the target window comprises a window overlapped on a window interface of an application program of the first system;
Wherein the host window is used for bearing the target widget; the target content is display content contained in the host window;
The displaying the target content in the target window based on the host window generated by the second system comprises the following steps: receiving a second message sent by the second system; the second message includes the target content; and displaying the target content in the target window in response to the second message.
7. A non-transitory computer readable storage medium, having stored thereon a computer program, which when executed by a processor, implements the steps of the cross-system widget multiplexing method according to any one of claims 1 to 5.
8. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the cross-system widget multiplexing method according to any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111327605.8A CN114090172B (en) | 2021-11-10 | 2021-11-10 | Cross-system widget multiplexing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111327605.8A CN114090172B (en) | 2021-11-10 | 2021-11-10 | Cross-system widget multiplexing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114090172A CN114090172A (en) | 2022-02-25 |
| CN114090172B true CN114090172B (en) | 2024-06-18 |
Family
ID=80299604
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111327605.8A Active CN114090172B (en) | 2021-11-10 | 2021-11-10 | Cross-system widget multiplexing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114090172B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117971334A (en) * | 2022-10-25 | 2024-05-03 | 华为技术有限公司 | Method, device and terminal device for opening application function interface |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106844066A (en) * | 2017-01-22 | 2017-06-13 | 腾讯科技(深圳)有限公司 | One kind application operation method, apparatus and system |
| CN110321192A (en) * | 2019-04-29 | 2019-10-11 | 上海连尚网络科技有限公司 | A kind of method and apparatus that boarding program is presented |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5874960A (en) * | 1995-07-05 | 1999-02-23 | Microsoft Corporation | Method and system for sharing applications between computer systems |
| JPH11119967A (en) * | 1997-10-16 | 1999-04-30 | Toshiba Corp | Network type computer system and window component display control method |
| US20040225960A1 (en) * | 2003-05-09 | 2004-11-11 | Microsoft Corporation | System for hosting graphical layout/presentation objects |
| US8683082B2 (en) * | 2005-11-14 | 2014-03-25 | Sandisk Technologies Inc. | Removable memory devices for displaying advertisement content on host systems using applications launched from removable memory devices |
| KR101347384B1 (en) * | 2011-08-30 | 2014-01-03 | 한국과학기술원 | Memo management method using widget, recording medium for the same |
| TWI749272B (en) * | 2018-11-09 | 2021-12-11 | 圓展科技股份有限公司 | Method of operating widget on an electronic device |
| KR20200069703A (en) * | 2018-12-07 | 2020-06-17 | 주식회사 코드펀치 | An input system changing the input window dynamically and a method thereof |
| CN113542503B (en) * | 2020-03-31 | 2022-07-15 | 华为技术有限公司 | A method, electronic device and system for creating application shortcut |
| CN112181571A (en) * | 2020-09-28 | 2021-01-05 | 北京字节跳动网络技术有限公司 | Floating window display method, device, terminal and storage medium |
| CN112925570A (en) * | 2021-02-24 | 2021-06-08 | 深圳市皓丽智能科技有限公司 | Application operation method and device based on dual systems, electronic equipment and storage medium |
| CN113407293B (en) * | 2021-08-19 | 2021-11-09 | 北京鲸鲮信息系统技术有限公司 | Window management method, device, equipment and storage medium |
| CN113407086B (en) * | 2021-08-20 | 2021-11-30 | 北京鲸鲮信息系统技术有限公司 | Object dragging method, device and storage medium |
-
2021
- 2021-11-10 CN CN202111327605.8A patent/CN114090172B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106844066A (en) * | 2017-01-22 | 2017-06-13 | 腾讯科技(深圳)有限公司 | One kind application operation method, apparatus and system |
| CN110321192A (en) * | 2019-04-29 | 2019-10-11 | 上海连尚网络科技有限公司 | A kind of method and apparatus that boarding program is presented |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114090172A (en) | 2022-02-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106095530B (en) | A container automatic creation and startup method for multiple Android systems | |
| EP3992800B1 (en) | Program test method and apparatus, computer device, and storage medium | |
| US11016785B2 (en) | Method and system for mirror image package preparation and application operation | |
| EP3274831B1 (en) | Application container for live migration of mobile applications | |
| CN101876940B (en) | Automatic test method and device | |
| CN107168780B (en) | Virtual reality scene loading method and equipment and virtual reality equipment | |
| CN114168239B (en) | Window display method, device, equipment and storage medium | |
| EP4120595B1 (en) | Data processing method and apparatus for virtual scene, and electronic device and storage medium | |
| CN107463426B (en) | Method and device for cloning virtual machine under KVM virtualization | |
| CN107704282A (en) | A kind of loading method and device applied to embedded system | |
| US12411646B2 (en) | Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium | |
| CN114090172B (en) | Cross-system widget multiplexing method and device | |
| CN111104108A (en) | Display interface WPF generation method and device | |
| CN102023857A (en) | ServiceOS-based multi-platform application program service management method and system | |
| CN116302337A (en) | Virtual machine migration method, device and storage medium | |
| CN112685040B (en) | Method, device, equipment and storage medium for generating interface file in android system | |
| EP4394593A1 (en) | Skin changing method and apparatus for display interface, vehicle and storage medium | |
| JP7053979B2 (en) | Information processing equipment, information processing methods, and programs | |
| CN109039765B (en) | Network configuration method and device | |
| CN113885861B (en) | Method and device for multiplexing components of cross-system | |
| US20200192763A1 (en) | Methods, apparatuses and systems for cloud-based disaster recovery | |
| US11836478B2 (en) | Virtual network function and physical network function software upgrade | |
| CN115221028B (en) | Program debugging methods and devices | |
| CN115509590A (en) | Continuous deployment method and computer equipment | |
| CN113282328A (en) | Application program updating method, computer device and computer storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20220421 Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing. Applicant after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd. Address before: 2005, floor 2, No. 39, West Street, Haidian District, Beijing 100082 Applicant before: Beijing jingling Information System Technology Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |