Pre-display method and related device are applied

CN121050786BActive Publication Date: 2026-09-04HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410657806.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2026-09-04
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

十分影响界面的协调性和美观性

Benefits of technology

[0006]通过上述方式,在目标应用启动状态为冷启动时,基于该目标应用的配置信息,确定出目标应用对应的第一预显示图层。由于该配置信息中包括外屏显示应用窗口的显示模式,所以通过第一方面提供的方法,可以确保该第一预显示窗口与应用窗口的显示模式相同,从而提升界面的协调性和美观性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121050786B_ABST
    Figure CN121050786B_ABST
Patent Text Reader

Abstract

The application discloses an application pre-display method and related equipment, which is applied to an electronic device. The outer screen includes two display modes: a first display mode and a second display mode. The first display mode is full-screen display on the outer screen, and the second display mode is display on the outer screen by dividing the outer screen into multiple display areas. The method comprises the following steps: in response to an operation on a target application, determining the starting state of the target application; if the starting state of the target application is cold starting, determining the first pre-display layer corresponding to the target application based on the configuration information of the target application; displaying the first pre-display window on the outer screen, wherein the first pre-display window comprises the first pre-display layer; after displaying the first pre-display window on the outer screen, displaying the application window on the outer screen; wherein the display mode of the outer screen for displaying the first pre-display window is the same as the display mode of the outer screen for displaying the application window. The method is beneficial to improving the coordination and aesthetics of the interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to application pre-display methods and related devices. Background Technology

[0002] With the continuous development of flexible screens, more and more foldable electronic devices with multiple screens have appeared on the market. Among them, clamshell phones are currently very popular due to their portability. Clamshell phones include an external screen that can still function when the phone is folded. This external screen can display frequently used information such as application interfaces and time in a split-screen manner. Figure 1A As shown, the time and date are displayed on the left side of the outer screen, and the music application interface is displayed on the right side. Alternatively, the application interface can be displayed in full screen on the outer screen, as shown below. Figure 1B As shown, the music application interface is displayed in full screen on the outer screen.

[0003] Typically, when launching an application, a pre-display image (such as the application icon, static image, or advertisement) is loaded before the application fully starts to provide timely feedback to the user. However, if the display mode (full-screen or split-screen) of this pre-display image differs from the display mode when the application fully launches—for example, if the display mode during pre-display is... Figure 1A The split-screen display shown below, after the application has fully launched, displays as follows: Figure 1B The full-screen display shown significantly impacts the interface's harmony and aesthetics. Summary of the Invention

[0004] This application provides an application pre-display method and related equipment, which helps to improve the harmony and aesthetics of the interface.

[0005] In a first aspect, some embodiments of this application provide an application pre-display method. This method is applied to an electronic device, which includes a display screen comprising an inner screen and an outer screen. When the electronic device is folded, the inner screen is folded up; when the electronic device is unfolded, the inner screen and the outer screen face opposite directions. The electronic device is folded vertically. The outer screen includes two display modes: a first display mode and a second display mode. The first display mode is full-screen display on the outer screen, and the second display mode is displaying the outer screen in multiple display areas. The application pre-display method may include: responding to an operation on a target application and determining the startup state of the target application; if the startup state of the target application is a cold start, determining a first pre-display layer corresponding to the target application based on the target application's configuration information; displaying a first pre-display window on the outer screen, the first pre-display window including the first pre-display layer; and after displaying the first pre-display window on the outer screen, displaying an application window on the outer screen; wherein the display mode of displaying the first pre-display window on the outer screen is the same as the display mode of displaying the application window on the outer screen.

[0006] Using the above method, when the target application is in a cold start state, the first pre-display layer corresponding to the target application is determined based on the application's configuration information. Since this configuration information includes the display mode of the application window displayed on the external screen, the method provided in the first aspect can ensure that the first pre-display window has the same display mode as the application window, thereby improving the consistency and aesthetics of the interface.

[0007] In one possible implementation, the display mode of the first pre-display window on the outer screen is the second display mode; the first pre-display layer includes a first layer and a second layer, the first layer is used to display the background image corresponding to the target application, and the second layer is used to display the preset cold start image corresponding to the target application, and the first layer and the second layer are located in different display areas of the outer screen.

[0008] By using the above method, when the display mode of the application window on the outer screen is the second display mode, the display mode of the first pre-display window on the outer screen also needs to be the second display mode. By using two layers displayed in different areas of the outer screen, it is ensured that the display mode of the first pre-display window on the outer screen is also the second display mode.

[0009] In one possible implementation, the first pre-display window further includes a decorative layer. The transparency of the decorative layer in the first pre-display window is a first transparency, which is determined based on the configuration information of the target application. The decorative layer and the first layer are in the same display area on the outer screen. The display level of the decorative layer is higher than that of the first layer. The transparency of the decorative layer before responding to an operation is a second transparency, which is greater than the first transparency.

[0010] In this way, when there is a first layer in the first pre-display window used to present the background image, the content of the decorative layer needs to be displayed. The decorative layer controls whether it is displayed by controlling its transparency. Therefore, when there is a first layer, the decorative layer also changes from a transparent state (second transparency) to an opaque state (first transparency), and the display level of the decorative layer is higher than that of the first layer, thereby achieving the effect of displaying the content of the decorative layer on the background image.

[0011] In one possible implementation, if the target application is in a warm start state, a warm start image is determined. The warm start image is a screenshot taken when the target application was last exited. The warm start image is displayed on the second pre-display layer. A second pre-display window is displayed on the outer screen. The second pre-display window includes the second pre-display layer. The display mode of the second pre-display window on the outer screen is the first display mode.

[0012] Using the above method, during a warm start, since the warm start image is a screenshot of the target application at runtime, in a warm start scenario, only one layer is needed to tile the warm start image to ensure that the running application window has a background image and the second pre-display window also contains a background image; or the running application window does not have a background image and the second pre-display window does not have a background image either, thus achieving the effect that the display mode of the two windows on the external screen is the same.

[0013] In one possible implementation, the second pre-display window also includes a decorative layer with a third transparency in the second pre-display window. The third transparency is determined based on the configuration information of the target application. The decorative layer is located in the pre-display area of ​​the outer screen, and the display level of the decorative layer is higher than that of the second pre-display layer.

