Display method and device and display equipment
By displaying the application's startup background image above the display interface of the Android terminal, and hiding the current interface window after the application initialization and page drawing is completed to display the application interface window and startup background image, the white screen or black screen problem when the application is started is solved, improving the user experience.
Patent Information
- Application Number
- CN202411382028.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-03-04
AI Technical Summary
When the application installed in the Android terminal is started, the initialization and page drawing stages take a long time, resulting in a white screen or a black screen without content before the home page content is displayed.
Display the application's startup background image above the display interface, and hide the current interface window after the application initialization and page drawing are completed to display the application interface window and startup background image.
It effectively avoids the white screen or black screen phenomenon when the application is started, improves the user experience, and ensures the continuity of the display.
Smart Images

Figure CN119557004A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to a display method, apparatus and display device. Background Art
[0002] Currently, when an application installed in an Android terminal (such as a TV or a mobile phone) is started, the application often takes a long time to initialize and draw the page, resulting in a white or black screen with no content for a period of time before the home page content is displayed.
[0003] Therefore, how to avoid the phenomenon of a white screen or a black screen with no content for a period of time when an application installed in an Android terminal is started has become a problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a display method, an apparatus and a display device.
[0005] The technical solution of the present disclosure is as follows:
[0006] In a first aspect, the present disclosure provides a display method, comprising: in response to a startup operation, creating a current interface window, and displaying a display interface in the current interface window; receiving an operation to start a first application, sending an indication message carrying a program identifier of the first application to a system interface management service, and obtaining a startup background image of the first application based on the application identifier and a pre-stored storage path; wherein the indication message is used to instruct the system interface management service to pull up the first application corresponding to the program identifier, and the first application is configured to create an application interface window corresponding to the first application at the next layer of the current interface window, and the storage path includes the storage path of the startup background image of each installed second application, and the first application is any one of the second applications; displaying the startup background image above the display interface; receiving preset information sent by the window manager, hiding the current interface window to display the application interface window, and the startup background image of the first application in the application interface window; wherein the preset information is used to indicate that the first application has created an application interface window at the next layer of the current interface window, and has loaded the startup background image of the first application in the application interface window.
[0007] In a second aspect, the present disclosure provides a display device, comprising: a display configured to display a display interface of a preset application; a controller comprising a control module of the preset application; the controller is configured as follows: the control module creates a current interface window in response to a startup operation, and displays the display interface in the current interface window; the control module receives an operation to start a first application, sends an indication message carrying a program identifier of the first application to a system interface management service, and obtains a startup background image of the first application based on the application identifier and a pre-stored storage path; wherein the indication message is used to instruct the system interface management service to pull up the first application corresponding to the program identifier, the first application is configured to create an application interface window corresponding to the first application at a lower layer of the current interface window, the storage path comprises a storage path of a startup background image of each installed second application, and the first application is any one of the second applications; the control module controls the display to display the startup background image above the display interface; the control module receives the preset information sent by the window manager, controls the display to hide the current interface window, so as to display the application interface window, and the startup background image of the first application in the application interface window; wherein the preset information is used to indicate that the first application has created an application interface window at a lower layer of the current interface window, and has loaded the startup background image of the first application in the application interface window.
[0008] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a controller, the memory being used to store a computer program; the controller being used to enable the electronic device to implement any one of the display methods provided in the second aspect when executing the computer program.
[0009] In a fourth aspect, the present invention provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and the computer program is executed by a controller to perform any display method provided in the second aspect.
[0010] In a fifth aspect, the present invention provides a computer program product. When the computer program product is run on a computer, the computer executes any one of the display methods provided in the second aspect.
[0011] It should be noted that the above computer instructions may be stored in whole or in part on a first computer-readable storage medium, wherein the first computer-readable storage medium may be packaged together with the controller of the display device, or may be packaged separately from the controller of the display device, which is not limited in the present disclosure.
[0012] The description of the second, third, fourth and fifth aspects in the present disclosure can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0013] In the present disclosure, the names of the above display devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0014] These and other aspects of the present disclosure will become more apparent from the following description.
[0015] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0016] As can be seen from the above, when the display device provided by the present disclosure starts the first application in the preset application, in response to the startup operation, the current interface window is created, and the display interface is displayed in the current interface window; the operation of starting the first application is received, and the indication information carrying the program identifier of the first application is sent to the system interface management service, and based on the application identifier and the pre-stored storage path, the startup background image of the first application is obtained; the startup background image is displayed above the display interface; in this way, it can be ensured that the display device can display the startup background image above the display interface when the first application has not finished drawing the homepage content, avoiding the problem that there is no display content above the display interface when the first application has not finished drawing the homepage content. At the same time, the preset application receives the preset information sent by the window manager, hides the current interface window, and displays the application interface window, and the startup background image of the first application in the application interface window; wherein the preset information is used to indicate that the first application has created an application interface window at the next layer of the current interface window, and has loaded the startup background image of the first application in the application interface window.
[0017] In addition, when the operating system of the display device is Android, when the display device starts the first application, the preset application displays the startup background image of the first application above the display interface, thereby avoiding the phenomenon of a black screen appearing at the beginning of the startup of the first application. At the same time, when the preset application receives the preset information sent by the window manager, it hides the current interface window to display the application interface window and the startup background image of the first application in the application interface window, thereby ensuring that during the startup of the first application, the image currently displayed by the display device is the startup background image of the first application, thereby ensuring the display continuity while improving the user experience, and solving the problem of how to avoid the phenomenon of a white screen or a black screen with no content for a period of time when the application installed in the Android terminal is started. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 A schematic diagram of a scene of a display method provided in an embodiment of the present application;
[0021] Figure 2 One of the structural schematic diagrams of the display device provided in the embodiment of the present application;
[0022] Figure 3 A second structural schematic diagram of a display device provided in an embodiment of the present application;
[0023] Figure 4 One of the flow charts of the display method provided in the embodiment of the present application;
[0024] Figure 5 The second flowchart of the display method provided in the embodiment of the present application;
[0025] Figure 6 The third flowchart of the display method provided in the embodiment of the present application;
[0026] Figure 7 A fourth flowchart of the display method provided in an embodiment of the present application;
[0027] Figure 8 A fifth flow chart of the display method provided in the embodiment of the present application;
[0028] Fig. 9 The sixth flowchart of the display method provided in the embodiment of the present application;
[0029] Fig.10 A schematic diagram of the structure of a display device provided in an embodiment of the present application;
[0030] Fig.11 A schematic diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0032] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0033] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart TV, a laser projection device, a monitor, an electronic whiteboard, an electronic table, etc. Figure 1 and Figure 2 This is a specific implementation of the display device of the present application.
[0034] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0035] The Launcher in the embodiment of the present disclosure is a desktop launcher in the Android system, which is a general term for the desktop interface design (User Interface, UI) of the Android system.
[0036] The intent in the disclosed embodiment is mainly used to solve the communication between various components of the Android application.
[0037] Figure 1 is a schematic diagram of an operation scenario between a household appliance and a control device according to one or more embodiments of the present application, such as Figure 1As shown, the user can operate the display device 200 through the terminal device 300 and / or the control device 100. The control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user instructions through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, mobile terminals, tablet computers, computers, laptops, and other smart devices can also be used to control the display device 200.
[0038] In some embodiments, the display device provided by the embodiment of the present disclosure may be the above-mentioned display device 200. The storage path of the startup background image of each installed second application is pre-stored in the memory of the display device 200. Afterwards, when the startup preset application in the display device 200 is started, the preset application responds to the startup operation, creates the current interface window, and displays the display interface in the current interface window; the preset application receives the operation of starting the first application, sends the indication information carrying the program identifier of the first application to the system interface management service, and obtains the startup background image of the first application based on the application identifier and the pre-stored storage path; in this way, after receiving the indication information sent by the system interface management service, the first application creates the application interface window corresponding to the first application in the next layer of the current interface window. In this way, when the preset application displays the startup background image above the display interface, the first application can complete the creation of the application interface window. At the same time, since the preset application displays the startup background image above the display interface, when the preset application receives the operation of starting the first application, the startup background image of the first application will be displayed in the display interface of the display device 200. Afterwards, the preset application receives the preset information sent by the window manager, hides the current interface window, and displays the application interface window, and the startup background image of the first application in the application interface window. In this way, when the display device 200 starts the first application, the preset application displays the startup background image of the first application above the display interface, thereby avoiding the phenomenon of a black screen in the initial stage of starting the first application. At the same time, when the preset application receives the preset information sent by the window manager, it hides the current interface window, and displays the application interface window, and the startup background image of the first application in the application interface window, thereby ensuring that during the startup of the first application, the image currently displayed by the display device 200 is the startup background image of the first application, thereby ensuring display continuity while improving the user experience.
[0039] Figure 2 FIG. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. Figure 2The display device 200 shown includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The display 260 can be a display with a touch function, such as a touch display. The detector 230 is used to collect signals of the external environment or interaction with the outside.
[0040] In some examples, the external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.
[0041] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0042] In some examples, the display device 200 of one or more embodiments is a TV set 1, and the operating system of the TV set 1 is an Android system. Figure 3 As shown, the television 1 can be logically divided into an application layer (Applications) (referred to as "application layer") 21, an application framework layer (Application Framework) (referred to as "framework layer") 22, an Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer") 23, and a kernel layer 29.
[0043] Among them, the application layer 21 includes one or more applications. The application can be a system application or a third-party application. The framework layer 22 provides an application programming interface (API) and a programming framework for the application of the application layer 21. The system runtime layer 23 provides support for the upper layer, namely the framework layer 22. When the framework layer 22 is used, the Android operating system will run the C / C++ library contained in the system runtime layer 23 to implement the functions to be implemented by the framework layer 22. The kernel layer 29 serves as a software middleware between the hardware layer and the application layer 21, and is used to manage and control hardware and software resources.
[0044] In some examples, the display device provided by the embodiments of the present application may be the above-mentioned TV 1. The storage path of the startup background image of each installed second application is pre-stored in the storage unit 204 of the TV 1. Afterwards, when starting the preset application in the TV 1, the processing unit 201 of the preset application creates the current interface window in response to the startup operation, and controls the display unit 202 to display the display interface in the current interface window; the processing unit 201 receives the operation of starting the first application, controls the transceiver unit 203 to send the indication information carrying the program identifier of the first application to the system interface management service, and obtains the startup background image of the first application based on the application identifier and the pre-stored storage path; in this way, the processing unit 301 of the first application creates the application interface window corresponding to the first application in the next layer of the current interface window after the transceiver unit 302 receives the indication information sent by the system interface management service. In this way, when the preset application displays the startup background image above the display interface, the first application can complete the creation of the application interface window. At the same time, because the preset application displays the startup background image above the display interface, when the preset application receives the operation of starting the first application, the startup background image of the first application will be displayed in the display interface of the display device 200. Afterwards, when the transceiver unit 203 receives the preset information sent by the window manager, the processing unit 202 of the preset application hides the current interface window to display the application interface window and the startup background image of the first application in the application interface window.
[0045] Specifically, when the executor of the display method provided by the embodiment of the present disclosure is the television 1, the storage unit 204 of the display device 200 is used to store data such as the program code of the display method provided by the embodiment of the present disclosure, the storage path of the startup background image of each installed second application, etc.
[0046] In the following embodiments, the method of the embodiment of the present application is described by taking the example that the execution subject of the display method provided by the embodiment of the present disclosure is the above-mentioned TV 1, and the operating system of the TV 1 is the Android system.
[0047] The present application embodiment provides a display method, which is applied to a television set 1, such as Figure 4 As shown, the display method may include S11-S14.
[0048] S11, in response to the start operation, creating a current interface window, and displaying a display interface in the current interface window;
[0049] In some examples, the preset application creates a current interface window in response to the start operation, and displays the display interface in the current interface window, including:
[0050] Scenario 1: TV 1 is turned on and a preset application is started by default. At this time, when the Android system of TV 1 starts the preset application, it obtains the startup background image of the preset application.
[0051] In some examples, the preset application is an application pre-installed on the memory of the television 1. Among them, when installing the application on the television 1, the startup background image can be copied to the directory specified by the Android system, and the loading priority and storage path of the startup background image can be set in the configuration file. When the Android system is turned on, the loading priority of the startup background image of all applications in the configuration file is read, and preloaded at different times according to the priority, and cached to the memory. When the preset application is the Luancher application, the loading priority of the startup background image corresponding to the Luancher application belongs to the first priority, and it must be loaded when the Android system service is created to ensure that the startup background image of the Launcher application is preloaded before the Launcher application is started.
[0052] 2. When the preset application program has not finished drawing the display content, the Android system of the TV set 1 sets the background image of the current interface window as the startup background image;
[0053] In some examples, when an application is started in the Android system of TV 1, a white screen or a black screen will appear on the screen for a period of time. The duration varies for different devices and different applications, affecting the user experience. This phenomenon occurs because when the Android system starts an application, the Android system will check whether there is already a process of the same application; if the process does not exist, it is a cold start of the application, and the Android system and the application need to perform more initialization work. First, the Android system service (Activity Manager Service, AMS) checks the intent information in startActivity, then creates a process, creates an Application object for initialization, and then executes the operation of starting Acitivy to draw the page (Activity) view. The phenomenon of white and black screens occurs during the period before the content view of the Activity is drawn and displayed.
[0054] After the application process is created, the Android system will create a window (Window) to which the initialization interface is attached before drawing the application page loading layout. When initializing the window, the Android system will specify the application window theme color according to the theme set by the application. Before the control view is drawn and displayed, the settings in the interface theme Style determine whether the screen is white or black.
[0055] In order to avoid the black and white screen phenomenon, before the interface view is drawn and displayed, the current interface window before the preset application is started (such as the window of the foreground application or the system window) and the application interface window of the preset application can be displayed as the same startup background image of the preset application, so that the user can feel that the preset application is starting quickly and normally, and cannot feel the switching action between the current interface window and the application interface window. The current interface window before the preset application is started can be quickly set as the startup background image, which can make the user feel that the startup response of the preset application is faster. At the same time, the current interface window before the preset application is started and the startup background image of the application interface window of the preset application Figure 1 In this way, when the windows are switched, it cannot be visually felt that two windows (including the current interface window and the application interface window) are actually switched.
[0056] 3. The Android system of TV 1 displays the startup background image in the current interface window.
[0057] 4. The Android system of the television 1 creates an application interface window for the preset application and displays the display interface including the display content in the current interface window after drawing the display content.
[0058] In some examples, for the current interface window before the preset application is started, the Android system sets the current interface window to the startup background image of the preset application, and the Android system can hide all interface controls of the current interface window, and the background image of the current interface window is set through window.setBackDrawable(drawable). For the application interface window of the preset application, the Android system can also set the application interface window to the startup background image through window.setBackDrawable(drawable) when creating the initialization of the application interface window.
[0059] In some feasible examples, the preset application includes: a Launcher application, and the startup background image of the Launcher application has the highest loading priority; at this time, when the Android system of the TV 1 starts the preset application, it obtains the startup background image of the preset application, including:
[0060] 1-1. When launching the Launcher application, obtain the loading priority of the startup background image of each installed application and the storage path of the startup background image.
[0061] 1-2. Based on the loading priority, determine the storage path corresponding to the highest loading priority.
[0062] 1-3. Read the startup background image according to the storage path corresponding to the highest loading priority, and use the read startup background image as the startup background image of the Launcher application.
[0063] In some examples, since the Launcher application needs to be started first when the Android system starts the Launcher application, in order to prevent the white screen or black screen without content for a period of time when the Android system starts the Launcher application. The display method provided by the embodiment of the present disclosure stores the startup background image of each application in the memory of the TV 1, and configures different loading priorities for each startup background image. Thus, when the TV 1 starts the Launcher application, the loading priority of the startup background image of each installed application and the storage path of the startup background image are obtained. Based on the loading priority, the storage path corresponding to the highest loading priority is determined. Since the startup background image of the Launcher application needs to be loaded first, the storage path corresponding to the highest loading priority can be the storage path of the startup background image of the Launcher application, that is, the loading priority of the startup background image of the Launcher application is higher than the loading priority of the startup background image of the application other than the Launcher application. In this way, it can be ensured that the startup background image of the Launcher application can be loaded first when the Android system is started, so as to facilitate display in the current interface window.
[0064] For example, after the TV set 1 installs the startup Launcher application, the TV set 1 restarts and starts the Launcher application as an example for description. The specific implementation process is as follows:
[0065] 1. When the TV 1 is turned on for the first time, the system service PreloadService is started, the system interface management service (Activity Manager Service, AMS), the system window management service (Window Manager Service, WMS), and the system application package management service (PackageManager Service, PMS) are started.
[0066] 2. System application package management service PMS, install Luancher application.
[0067] 3. When the Launcher application is installed, the system application package management service PMS copies the startup background image used by the Launcher application to the specified directory of the Android system, and sets the storage path and startup background image loading priority to the configuration file of the Android system.
[0068] 4. TV 1 restarts, and the Android system of TV 1 starts system services PreloadService, AMS, WMS, and PMS.
[0069] 5. The system service PreloadService reads the configuration file, obtains the startup background image of the Launcher application from the disk storage, and then decodes the startup background image of the Launcher application into a bitmap Bitmap and caches it in the memory.
[0070] 6. When the system interface management service AMS starts the Launcher application, the system window management service WMS obtains the Bitmap of the Launcher application from the memory cache, sets the Bitmap as the background image of the current interface window, and sets the current interface window to display the startup background image of the Launcher application.
[0071] 7. After the process of the Launcher application is created, the system window management service WMS creates the application interface window of the Launcher application. During initialization, the current interface window is set to display the startup background image of the Launcher application.
[0072] 8. After the home page content of the Launcher application is drawn, the application window display content is updated (that is, the home page content of the Launcher application is displayed in the application interface window), and the original view of the current interface window is restored, and the startup background image is no longer displayed.
[0073] In some examples, when a preset application is started, a startup background image of the preset application is obtained; the startup background image of the preset application is decoded to obtain a bitmap corresponding to the startup background image of the preset application, and the bitmap is cached in memory; the bitmap is read from the memory, and the bitmap is used as the startup background image of the preset application.
[0074] In some examples, when installing the second application to be installed, the Android system of the TV set 1 copies the startup background image of the second application to be installed to the target directory, and uses the storage path corresponding to the target directory as the storage path of the startup background image of the second application to be installed; obtains the program category of the second application to be installed; wherein the program category includes a desktop launcher application and other applications. The Android system of the TV set 1 determines the loading priority of the startup background image of the application to be installed based on the program category.
[0075] Among them, when it is determined that the program category of the application to be installed is a desktop launcher application, the loading priority of the startup background image of the application to be installed is determined to be the first priority; when it is determined that the program category of the application to be installed is other applications, the loading priority of the startup background image of the application to be installed is determined to be the second priority; the first priority is higher than the second priority, that is, the TV 1 preferentially loads the startup background image of the first priority, corresponding to the startup background image of the second priority, and the TV 1 loads according to the startup order of other applications corresponding to the startup background image of the second priority. The loading priority can be determined based on the number of times the user accesses the application. For example: 3 applications are installed on the TV 1, including the Launcher application, other application 1 and other application 2. The user has accessed the Launcher application 100 times, accessed other application 1 (30 times), and accessed other application 2 (25 times) in the historical usage record. Then, the loading priority of the startup background image of the Launcher application can be the first priority, and the loading priority of the startup background images of both other application 1 and other application 2 can be the second priority.
[0076] In some examples, the TV set 1 determines a target application based on the user portrait, wherein the target application is an application that has been installed on the TV set 1 .
[0077] The television 1 uses the target application as the Launcher application.
[0078] The TV 1 determines the target application based on the user portrait, including:
[0079] The TV set 1 determines the user's access rate to each media category based on the user portrait; the media categories include TV series, movies, variety shows, etc.
[0080] Based on the access rate, determine the media category corresponding to the maximum access rate.
[0081] Based on the media category, the installed applications with the same media type are filtered, and if there is only one installed application with the same media type, the application is used as the target application.
[0082] If there are multiple installed applications of the same media type, based on the number of times the user accesses each of the multiple installed applications of the same media type, the application corresponding to the largest number of accesses is determined as the target application. If there are multiple applications with the same number of accesses, the minimum difference between the last access time and the current time of each application in the multiple applications with the same number of accesses is calculated, and the application corresponding to the minimum difference is determined as the target application.
[0083] Scenario 2: TV 1 is turned on, and the user starts a preset application. At this time, the preset application starts the operation, creates a current interface window, and displays the display interface in the current interface window.
[0084] S12. Receive an operation to start a first application, send an indication message carrying a program identifier of the first application to a system interface management service, and obtain a startup background image of the first application based on the application identifier and a pre-stored storage path; wherein the indication message is used to instruct the system interface management service to pull up the first application corresponding to the program identifier, the first application is configured to create an application interface window corresponding to the first application at the next layer of the current interface window, the storage path includes the storage path of the startup background image of each installed second application, and the first application is any one of the second applications.
[0085] In some feasible examples, the preset application includes: a second application, where the second application is any one of the installed applications except the Launcher application.
[0086] Exemplarily, the other application may be a first application, and the display interface of the preset application includes an icon control of the installed second application. At this time, the user can start the first application by voice information or selection operation, such as: when the preset application receives a voice information for indicating the start of the first application, the first application is started; or, when the preset application receives a selection operation for the program control corresponding to the first application in the display interface, the first application is started. At this time, the preset application obtains the startup background image of the first application based on the application identifier and the pre-stored storage path, and the preset application sends an indication message carrying the program identifier of the first application to the system interface management service (ActivityManager Service, AMS). Afterwards, after receiving the indication message sent by the system interface management service, the first application creates an application interface window corresponding to the first application in the next layer of the current interface window. In this way, when the preset application displays the startup background image above the display interface, the first application can complete the creation of the application interface window. At the same time, because the preset application displays the startup background image above the display interface, when the preset application receives the operation of starting the first application, the startup background image of the first application will be displayed in the display interface of the display device 200.
[0087] In some examples, when the TV set 1 is turned on, the Launcher application is started. For example, when the Launcher application is a Launcher application, a startup background image of the Launcher application is obtained, such as a background image. Figure 1 , when the Launcher application has not finished drawing the home page content, set the background image of the current interface window as the background Figure 1 After that, when the Launcher application finishes drawing the home page content, it creates an application interface window (such as display interface 1), sets the background image of the current interface window to be empty, and displays the home page content in the application interface window. In this way, the TV 1 displays the home page of the Launcher application on the display. After that, the user can select the first application in the home page of the Launcher application, such as other application 1. At this time, the TV 1 responds to the selection operation of the other application 1, and obtains the startup background image of the first application based on the application identifier and the pre-stored storage path, such as background image. Figure 2 When other application 1 has not finished drawing the home page content, the background is displayed above the current interface window (i.e. display interface 1) Figure 2. Afterwards, the window manager (window_manager) determines that when other applications 1 have finished drawing the home page content and create an application interface window (such as interface window 2) at the next layer of the current interface window, it sends preset information to the Launcher application. The Launcher application receives the preset information sent by window_manager, hides the display interface 1, and displays the interface window 2 and the startup background image of the first application in the interface window 2; wherein the preset information is used to indicate that the first application has created an application interface window at the next layer of the current interface window, and has loaded the startup background image of the first application in the application interface window. Among them, after hiding the display interface 1, it is necessary to restore the original view of the display interface 1, that is, to display the home page content of the Launcher application in the display interface 1. If the display interface 1 has set background content, the corresponding background content must also be displayed in the display interface 1. In this way, when the user exits the interface window 2 of the first application, the display interface 1 can be displayed at this time to ensure the continuity of the display.
[0088] For example, after the TV set 1 installs the startup Launcher application, the TV set 1 restarts and starts the Launcher application, and the first application is selected on the homepage as an example for description. The specific implementation process is as follows:
[0089] 1. When the TV set 1 is turned on for the first time, the system service PreloadService is started, the system interface management service (Activity Manager Service, AMS) is started, the system window management service (Window Manager Service, WMS) is started, and the system application package management service (PackageManager Service, PMS) is started.
[0090] 2. System application package management service PMS, install Luancher application.
[0091] 3. When the Launcher application is installed, the system application package management service PMS copies the startup background image used by the Launcher application to the specified directory of the Android system, and sets the storage path and startup background image loading priority to the configuration file of the Android system.
[0092] 4. TV 1 restarts, and the Android system of TV 1 starts the system service PreloadService, the system service PreloadService, starts the system interface management service (Activity Manager Service, AMS), starts the system window management service (Window Manager Service, WMS), and starts the system application package management service (PackageManagerService, PMS).
[0093] 5. The system service PreloadService reads the configuration file, obtains the startup background image of the Launcher application from the disk storage, and then decodes the startup background image of the Launcher application into a bitmap Bitmap and caches it in the memory.
[0094] 6. The user clicks the icon of the first application on the homepage of the Luancher application, and the Luancher application sends an indication message carrying the program identifier of the first application to the system interface management service, and the system interface management service AMS starts the first application.
[0095] 7. When the system interface management service AMS starts the first application, the Luancher application sends acquisition information carrying the application identifier and the pre-stored storage path to the system window management service WMS. The system window management service WMS obtains the startup background image Bitmap of the first application from the memory cache based on the acquisition information, and sets the startup background image Bitmap of the first application to the application interface window (i.e., the application interface window created by the Launcher application, such as interface window 2), so that the application interface window is set to display as the startup background image of the first application.
[0096] 8. After the process of the first application is created, the system window management service WMS creates an application interface window of the first application (such as called interface window 3) at the next layer of the current interface window. During initialization, the background image of interface window 2 is set to be displayed as the startup background image of the first application.
[0097] 9. After the window manager (window_manager) determines that the home page content of the first application is drawn, it displays the home page content of the first application in the interface window 3, restores the original view of the previous interface window 2, and no longer displays the startup background image of the first application.
[0098] 10. The user turns off the power and restarts the TV 1, the Android system of the TV 1 restarts, and the Android system starts various system services (system services PreloadService, AMS, WMS, PMS).
[0099] 11. The system service PreloadService reads the configuration file, obtains the startup background image of the first application from the disk storage according to the startup background image path and loading priority of the first application, and then decodes the startup background image of the first application into a Bitmap and caches it in the memory.
[0100] 12. System interface management service AMS, start the Launcher application.
[0101] 13. The user clicks the icon of the target application on the homepage of the Launcher application, and the Launcher application sends an indication message carrying the program identifier of the first application to the system interface management service, and the system interface management service AMS starts the first application.
[0102] 14. When the system interface management service AMS starts the first application, the Luancher application sends acquisition information carrying the application identifier and the pre-stored storage path to the system window management service WMS. The system window management service WMS obtains the startup background image Bitmap of the target application from the memory cache based on the acquisition information, and sets it to the application interface window of the current foreground application (i.e., the Launcher application), such as interface window 4, so that the interface window 4 is set to display as the startup background image of the first application.
[0103] 15. After the process of the first application is created, the system window management service WMS creates an application interface window of the first application in the next layer of the current interface window, such as interface window 5. During initialization, interface window 4 is set to display the startup background image of the first application.
[0104] 16. After the window manager (window_manager) finishes drawing the home page content of the first application, it displays the home page content of the first application in the interface window 5, and restores the original view of the previous interface window 4, and no longer displays the startup background image of the first application.
[0105] S13. Displaying a startup background image at the top of the display interface.
[0106] S14. Receive preset information sent by the window manager, hide the current interface window, and display the application interface window and the startup background image of the first application in the application interface window; wherein the preset information is used to indicate that the first application has created an application interface window at the next layer of the current interface window, and has loaded the startup background image of the first application in the application interface window.
[0107] As can be seen from the above, when the TV 1 starts the first application, the preset application displays the startup background image of the first application above the display interface, thereby avoiding the phenomenon of a black screen at the initial stage of starting the first application. At the same time, when the preset application receives the preset information sent by the window manager, it hides the current interface window to display the application interface window and the startup background image of the first application in the application interface window, thereby ensuring that during the startup of the first application, the image currently displayed by the TV 1 is the startup background image of the first application, thereby ensuring display continuity and improving the user experience.
[0108] In some possible implementation examples, combined with Figure 4 ,like Figure 5 As shown, the above S11 can be specifically implemented through the following S110 and S111.
[0109] S110. In response to the start operation, obtain display content and create a current interface window.
[0110] S111. After the current interface window is created, based on the display content, a display interface corresponding to the display content is displayed in the current interface window.
[0111] As can be seen from the above, the preset application responds to the start operation, obtains the display content, and creates the current interface window. After the current interface window is created, based on the display content, the display interface corresponding to the display content is displayed in the current interface window. In this way, the user can see the preset application in the display interface of the TV 1, so that the user can use the preset application normally, ensuring the user experience.
[0112] In some possible implementation examples, combined with Figure 4 ,like Figure 6 As shown, the above S12 can be specifically implemented through the following S120-S123.
[0113] S120: Receive an operation to start a first application, send an indication message carrying a program identifier of the first application to a system interface management service, and query a pre-configured corresponding relationship according to the application identifier to determine a storage path corresponding to the application identifier.
[0114] S121, reading a preset background image corresponding to the first application program based on a storage path corresponding to the application identifier;
[0115] S122, decoding the preset background image to obtain a bitmap corresponding to the preset background image, and caching the bitmap in a memory;
[0116] S123: Read a bitmap from the memory, and use the bitmap as a startup background image of the first application.
[0117] From the above, it can be seen that by pre-storing the startup background image of the first application in the memory of the television 1, and establishing a correspondence between the application identifier of the first application and the storage path of the startup background image, when the first application is started, the preset application can send an indication message carrying the program identifier of the first application to the system interface management service, and query the pre-configured correspondence according to the application identifier to determine the storage path corresponding to the application identifier. Based on the storage path corresponding to the application identifier, read the preset background image corresponding to the first application; decode the preset background image to obtain the bitmap corresponding to the preset background image, and cache the bitmap in the memory; read the bitmap from the memory, and use the bitmap as the startup background image of the first application. In this way, the preset application can display the startup background image above the display interface, thereby avoiding the phenomenon of a black screen at the beginning of starting the first application.
[0118] In some possible implementation examples, combined with Figure 4 ,like Figure 7 As shown, before executing S11, the display method provided by the embodiment of the present disclosure also includes S15.
[0119] S15. When installing the second application to be installed, copy the preset background image of the second application to be installed to the target directory, and use the storage path corresponding to the target directory as the storage path of the startup background image of the second application to be installed.
[0120] From the above, it can be seen that when installing the second application to be installed, the preset background image of the second application to be installed is copied to the target directory, and the storage path corresponding to the target directory is used as the storage path of the startup background image of the second application to be installed. In this way, the correspondence between the application identifier of the second application and the storage path of the startup background image can be established, so that when starting the first application, the preset application can send an indication message carrying the program identifier of the first application to the system interface management service, and query the pre-configured correspondence according to the application identifier to determine the storage path corresponding to the application identifier. Based on the storage path corresponding to the application identifier, read the preset background image corresponding to the first application; decode the preset background image to obtain the bitmap corresponding to the preset background image, and cache the bitmap in the memory; read the bitmap from the memory, and use the bitmap as the startup background image of the first application. In this way, the preset application can display the startup background image above the display interface, thereby avoiding the phenomenon of a black screen at the beginning of starting the first application.
[0121] In some possible implementation examples, combined with Figure 4 ,like Figure 8 As shown, the above S14 can be specifically implemented through the following S140.
[0122] S140. Receive preset information sent by the window manager, and perform a target operation on the current interface window to display the application interface window and the startup background image of the first application in the application interface window; wherein the target operation includes at least any one of a pull-up operation, a transparency adjustment operation, and a display layer adjustment operation.
[0123] In some examples, when the target operation is a pull-up operation, the preset application receives the preset information sent by the window manager and pulls up the current interface window to display the application interface window and the startup background image of the first application in the application interface window.
[0124] In some examples, when the target operation is to adjust transparency, the preset application receives the preset information sent by the window manager and adjusts the transparency of the current interface window to 100% to display the application interface window and the startup background image of the first application in the application interface window.
[0125] In some examples, when the target operation is to adjust the display layer operation, the preset application receives the preset information sent by the window manager, adjusts the position of the display layer of the current interface window to the position of the display layer of the application interface window, and adjusts the position of the display layer of the application interface window to the position of the display layer of the current interface window to display the application interface window and the startup background image of the first application in the application interface window.
[0126] From the above, it can be seen that when the preset application receives the preset information sent by the window manager, it hides the current interface window to display the application interface window and the startup background image of the first application in the application interface window, thereby ensuring that during the startup of the first application, the image currently displayed on the TV 1 is the startup background image of the first application, thereby ensuring display continuity while improving the user experience.
[0127] In some possible implementation examples, combined with Figure 4 ,like Fig. 9 As shown, the above S12 can be specifically implemented through the following S124.
[0128] S124. Upon receiving a voice message indicating the start of a first application or receiving any selection operation on a program control corresponding to the first application in a display interface, an indication message carrying a program identifier of the first application is sent to a system interface management service, and based on the application identifier and a pre-stored storage path, a startup background image of the first application is obtained.
[0129] As can be seen from the above, in order to facilitate user operation, the user can start the first application installed in the preset application in a variety of ways. At the same time, when starting the preset application, the preset application displays the startup background image of the first application above the display interface, thereby avoiding the phenomenon of a black screen in the initial stage of starting the first application. At the same time, when the preset application receives the preset information sent by the window manager, it hides the current interface window to display the application interface window and the startup background image of the first application in the application interface window, thereby ensuring that during the startup of the first application, the image currently displayed by the TV 1 is the startup background image of the first application, thereby ensuring display continuity while improving the user experience.
[0130] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0131] The embodiment of the present application can divide the functional modules of the display device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0132] like Fig.10 As shown, an embodiment of the present application provides a structural schematic diagram of a display device, including a controller 101 and a display 102 .
[0133] The display 102 is configured to display a display interface of a preset application program;
[0134] The controller 101 includes a control module 1010 for a preset application program; the controller 101 is configured to:
[0135] The control module 1010 creates a current interface window in response to the start operation, and displays the display interface in the current interface window;
[0136] The control module 1010 receives an operation of starting a first application, sends an indication message carrying a program identifier of the first application to a system interface management service, and obtains a startup background image of the first application based on the application identifier and a pre-stored storage path; wherein the indication message is used to instruct the system interface management service to pull up the first application corresponding to the program identifier, the first application is configured to create an application interface window corresponding to the first application at a lower layer than the current interface window, the storage path includes a storage path of a startup background image of each installed second application, and the first application is any one of the second applications;
[0137] The control module 1010 controls the display 102 to display a startup background image above the display interface; the control module 1010 receives preset information sent by the window manager; wherein the preset information is used to indicate that the first application has created an application interface window at the next layer of the current interface window, and has loaded the startup background image of the first application in the application interface window; the control module 1010 controls the display 102 to hide the current interface window to display the application interface window, and the startup background image of the first application in the application interface window.
[0138] In some implementable examples, the control module 1010 executes in response to a startup operation, creates a current interface window, and displays a display interface in the current interface window. Specifically, the control module 1010 obtains display content and creates a current interface window in response to a startup operation; after creating the current interface window, the control module 1010 displays a display interface corresponding to the display content in the current interface window based on the display content.
[0139] In some implementable examples, the control module 1010 executes based on the application identifier and the pre-stored storage path to obtain the startup background image of the first application, and is specifically configured as follows: the control module 1010 queries the pre-configured correspondence according to the application identifier, and determines the storage path corresponding to the application identifier; the control module 1010 reads the preset background image corresponding to the first application based on the storage path corresponding to the application identifier; the control module 1010 decodes the preset background image, obtains the bitmap corresponding to the preset background image, and caches the bitmap in the memory; the control module 1010 reads the bitmap from the memory, and uses the bitmap as the startup background image of the first application.
[0140] In some implementable examples, the control module 1010 executes in response to a startup operation, creates a current interface window, and before displaying the display interface in the current interface window, is also configured as follows: when installing the second application to be installed, the control module 1010 copies the preset background image of the second application to be installed to the target directory, and uses the storage path corresponding to the target directory as the storage path of the startup background image of the second application to be installed.
[0141] In some implementable examples, the control module 1010 executes the hiding of the current interface window to display the application interface window and the startup background image of the first application in the application interface window, and is specifically configured as follows: the control module 1010 performs a target operation on the current interface window to display the application interface window and the startup background image of the first application in the application interface window; wherein the target operation includes at least any one of a pull-up operation, a transparency adjustment operation, and a display layer adjustment operation.
[0142] In some implementable examples, the control module 1010 performs an operation of receiving and launching the first application, which is specifically configured to: receive voice information for instructing to launch the first application, or receive any one of the selection operations of the program control corresponding to the first application in the display interface.
[0143] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and its role will not be repeated here.
[0144] Of course, the electronic device provided in the embodiment of the present application includes but is not limited to the above modules, for example, the electronic device may also include a memory 103. The memory 103 may be used to store program codes of the electronic device, and may also be used to store data generated by the electronic device during operation, such as data in a write request.
[0145] As an example, combining Figure 3 The function implemented by the processing unit 201 in the TV set 1 is the same as the function of the control module 1010 in the controller 101, the function implemented by the display unit 202 is the same as the function of the display 102, the function implemented by the transceiver unit 203 in the TV set 1 is the same as the function of the communicator, and the function implemented by the storage unit 204 is the same as the function of the memory 103.
[0146] like Fig.11 As shown, the embodiment of the present application also provides a chip system, which can be applied to the display device in the aforementioned embodiment. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 can be the processor in the above-mentioned display device. The processor 1501 and the interface circuit 1502 can be interconnected through a line. The processor 1501 can receive and execute computer instructions from the memory of the above-mentioned display device through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the display device can execute the various steps executed by the display device in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
[0147] The embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by the above-mentioned display device.
[0148] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A display method, characterized in that: include: In response to the start operation, a current interface window is created, and a display interface is displayed in the current interface window; An operation of starting a first application is received, an indication message carrying a program identifier of the first application is sent to a system interface management service, and a startup background image of the first application is obtained based on the application identifier and a pre-stored storage path; wherein the indication message is used to instruct the system interface management service to pull up the first application corresponding to the program identifier, the first application is configured to create an application interface window corresponding to the first application at a lower layer than the current interface window, the storage path includes a storage path of a startup background image of each installed second application, and the first application is any one of the second applications; Displaying a startup background image above the display interface; Receive preset information sent by the window manager, hide the current interface window, and display the application interface window and the startup background image of the first application in the application interface window; wherein the preset information is used to indicate that the first application has created an application interface window at the next layer of the current interface window and has loaded the startup background image of the first application in the application interface window.
2. The display method according to claim 1, characterized in that: The step of creating a current interface window in response to the start operation and displaying the display interface in the current interface window includes: In response to the start operation, obtaining display content and creating a current interface window; After the current interface window is created, a display interface corresponding to the display content is displayed in the current interface window based on the display content.
3. The display method according to claim 1, characterized in that: The acquiring the startup background image of the first application based on the application identifier and the pre-stored storage path includes: According to the application identifier, query the pre-configured corresponding relationship to determine the storage path corresponding to the application identifier; Based on the storage path corresponding to the application identifier, reading a preset background image corresponding to the first application program; Decoding the preset background image to obtain a bitmap corresponding to the preset background image, and caching the bitmap in a memory; The bitmap is read from the memory, and the bitmap is used as a startup background image of the first application.
4. The display method according to claim 1, characterized in that: In response to the start-up operation, before creating a current interface window and displaying the display interface in the current interface window, the method further includes: When installing the second application to be installed, the preset background image of the second application to be installed is copied to the target directory, and the storage path corresponding to the target directory is used as the storage path of the startup background image of the second application to be installed.
5. The display method according to claim 1, characterized in that: The step of hiding the current interface window to display the application interface window and the startup background image of the first application in the application interface window includes: Perform a target operation on the current interface window to display the application interface window and the startup background image of the first application in the application interface window; wherein the target operation includes at least any one of a pull-up operation, a transparency adjustment operation, and a display layer adjustment operation.
6. The display method according to claim 1, characterized in that: The receiving operation of starting the first application includes: receiving any one of voice information for instructing to start the first application, or receiving a selection operation of a program control corresponding to the first application in the display interface.
7. A display device, characterized in that: include: A display configured to display a display interface of a preset application program; The controller includes a control module for the preset application program; The controller is configured to: The control module creates a current interface window in response to the start operation, and displays the display interface in the current interface window; The control module receives an operation of starting a first application, sends an indication message carrying a program identifier of the first application to a system interface management service, and obtains a startup background image of the first application based on the application identifier and a pre-stored storage path; wherein the indication message is used to instruct the system interface management service to pull up the first application corresponding to the program identifier, the first application is configured to create an application interface window corresponding to the first application at a lower layer than the current interface window, the storage path includes a storage path of a startup background image of each installed second application, and the first application is any one of the second applications; The control module controls the display to display a startup background image above the display interface; The control module receives preset information sent by the window manager, and controls the display to hide the current interface window to display the application interface window and the startup background image of the first application in the application interface window; wherein the preset information is used to indicate that the first application has created an application interface window at the next layer of the current interface window, and has loaded the startup background image of the first application in the application interface window.
8. The display device according to claim 7, characterized in that The control module executes the operation in response to the startup operation, creates a current interface window, and displays the display interface in the current interface window, and is specifically configured as follows: The control module obtains display content and creates a current interface window in response to the start operation; After creating the current interface window, the control module displays a display interface corresponding to the display content in the current interface window based on the display content.
9. The display device according to claim 7, characterized in that: The control module executes acquiring the startup background image of the first application based on the application identifier and the pre-stored storage path, and is specifically configured as follows: The control module queries the pre-configured corresponding relationship according to the application identifier to determine the storage path corresponding to the application identifier; The control module reads a preset background image corresponding to the first application program based on a storage path corresponding to the application identifier; The control module decodes the preset background image to obtain a bitmap corresponding to the preset background image, and caches the bitmap in a memory; The control module reads the bitmap from the memory, and uses the bitmap as a startup background image of the first application.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the display method described in claim 9.