Application program display method and device and electronic equipment
By working together between the host machine and the container, the application interface image is acquired and synthesized, solving the problems of low display efficiency and high memory consumption in dual-system terminal devices, and achieving efficient and resource-saving application display.
Patent Information
- Application Number
- CN202411306903.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2026-03-20
AI Technical Summary
Existing technologies result in low application display efficiency and high memory consumption in dual-system terminal devices, and complicated user operations.
The system receives the startup request from the target application on the host machine, starts the corresponding application within the container, obtains the container interface image, and synthesizes the host application interface image to display on the screen, reducing memory usage and simplifying operations.
It enables efficient and resource-saving application display in dual-system terminal devices, simplifies user operations, and improves display efficiency and flexibility.
Smart Images

Figure CN121704935A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image display technology, and more particularly to a method, apparatus, and electronic device for displaying applications. Background Technology
[0002] With the development of computer technology and the increasing complexity of user needs, it is often necessary to display applications with different user interfaces on the same computer screen (also known as application rendering). Taking Android dual-system as an example, if it is necessary to display applications from different user systems at different times on the same terminal device, dual-system functionality is usually achieved using a host machine and two containers. Specifically, the host machine does not provide a user interface and is hidden in the background. User system A and user system B run in two containers respectively. If it is necessary to display the application of user system A or user system B on the terminal device at different times (i.e., to use the application of the current system), it is usually necessary to switch between the two containers to start or exit the application between the different systems. The application rendering method is as follows: Figure 1 As shown, Figure 1 Taking Android application rendering as an example, Figure 1 The top is the status bar for the user interface, the bottom is the navigation bar, and the middle is the drawing area for the main screen application (launcher) and other applications.
[0003] However, the above method consumes a lot of memory and requires constant switching between the two user systems, making user operations rather complex. Therefore, there is a need for a more resource-efficient and efficient application display method for dual-system environments. Summary of the Invention
[0004] The purpose of this invention is to provide a method, apparatus, and electronic device for displaying applications, in order to solve the problems of excessive memory resource consumption and low application display efficiency in the prior art.
[0005] To solve the above-mentioned technical problems, the embodiments of the present invention are implemented as follows: In a first aspect, embodiments of the present invention provide a method for displaying an application. The method is applied to a terminal device, the terminal device including a host machine and multiple different containers, the containers running on the host machine, and the container system corresponding to the container being isolated from the host machine system corresponding to the host machine. The method includes: upon receiving a launch request for a target application through the host machine, launching the target application within a first container based on the launch request via a launch interface; acquiring a first interface image of the container application interface of the target application launched within the first container through the first container; acquiring and reading the first interface image through the host machine, and combining the status bar and navigation bar of the host machine with the first interface image to form a host machine application interface image of the target application; and displaying the host machine application interface image of the target application on the screen of the host machine.
[0006] Secondly, embodiments of the present invention provide an application display device, which is applied to a terminal device. The terminal device includes a host machine and multiple different containers. The containers run on the host machine, and the container system corresponding to the container is isolated from the host machine system corresponding to the host machine. The device includes: a target application launch module, used to launch the target application in a first container through a launch interface based on the launch request received by the host machine when a launch request for the target application is received; a first interface image acquisition module, used to acquire a first interface image of the container application interface of the target application after it has been launched in the first container through the first container; and a host machine application interface acquisition and display module, used to acquire and read the first interface image through the host machine, and combine the status bar and navigation bar of the host machine with the first interface image to form a host machine application interface image of the target application, and display the host machine application interface image of the target application on the screen of the host machine.
[0007] Thirdly, embodiments of the present invention provide an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the application display method provided in the above embodiments.
[0008] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the application display method provided in the above embodiments.
[0009] Fifthly, embodiments of the present invention provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the steps of the display method of the application provided in the above embodiments.
[0010] As can be seen from the technical solutions provided by the above embodiments of the present invention, the embodiments of the present invention design an application display method. This method is applied to a terminal device, which includes a host machine and multiple different containers. The containers run on the host machine, and the container system corresponding to the container is isolated from the host machine system corresponding to the host machine. First, when the host machine receives a startup request for the target application, it starts the target application in the first container through the startup interface based on the startup request. The first container obtains the first interface image of the container application interface of the target application after it is started in the first container. The host machine obtains and reads the first interface image, and combines the status bar and navigation bar of the host machine with the first interface image to form the host machine application interface image of the target application. The host machine application interface image of the target application is then displayed on the screen of the host machine. In this way, by obtaining the first interface image of the target application through the first container and then combining it with the first interface image by the host machine to obtain the host machine application interface image, the current target application can be displayed. Therefore, only one host machine and one container are needed to realize dual-system and multi-system functions, which can effectively reduce memory space and save resources. By exchanging information between the host machine and the container, the target application can be displayed on the host machine screen without switching to the container system. This allows for the startup and display of applications within the container, simplifying user operation and improving the flexibility and efficiency of application display. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 Draw display diagrams for applications in related technologies; Figure 2 This is a flowchart illustrating a method for displaying an application according to the present invention; Figure 3 A display schematic diagram of the application of this invention is drawn; Figure 4 This is a flowchart illustrating another method for displaying an application according to the present invention; Figure 5 This is a schematic diagram illustrating the principle of application loading and startup within the container of the present invention; Figure 6 A schematic diagram illustrating the principle of the application within the container of this invention; Figure 7 This is a schematic diagram illustrating the principle of the display method of the application of the present invention; Figure 8 This is a schematic diagram of the structure of a display device for an application according to the present invention; Figure 9 This is a schematic diagram of the structure of an electronic device according to the present invention. Detailed Implementation
[0013] This specification provides one or more embodiments of a method, apparatus, and electronic device for displaying an application.
[0014] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this document.
[0015] like Figure 2 As shown in the embodiments of this specification, an application display method is provided. The execution subject of this method can be a terminal device, such as a mobile phone, tablet computer, or other specific terminal device; it can also be a computer device such as a laptop or desktop computer; or it can be an IoT device (specifically, such as a smartwatch, in-vehicle device, etc.). The method may specifically include the following steps: In step S102, if the host machine receives a startup request for the target application, the target application in the first container where the target application is located is started through the startup interface based on the startup request.
[0016] The methods described in this specification can be applied to a terminal device, which includes a host machine and multiple different containers. Each container runs on the host machine, and the container system corresponding to each container is isolated from the host machine system corresponding to the host machine. The container systems corresponding to each container are also isolated from each other.
[0017] The application drawing and display diagrams in the embodiments of this specification are as follows: Figure 3 As shown, Figure 3 Taking dual-system rendering and display as an example, Figure 3The interface displayed is the host machine's screen, with the host machine's status bar at the top, the host machine's navigation bar at the bottom, and a shared drawing area in the middle for both the host machine's applications and the applications within the container. Dual systems refer to two user systems running simultaneously on the same terminal device, such as: Android+Android (two Android systems), Android+Linux (Android and Linux systems), Android+OpenHarmony (Android and OpenHarmony systems), etc.
[0018] In implementation, when a user clicks the application icon of the target application on the host machine's desktop, the host machine receives a launch request for the target application. The launch interface can be a launch interface set on the host machine, a launch interface set within a container, or it can include both a host machine launch interface and a container launch interface. Upon receiving the launch request, the target application can be launched directly within the first container containing the target application through the launch interface, or the target application can be launched according to a preset launch order through the launch interface.
[0019] In step S104, the first interface image of the container application interface of the target application after it is launched in the first container is obtained through the first container.
[0020] The first interface image is the image of the application interface within the container corresponding to the target application after the first container starts. In implementation, the first interface image can be generated by the functional module (such as the graphics layer compositor) in the first container used for drawing the application interface, and then obtained through the drawing management service of the first container.
[0021] Furthermore, the multiple different containers in the embodiments of this specification can be multiple different Docker containers, multiple different LXC containers, or multiple Docker containers and LXC containers.
[0022] In step S106, the host machine acquires and reads the first interface image, and combines the host machine's status bar, navigation bar, and the first interface image with the first interface image to form the host machine application interface image of the target application, and displays the host machine application interface image of the target application on the host machine screen.
[0023] After the host machine obtains the first interface image corresponding to the container application interface, it reads the first interface image and synthesizes the host machine application interface image corresponding to the host machine application interface based on the host machine's status bar, navigation bar and the first interface image, and finally displays the host machine application interface image corresponding to the target application on the host machine's screen.
[0024] In practice, the method of combining the host machine's status bar, navigation bar, and first interface image into the host machine application interface image of the target application can utilize the functional modules in the host machine used for application interface drawing, such as the host machine's graphics layer compositor.
[0025] In the embodiments of this specification, the processing of step S102 can be varied. The following provides an optional processing method, which can be referred to in the following steps S1022-S1024.
[0026] In step S1022, a startup request is obtained through the host machine's main screen application.
[0027] Taking Android as an example, the host device's main screen application can be Launcher, which is the Android system's desktop launcher.
[0028] In step S1024, in response to the startup request, the target application located in the first container is started sequentially through the startup interface and the second application management service of the host machine, and then through the second application management service of the first container.
[0029] The first application management service of the first container and the second application management service of the host machine can be understood as functional modules, used to provide functions such as loading, launching, and managing the APP (application). The first application management service runs in the container system and is used to provide a startup interface to the host system to launch the application in the container; the second application management service runs in the host system and is used to provide the container's startup interface to the host's main screen application and to launch the target application.
[0030] By sequentially launching the target application within the first container, where the target application resides, through the second application management service of the host machine and the first application management service of the first container, the startup efficiency and accuracy of the target application can be effectively improved.
[0031] like Figure 4 As shown in the embodiments of this specification, the processing of steps S108 and S110 may be included before step S102.
[0032] In step S108, a list of applications corresponding to multiple applications running in the first container is obtained through the first container.
[0033] In step S110, the application list is read and displayed by the host machine.
[0034] In implementation, a list of applications can be loaded by the first application management service of the first container and provided to the host system outside the first container. This application list includes multiple applications, at least one of which is the target application. Correspondingly, a second application management service running on the host system is also used to read the application list from the container system and send the application list to the host's main screen application launcher, and to display the application list on the host's screen through the main screen application.
[0035] Before launching the target application, first obtaining the application list and displaying it on the host screen allows for more efficient and targeted identification and launch of the target application, which helps improve the efficiency and accuracy of the target application display.
[0036] The schematic diagram illustrating the loading and startup principle of applications within the container in the embodiments of this specification can be found in [reference needed]. Figure 5 As shown. Figure 5 In this context, the launcher is the host machine's main screen application, PackageManager is the system interface (startup interface), application management service ① is the first application management service, application management service ② is the second application management service, and the container environment can be a virtual machine runtime environment. Figure 5 It is understood that the first container provides the PackageManager startup interface to the host machine through the first application management service via the container environment of the first container. The host machine obtains the startup interface through the second application management service and provides the startup interface to the main screen application of the first container. After the user clicks the icon of the target application in the application list on the host machine's screen (or desktop) (obtaining a startup request), the target application is launched sequentially through the second application management service of the host machine and the first application management service of the first container via the startup interface.
[0037] In the embodiments of this specification, the processing of step S104 can be varied. The following provides an optional processing method, which can be referred to in the following step S1042.
[0038] In step S1042, the first interface image of the container application interface of the target application after it is launched in the first container is obtained through the first drawing management service of the first container.
[0039] The first rendering management service runs in the container system and is used to obtain the composited image data from the container's graphics layer compositor SurfaceFlinger and provide it to the host machine.
[0040] Accordingly, the processing of step S106 can be varied. The following provides an optional processing method, which can be found in the following steps S1062-S1066.
[0041] In step S1062, the first interface image is obtained and read through the second rendering management service of the host machine, and the first interface image is sent to the graphics layer compositor of the host machine.
[0042] The second rendering management service runs on the host system and is used to acquire the composited image data within the container and provide the composited image data to the host's graphics layer compositor, SurfaceFlinger.
[0043] In step S1064, based on the host machine's status bar, navigation bar, and first interface image, the host machine's graphics layer compositor generates the host machine application interface image corresponding to the target application.
[0044] In step S1066, the host application interface image of the target application is displayed on the host screen.
[0045] The efficiency of application rendering can be further improved by using the first rendering management service of the container system and the second rendering management service of the host system.
[0046] In this embodiment of the specification, the host machine and the first container transmit the first interface image through shared memory in the terminal device. The shared memory can be set within the first container. The processing method for obtaining and reading the first interface image through the host machine in step S106 can be varied. One optional processing method is provided below; please refer to step S1068 for details.
[0047] In step S1068, the host machine obtains the first interface image from the first container through the shared memory in the terminal device and reads the first interface image.
[0048] The schematic diagram illustrating the in-container application rendering principle in this specification can be found in [reference]. Figure 6 As shown, Figure 6 In the diagram, drawing management service ① is the first drawing management service, and drawing management service ② is the second drawing management service. Figure 6It is known that after the target application is launched, the composite image data is generated by the SurfaceFlinger graphics layer compositor of the first container, and the image of the container application interface (i.e. the first interface image) after the target application is launched is obtained by the first rendering management service. The first interface image is provided to the host machine through the container environment and shared memory. The host machine obtains and reads the first interface image through the second rendering management service. Then, the host machine's graphics layer compositor combines the host machine's status bar, navigation bar, main screen application, and other applications with the first interface image to form composite image data (i.e. the host machine application interface image of the target application), and draws it on the host machine's screen.
[0049] Figure 7 This is a schematic diagram illustrating the principle of the application display method in the embodiments of this specification. Figure 7 It can be seen that the display method of this application mainly includes: launching the host main screen application, launching the target application, compositing images within the container, acquiring image data within the container on the host, compositing images on the host, and rendering images on the host. Specifically, it may include the following processes: 1) The host machine's main screen application launcher starts, reads the application list inside the container, and displays it on the desktop; 2) Target application launch: Click the target application icon on the host desktop to launch the application within the first container; 3) The SurfaceFlinger within the first container composites the image of the target application and hands it over to the first rendering management service; 4) The host machine's second rendering management service obtains the composited image data (first interface image) from the first container; 5) The SurfaceFlinger on the host machine combines the image data in the first container with the status bar and navigation bar of the host machine to create the final image data (host machine application interface image).
[0050] 6) The host machine's SurfaceFlinger renders the final image data onto the screen.
[0051] In summary, specific embodiments of this subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing can be advantageous.
[0052] The above describes one or more embodiments of the application display method provided in this specification. Based on the same idea, one or more embodiments of this specification also provide an application display device, such as... Figure 8 As shown. The display device for this application is used in a terminal device, which includes a host machine and multiple different containers. The containers run on the host machine, and the container system corresponding to each container is isolated from the host machine system corresponding to the host machine. The display device for the application includes: The target application startup module 210 is used to start the target application in the first container where the target application is located through the startup interface based on the startup request when the host machine receives the startup request of the target application. The first interface image acquisition module 220 is used to acquire the first interface image of the container application interface of the target application after it is launched in the first container through the first container. The host application interface acquisition and display module 230 is used to acquire and read the first interface image through the host machine, and combine the host machine's status bar, navigation bar and the first interface image into the host application interface image of the target application, and display the host application interface image of the target application on the host machine screen.
[0053] In this embodiment of the specification, the display device of the application further includes: The application list acquisition module obtains an application list corresponding to multiple applications running within the first container through the first container; The application list display module reads and displays the application list from the host machine.
[0054] In this embodiment of the specification, the target application launch module 210 includes: The startup request acquisition unit obtains the startup request through the host machine's main screen application; The application startup unit, in response to a startup request, launches the target application within the first container through the startup interface and the second application management service of the host machine, and then through the first application management service of the first container.
[0055] In the embodiments described in this specification, multiple different containers include Docker containers and / or LXC containers.
[0056] In this embodiment of the specification, the first interface image acquisition module 220 is used to acquire the first interface image of the container application interface of the target application after it is launched in the first container through the first drawing management service of the first container.
[0057] Accordingly, the host application interface acquisition and display module 230 includes: The first interface image acquisition unit is used to acquire and read the first interface image through the second rendering management service of the host machine, and send the first interface image to the graphics layer compositor of the host machine; The host application interface generation unit is used to generate the host application interface image corresponding to the target application based on the host's status bar, navigation bar, and first interface image through the host's graphics layer compositor. The display unit is used to display the host application interface image of the target application on the host screen.
[0058] In the embodiments of this specification, the first interface image acquisition unit is further configured to acquire the first interface image from the first container via the shared memory in the terminal device through the host machine, and read the first interface image.
[0059] Figure 9 This is a schematic diagram of the hardware structure of an electronic device according to various embodiments of the present invention. The electronic device 300 includes, but is not limited to, components such as: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 310, and a power supply 311. The electronic device also includes a host machine and multiple different containers, with the containers running on the host machine, and the container system corresponding to each container being isolated from the host machine system corresponding to the host machine. Those skilled in the art will understand that... Figure 9 The electronic device structures shown are not intended to limit the electronic device. An electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements. In embodiments of the present invention, the electronic device includes, but is not limited to, mobile phones, tablet computers, laptops, PDAs, in-vehicle terminals, wearable devices, and pedometers.
[0060] The processor 310 is configured to: upon receiving a startup request from the target application via the host machine, launch the target application within the first container containing the target application via a startup interface based on the startup request; obtain a first interface image of the container application interface of the target application after startup within the first container via the first container; obtain and read the first interface image via the host machine; combine the host machine's status bar, navigation bar, and the first interface image with the first interface image to form a host machine application interface image of the target application; and display the host machine application interface image of the target application on the host machine's screen.
[0061] The processor 310 is also configured to: obtain a list of applications corresponding to multiple applications running in the first container through the first container; and read and display the application list through the host machine.
[0062] The processor 310 is also configured to: obtain a startup request through the host machine's main screen application, and in response to the startup request, launch the target application in the first container where the target application is located through the startup interface and the host machine's second application management service, in sequence through the host machine's second application management service and the first application management service of the first container.
[0063] The processor 310 is also configured to: obtain a first interface image of the container application interface of the target application after it is launched within the first container through a first drawing management service of the first container.
[0064] In addition, the processor 310 is also used to: obtain and read the first interface image through the second rendering management service of the host machine, send the first interface image to the graphics layer compositor of the host machine, generate the host application interface image corresponding to the target application through the graphics layer compositor of the host machine based on the status bar, navigation bar and the first interface image of the host machine, and display the host application interface image of the target application on the screen of the host machine.
[0065] In addition, the processor 310 is also used to: obtain a first interface image from the first container via shared memory in the terminal device through the host machine, and read the first interface image.
[0066] It should be understood that, in this embodiment of the invention, the radio frequency unit 301 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 310; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 301 can also communicate with networks and other electronic devices through a wireless communication system.
[0067] The electronic device provides users with wireless broadband internet access through network module 302, such as helping users send and receive emails, browse web pages, and access streaming media.
[0068] The audio output unit 303 can convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into audio signals and output them as sound. Furthermore, the audio output unit 303 can also provide audio output related to specific functions performed by the electronic device 300 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, and a receiver, etc.
[0069] Input unit 304 is used to receive audio or video signals. Input unit 304 may include a graphics processing unit (GPU) 3041 and a microphone 3042. The GPU 3041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on display unit 306. The image frames processed by GPU 3041 can be stored in memory 309 (or other storage media) or transmitted via radio frequency unit 301 or network module 302. Microphone 3042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 301 in telephone call mode.
[0070] The electronic device 300 also includes at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 3061 according to the ambient light level, and the proximity sensor can turn off the display panel 3061 and / or backlight when the electronic device 300 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 305 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.
[0071] The display unit 306 is used to display information input by the user or information provided to the user. The display unit 306 may include a display panel 3061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0072] User input unit 307 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of electronic devices. Specifically, user input unit 307 includes a touch panel 3031 and other input devices 3072. Touch panel 3031, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 3031). Touch panel 3031 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 310, which receives and executes commands from the processor 310. In addition, touch panel 3031 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 3031, user input unit 307 may also include other input devices 3072. Specifically, other input devices 3072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0073] Furthermore, the touch panel 3031 can cover the display panel 3061. When the touch panel 3031 detects a touch operation on or near it, it transmits the information to the processor 310 to determine the type of touch event. Subsequently, the processor 310 provides corresponding visual output on the display panel 3061 based on the type of touch event. Although in Figure 9 In this embodiment, the touch panel 3031 and the display panel 3061 are two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 3031 and the display panel 3061 can be integrated to realize the input and output functions of the electronic device. The specific implementation is not limited here.
[0074] Interface unit 308 serves as an interface for connecting external devices to electronic device 300. For example, external devices may include a wired or wireless headphone port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 308 can be used to receive input from external devices (e.g., data, power, etc.) and transmit the received input to one or more components within electronic device 300, or it can be used to transmit data between electronic device 300 and external devices.
[0075] The memory 309 can be used to store software programs and various data. The memory 309 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 309 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0076] The processor 310 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 309, and by calling data stored in the memory 309, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 310.
[0077] The electronic device 300 may also include a power supply 311 (such as a battery) that supplies power to various components. Preferably, the power supply 311 can be logically connected to the processor 310 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0078] Preferably, the present invention also provides an electronic device, including a processor 310, a memory 309, and a computer program stored in the memory 309 and executable on the processor 310. When the computer program is executed by the processor 310, it implements the various processes of the above-described application display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0079] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described application display method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0080] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the various processes of the above-described application display method embodiment and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0081] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0082] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0083] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0084] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0086] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0087] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0088] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0089] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0090] The above description is merely an embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of the claims of the present invention.
Claims
1. A method for displaying an application, characterized in that, The method, applied to a terminal device, includes a host machine and multiple different containers, wherein the containers run on the host machine, and the container system corresponding to the container is isolated from the host machine system corresponding to the host machine. Upon receiving a startup request from the target application via the host machine, the target application within the first container containing the target application is launched via the startup interface based on the startup request. The first interface image of the container application interface of the target application after it is launched within the first container is obtained through the first container; The host machine acquires and reads the first interface image, and combines the host machine's status bar and navigation bar with the first interface image to form the host machine application interface image of the target application, and displays the host machine application interface image of the target application on the screen of the host machine.
2. The method according to claim 1, characterized in that, Before launching the target application within the first container where the target application resides via the launch interface based on the launch request, the method further includes: Obtain a list of applications corresponding to multiple applications running within the first container; The list of applications is read and displayed by the host machine.
3. The method according to claim 1, characterized in that, The step of launching the target application within the first container where the target application resides via the launch interface based on the launch request includes: The startup request is obtained through the host machine's main screen application; In response to the startup request, the target application located in the first container is launched sequentially through the startup interface and the second application management service of the host machine, and then through the second application management service of the host machine and the first application management service of the first container.
4. The method according to claim 1, characterized in that, The various containers include Docker containers and / or LXC containers.
5. The method according to claim 1, characterized in that, The step of obtaining the first interface image of the container application interface of the target application after it has been launched within the first container includes: The first interface image of the container application interface of the target application after it is launched in the first container is obtained through the first rendering management service of the first container; The step of acquiring and reading the first interface image through the host machine, combining the host machine's status bar and navigation bar with the first interface image to form the host machine application interface image of the target application, and displaying the target application's host machine application interface image on the host machine screen includes: The first interface image is obtained and read through the second rendering management service of the host machine, and the first interface image is sent to the graphics layer compositor of the host machine; Based on the status bar, navigation bar, and first interface image of the host machine, the host machine application interface image corresponding to the target application is generated through the host machine's graphics layer compositor. Display the host application interface image of the target application on the screen of the host machine.
6. The method according to claim 1, characterized in that, The host machine and the first container transmit the first interface image through shared memory in the terminal device. The step of acquiring and reading the first interface image through the host machine includes: The host machine obtains the first interface image from the first container through the shared memory in the terminal device and reads the first interface image.
7. A display device for an application, characterized in that, The device is applied to a terminal device, which includes a host machine and multiple different containers. The containers run on the host machine, and the container system corresponding to each container is isolated from the host machine system corresponding to the host machine. The device includes: The target application startup module is used to start the target application in the first container where the target application is located through the startup interface based on the startup request received by the host machine when the target application startup request is received. The first interface image acquisition module is used to acquire the first interface image of the container application interface of the target application after it is launched in the first container through the first container. The host application interface acquisition and display module is used to acquire and read the first interface image through the host machine, and combine the status bar and navigation bar of the host machine with the first interface image to form the host application interface image of the target application, and display the host application interface image of the target application on the screen of the host machine.
8. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the display method of the application as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the display method of the application program as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the steps of the display method of the application program according to any one of claims 1 to 6.