[0014] By means of the above method, since the configuration information includes the display mode of the application window on the external screen, and the configuration information configures the transparency state (transparent / opaque) of the decorative layer in the application window, the transparency state of the decorative layer in the second pre-display window determined based on the configuration information can be consistent with the transparency state of the decorative layer in the application window.

[0015] In one possible implementation, the configuration information includes static configuration information and / or dynamic configuration information; determining the first pre-display layer corresponding to the target application based on the configuration information of the target application includes: determining whether the configuration information includes static configuration information; if the configuration information includes static configuration information, then determining the first pre-display layer corresponding to the target application based on the static configuration information of the target application.

[0016] In this way, static configuration information is cached in the electronic device after the application is installed. If the target application's configuration information includes static configuration information, the static configuration information takes precedence and can quickly determine the first pre-display layer.

[0017] Secondly, this application provides an application pre-display device, which can be an electronic device, a device within an electronic device, or a device compatible with an electronic device. The application pre-display device can also be a chip system, capable of executing the methods performed by the electronic device in the first aspect. The functions of the application pre-display device can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the aforementioned functions. These units can be software and / or hardware. The operations and beneficial effects performed by the application pre-display device are described in the first aspect and their beneficial effects are not repeated here.

[0018] Thirdly, this application provides an electronic device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, including computer instructions, which, when executed by the one or more processors, cause the electronic device to perform the application pre-display method in any possible implementation of the first aspect described above.

[0019] Fourthly, this application provides a chip system including a processor and an interface, the processor and the interface being coupled; the interface is used to receive or output signals, and the processor is used to execute code instructions to perform the application pre-display method in any possible implementation of the first aspect above.

[0020] Fifthly, this application provides a computer-readable storage medium storing a computer program / instructions that, when the computer program product is run on a computer, cause the computer to execute the application pre-display method in any possible implementation of the first aspect described above.

[0021] Sixthly, this application provides a computer program product that, when run on a computer, causes the computer to execute the application pre-display method in any possible implementation of the first aspect described above. Attached Figure Description

[0022] Figure 1A A schematic diagram of a partitioned display interface on an external screen provided in an embodiment of this application;

[0023] Figure 1B A schematic diagram of a full-screen interface displayed on an external screen, provided as an embodiment of this application;

[0024] Figure 1C A schematic diagram of a vertically folding screen mobile phone provided in an embodiment of this application;

[0025] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0026] Figure 3 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;

[0027] Figure 4 This application provides a schematic diagram of an application pre-display process based on a software architecture.

[0028] Figure 5 A flowchart illustrating an application pre-display method provided in an embodiment of this application;

[0029] Figure 6AA schematic diagram of an interface for operating a target application provided in an embodiment of this application;

[0030] Figure 6B A schematic diagram of another interface for operating the target application provided in an embodiment of this application;

[0031] Figure 6C A schematic diagram of various layers on an outer screen provided in an embodiment of this application;

[0032] Figure 6D A schematic diagram of the various layers on an outer screen provided in an embodiment of this application;

[0033] Figure 6E A schematic diagram of various layers on an outer screen provided in an embodiment of this application;

[0034] Figure 7A This application provides a flowchart illustrating the display and hiding of a decorative layer.

[0035] Figure 7B This application provides a schematic diagram of a process for displaying and hiding decorative layers during a cold start.

[0036] Figure 8 A flowchart illustrating an application pre-display method under a hot start, provided as an embodiment of this application;

[0037] Figure 9A A schematic diagram of an application pre-display method under a hot start provided in an embodiment of this application;

[0038] Figure 9B A schematic diagram of an application pre-display method under a warm start provided in an embodiment of this application;

[0039] Figure 9C This application provides a schematic diagram of a process for displaying and hiding decorative layers during a hot start.

[0040] Figure 10A A schematic diagram illustrating the process of adding, showing, and hiding a decorative layer, provided in an embodiment of this application;

[0041] Figure 10B A schematic diagram illustrating another process for adding a decorative layer, as provided in an embodiment of this application;

[0042] Figure 11 This is a schematic diagram of the structure of an application pre-display device provided in an embodiment of this application;

[0043] Figure 12 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0045] It should be understood that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0046] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.

[0047] To facilitate understanding of the solutions provided in the embodiments of this application, the relevant concepts involved in the embodiments of this application are introduced below:

[0048] 1. Foldable screen

[0049] A vertically folding screen, also known as a foldable screen, refers to a display screen that can be folded vertically. Electronic devices using vertically folding screens are more compact and portable when folded. Examples of electronic devices with vertically folding screens include vertically folding phones and tablets. Taking a vertically folding phone as an example... Figure 1C As shown, the clamshell phone includes two screens: an outer screen 101 and an inner screen 102. The clamshell phone can be in an unfolded state and a folded state. When the clamshell phone is in the unfolded state, the inner screen 102 is lit and faces the user; when the clamshell phone is in the folded state, the outer screen 101 is lit and faces the user, while the inner screen 102 is folded up. Here, "screen orientation" refers to the direction the front of the display screen is facing.

[0050] 2. Startup Status

[0051] Launch status can also be called launch mode, which is mainly divided into two types: cold start and warm start. A cold start occurs when an application is launched but there is no background process running it. In this case, the system creates a new process and assigns it to the application. This is the cold start method. A warm start occurs when an application is launched but there is already a background process running it (for example, pressing the back button exits the foreground application, but the application's process remains in the background, and it is still listed in the task list). In other words, when there is already a process running, a warm start will launch the application from the existing process.

[0052] 3. Application Preview

[0053] To provide timely feedback on user actions, a preview image is displayed on the screen after the user performs a corresponding action on the application. Because cold starts and warm starts use different launch methods, the preview images displayed on the screen also differ. During a cold start, the application icon is displayed on the screen, while during a warm start, a screenshot of the application's last exit is displayed.

[0054] For the aforementioned vertically folding screens, the outer display screen will be divided into two types ( Figure 1A and Figure 1B Two display modes). If the display mode (full screen or split screen) of the loaded pre-display image is different from the display mode of the subsequent application when it is fully launched, it will greatly affect the consistency and aesthetics of the interface.

[0055] To ensure that the display mode of the pre-displayed image is the same as the display mode of the application when it is fully launched, thereby improving the consistency and aesthetics of the interface, this application provides an application pre-display method and related equipment. In a specific implementation, the aforementioned application pre-display method can be executed by an electronic device 100. The electronic device 100 can be an electronic device with a vertically folding screen, such as a vertically folding screen mobile phone or a vertically folding screen tablet, but it is not limited to these. Here, a vertically folding screen refers to a display screen that can be folded vertically, and this display screen includes an inner screen and an outer screen.

[0056] The hardware structure of electronic device 100 is described below. Please refer to [link / reference]. Figure 2 , Figure 2 This is a schematic diagram of the hardware structure of the electronic device 100 provided in the embodiments of this application.

[0057] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0058] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0059] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0060] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0061] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. The processor 110 retrieves the instructions or data stored in the memory, causing the electronic device 100 to execute the camera mode switching method performed by the electronic device in the following method embodiment.

[0062] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0063] The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger.

[0064] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc. In some other embodiments, the power management module 141 may also be located in the processor 110.

[0065] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0066] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0067] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0068] A modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor.

[0069] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), BLE broadcasting, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0070] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

[0071] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0072] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1. The display screen 194 may be an outward-folding screen, i.e., a display screen that folds outwards.

[0073] Electronic device 100 can perform shooting functions through an ISP, camera 193, video codec, GPU, display screen 194, and application processor. The ISP processes data fed back by the camera 193. The camera 193 captures still images or videos. The camera 193 may include a front-facing camera and a rear-facing camera; the front-facing camera is located on the display area of ​​the screen, and the rear-facing camera is located on the back area of ​​the screen. The digital signal processor processes digital signals, including digital image signals and other digital signals. The video codec is used to compress or decompress digital video. Electronic device 100 may support one or more video codecs.

[0074] NPU stands for Neural-Network (NN) Computing Processor. By drawing inspiration from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can quickly process input information and continuously learn on its own.

[0075] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to perform data storage functions.

[0076] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as a sound playback function), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data), etc. Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as flash memory devices.

[0077] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0078] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0079] A speaker 170A, also called a "loudspeaker," is used to convert audio electrical signals into sound signals. A receiver 170B, also called a "handpiece," is used to convert audio electrical signals into sound signals. A microphone 170C, also called a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. A headphone jack 170D is used to connect wired headphones. A pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be located on the display screen 194. A gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. A barometric pressure sensor 180C is used to measure barometric pressure. A magnetic sensor 180D includes a Hall effect sensor. An accelerometer 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). A distance sensor 180F is used to measure distance. A proximity sensor 180G may include, for example, a light-emitting diode (LED) and a photosensor. An ambient light sensor 180L is used to sense ambient light intensity. A fingerprint sensor 180H is used to collect fingerprints. Temperature sensor 180J is used to detect temperature. Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. Bone conduction sensor 180M can acquire vibration signals. Buttons 190 include power button, volume buttons, etc. Motor 191 can generate vibration prompts. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card.

[0080] Furthermore, an operating system runs on top of the aforementioned components. Examples include iOS and Android. The operating system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100. It should be noted that although this application embodiment uses the Android system as an example for illustration, its basic principles are equally applicable to electronic devices with other operating systems.

[0081] Figure 3This is a software structure block diagram of the electronic device 100 according to an embodiment of this application. The software structure adopts a layered architecture, which divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In this embodiment, the operating system (taking Android as an example, with Android running on an AP) can be divided into three layers, from top to bottom: the application layer (APP), the application framework layer (FWK), and the kernel layer.

[0082] The application layer can include a series of application packages. For example... Figure 3 As shown, the application package can include both system-installed applications and third-party applications. For example, system-installed applications can include the System UI, which is used to display the interface of electronic devices, as well as applications for text messaging, calls, etc. Third-party applications can include video applications, music applications, etc.

[0083] The application framework layer provides application developers with an application programming interface (API) framework and various services and management tools to access core functionalities, including interface management, data access, application-layer messaging, application package management, telephony management, and location management. The application framework layer includes some predefined functions. For example... Figure 3 As shown, the application framework layer may include: Activity Manager, Window Manager, Content Provider, Phone Manager, Resource Manager, etc.

[0084] The kernel layer is responsible for managing system hardware resources and providing necessary services to applications. This kernel layer includes drivers for various hardware devices, which are responsible for controlling and operating these devices. Figure 3 As shown, the kernel layer includes:

[0085] The Window Manager Service (WMS) is a component in the Android system responsible for managing and scheduling windows. Together with the Activity Manager Service (AMS), WMS handles window management and scheduling. WMS is responsible for launching, adding, and deleting windows. This means that when an electronic device opens a new application or closes a window, WMS processes these requests. WMS also manages window size and display hierarchy.

[0086] The Package Manager Service (PMS) is a core system service responsible for managing the installation, upgrades, uninstallation, and access control of all application packages. PMS also maintains a manifest for each application package. This manifest is an XML file containing various metadata about the application, such as package name, version number, and permission requirements. Furthermore, AndroidManifest.xml is a mandatory file for every Android application. It declares the application's components and required permissions, information which is read and parsed by PMS during application installation.

[0087] Based on the above software structure, the interaction between the various modules of the application pre-display method provided in this application embodiment will be further described. Please refer to [link / reference]. Figure 4 As shown.

[0088] In this embodiment of the application, SystemUI is used to create a decorative layer, which may be created by SystemUI when the electronic device 100 is powered on.

[0089] When used to operate on the target application, the system responds to the operation and executes the corresponding interface switching action. This interface switching can be from another application's interface to the target application's interface (specifically, switching to a pre-display window) or from the main interface to the target application's interface. The configuration information includes which scenarios require the display of decorative layers and which scenarios do not. For example, application A requires the display of decorative layers, while application B does not. Since the information of each layer is determined based on this configuration information during startup (cold start / warm start), it can also be said that this configuration information is used to indicate whether decorative layers need to be displayed during startup.

[0090] PMS is used to parse configuration information, which is located in AndroidManifest.xml. PMS then provides the parsed configuration information to WMS.

[0091] WMS stores relevant data about decorative layers, including their display level and layout position. WMS can determine whether to display a decorative layer based on configuration information sent by PMS. To address the inability of existing frameworks to accurately determine this, interfaces for hiding and showing decorative layers can be provided for various applications.

[0092] Based on the above, the following provides a more detailed description of an application pre-display method provided by an embodiment of this application. For example... Figure 5 As shown, the application pre-display method includes the following steps 501 to 504. Figure 5The method shown can be implemented by the aforementioned electronic device. Alternatively, Figure 5 The method shown can be executed by a chip in an electronic device, but this application does not limit the implementation. Figure 5 The method is illustrated using an electronic device as the executing entity. This electronic device includes a display screen, which comprises an inner screen and an outer screen. When the electronic device is folded, the inner screen folds up; when the electronic device is unfolded, the inner and outer screens face opposite directions. The electronic device folds vertically. The outer screen includes two display modes: a first display mode and a second display mode. The first display mode displays the entire outer screen, while the second display mode divides the outer screen into multiple display areas. Wherein:

[0093] 501. The electronic device responds to the operation on the target application and determines the startup status of the target application.

[0094] The operation on the target application could be clicking the target application's icon from the main page, for example... Figure 6A As shown, Figure 6A The interface on the left is the main page, which includes icons for various applications. When a user clicks on a music application (the target application is the music application), the music application is launched.

[0095] Optionally, the operation on the target application could be clicking the thumbnail of the target application from the task list, for example, Figure 6B As shown, Figure 6B The interface on the left is a task list, which includes thumbnails of various background applications. Clicking on the music application (the target application is the music application) will trigger the launch of that music application.

[0096] The startup state of the target application includes warm start and cold start. In one possible implementation, determining the startup state of the target application includes, but is not limited to, the following methods:

[0097] Electronic devices determine whether an application is in a cold or warm start by checking the `TaskAffinity` attribute of the target application. When the application is in a cold start, the `TaskAffinity` attribute is the application's package name; when it's in a warm start, the `TaskAffinity` attribute is an empty string. Alternatively, when the target application starts, the electronic device checks if a process for that application already exists in the system. If no process exists, it's a cold start; if a process exists, it's a warm start. Alternatively, the electronic device records the current time in the `onCreate()` method of the target application's main Activity and compares it to the last recorded time. If the time difference is large, it's likely a cold start; if the time difference is small, it's likely a warm start.

[0098] 502. If the target application of an electronic device is in a cold start state, the first pre-display layer corresponding to the target application shall be determined based on the configuration information of the target application.

[0099] The configuration information of the target application includes whether the display mode for displaying the target application on the external screen is a first display mode or a second display mode. The display mode for each application is configured through the configuration information. Since the number of layers included in the pre-display layer varies depending on the display mode of the external screen, for ease of description, this application describes the second display mode as dividing the external screen into two display areas. In reality, the second display mode can also divide the external screen into three or more display areas. The first pre-display layer can include only one layer or two layers. When the first pre-display layer includes only one layer, the external screen is displayed in full screen during pre-display; when the first pre-display layer includes only two layers, the external screen is displayed in multiple display areas during pre-display.

[0100] In the existing process, during a cold start scenario, the target application has not yet fully started, the actual application window has not yet been added, and the application's configuration information cannot take effect. In order to enable the target application's configuration information to take effect during pre-display, in one possible embodiment, the first pre-display window inherits the application window's configuration information.

[0101] When the first pre-display window inherits from the application window, it can also inherit the application window's configuration information. Since this configuration information is used to configure the display mode of the application window displayed on the external screen, and the first pre-display window inherits from the application window's configuration information, the display mode of the first pre-display window displayed on the external screen is the same as the display mode of the application window displayed on the external screen.

[0102] For example, if the configuration information configures the display mode of the target application's application window on the external screen to be the first display mode, then the display mode of the first pre-display window on the external screen is also the first display mode; similarly, if the configuration information configures the display mode of the target application's application window on the external screen to be the second display mode, then the display mode of the first pre-display window on the external screen is also the second display mode.

[0103] In one possible embodiment, the configuration information includes static configuration information and / or dynamic configuration information; the electronic device determines the first pre-display layer corresponding to the target application based on the configuration information of the target application, including: the electronic device determining whether the configuration information includes static configuration information; if the configuration information includes static configuration information, the electronic device determines the first pre-display layer corresponding to the target application based on the static configuration information of the target application.

[0104] In other words, if the target application's configuration information includes static configuration information, then that static configuration information will take effect; if the target application's configuration information includes both static and dynamic configuration information, then the static configuration information will take precedence. Specifically, the metadata field in the static configuration information is used to configure the display mode of the target application's application window on the external screen.

[0105] Static configuration information is cached in the electronic device after the application is installed. If the target application's configuration information includes static configuration information, the static configuration information takes precedence and can quickly determine the first layer to be displayed.

[0106] 503. An electronic device displays a first pre-display window on an external screen, the first pre-display window including a first pre-display layer.

[0107] The first pre-display window is used to present the pre-display interface during a cold start. This first pre-display window includes a first pre-display layer, which has two types, described below: One type contains only one layer, and its corresponding external screen display mode is full-screen display; the other type contains two layers (or more), and its corresponding external screen display mode is that the external screen displays two display areas. Further descriptions of the two types of first pre-display layers corresponding to these two external screen display modes follow:

[0108] Type 1: The first pre-display layer contains only one layer.

[0109] In one possible implementation, the display mode of the first pre-display window on the outer screen is a first display mode; the first pre-display mode includes a third layer, which is used to display the cold start image corresponding to the target application.

[0110] The cold start image can be determined through a mapping relationship between preset applications and cold start images in the electronic device. For example, the preset mapping relationship between preset applications and cold start images in the electronic device is: application A—cold start image A, application B—cold start image B, application C—cold start image C. If the target application is application B, then the corresponding cold start image is cold start image B. Alternatively, it can be determined through the application's configuration information or through other methods. This application does not impose any restrictions on this.

[0111] In one possible implementation, the first pre-display window further includes a decorative layer with a fourth transparency in the first pre-display window, the fourth transparency being determined based on the target application's configuration information. The decorative layer is located in a portion of the display area within the third layer, and its display hierarchy is higher than the third layer. The decorative layer has a second transparency before responding to an operation.

[0112] The decorative layer can be added when the electronic device is turned on. However, in the default interface (such as the main page), the decorative layer is transparent (the transparency of the decorative layer can be 100%). In other words, although the decorative layer exists when the electronic device is turned on, it is not visible to the user in the default interface.

[0113] Since the decorative layer doesn't need to be displayed when only one layer is included in the first pre-display layer, it's typically transparent under this type. That is, the decorative layer is transparent under the fourth transparency level, and also transparent under the second transparency level. In one possible implementation, the fourth and second transparency levels are the same, both being 100%.

[0114] To better understand the first pre-display layer of this type 1, the following will combine... Figure 6C Further explanation of the first pre-display layer of this type one, such as... Figure 6C As shown, the Figure 6C This is a schematic diagram of a first pre-display layer provided in this application. Figure 6C Layer 601 is the first pre-display layer 601, and layer 602 is the decorative layer 602. The first pre-display layer 601 is used to present the cold start image, and the decorative layer 602 is completely transparent. The final effect of the first pre-display window is as follows: Figure 6C As shown on the right side of the screen. This means that only the cold start image is displayed on the external screen. Figure 6C (The musical note image on the right). The cold start image is tiled on the first pre-display layer 601 with the center of the first pre-display layer 601 as the center point.

[0115] Type 2: The first pre-display layer includes two layers.

[0116] In this type 2 configuration, the first pre-display layer can also include more layers; for example, the first pre-display layer of this type 2 configuration can include three layers. For ease of description, we will use an example with only two layers.

[0117] In one possible embodiment, the display mode of the first pre-display window on the outer screen is the second display mode; the first pre-display layer includes a first layer and a second layer, the first layer is used to display the background image corresponding to the target application, the second layer is used to display the preset cold start image corresponding to the target application, and the first layer and the second layer are located in different display areas of the outer screen.

[0118] The first layer is located in the area of ​​the camera on the outer screen. This first layer is used to display a background image, which can be a preset image or a background image corresponding to the target application. The cold start image can be found in the description of the above-mentioned type one, and will not be elaborated upon here.

[0119] The background image can have a default color or the color of the target application's icon. For example, if the target application's icon is yellow, then the background image will also have a yellow background. Furthermore, the background image can have a gradient. For instance, if the target application's icon is yellow, then the background image will have a gradient of yellow, specifically a gradient from yellow (the color at the top of the screen) to white (the color at the bottom of the screen).

[0120] In one possible embodiment, the background image can be determined by the electronic device determining the background image corresponding to the target application based on the configuration information of the target application.

[0121] Optionally, the background image can be determined by the electronic device based on a preset mapping relationship between applications and background images, thus determining the background image corresponding to the target application. For example, the preset mapping relationship between applications and background images in the electronic device might be: application A—background image A, application B—background image B, application C—background image C. If the target application is application B, then the background image is background image B.

[0122] Optionally, the background image can be determined as follows: the electronic device determines the background image color based on a preset mapping relationship between applications and background image colors; the electronic device then generates a background image based on this background image color. For example, the preset mapping relationship between applications and background image colors might be: application A—red, application B—yellow, application C—blue background. If the target application is application B, then the background image color is yellow, and the generated background image could be an image that gradually changes from yellow (the color at the top of the screen) to white (the color at the bottom of the screen).

[0123] To better understand the first pre-display layer of this type 2, the following will combine... Figure 6D Further explanation of the first pre-display layer of this type two, such as... Figure 6D As shown, the Figure 6DThis is a schematic diagram of a first pre-display layer provided in this application. Figure 6D The layer marked 603 is the first layer (603), and the layer marked 604 is the second layer (604). The final effect presented in the first pre-display window is as follows. Figure 6D As shown on the right side of the screen. That is, the cold start image is displayed on a portion of the outer screen's display area. Figure 6D (The musical note image on the right). The cold start image is tiled on the second layer 604 with the center of the second layer 604 as the midpoint.

[0124] By using the above method, when the display mode of the application window on the outer screen is the second display mode, the display mode of the first pre-display window on the outer screen also needs to be the second display mode. By using two layers displayed in different areas of the outer screen, it is ensured that the display mode of the first pre-display window on the outer screen is also the second display mode.

[0125] In one possible embodiment, the first pre-display window further includes a decorative layer. The transparency of the decorative layer in the first pre-display window is a first transparency, which is determined based on the configuration information of the target application. The decorative layer and the first layer are in the same display area on the outer screen. The display level of the decorative layer is higher than that of the first layer. The transparency of the decorative layer before responding to an operation is a second transparency, which is greater than the first transparency.

[0126] In this type of scenario, the decorative layer is required to be displayed. The content displayed in this decorative layer can be system-defined and may include information such as time and date. The content can be system defaults or user-defined content (e.g., components). This decorative layer can have the same size as the first layer, and its position on the outer screen can also match the position of the first layer. Alternatively, the decorative layer can be located within a portion of the first layer.

[0127] The first transparency can be 0%, or other visible transparency values.

[0128] To better understand the first pre-display layer of this type 2, the following will combine... Figure 6E Further explanation of the first pre-display layer of this type two, such as... Figure 6E As shown, the Figure 6E A schematic diagram illustrating yet another first pre-display layer provided in this application. Figure 6E Layer marked 605 is the first layer (605), layer marked 606 is the second layer (606), and layer marked 607 is the decoration layer (607). The final effect presented in the first pre-view window is as follows: Figure 6EAs shown on the right (the time and date on the right are the content displayed by the decorative layer), the content of the decorative layer is displayed on the background image, and the cold start image is displayed in a portion of the outer screen's display area. Figure 6E (The musical note image on the right).

[0129] In this way, when there is a first layer in the first pre-display window used to present the background image, the content of the decorative layer needs to be displayed. The decorative layer controls whether it is displayed by controlling its transparency. Therefore, when there is a first layer, the decorative layer also changes from a transparent state (second transparency) to an opaque state (first transparency), and the display level of the decorative layer is higher than that of the first layer, thereby achieving the effect of displaying the content of the decorative layer on the background image.

[0130] For type one of the above scenarios, the decorative layer needs to be transparent, while for type two, the decorative layer needs to be displayed. The process for determining whether to display the decorative layer can be found in [link to documentation]. Figure 7A As shown, Figure 7A This is a flowchart illustrating whether or not to display a decorative layer, provided as an embodiment of this application. Figure 7A The application launch in the context of the application can be in response to user actions. Figure 7A The layoutParams in the configuration is the layout configuration for the pre-displayed window, which is the configuration of the application window in the target application's configuration information.

[0131] The following is combined Figure 7B The text further explains whether or not to display the decorative layer, specifically how to determine the transparency of the decorative layer based on the target application's configuration information.

[0132] Please see Figure 7B , Figure 7B This application provides a class diagram for determining whether a decoration layer is displayed during a cold start. The process for determining whether a decoration layer is displayed mainly involves the following three classes and a PMS. The PMS can be found in the above description of this application and will not be repeated here. The three classes are described below:

[0133] Activity.java: In Android development, Activity.java primarily serves as a separate screen for the application, responsible for creating the user interface and handling user interactions. Almost all user interactions with the application occur through Activities. This includes touch screen interactions, key presses, and various user-triggered events.

[0134] HnSplashscreenContentDrawer.java: HnSplashscreenContentDrawer.java is used to create the first pre-display window during cold starts and to draw the cold start image (such as the application icon). It also manages the content and main elements of the drawing. It should be noted that this class name can also be different; this application does not restrict this.

[0135] ActivityThread.java is a core class in the Android system, responsible for managing the application's lifecycle and the UI thread. When an Android application starts, ActivityThread is the application's main entry point. It is responsible for creating the application's main thread (also known as the UI thread) and running the application's main logic on this thread.

[0136] like Figure 7B As shown, the startActivity() method is used to jump to the Activity corresponding to the target application. This startActivity() method is used to jump from one Activity to another, such as jumping from the Activity corresponding to the main page to the Activity corresponding to the target application, or jumping from the Activity corresponding to application A to the Activity corresponding to application B (the target application).

[0137] ActivityThread.java retrieves the target application's metadata cache data from the PMS based on the package name. This metadata cache data contains the target application's static configuration information and is cached during the target application's installation. Specifically, ActivityThread.java can obtain this metadata cache data through the getApplicationInfo() method.

[0138] HnSplashscreenContentDrawer.java determines whether to display a decorative layer based on the package name and static configuration information (AndroidManifest.xml), specifically determining the transparency of the decorative layer from the static configuration information. Specifically, HnSplashscreenContentDrawer.java can obtain the transparency of the decorative layer using the getDisplayDecoModeFromMetaData() method.

[0139] The `createLayoutParams()` method adds a first pre-display window for a cold start scenario. The first pre-display layer in this window can be either the first pre-display layer of type one or the first pre-display layer of type two. This first pre-display window includes a decorative layer, and whether this decorative layer is displayed is determined based on the configuration information (transparency) returned by `ActivityThread.java`.

[0140] 504. After the electronic device displays the first pre-display window on the external screen, it displays the application window on the external screen; wherein the display mode of the first pre-display window on the external screen is the same as the display mode of the application window on the external screen.

[0141] The application window can be as follows: Figure 1A or Figure 1B As shown, when the application window is displayed, the target application has already fully started. After receiving the user's operation, the external screen first displays the first pre-display window, and then displays the application window. If the application window is as follows... Figure 1B As shown, the first pre-display window is as follows: Figure 6C As shown on the right; conversely, if the application window is as shown on the left... Figure 1A As shown, the first pre-display window is as follows: Figure 6E As shown on the right side of the middle section.

[0142] Using the above method, when the target application is in a cold start state, the first pre-display layer corresponding to the target application is determined based on the application's configuration information. Since this configuration information includes the display mode of the application window displayed on the external screen, the method provided in the first aspect can ensure that the first pre-display window has the same display mode as the application window, thereby improving the consistency and aesthetics of the interface.

[0143] The above describes the application display methods in cold start scenarios. Below, we will combine... Figure 8 This section introduces the application display methods in a warm-start scenario.

[0144] 801. The electronic device responds to the operation on the target application and determines the startup status of the target application.

[0145] This step can be referred to in step 501 above, and will not be repeated here.

[0146] 802. If the target application of the electronic device is in a warm start state, then the warm start image is determined. The warm start image is the image obtained by taking a screenshot when the target application was last exited. The warm start image is displayed on the second pre-display layer.

[0147] The resulting hot-start images are of two types: one includes the application interface, and the other includes both the application interface and a background image. The two types are described below: Type 1: The hot-start image only includes the application interface. In this type, the application window is displayed in full-screen mode on the external screen. Type 2: The hot-start image includes both the application interface and a background image. In this type, the application window is displayed in two separate areas on the external screen.

[0148] It should be noted that this hot start image is a screenshot of the target application. When taking a screenshot of the target application, decorative layers cannot be captured. Even if decorative layers are displayed in the application window of the target application, they will not be captured in the hot start image.

[0149] 803. The electronic device displays a second pre-display window on the external screen. The second pre-display window includes a second pre-display layer. The display mode of the second pre-display window on the external screen is the first display mode.

[0150] Unlike cold start scenarios, in warm start scenarios, regardless of the display mode of the application window on the outer screen, since the warm start image is a screenshot taken when exiting, only one layer is needed to present the screenshot image during pre-display, which can visually present it as a full-screen display or a display in multiple display areas.

[0151] In one possible embodiment, the second pre-display window further includes a decorative layer with a third transparency in the second pre-display window. The third transparency is determined based on the configuration information of the target application. The decorative layer is located in a pre-display area of ​​the outer screen, and the display level of the decorative layer is higher than that of the second pre-display layer.

[0152] The third transparency can be the same as the second transparency, or it can be the same as the first transparency. Specifically, when the hot-start image only includes a screenshot of the application interface, the third transparency is the same as the second transparency, and the decorative layer is hidden; when the hot-start image includes screenshots of both the application interface and the background image, the third transparency is the same as the first transparency, and the decorative layer is displayed.

[0153] To better understand the pre-display in this warm-start scenario, the following will combine... Figure 9A and Figure 9B This section provides further details on the pre-display in this warm-start scenario.

[0154] First, such as Figure 9A As shown, Figure 9AThe present application provides a pre-display process under a hot start, in which a screenshot of the interface is taken when exiting the target application to obtain a hot start image 901, which only includes a screenshot of the application interface. Figure 9A The layer marked 902 is the second pre-display layer 902, in which the hot start image 901 is displayed and finally pre-displayed on the outer screen.

[0155] Secondly, such as Figure 9B As shown, Figure 9B Another pre-display process under a hot start provided in this application embodiment involves taking a screenshot of the interface when exiting the target application to obtain a hot start image 903. The hot start image 903 includes screenshots of the application interface and background image, and the decorative layer in the target application is in a display state. Figure 9B The layer marked 904 is the second pre-display layer 904. The layer on the second pre-display layer 904 is a decorative layer. The hot start image 903 is displayed in the second pre-display layer 904 and finally pre-displayed on the outer screen.

[0156] By means of the above method, since the configuration information includes the display mode of the application window on the external screen, and the configuration information configures the transparency state (transparent / opaque) of the decorative layer in the application window, the transparency state of the decorative layer in the second pre-display window determined based on the configuration information can be consistent with the transparency state of the decorative layer in the application window.

[0157] The following is combined Figure 9C This section further explains whether the decorative layer is displayed during a warm start, specifically how to determine the transparency of the decorative layer based on the target application's configuration information.

[0158] Please see Figure 9C , Figure 9C This application provides a class diagram for determining whether a decoration layer is displayed during a hot start. The process for determining whether a decoration layer is displayed mainly involves the following three classes and a PMS. The PMS can be found in the above description of this application and will not be repeated here. The three classes are described below:

[0159] Activity.java: For the description of Activity.java in step 503 above, this application will not repeat it here.

[0160] SnapshotDrawerUtils.java: SnapshotDrawerUtils.java is used to create a second pre-display window for hot starts and to manage the cache of hot start images. It should be noted that this class name can also be other names; this application does not impose any restrictions on this.

[0161] ActivityThread.java: ActivityThread.java can be found in the description in step 503 above, and will not be repeated here.

[0162] like Figure 9C As shown, the startActivity() method is used to jump to the Activity corresponding to the target application. This startActivity() method is used to jump from one Activity to another, such as jumping from the Activity corresponding to the main page to the Activity corresponding to the target application, or jumping from the Activity corresponding to application A to the Activity corresponding to application B (the target application).

[0163] ActivityThread.java retrieves the target application's metadata cache data from the PMS based on the package name. This metadata cache data contains the target application's static configuration information and is cached during the target application's installation. Specifically, ActivityThread.java can obtain this metadata cache data through the getApplicationInfo() method.

[0164] SnapshotDrawerUtils.java determines whether to display a decorative layer based on the package name and static configuration information (AndroidManifest.xml), specifically determining the transparency of the decorative layer from the static configuration information. Specifically, HnSplashscreenContentDrawer.java can obtain the transparency of the decorative layer using the getDisplayDecoModeFromMetaData() method.

[0165] Use the createLayoutParams() method to add a second pre-display window for cold start scenarios.

[0166] Using the above method, during a warm start, since the warm start image is a screenshot of the target application at runtime, in a warm start scenario, only one layer is needed to tile the warm start image to ensure that the running application window has a background image and the second pre-display window also contains a background image; or the running application window does not have a background image and the second pre-display window does not have a background image either, thus achieving the effect that the display mode of the two windows on the external screen is the same.

[0167] To better understand the embodiments of this application, the addition, display, and hiding of the decorative layers mentioned above will be further described below.

[0168] Please see Figure 10A As shown, Figure 10A The process marked 1001 is the process of adding a decorative layer, which typically occurs when the electronic device is powered on. This process is executed by the electronic device's system. Layer leash information refers to the layer's control and management attributes, which define the layer's behavior and appearance. Specifically, these attributes include basic information such as the layer's name, rendering order, and visible area.

[0169] After the user inputs an action (see step 501 above), the decorative layer is determined based on the configuration information. Specifically, this can be done by determining the transparency of the decorative layer to decide whether to display its content (see step 504 above). If it is determined that the target application needs to display the decorative layer's content, it is then determined whether the foreground application has experienced a focus switch (e.g., switching from application A to application B), interface rotation (e.g., rotating from landscape to portrait), screen switching (e.g., switching from the inner screen to the outer screen), or other animation effects. If any of these animation effects occur, the decorative layer is hidden (specifically, by adjusting the decorative layer's transparency); otherwise, the decorative layer's content is displayed (specifically, by adjusting the decorative layer's transparency).

[0170] The following is combined Figure 10B For further details on the process of adding decorative layers, please refer to [link / reference]. Figure 10B , Figure 10B This application provides a class diagram for adding a decoration layer according to an embodiment. The process of adding a decoration layer mainly includes the following steps:

[0171] ViewRootImpl.java creates a decorative layer by calling the addWindowLw() function. The type of this decorative layer is defined by TYPE_DICE_VIEW, and its layer is defined by getWindowLayerFromTypeLw. DisplayPolicy.java saves the relevant information of the decorative layer defined above by calling the setDecorWindowInfo() function. Finally, when the electronic device is powered on, it is usually on the main screen, where the content of the decorative layer does not need to be displayed. Therefore, HwDisplayPolicyEx.java calls the hideDecorWindow() function to hide the decorative layer.

[0172] Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of an application pre-display device 1100 provided in an embodiment of this application. Figure 11The application preview device shown can be an electronic device, a device within an electronic device, or a device that can be used in conjunction with an electronic device. Figure 11 The application pre-display device shown may include a processing unit 1101 and a display unit 1102.

[0173] in:

[0174] The processing unit 1101 is used to respond to operations on the target application and determine the startup status of the target application;

[0175] The processing unit 1101 is further configured to determine the first pre-display layer corresponding to the target application based on the configuration information of the target application if the startup state of the target application is cold start.

[0176] Display unit 1102 is used to display a first pre-display window on an external screen, the first pre-display window including a first pre-display layer;

[0177] The display unit 1102 is also used to display an application window on the external screen after displaying the first pre-display window on the external screen; wherein the display mode of displaying the first pre-display window on the external screen is the same as the display mode of displaying the application window on the external screen.

[0178] In one possible implementation, the display mode of the first pre-display window on the outer screen is the second display mode; the first pre-display layer includes a first layer and a second layer, the first layer is used to display the background image corresponding to the target application, and the second layer is used to display the preset cold start image corresponding to the target application, and the first layer and the second layer are located in different display areas of the outer screen.

[0179] In one possible implementation, the first pre-display window further includes a decorative layer. The transparency of the decorative layer in the first pre-display window is a first transparency, which is determined based on the configuration information of the target application. The decorative layer and the first layer are in the same display area on the outer screen. The display level of the decorative layer is higher than that of the first layer. The transparency of the decorative layer before responding to an operation is a second transparency, which is greater than the first transparency.

[0180] In one possible implementation, the processing unit 1101 is further configured to determine a hot start image if the startup state of the target application is a hot start, wherein the hot start image is an image captured when the target application was last exited, and the hot start image is displayed on a second pre-display layer.

[0181] The display unit 1102 is also used to display a second pre-display window on the outer screen. The second pre-display window includes a second pre-display layer, and the display mode of the second pre-display window on the outer screen is the first display mode.

[0182] In one possible implementation, the second pre-display window also includes a decorative layer. The transparency of the decorative layer in the second pre-display window is a third transparency, which is determined based on the configuration information of the target application. The decorative layer is located in the pre-display area of ​​the outer screen, and the display level of the decorative layer is higher than that of the second pre-display layer.

[0183] In one possible implementation, the processing unit 1101 is further configured to determine whether the configuration information includes static configuration information; if the configuration information includes static configuration information, then the first pre-display layer corresponding to the target application is determined based on the static configuration information of the target application.

[0184] For applications where the pre-display device can be a chip or a chip system, please refer to [link / reference]. Figure 12 The diagram shows the structure of the chip. Figure 12 The chip 1200 shown includes a processor 1201 and an interface 1202. Optionally, it may also include a memory 1203. The number of processors 1201 can be one or more, and the number of interfaces 1202 can be multiple.

[0185] For cases where the chip is used to implement the electronic device in the embodiments of this application:

[0186] The interface 1202 is used to receive or output signals;

[0187] The processor 1201 is used to perform data processing operations of the electronic device.

[0188] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0189] It is understood that some optional features in the embodiments of this application can be implemented independently in certain scenarios without relying on other features, such as the current solution on which they are based, to solve the corresponding technical problems and achieve the corresponding effects. Alternatively, they can be combined with other features as needed in certain scenarios. Accordingly, the application pre-display device given in the embodiments of this application can also implement these features or functions, which will not be elaborated here.

[0190] It should be understood that the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0191] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0192] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed on an electronic device, implement the functions of any of the above method embodiments.

[0193] This application also provides a computer program product that, when run on a computer, enables the computer to perform the functions of any of the above method embodiments.

[0194] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0195] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An application pre-display method, characterized in that, This invention relates to an electronic device, which includes a display screen comprising an inner screen and an outer screen. When the electronic device is folded, the inner screen is folded up; when the electronic device is unfolded, the inner screen and the outer screen face opposite directions. The electronic device is folded vertically. The outer screen includes two display modes: a first display mode and a second display mode. The first display mode is a full-screen display on the outer screen, and the second display mode is a display that divides the outer screen into multiple display areas. The method includes: In response to an operation on the target application, determine the startup state of the target application; If the target application is in a cold start state, then based on the configuration information of the target application, the first pre-display layer corresponding to the target application is determined. The configuration information includes static configuration information and / or dynamic configuration information. If the configuration information includes both static configuration information and dynamic configuration information, then the static configuration information takes precedence. The outer screen displays a first pre-display window, which includes a first pre-display layer. After the first pre-display window is displayed on the external screen, the application window is displayed on the external screen; wherein the display mode of the first pre-display window on the external screen is the same as the display mode of the application window on the external screen. If the target application is in a warm start state, then a warm start image is determined. The warm start image is a screenshot taken when the target application was last exited, and the warm start image is displayed on the second pre-display layer. The outer screen displays a second pre-display window, which includes a second pre-display layer. The display mode of the second pre-display window on the outer screen is the first display mode.

2. The method according to claim 1, characterized in that, The outer screen displays the first pre-display window in a second display mode; the first pre-display layer includes a first layer and a second layer, the first layer is used to display the background image corresponding to the target application, and the second layer is used to display the preset cold start image corresponding to the target application, the first layer and the second layer are located in different display areas of the outer screen.

3. The method according to claim 2, characterized in that, The first pre-display window also includes a decorative layer. The transparency of the decorative layer in the first pre-display window is a first transparency, which is determined based on the configuration information of the target application. The decorative layer and the first layer are in the same display area on the outer screen. The display level of the decorative layer is higher than that of the first layer. The transparency of the decorative layer before responding to the operation is a second transparency, which is greater than the first transparency.

4. The method according to claim 1, characterized in that, The second pre-display window also includes a decorative layer. The transparency of the decorative layer in the second pre-display window is a third transparency, which is determined based on the configuration information of the target application. The decorative layer is located in the preset display area of ​​the outer screen, and the display level of the decorative layer is higher than that of the second pre-display layer.

5. An electronic device comprising one or more memories and one or more processors, characterized in that, The memory is used to store a computer program; the processor is used to invoke the computer program to cause the electronic device to perform the method of any one of claims 1-4.

6. A chip system for use in electronic devices, characterized in that, The chip system includes at least one processor and an interface for receiving instructions and transmitting them to the at least one processor; the at least one processor executes the instructions to cause the electronic device to perform the method as described in any one of claims 1-4.

7. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method as described in any one of claims 1-4.

8. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Screen display method and electronic equipment

    CN110543287A

  • Double-screen simultaneous display method, electronic equipment and readable storage medium

    CN114401373A