Application starting method and electronic equipment

By identifying and matching the color patterns of the application, the color contrast between the start window and the main interface during cold startup is solved, and the consistency of the display style and user experience are improved.

CN119127343AActive Publication Date: 2024-12-13HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411628333.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2024-12-13
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

When cold-start applications, the color contrast between the start window of the electronic device and the main interface is large, resulting in poor user experience, inconsistent display style, and may cause flickering.

Method used

During cold start, the electronic device receives user operations, recognizes the application's display mode, and matches the colors of the startup window and advertising interface to ensure consistency with the application's color mode, reduces color contrast, and improves the consistency of the display style.

Benefits of technology

It effectively avoids the color contrast between the start window and the main interface, improves the display effect and user experience of cold start, and reduces the flickering feeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127343A_ABST
    Figure CN119127343A_ABST
Patent Text Reader

Abstract

The invention provides an application starting method and electronic equipment, and relates to the technical field of terminals. When the video application of the electronic equipment is in the dark color mode, in response to the starting operation on the video application, due to the fact that the process and activity of the video application do not exist at present, the electronic equipment performs cold starting on the video application. The electronic device displays a boot window with a dark background color. Afterwards, the electronic device displays the advertisement page. Thereafter, in response to the advertisement page stopping display, the electronic device may display a main interface whose background color is dark. The main interface and the starting window are both dark, so that the consistency of display styles is ensured, the display effect of cold starting is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an application startup method and an electronic device. Background Art

[0002] Most electronic devices are installed with different types of applications (APPs). The startup methods of an application (referred to as an application) generally include a cold start. When cold starting an application (such as a video application), the electronic device may display a startup window, which may include startup content provided by the video application. Afterwards, the electronic device may display an advertisement page of the video application. Finally, the electronic device displays the main interface of the video application for the user to browse videos through the main interface.

[0003] However, currently the display effect of cold start may not be good, resulting in a poor user experience. Summary of the invention

[0004] The embodiments of the present application provide an application startup method and an electronic device, which are used to avoid a large color contrast between a startup window displayed by a cold-start application and a main interface, improve the consistency of the display style, and thus improve the display effect of a cold start.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a method for starting an application is provided, the method comprising: applying to an electronic device. The electronic device receives a first operation input by a user, the first operation is used to trigger the start of a first application, and the display mode of the first application is a first color mode. In response to the first operation, when there is no process and activity of the first application, the electronic device can display a start window in a first color matching the first color mode.

[0007] In response to the startup window ceasing to be displayed, the electronic device continues to display the advertisement interface of the first application, the color of the advertisement interface matches the second color mode, and the second color mode is different from the first color mode.

[0008] Afterwards, in response to the advertisement interface ceasing to be displayed, the electronic device displays the first interface of the first application in a second color matching the first color pattern.

[0009] In the present application, during the period when the display mode of the first application is the first color mode, when the first application needs to be started, if there is no process and activity of the first application at present, the electronic device performs a cold start. Even if the color of the advertising interface of the first application on which the startup window of the first application depends matches the second color mode instead of the first color mode, the electronic device can still display the startup window in a color that matches the first color mode. Afterwards, after the startup window and the advertising interface stop displaying in turn, the electronic device displays the first interface of the first application in a second color that matches the first color mode, ensuring the consistency of the display mode, i.e., the color mode, of the first interface and the startup window, thereby avoiding a large color contrast between the first interface and the startup window, improving the consistency of the display style when the first application is cold started, and being able to reduce the sense of flickering, improve the display effect of the cold start, and provide a high user experience.

[0010] The first color and the second color may be the same color, such as black, or may be different colors, but both match the second color mode.

[0011] Optionally, the first color mode may be a dark color mode or a light color mode. The first color mode is different from the second color mode, and the second color mode may be a light color mode or a dark color mode.

[0012] In a possible design, the display mode of the first application may be determined by the interface of the first application. Before receiving the first operation, that is, before cold starting the first application, the electronic device may run the first application in the foreground and display the second interface of the first application. The electronic device may determine the display mode of the first application based on the interface state when displaying the second interface.

[0013] Based on this, after determining the display mode of the first application, the electronic device can display the startup window in a color matching the determined display mode of the first application during the next cold startup.

[0014] In a possible design, the process of determining the display mode of the first application based on the interface state when the second interface is displayed may include: the electronic device may take a screenshot of the second interface based on the interface state when the second interface is displayed to obtain a screenshot result of the second interface; wherein the screenshot result of the second interface includes the background of the second interface. Afterwards, the electronic device may determine the display mode of the first application based on the background color value of the screenshot result.

[0015] Based on this, the electronic device identifies the background color of the screenshot result of the second interface based on the interface state of the second interface, and obtains the background color value of the second interface, so that the electronic device can use the background color value to determine the display mode of the first application, thereby accurately determining the display mode of the first application.

[0016] In a possible design, the interface state includes: whether the electronic device displays a status bar when the second interface is displayed. When the interface state is that the status bar is displayed, the screenshot result of the second interface includes all layers of the second interface. When the interface state is that the status bar is not displayed, the screenshot result of the second interface includes the background layer of the second interface.

[0017] Based on this, when the interface state is to display the status bar, the second interface displayed by the electronic device includes the actual background of the second interface. Therefore, the electronic device can directly take a screenshot of the entire second interface to determine the background color value of the second interface using the screenshot.

[0018] When the interface status is that the status bar is not displayed, the actual background of the second interface may be covered by the content displayed on the second interface. Therefore, the electronic device needs to determine the background layer in the second interface that includes the actual background of the second interface, so as to use the screenshot of the background layer to determine the background color value of the second interface, thereby accurately determining the background color value of the second interface.

[0019] In a possible design, when the second interface includes a surfaceview layer, the background layer includes layers other than the surfaceview layer in the second interface. When the second interface does not include a surfaceview layer, the background layer includes layers other than the topmost layer in the second interface. Based on this, based on the specific type of the second interface, the background layer of the second interface is determined to achieve accurate determination of the background layer.

[0020] In a possible design, the display mode of the first application can be set to the first color mode or the second color mode. The above-mentioned determining the display mode of the first application based on the background color value of the screenshot result includes:

[0021] When the background color value matches the first color mode, the electronic device can determine that the display mode of the first application is the first color mode. When the background color value matches the second color mode, the electronic device can determine that the display mode of the first application is the second color mode.

[0022] Based on this, the electronic device determines whether the background color value is close to the first color mode to determine whether the display mode of the first application is the first color mode, thereby achieving accurate determination of the color mode of the first application.

[0023] In one possible design, the background color value matches the first color mode including that the difference between the background color value and the color threshold corresponding to the first color mode falls within the difference range corresponding to the first color mode, the difference between the background color value and the color threshold corresponding to the second color mode does not fall within the difference range corresponding to the second color mode, the background color value falls within the color value range corresponding to the first color mode, or the background color value does not fall within the color value range corresponding to the second color mode.

[0024] In a possible design, before determining the display mode of the first application based on the interface state when the second interface is displayed, the electronic device can determine whether the size of the installation package of the first application is greater than or equal to a preset size. If it is greater than or equal to the preset size, it indicates that the startup window displayed by the cold-start first application is added by the electronic device, and the color of the startup window can be modified by the electronic device. Therefore, the electronic device can continue to determine the display mode of the first application to calibrate the color of the startup window through the display mode of the first application.

[0025] When the size is smaller than the preset size, it indicates that the startup window displayed by the cold-start first application is the behavior of the first application itself, and the color of the startup window cannot be modified by the electronic device. Therefore, the electronic device does not need to determine the display mode of the first application.

[0026] In a possible design, the display mode of the first application may be determined when the first application was last cold started. The electronic device receives a second operation input by a user; wherein the second operation is used to trigger the start of the first application. In response to the second operation, in the absence of a process and activity of the first application, a start window is displayed, and the color of the start window is recorded.

[0027] In response to the startup window stopping displaying, the electronic device may display an advertisement interface. Afterwards, in response to the advertisement interface stopping displaying, a second interface is displayed, so that the electronic device can determine the display mode of the first application using the second interface.

[0028] Optionally, the second interface may be the main interface of the first application. The electronic device may obtain the identification of the main interface, thereby determining whether the currently displayed interface is the main interface through the identification of the main interface, and then using the main interface to timely determine the display mode of the first application.

[0029] In a possible design, the display mode, that is, the color mode, of the first application may be determined when the first application is retreated to the background. The electronic device receives a third operation, wherein the third operation is used to trigger the first application to run in the background.

[0030] In response to the third operation, the electronic device determines a display mode of the first application based on an interface state when the second interface is displayed.

[0031] Based on this, during the use of the first application, the user may modify the display mode of the first application. Therefore, the electronic device can determine the display mode of the first application when the first application retreats to the background, thereby accurately determining the latest display mode of the first application.

[0032] In a possible design, after determining that the display mode of the first application is the first color mode, the electronic device may set the background color of the startup window to the first color, or set the display mode of the startup window to the first color mode.

[0033] Correspondingly, displaying the startup window in the first color means that the background color of the startup window is the first color. Similarly, displaying the first interface in the second color means that the background color of the first interface is the second color.

[0034] Based on this, since the startup window is added by the electronic device, the electronic device can directly modify the background color or display mode of the startup window so that when the first application is cold-started, the startup window can be displayed in a color matching the first color mode, thereby ensuring the consistency of the display style of the startup window due to the first application.

[0035] In one possible design, after running the first application in the background, if the first application meets the conditions for stopping background running, the electronic device can delete the activity of the first application and the process of the first application, so that when the first application is started again, the electronic device cold starts the first application.

[0036] In a second aspect, the present application provides an electronic device, comprising a display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; the camera is used to capture images, the display screen is used to display images generated by the processor, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions; when the processor executes the computer instructions, the electronic device executes the method for starting the application as described above.

[0037] In a third aspect, the present application provides a chip, the chip comprising a communication interface and at least one processor:

[0038] The communication interface is used to input and / or output signaling or data;

[0039] The at least one processor is used to execute a computer program to implement the method for starting the application as described above.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method for starting an application as described above.

[0041] In a fifth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method for starting an application as described above.

[0042] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the chip described in the third aspect, the computer-readable storage medium described in the fourth aspect, and the computer program product described in the fifth aspect provided above can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of a startup scenario provided in an embodiment of the present application Figure 1 ;

[0044] Figure 2 A schematic diagram of a returning to desktop scene provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of a backstage scenario provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a startup scenario provided in an embodiment of the present application Figure 2 ;

[0047] Figure 5 A schematic diagram of a startup scenario provided in an embodiment of the present application Figure 3 ;

[0048] Figure 6 A schematic diagram of a startup scenario provided in an embodiment of the present application Figure 4 ;

[0049] Figure 7 A schematic diagram of a color mode setting provided in an embodiment of the present application Figure 1 ;

[0050] Figure 8 A schematic diagram of a dark mode scenario provided in an embodiment of the present application;

[0051] Fig. 9 A schematic diagram of a color mode setting provided in an embodiment of the present application Figure 2 ;

[0052] Fig.10 A schematic diagram of a non-immersive interface provided in an embodiment of the present application;

[0053] Fig.11 A schematic diagram of a startup scenario provided in an embodiment of the present application Figure 5 ;

[0054] Fig.12 A schematic diagram of a startup scenario provided in an embodiment of the present application Figure 6 ;

[0055] Fig.13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application Figure 1 ;

[0056] Fig.14 A schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;

[0057] Fig.15 A schematic diagram of a cold start method provided in an embodiment of the present application Figure 1 ;

[0058] Fig.16 A schematic diagram of a cold start method provided in an embodiment of the present application Figure 2 ;

[0059] Fig.17 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application Figure 2 ;

[0060] Fig.18 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In the embodiments of the present application, "first", "second", "1", "2" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "multiple" means two or more.

[0062] In order to facilitate the understanding of the technical solution of the present application, the terms involved in the present application are first introduced below.

[0063] The application startup methods include cold start and hot start.

[0064] Cold start refers to the process of starting an application from scratch. Before the application is started, the electronic device does not have the process of the application. During the application startup, the electronic device creates the process of the application and also creates the activity of the application. For example, when the application is started for the first time after the electronic device is turned on, or when the application process is cleaned up and then started again, it can be called a cold start.

[0065] Hot start refers to the startup method in which both the process and activity of the application exist. After the application is switched from the foreground to the background, the electronic device restarts the application. When restarting the application, since the process and activity of the application exist, the electronic device does not need to create the process and activity of the application. For example, when the application is in the background, in response to the user clicking the card of the application displayed in the background, the electronic device restarts the application, which can be called a hot start.

[0066] It should be noted that the activities of an application are used to implement the interface (or interface, window) of the application. The activities of an application can belong to the process of the application and can run in the process of the application.

[0067] The following uses the video application as an example to introduce the above two startup methods. Figure 1 As shown, after booting up, the mobile phone displays a desktop 10. The desktop 10 includes an icon 11 of a video application. In response to a user clicking on the icon 11 of the video application, the mobile phone starts the video application, creates a process and activity of the video application, and displays a startup window 12, which includes startup content 13, such as a logo of the video application. Afterwards, the mobile phone can display an advertisement page (i.e., an advertisement interface) 14 of the video application. In response to a user clicking on a skip control 15 on the advertisement page 14, the mobile phone can skip the advertisement page 14 and display an interface 16 of the video application, which can be the main interface of the video application. This startup method is a cold start.

[0068] Afterwards, if Figure 2 As shown in FIG. 1 , during the period when the mobile phone displays the interface 16 of the video application, the user slides upward from the bottom of the mobile phone display screen. In response to the user's upward sliding operation, the mobile phone no longer displays the interface 16 of the video application, but displays the mobile phone desktop 17, and the video application switches from the foreground application to the background application. Figure 3 As shown in FIG. 1 , in response to the user inputting an upward sliding operation on the desktop 17, the mobile phone displays the card of the APP running in the background. The card of the APP includes the card 18 of the video application. Figure 4 As shown, in response to the user clicking on the card 18 of the video application, the mobile phone starts the video application, displays the interface 19 of the video application, switches the video application from a background application to a foreground application, and does not need to recreate the process and activity of the video application. This startup mode is a hot start.

[0069] It should be noted that the startup window 12 of the above-mentioned video application belongs to the system window, that is, a window added by the mobile phone, rather than to the video application, but the specific display content of the startup window (i.e., the startup content) is provided by the video application. The mobile phone adapts according to the startup content provided by the video application, and displays the adapted startup content in the startup window. By adapting and displaying the startup content provided by the application, the display consistency of the applications on the mobile phone can be ensured. Exemplarily, by adapting the startup content of different applications, the startup content of different applications can be uniformly displayed in the middle area of ​​the startup window. For example, Figure 5As shown, in response to the user clicking the icon 20 of the short video application, since there is no process or activity of the short video application at present, the mobile phone cold starts the short video application and displays the startup window 21 of the short video application, which includes the startup content 22 of the short video application. Afterwards, after the cold start is completed, the mobile phone displays the interface of the short video application. Comparing the startup window 21 of the short video application with the startup window 12 of the above-mentioned video application, it can be found that the display position of the startup content of the two is basically the same, and they are consistent.

[0070] Of course, the startup content of some applications on the phone is not adapted. The startup window displayed when the phone starts the application still belongs to the application. Figure 6 As shown, in response to the user clicking the icon 23 of the shopping application, since there is no process and activity of the shopping application on the mobile phone, the mobile phone cold starts the shopping application and displays the startup window 24, which includes the startup content 25. After the cold start is completed, the mobile phone displays the interface of the shopping application. Compared with the position of the startup content 13 in the startup window 12 of the above-mentioned video application, or the startup content 22 in the startup window 21 of the above-mentioned short video application, the startup content 25 in the startup window 24 of the shopping application is located in the bottom area of ​​the startup window 24, not in the middle area.

[0071] Color mode, also known as display mode, refers to the background color (i.e., base color) of the interface displayed by an electronic device. Color modes include dark mode and light mode. Dark mode means that the background color of the interface displayed by an electronic device is black, such as black, gray, or other dark colors. Light mode means that the background color of the interface displayed by an electronic device is light, such as white, or other light colors.

[0072] Some electronic devices provide a color mode (or system color mode) setting function, such as Figure 7 When the system color mode is dark mode, the background color of the system interface of the electronic device (including the interface of the system application) is dark, such as Figure 8 The color of the desktop 30 shown is dark. When the system color mode is light color mode, the background color of the system interface of the electronic device is light color, as described above. Figure 1 The color of the desktop in 10 is light.

[0073] In addition, third-party applications of electronic devices may also provide a color mode setting function. The color mode set by the third-party application may be consistent with the system color mode, or it may not be consistent. For example, the color mode of the third-party application may follow the system color mode, or it may not follow the system color mode. Fig. 9As shown, the video application provides a follow system setting control 31. When the follow system setting control 31 is in a selected state, the color mode of the video application is consistent with the system color mode. If the system color mode is a dark mode, then the color mode of the video application is also a dark mode. Specifically, Figure 8 The color of the desktop 30 shown is dark. Fig.10 The background color of the interface of the video application shown is also dark. Fig. 9 A manual setting control 32 is also included. When the manual setting control 32 is selected, the user can choose to set the video application to a light mode or a dark mode. Fig. 9 The manual setting control 32 is shown in an unselected state, and the follow system setting control 31 is in a selected state.

[0074] The above introduces the terms involved in this application, and the following will continue to introduce the technical solutions provided by this application.

[0075] It can be seen from the above that when a third-party application is cold-started, the electronic device displays the startup window of the third-party application. Afterwards, the electronic device displays the advertising page of the third-party application. Afterwards, the electronic device displays the interface of the third-party application. Even if the startup window is added by the electronic device and belongs to the system interface, and does not belong to the third-party application, the startup content displayed in the startup window is provided by the third-party application, and the background color of the startup content depends on the advertising page. Generally speaking, the activity corresponding to the advertising page does not add dark resources. In other words, the color of the advertising page is generally light, so the background color of the startup content, that is, the background color of the startup window is also light, such as the background color of the startup window is white. When the color mode of the third-party application is a dark mode, the color of the startup window displayed by the electronic device is greatly contrasted with the background color of the interface of the third-party application displayed after the cold start is completed, and the display style is inconsistent. In addition, it may also cause the user to have a sense of flickering, and may cause the user to mistakenly believe that the mobile phone has a display abnormality.

[0076] For example, if the electronic device is a mobile phone, the system color mode of the mobile phone is dark mode, and the color mode of the video application is also dark mode. Fig.11As shown, the background color of the mobile phone display is a dark desktop 40. In response to the click operation on the icon 41 of the video application in the desktop 40, since the mobile phone does not have the process of the video application and the activity of the video application, the mobile phone performs a cold start on the video application. The mobile phone displays a startup window 42 with a light background color. After that, the mobile phone displays an advertisement page 43. After that, in response to the user's click operation on the skip control 44 on the advertisement page 43, the mobile phone skips the advertisement page 43 and displays the main interface 45 of the video application, the background color of which is dark. Since the color contrast between the startup window 42 of the video application and the main interface 45 is large, the display style is inconsistent, and the user may feel flickering. In addition, users usually think that the startup window 42 is provided by the video application, and the color of the startup window 42 should be consistent with the interface of the video application, such as the main interface 45, but in fact the contrast between the two is large, so the user may mistakenly think that the startup window display is abnormal. And since the system color mode is also a dark mode, when the video application is cold started, the user experiences a dark-light-dark switch, and the user experience is poor.

[0077] Therefore, in response to the above problems, the present application provides a cold start method for a third-party application to solve the flickering problem that occurs when an electronic device cold starts a third-party application when the color mode of the third-party application does not match the color of the third-party application's advertising page. Considering system limitations, the electronic device cannot directly know the setting of the color mode of the third-party application, that is, it cannot know whether the color mode of the third-party application is a dark mode or a light mode. Therefore, in order for the electronic device to determine the color mode setting of the third-party application, when displaying the interface of the third-party application, the electronic device can take a screenshot of the interface of the third-party application. Afterwards, the electronic device analyzes the screenshot to determine the background color of the third-party application, thereby determining the color mode of the third-party application (i.e., the color mode in which the third-party application is located) based on the background color of the third-party application, and accurately determining the color mode of the third-party application. Since the electronic device can directly start the background color of the window, the electronic device can determine whether the color mode of the third-party application matches the background color of the startup window.

[0078] In the case of mismatch, the mobile phone sets the color mode of the startup window to the color mode of the third-party application, that is, sets the background color of the startup window to a color that matches the color mode of the third-party application. During subsequent cold start, the electronic device displays a startup window with a color mode consistent with the color mode of the third-party application, so that the color difference between the startup window and the interface of the third-party application displayed after the startup is completed is small, avoiding a large color difference between the startup window and the interface of the third-party application, improving the consistency of the display style of the interface of the same application, and avoiding a sense of flickering, improving the display effect of cold start. It can also prevent users from thinking that the startup window display is abnormal, ensuring the user experience.

[0079] In addition, when the system color mode of the mobile phone is consistent with the color mode of the third-party application, when the electronic device is cold-started to start the third-party application through an interface whose color mode is the system color mode, such as the desktop, when jumping from the interface to the startup window of the third-party application, the flickering feeling caused by the excessive color contrast between the interface and the startup window can be avoided.

[0080] For example, the system color mode of the mobile phone is dark mode, the color mode of the video application is also dark mode, but the color of the video application's advertisement page is light color. Fig.12 As shown, the mobile phone displays a desktop 50 with a dark background color. In response to a click operation on the icon 51 of the video application in the desktop 50, the mobile phone performs a cold start on the video application. The mobile phone displays a startup window 52 with a dark background color. Afterwards, the mobile phone displays an advertisement page 53. Afterwards, in response to a user's click operation on the skip control 54 on the advertisement page 53, the mobile phone skips the advertisement page 53 and displays the main interface 55 of the video application. The background color of the main interface 55 is dark, so that the background color of the startup window displayed when the video application is cold started is slightly different from the background color of the interface of the video application, thereby avoiding the large color contrast between the startup window and the video application, improving the consistency of the display style, and avoiding the flickering feeling. It can also avoid the large color contrast between the desktop displayed before the cold start and the startup window displayed during the cold start, thereby avoiding the switching of "dark-light-dark", improving the cold start display effect, and ensuring the user experience.

[0081] It is understandable that after the color mode of the startup window is consistent with the color mode of the third-party application, although the color of the advertising page of the third-party application does not match the color mode of the third-party application, on the one hand, compared with the startup window and the interface of the third-party application, the user stays on the advertising page for a shorter time, and the user may not pay attention to the color of the advertising page. Therefore, the user's sense of flicker is smaller. On the other hand, since the advertising content of the advertising page is generally displayed in full screen, the user usually believes that the display of the advertising content is set, that is, the color of the advertising page is set, so the user will not have an abnormal feeling, and the display style of the advertising page will not be inconsistent with the display style of the third-party application. On the other hand, the background of the advertising page is covered by the displayed content, and even if the background color of the advertising page is modified, it will not affect the display of the advertising page. Therefore, there is no need for the mobile phone to modify the background color of the advertising page. In general, although only the color of the startup window of the third-party application is modified, and the color of the advertising page of the third-party application is not modified, when the third-party application is cold-started, the consistency of the display style can still be improved, and the user's sense of flicker will be smaller, thereby improving the display effect of the third-party application when it is cold-started.

[0082] It should be noted that some third-party applications do not have advertising page resources. In this case, the background color of the startup window of the third-party application displayed during cold start generally depends on the first interface displayed after the third-party application completes the cold start, such as the main interface of the above-mentioned video application. In this case, the display style of the startup window is consistent with the display style of the third-party application, and there is no need to modify the background color of the startup window.

[0083] In addition, when an electronic device or a third-party application is in a certain color mode, although the color mode of the interface of the electronic device and the third-party application is the same color mode, the specific background color can be the same or different, and can be displayed adaptively, as long as the background color matches the color mode. For example, the system color mode is dark mode, and the background color of the desktop is gray. The color mode of the video application is dark mode, and the background color of the main interface of the video application is black. For another example, the video application is in dark mode, the background color of the startup window of the video application is gray that matches the dark mode, and the background color of the main interface of the video application is black that matches the dark mode.

[0084] Exemplarily, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a wearable device, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, and other devices that can install an APP. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.

[0085] For example, Fig.13 FIG. 2 shows a schematic diagram of the structure of the electronic device 200. Fig.13 As shown, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 211, a power management module 212, a battery 213, an antenna 1, an antenna 2, a mobile communication module 240, a wireless communication module 250, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.

[0086] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0087] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0088] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0089] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0090] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 240, the wireless communication module 250, the modem processor and the baseband processor.

[0091] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0092] The mobile communication module 240 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 240 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 240 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 240 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 240 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 240 can be set in the same device as at least some of the modules of the processor 210.

[0093] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 240 or other functional modules.

[0094] The wireless communication module 250 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi (wireless fidelity)), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 200. The wireless communication module 250 can be one or more devices integrating at least one communication processing module. The wireless communication module 250 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 210. The wireless communication module 250 can also receive the signal to be sent from the processor 210, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0095] The electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor.

[0096] The display screen (or screen) 294 is used to display images, videos, etc. In some embodiments, the electronic device 200 may include 1 or N display screens 294 , where N is a positive integer greater than 1.

[0097] The electronic device 200 can realize the shooting function through ISP, camera 293, video codec, GPU, display screen 294 and application processor.

[0098] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.

[0099] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0100] The electronic device 200 can implement audio functions such as music playing and recording through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0101] The buttons 290 include a power button, a volume button, etc. The indicator 292 may be an indicator light.

[0102] The sensor module 280 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0103] The software system of the electronic device 200 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 200.

[0104] Fig.14 It is a software structure block diagram of the electronic device 200 according to an embodiment of the present invention.

[0105] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0106] The application layer can include a series of application packages.

[0107] like Fig.14As shown, the application package may include applications such as gallery, video, short video, shopping, desktop launcher, music, short message, etc.

[0108] The desktop launcher is used to launch applications on the electronic device 200, such as video applications, based on user operations.

[0109] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0110] like Fig.14 As shown, the application framework layer may include a window manager service (WMS), a surface flinger, a package manager service (PMS), a content provider, a view system, a resource manager, a notification manager, and the like.

[0111] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, etc. Among them, the window manager can determine the type of the currently displayed interface based on whether there is a status bar, that is, the interface state when the interface is displayed. The interface type includes non-immersive interface and immersive interface.

[0112] Optionally, the immersive interface may include a surface view (surfaceview) type immersive interface and a non-surfaceview type immersive interface. The window manager may determine the specific type of the immersive interface according to whether the immersive interface has a surfaceview component.

[0113] Furthermore, the window manager may also obtain the background color of the startup window displayed when the electronic device 200 cold-starts the application. In addition, the window manager may also obtain the current system color mode.

[0114] The package management service is used to manage application packages, such as the information of the application's main interface.

[0115] Surfaceflinger is used to determine the background layer in the immersive interface so as to take a screenshot of the background layer in the immersive interface.

[0116] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0117] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. The display interface can be composed of one or more views.

[0118] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.

[0119] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0120] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0121] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0122] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0123] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0124] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0125] It is understandable that the above Fig.14 The structure shown is only an example, and the electronic device can divide the software layer according to the needs. For example, the electronic device can include not only the above software layer, but also other software layers. Alternatively, the electronic device can include one or more of the above software layers. Similarly, the content included in each software layer is also only an example, and this application does not limit it.

[0126] The present application provides a cold start method. When cold starting an application, the electronic device displays the startup window of the application and records the background color of the startup window. Afterwards, the electronic device displays the advertising page of the application. Afterwards, the electronic device displays the main interface of the application, and the electronic device can determine the type of the main interface displayed by the electronic device, so as to determine the background color value of the main interface using the type of the main interface. The type includes non-immersive interfaces and immersive interfaces. A non-immersive interface means that when the electronic device displays the interface, a status bar is displayed, and the background currently displayed by the interface is the actual background of the interface, so that the electronic device can directly determine the background color value of the interface based on the background of the interface. An immersive interface means that the electronic device displays the interface in full screen without displaying the status bar. The background currently displayed by the interface may not be the actual background of the interface, and the actual background of the interface has been covered by the displayed content. Therefore, the electronic device needs to determine the background color value of the interface based on the background layer of the interface, and the background layer includes the actual background of the interface.

[0127] Afterwards, the electronic device determines the color mode of the application based on the background color value of the main interface. When the color mode of the application does not match the background color of the startup window, the electronic device modifies the background color of the startup window of the application to a color that matches the color mode of the application. Afterwards, when the application is cold started, the startup window is displayed in a color that matches the color mode of the application. After the cold start is completed, the electronic device continues to display the main interface of the color mode to ensure the consistency of the color of the startup window and the main interface of the application, thereby ensuring the consistency of the display style, avoiding flickering problems due to excessive color contrast between the two, and avoiding users from thinking that the mobile phone is abnormal, thereby improving the display effect of the cold start.

[0128] The following will take the above electronic device as a mobile phone, the application as a video application, and the application's advertising page corresponding to a light-colored resource as an example to introduce the implementation process of the cold start method provided by this application. Fig.15 As shown, the cold start method may include the following steps:

[0129] S301: Receive a user's start operation on a video application.

[0130] Exemplarily, the start operation (or second operation) is a trigger operation of the user on the icon of the video application, as described above. Figure 1 The shown operation is a click operation on the video application icon 11. Of course, the start operation may also be other types of operations, such as inputting related voice commands, and this application does not limit the start operation.

[0131] S302: In response to the start-up operation, in the absence of any process or activity of the video application, the mobile phone starts to cold-start the video application.

[0132] S303: The mobile phone displays a startup window of the video application, and records that the background color of the startup window is light.

[0133] In an embodiment of the present application, after receiving a start operation, the mobile phone needs to start a video application. Since there is currently no process and background of the video application, the mobile phone needs to create a process and activity of the video application, that is, a cold start is required. During the cold start, the mobile phone can display the start window of the video application, create the process of the video application and the activity of the video application, so as to draw the advertising page (or advertising interface) and the main interface (or first interface) of the video application, so that after the cold start is completed, the advertising page of the video application is displayed, and in response to the cessation of the display of the advertising page, the main interface of the video application is displayed. In other words, the cold start process may include the display of the start window of the video application, the creation of the process and activity of the video application (or the replacement description is the drawing of the advertising page and the main interface), but does not include the display of the advertising page and the main interface.

[0134] It should be noted that the display of the startup window depends on the interface of the video application displayed after the startup window, such as the above-mentioned advertising page, and the startup window is a system window. Therefore, when the mobile phone displays the startup window, it needs to read the resource information corresponding to the activity of the advertising page. In the case where the resource information indicates a dark resource, the mobile phone displays the startup window in a dark color and records that the background color of the startup window is a dark color (or replaces the description to determine that the color mode of the startup window is a dark mode). In the case where the resource information indicates a light resource, the mobile phone displays the startup window in a light color and records that the background color of the startup window is a light color.

[0135] S304: The mobile phone stops displaying the startup window and displays an advertisement page of the video application.

[0136] The color of the advertisement page matches the light color mode, and there is no corresponding dark color resource. Regardless of whether the color mode of the video application is the dark mode or the light mode, the display style of the advertisement page will not change and will remain light.

[0137] In the embodiment of the present application, when the main interface of the video application is switched, the mobile phone can start the judgment mechanism of the background color of the main interface to determine the color mode of the video application. The judgment mechanism will be further introduced below.

[0138] S305: In response to stopping display of the advertisement page of the video application, the mobile phone displays the main interface of the video application.

[0139] In the embodiment of the present application, when the preset advertisement stop display condition is met, the mobile phone stops displaying the advertisement page and then displays the main interface of the video application.

[0140] S306: The mobile phone determines whether the main interface is a non-immersive interface.

[0141] As can be seen from the above content, when the main interface is a non-immersive interface, it means that when the mobile phone displays the main interface, the mobile phone also displays a status bar, and the content of the main interface is not displayed in full screen. Therefore, the background displayed by the main interface is the actual background of the main interface, and is not completely covered by the content of the main interface. In this way, the mobile phone can directly determine the background color of the main interface according to the color of the main interface, and the mobile phone can execute S307.

[0142] When the main interface is an immersive interface, it indicates that the status bar is hidden, the content of the main interface is displayed in full screen, and the content displayed on the main interface has covered the actual background of the main interface, that is, the background color displayed on the main interface may not be the actual background color of the main interface. Therefore, the mobile phone cannot directly determine the background color of the main interface according to the display of the main interface, and the mobile phone can execute S309 or S310.

[0143] S307. The mobile phone takes a screenshot of the main interface.

[0144] For example, the main interface is as above Fig.10 In the interface of the video application shown, the mobile phone displays a status bar 34 while displaying the interface. The mobile phone can determine that the main interface is a non-immersive interface, and the background in the main interface is not completely covered by the displayed content in the main interface. Therefore, the mobile phone can take a screenshot of the entire main interface to determine the background color value of the main interface through the background in the screenshot, and the background color value of the main interface represents the determination of the background color value of the video application.

[0145] S308. The mobile phone determines the background color value of the screenshot and obtains the background color value of the main interface.

[0146] For example, the mobile phone can select multiple feature points (or pixel points) from the screenshot, and determine the background color value of the screenshot based on the color values ​​(or pixel values) of the multiple feature points. Generally speaking, the background area of ​​the interface (such as the above screenshot) is the top and bottom of the interface, so the mobile phone can select multiple feature points from the top or bottom. For example, the main interface is Fig.10 In the interface of the video application shown, the mobile phone can randomly select multiple pixel points from the vicinity of the status bar 34. Alternatively, when the interface is in a certain color mode, the overall color of the interface is the color corresponding to the color mode. Therefore, the mobile phone can also randomly select multiple feature points from the main interface (such as a screenshot of the main interface) to determine the background color value of the main interface.

[0147] Optionally, the process of determining the background color value of the screenshot based on the color values ​​of multiple feature points may include: based on the color value of each feature point in the multiple feature points, the mobile phone determines the number of feature points corresponding to each color value. Afterwards, the mobile phone may use the color value of the feature point with the largest number as the background color value of the screenshot. Alternatively, the mobile phone calculates the average of the color values ​​of the multiple feature points to obtain the background color value of the screenshot. Of course, the background color value of the screenshot may also be determined by other methods, which are not limited by the present application.

[0148] Among them, the number of selected feature points can be set according to needs, and this application does not limit it.

[0149] The above describes the process of determining the background color value directly through the entire screenshot of the main interface when the main interface is a non-immersive interface. Of course, there is also the possibility that the main interface is an immersive interface. When the main interface is an immersive interface, it indicates that the main interface is displayed in full screen, and the content currently displayed on the main interface may have covered the actual background of the main interface. Therefore, the mobile phone needs to determine the background layer of the main interface, which includes the actual background of the main interface. Afterwards, the mobile phone can identify the color of the background layer, such as taking a screenshot of the background layer, determining the background color value of the screenshot, and thus obtaining the background color value of the main interface. The background layer of the main interface can be a layer below the topmost layer, and the topmost layer refers to the layer where the displayed content is located.

[0150] Optionally, in order to improve the accuracy of determining the background layer, the background layer of the immersive interface can be determined based on the specific type of the immersive interface, so as to use the background layer to determine the background color value of the immersive interface. The following will continue to introduce the process of determining the background color value of the main interface when the main interface is an immersive interface.

[0151] S309: When the main interface is an immersive interface of the surface view type, the mobile phone uses the layers in the main interface except the surface view layer as the background layer of the main interface.

[0152] S310: When the main interface is an immersive interface of a non-surface view type, the mobile phone uses the layers in the main interface except the top layer as the background layers of the main interface.

[0153] In the embodiment of the present application, an interface may be composed of one or more layers, but generally speaking, the interface is composed of multiple superimposed layers. That is to say, the immersive interface is composed of multiple superimposed layers. The types of immersive interfaces may include surface view (SurfaceView) type and non-SurfaceView type. Since SurfaceView is generally used for video playback, the main interface is an immersive interface of the SurfaceView type, indicating that the mobile phone plays the video in full screen on the main interface, and the SurfaceView layer where the video is located covers the actual background of the main interface. Therefore, the mobile phone can use the layers other than the SurfaceView layer in the main interface as the background layer of the main interface. In other words, the specific display content of the background layer refers to the content displayed on the main interface after removing the SurfaceView layer.

[0154] In the case where the above main interface is an immersive interface of non-SurfaceView type, it means that the mobile phone displays content in full screen, such as full screen display of pictures, and the displayed content has covered the actual background of the main interface. The displayed content is generally located on one layer. Therefore, the mobile phone can use the layers other than the top layer in the main interface as the background layer of the main interface. In other words, the specific display content of the background layer refers to the content displayed on the main interface after removing the top layer.

[0155] S311. The mobile phone takes a screenshot of the background layer, and determines the color value of the screenshot to obtain the background color value of the main interface.

[0156] In the embodiment of the present application, the mobile phone takes a screenshot of the background layer, which is equivalent to taking a screenshot of the specific display of the background layer to obtain a screenshot of the background layer. Afterwards, the mobile phone can select one or more feature points from the background layer to use the color values ​​of the selected feature points to determine the color value of the screenshot of the background layer, and use the color value of the screenshot as the background color value of the main interface.

[0157] Among them, the process of determining the color value of the screenshot of the background layer using the color value of the selected feature point can refer to the implementation process of determining the background color value of the screenshot of the main interface based on the color values ​​of multiple feature points introduced above, which will not be repeated here.

[0158] It should be noted that, when the main interface is an immersive interface of the SurfaceView type, the main interface without the SurfaceView layer may still display other content, but it is generally not displayed in full screen. In other words, the background layer may display other content, but the other content will not completely cover the actual background of the main interface. In other words, the background layer can display the actual background of the main interface, so that the actual background color of the main interface can be determined based on the background layer.

[0159] Similarly, when the main interface is an immersive interface other than the SurfaceView type, the main interface without the top layer may still display other content, but it is generally not displayed in full screen. In other words, the background layer may display other content, but the other content will not completely cover the actual background of the main interface. In other words, the background layer can display the actual background of the main interface, so that the actual background color of the main interface can be determined based on the background layer.

[0160] The above describes the implementation process of determining the background color value of the main interface. After determining the background color value of the main interface, the mobile phone can determine the color mode of the main interface based on the background color value of the main interface to obtain the color mode of the video application. The following will continue to describe the process of determining the color mode of the video application based on the background color value of the main interface.

[0161] S312. The mobile phone calculates a difference 1 between the background color value of the main interface and the color threshold corresponding to the dark mode.

[0162] S313. The mobile phone determines whether the difference 1 belongs to the difference range 1 corresponding to the dark mode.

[0163] When the difference 1 belongs to the difference range 1 corresponding to the dark mode, it indicates that the background color value of the main interface is close to the dark value, that is, the background color of the main interface is dark, that is, the color mode of the main interface is dark mode, then the mobile phone can execute S314.

[0164] When the difference value 1 does not belong to the difference value range 1 corresponding to the dark mode, it indicates that the background color value of the main interface is not close to the dark value, that is, the background color of the main interface is not dark. In other words, the background color of the main interface is light, that is, the color mode of the main interface is light mode, and the mobile phone can execute S316.

[0165] It should be noted that the mobile phone can not only calculate the difference 1 between the background color value of the main interface and the color threshold corresponding to the dark mode, but also calculate the difference 2 between the background color value and the color threshold corresponding to the light mode to determine whether the background color value is close to the light value by using the difference 2, thereby determining whether the color mode of the main interface is the light mode or the dark mode. In other words, the mobile phone can calculate the difference between the background color value of the main interface and the color threshold corresponding to the preset color mode, thereby determining whether the background color value is close to the color value corresponding to the preset color mode by using the difference.

[0166] In addition, the mobile phone can also directly determine whether the background color value of the main interface belongs to the color value range corresponding to the preset color mode. If it does, the mobile phone can determine that the color mode of the main interface is the preset color mode. If it does not, the mobile phone can determine that the color mode of the main interface is not the preset color mode. In general, when the background color value matches the preset color mode, the mobile phone determines that the display mode of the video application is the preset color mode. When the background color does not match the preset color mode, the mobile phone determines that the display mode of the video application is not the preset color mode. Among them, the above-mentioned preset color mode can be a dark mode or a light mode.

[0167] The preset color mode may be a dark color mode or a light color mode.

[0168] Among them, the main interface described in S305-S313 above can be used as an example of the second interface.

[0169] S314. The mobile phone determines that the color mode of the video application is a dark mode.

[0170] S315. The mobile phone changes the color mode of the startup window of the video application to a dark mode.

[0171] In the embodiment of the present application, since the color mode of the video application is a dark mode, and the background color of the startup window is a light color, that is, the color mode of the startup window is also a light mode. In order to avoid the problem of inconsistent display styles caused by the inconsistency between the color mode of the startup window and the color mode of the video application, the mobile phone can also set the color mode of the startup window to a dark mode, so that the color mode of the startup window is consistent with the color mode of the video application.

[0172] Exemplarily, the attribute information of the startup window may include attribute information of the color mode, and the mobile phone may modify the attribute information of the color mode in the relevant code corresponding to the startup window, thereby modifying the attribute information to dark mode information. Alternatively, the attribute information of the startup window may include attribute information of the background color, and the mobile phone may modify the background color to a color matching the dark mode, that is, a dark color, such as black.

[0173] S316. The mobile phone determines that the color mode of the video application is the light color mode.

[0174] S317. The mobile phone does not modify the color mode of the startup window of the video application.

[0175] In the embodiment of the present application, since the color mode of the video application is consistent with the color mode of the startup window, the display style of the video application during cold startup is consistent. Therefore, the mobile phone does not need to modify the color mode of the startup window, that is, does not need to modify the background color of the startup window.

[0176] In some embodiments, some applications do not need to display an advertisement page during cold start, but directly display the main interface. In this case, the startup window depends on the main interface, and the background color of the startup window can match the color mode of the main interface, and the display style is consistent. Therefore, the mobile phone does not need to determine the color mode of the video application, nor does it need to modify the startup window. In order to avoid unnecessary judgment of the color mode of the video application, when the mobile phone cold starts the application, if an advertisement page is displayed, the mobile phone can determine that the color mode of the application needs to be judged. If the advertisement page is not displayed and the main interface of the application is displayed directly, the mobile phone can determine that the color mode of the application does not need to be judged.

[0177] Among them, since both the advertisement page and the main interface belong to the application, the mobile phone cannot actually perceive whether the advertisement page is the main interface, so the mobile phone can obtain the identifier of the main interface. In the case of jumping from the startup window to an interface, if the identifier of the interface is the identifier of the main interface, then the mobile phone can determine that the interface is the main interface, and then the mobile phone can determine that the application does not display the advertisement page. If the identifier of the interface is not the identifier of the main interface, then the mobile phone can determine that the interface is an advertisement page, and then the mobile phone can determine that the application displays the advertisement page.

[0178] In some embodiments, the startup window displayed by some applications during cold start belongs to the application, and the mobile phone cannot modify the background color of the startup window, so the mobile phone does not need to determine the color mode of the application. Generally speaking, when the size of the application installation package (Android package, APK) is greater than or equal to the preset size, the mobile phone can determine that the startup window of the application does not belong to the application, and the mobile phone can determine the color mode of the application. When the size of the application installation package is less than the preset size, the mobile phone can determine that the startup window of the application belongs to the application, and the mobile phone does not need to determine the color mode of the application.

[0179] Accordingly, when cold starting a video application, the mobile phone can record the background color of the startup window and determine the color mode of the video application when determining that the size of the installation package of the video application is greater than or equal to the preset size.

[0180] S318. In response to the user's swipe-up operation, the mobile phone switches the video application to the background.

[0181] In an embodiment of the present application, during the period when a video application is running in the foreground, when the user wants the mobile phone to stop running the video application in the foreground, the user can input a swipe-up operation, and the mobile phone stops running the video application in the foreground and retreats the video application to the background. It should be understood that the swipe-up operation is only an example of a home operation, and the home operation can also be other operations. For example, it is an operation of the home button displayed on the mobile phone. In addition, it should be understood that the home operation is also an example operation of triggering the switching of the video application to the background. In general, the present application does not limit the operation (or the third operation) that triggers the mobile phone to switch the video application to the background.

[0182] In some embodiments, generally speaking, a user may modify the color mode of a video application during use. Therefore, when the video application is retreated to the background, the mobile phone can determine how to determine a screenshot including the actual background of the interface based on the type of interface displayed by the video application, so as to use the screenshot to determine the latest color mode of the video application, thereby accurately determining the color mode of the video application, so that when the video application is cold-started next time, a startup window with a color matching the latest color mode can be displayed to ensure the consistency of the display style. In addition, when the video application is retreated to the background, it indicates that there is a possibility of subsequent cold-starting of the video application. Therefore, the mobile phone determines the color mode of the video application, which can avoid unnecessary determination of the color mode of the video application to a certain extent.

[0183] S319: When the video application meets the background clearing condition, the mobile phone deletes the activity of the video application and deletes the process of the video application.

[0184] The background clearing condition (or the condition for stopping background operation) indicates the condition for triggering the mobile phone to clear the video application running in the background. The background clearing condition may include one or more of receiving an operation of clearing the video application card input by the user, the duration of the video application running in the background exceeding a preset duration, or the mobile phone being turned off.

[0185] Exemplarily, the operation of clearing the card of the video application may include sliding up the card of the video application displayed in the background, or clicking a delete control displayed in the background of the mobile phone.

[0186] S320: In response to the start-up operation of the video application, the mobile phone displays a start-up window with a dark background color.

[0187] S321. The mobile phone stops displaying the startup window and displays an advertisement page of the video application.

[0188] S322: In response to stopping display of the advertisement page of the video application, the mobile phone displays a main interface with a dark background color.

[0189] Exemplarily, in response to the start operation of the video application (or referred to as the first operation), since the mobile phone does not have a process and activity of the video application, the mobile phone starts to cold start the video application. During the cold start, the mobile phone displays a start window, creates a process of the video application, and creates an activity of the video application (or replaces the description by drawing an advertisement page of the video application, drawing the main interface of the video application). Afterwards, after the cold start is completed, the mobile phone can display the advertisement page. Afterwards, the mobile phone displays the main interface of the video application.

[0190] Optionally, during this cold start, the mobile phone may also record the background color of the startup window and determine the color mode of the video application. For example, the mobile phone may determine the color mode of the video application through the main interface displayed during this cold start, or determine the color mode of the video application when retreating to the background, so that after the color mode of the video application changes, the background color of the startup window can be modified in time to maintain the consistency of the display style.

[0191] The implementation process of S320-S322 may refer to the above description of cold starting the video application. The main interface described in S322 may also be referred to as the first interface.

[0192] It should be noted that the numbering of the above steps does not represent the actual execution order of the steps. For example, the modification of the color mode of the startup window introduced in S315 can be performed by the mobile phone after determining that the color mode of the video application is inconsistent with the background color of the startup window, or it can be performed when the video application is cold-started as introduced in S320. This application does not limit the execution order of the above steps.

[0193] In some embodiments, when the color mode of the video application is consistent with the system color mode of the electronic device, by matching the background color of the startup window with the color mode of the video application, when the video application is cold-started on the mobile phone triggered from the desktop, the consistency of the display style is ensured and the display effect is improved.

[0194] In some embodiments, when a video application is cold started, the mobile phone can determine the main interface of the video application through the package management service, so that the window manager can determine the color mode of the video application based on the color mode of the main interface. When the color mode of the video application is inconsistent with the color mode of the startup window, the window manager can calibrate the background color of the startup window with the color mode of the video application, so that the startup window displayed when the video application is cold started is consistent with the background color of the interface of the video application, maintaining the consistency of the display format, avoiding flickering, and improving the display effect. Fig.14 The software structure shown in the figure introduces the implementation process of cold start, that is, Fig.15 A possible implementation process of the corresponding embodiment. Fig.16 As shown, the process is as follows:

[0195] S1. In response to a click operation on an icon of a video application, if there is no process or activity of the video application, a desktop launcher cold-starts the video application through a window manager.

[0196] Exemplarily, when a video application needs to be started, if there is no process and activity of the video application currently, the desktop launcher needs to cold-start the video application and create the process and activity of the video application. The desktop launcher can cold-start the video application using a window manager.

[0197] S2. The window manager displays a startup window of the video application and records that the background color of the startup window is light.

[0198] Among them, the background color of the startup window can be determined by the resources of the advertising page on which the startup window depends, that is, the display style (or theme) of the advertising page, or it can be determined by the color mode determination process of the main interface described below. This application does not impose any restrictions on it.

[0199] S3. In response to the startup window stopping display, the window manager displays an advertisement page of the video application.

[0200] The implementation process of S1-S3 may refer to the relevant contents of S301-S304 above.

[0201] S4. The window manager obtains the identifier of the main interface of the video application from the package management service.

[0202] Exemplarily, the identifier of the main interface may be the name of the main interface. Specifically, the name of the main interface may be the package name of the main interface. Optionally, the main interface may obtain the package name of the main interface by calling the getLauncherActivityName interface. Since the window manager cannot directly know whether the advertisement page is the main interface of the video application, the electronic device may determine whether the displayed interface is the main interface through the identifier of the main interface, thereby ensuring the accuracy of the color mode determination of the video application.

[0203] S5. In response to the advertisement page stopping displaying, the window manager displays the interface of the video application.

[0204] S6. When it is determined that the identifier of the displayed interface is the identifier of the main interface, the window manager determines the type of the main interface, wherein the type of the main interface is a non-immersive interface, a non-surface view type immersive interface, or a surface view type immersive interface.

[0205] S7. The window manager sends the type of the main interface to the layer compositor.

[0206] Among them, the type of the main interface can also be called the state of the main interface, that is, the interface state when the main interface is displayed. The window manager can send the state of the main interface to surfaceflinger, so that surfaceflinger can use the state of the main interface to determine the screenshot result including the actual background of the main interface.

[0207] In addition, the window manager page may determine the color mode of the video application not based on the main interface, but based on the state of the interface displayed when the video application retreats to the background.

[0208] S8. When the type of the main interface is a non-immersive interface, the layer synthesizer takes a screenshot of the main interface to obtain a screenshot result.

[0209] In an embodiment of the present application, when the type of the main interface is a non-immersive interface, it indicates that the background displayed on the main interface is the actual background of the main interface and is not completely covered by the displayed content. Therefore, surfaceflinger can directly take a screenshot of the main interface and use the screenshot as a screenshot result for identifying the color mode of the main interface using the screenshot result.

[0210] S9. When the type of the main interface is an immersive interface of the surface view type, the layer synthesizer analyzes the layers of the main interface and uses the layers of the main interface except the surface view layer as the background layers of the main interface.

[0211] S10. The layer synthesizer takes a screenshot of the background layer of the main interface to obtain a screenshot result.

[0212] S11. When the type of the main interface is an immersive interface of a non-surface view type, the layer synthesizer analyzes the layers of the main interface and uses the layers of the main interface except the top layer as the background layers of the main interface.

[0213] S12. The layer synthesizer takes a screenshot of the background layer of the main interface to obtain a screenshot result.

[0214] The above describes the process of determining the screenshot result of the main interface. The following will continue to describe the process of determining the background color value of the main interface based on the screenshot result.

[0215] S13. After obtaining the screenshot result, the layer compositor sends the screenshot result to the window manager.

[0216] S14. The window manager determines the background color value of the screenshot result to obtain the background color value of the main interface.

[0217] The process of determining the type of the main interface and taking a screenshot based on the type of the main interface introduced in S4-S14, so as to determine the background color value of the main interface by using the screenshot, can refer to the relevant contents of S305-S311 above.

[0218] S15. The window manager determines a color mode of the video application based on the background color value of the main interface, wherein the color mode of the video application is a dark color mode.

[0219] S16. The window manager sets the background color of the startup window to a color corresponding to the dark mode.

[0220] Exemplarily, the window manager determines that the color mode of the video application does not match the background color of the startup window, and modifies the background color of the startup window to set the background color of the startup window to a color corresponding to the color mode of the video application, that is, a color that matches the color mode of the video application, thereby ensuring consistency in the display style of the startup window of the video application and the interface of the video application other than the advertisement page. For example, if the color mode of the video application is a dark mode, the window manager can set the background color of the startup window to black that matches the dark mode.

[0221] Among them, the specific implementation process of S15-S16 can refer to the relevant content of the above S312-S315, which will not be repeated here.

[0222] In an embodiment of the present application, when a video application is cold started, the window manager determines the color mode of the video application so as to calibrate the startup window of the video application using the color mode of the video application. When the video application is cold started next time, the consistency of the display style of the startup window and the video application is guaranteed. In addition, it should be understood that although during the use of the video application, the user may still modify the color mode of the video application, resulting in the color mode of the video application determined by the window manager not being the latest color mode of the video application, thereby causing the color of the startup window displayed during the next cold start to still have a large color contrast with the main interface of the video application, the color mode of the video application may continue to be determined during the next cold start, thereby still being able to successfully determine the latest color mode of the video application.

[0223] It should be noted that the above is an example of how to modify the background color of the startup window when the color mode of the application is inconsistent with the display style corresponding to the advertising page, taking the color mode of the video application as a dark mode and the advertising page corresponding to light resources (i.e., the display style corresponding to the light mode), that is, the color mode of the advertising page is a light mode. Of course, the inconsistency may also be that the color mode of the video application is a light mode and the advertising page corresponds to a dark resource. However, the process of modifying the background color of the startup window in any inconsistent situation is similar to the process of modifying the background color of the startup window described above. That is to say, the color mode of the video application can be called the first color mode, and the color mode of the advertising page can be called the second color mode. The first color mode can be a dark mode or a light mode, and the second color mode can also be a light mode or a dark mode. When the first color mode is different from the second color mode, the background color of the above-mentioned startup window is modified.

[0224] In addition, the dark mode and the light mode are only examples of display modes, and the display mode may include not only the dark mode and the light mode, but also other color modes. Of course, the display mode may also be other modes, but include multiple color modes. And, the above-mentioned video application is also only an example, therefore, this application does not limit the application (or referred to as the first application).

[0225] It should be noted that the operations performed by the software modules in the above mobile phone (such as the above desktop launcher, window manager, package management service, surfaceflinger, etc.) can also be operations performed by other software modules, and this application does not limit the software modules that perform the above steps. In addition, the operations performed by the software modules are actually performed by the mobile phone, that is, the executor of the technical solution introduced in this application is the mobile phone.

[0226] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in this application, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software.

[0227] Whether a function is executed in hardware or in a computer-driven hardware manner depends on the specific application and design constraints of the technical solution. Those skilled in the art may 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 technical solution of the embodiment of the present application.

[0228] The present application is an embodiment that can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of units 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.

[0229] like Fig.17 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1000 can be used to implement the methods performed by the electronic devices described in the above method embodiments. For example, the electronic device 1000 may include a processing unit 1001, a communication unit 1002, and a display unit 1003. The processing unit 1001 is used to support the electronic device 1000 to perform Figures 1 to 16 The processing function of any of the electronic devices described above, the communication unit 1002 is used to support the communication function of the electronic device 1000. The display unit 1003 is used to support the display function of the electronic device 1000.

[0230] Optional, Fig.17 The electronic device 1000 shown may also include a storage unit ( Fig.17 ), the storage unit stores a program or instruction. When the processing unit 1001 executes the program or instruction, Fig.17 The electronic device 1000 shown can execute the method described in the above method embodiment.

[0231] Fig.17 The technical effects of the electronic device 1000 shown can refer to the technical effects described in the above method embodiment, and will not be repeated here. Fig.17 The processing unit 1001 involved in the electronic device 1000 shown can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing module. The communication unit 1002 can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver module. The display unit 1003 can be implemented by display screen-related components.

[0232] The present application also provides a chip system, such as Fig.18As shown, the chip system includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 can be interconnected through lines. For example, the interface circuit 1102 can be used to receive signals from other devices. For another example, the interface circuit 1102 can be used to send signals to other devices (such as processor 1101). Exemplarily, the interface circuit 1102 can read instructions stored in the memory and send the instructions to the processor 1101. When the instructions are executed by the processor 1101, the electronic device can execute the various steps performed by the electronic device in the above embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.

[0233] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0234] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separately provided with the processor, which is not limited in the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be provided on different chips. The present application does not specifically limit the type of memory and the arrangement of the memory and the processor.

[0235] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0236] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0237] An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the cold start method described in the above method embodiment, that is, the application startup method.

[0238] An embodiment of the present application provides a computer program product, which includes: a computer program or instructions, when the computer program or instructions are executed on an electronic device, the electronic device executes the cold start method described in the above method embodiment.

[0239] In addition, the embodiment of the present application also provides a device, which can be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory, so that the device executes the cold start method in the above-mentioned method embodiments. Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above, so the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0240] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0241] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The various embodiments can be combined with each other or referenced to each other without conflict. The device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0242] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0243] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0244] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0245] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for starting an application, characterized in that: Applied to electronic equipment, the method comprises: Receive a first operation; wherein the first operation is used to trigger the start of a first application, and the display mode of the first application is a first color mode; In response to the first operation, in the absence of a process and activity of the first application, displaying a launch window of the first application in a first color; wherein the first color matches the first color mode; In response to the startup window stopping displaying, displaying the advertisement interface of the first application; wherein the color of the advertisement interface matches a second color mode, and the second color mode is different from the first color mode; In response to the advertisement interface ceasing to be displayed, the first interface of the first application is displayed in a second color, where the second color matches the first color pattern.

2. The method according to claim 1, characterized in that: Before receiving the first operation, the method further includes: Displaying a second interface of the first application; Determining a display mode of the first application based on an interface state when the second interface is displayed; The step of displaying the startup window of the first application in the first color includes: The startup window is displayed in a color that matches the determined display mode of the first application.

3. The method according to claim 2, characterized in that The determining the display mode of the first application based on the interface state when the second interface is displayed includes: Based on the interface state when the second interface is displayed, taking a screenshot of the second interface to obtain a screenshot result of the second interface; wherein the screenshot result of the second interface includes a background of the second interface; Based on the background color value of the screenshot result, a display mode of the first application is determined.

4. The method according to claim 3, characterized in that The interface state when displaying the second interface includes: whether the electronic device displays a status bar when displaying the second interface; When the interface state is that the status bar is displayed, the screenshot result of the second interface includes all layers of the second interface; When the interface status is that the status bar is not displayed, the screenshot result of the second interface includes the background layer of the second interface.

5. The method according to claim 4, characterized in that In the case where the second interface includes a surface view surfaceview layer, the background layer includes layers other than the surfaceview layer in the second interface; When the second interface does not include a surfaceview layer, the background layer includes layers other than the topmost layer in the second interface.

6. The method according to any one of claims 3 to 5, characterized in that The display mode of the first application can be set to the first color mode or the second color mode; The determining the display mode of the first application based on the background color value of the screenshot result includes: In a case where the background color value matches the first color mode, determining that the display mode of the first application is the first color mode; When the background color value matches the second color mode, it is determined that the display mode of the first application is the second color mode.

7. The method according to claim 6, characterized in that The background color value matches the first color mode including that the difference between the background color value and the color threshold corresponding to the first color mode falls within the difference range corresponding to the first color mode, the difference between the background color value and the color threshold corresponding to the second color mode does not fall within the difference range corresponding to the second color mode, the background color value falls within the color value range corresponding to the first color mode, or the background color value does not fall within the color value range corresponding to the second color mode.

8. The method according to any one of claims 2 to 5, characterized in that Before determining the display mode of the first application based on the interface state when the second interface is displayed, the method further includes: Determine whether the size of the installation package of the first application is greater than or equal to a preset size.

9. The method according to any one of claims 2 to 5, characterized in that Before receiving the first operation, the method further includes: Receiving a second operation; wherein the second operation is used to trigger the start of the first application; In response to the second operation, in the absence of a process and an activity of the first application, displaying the startup window and recording a color of the startup window; The displaying the second interface of the first application includes: In response to the startup window ceasing to be displayed, displaying the advertisement interface; In response to the advertisement interface ceasing to be displayed, the second interface is displayed.

10. The method according to any one of claims 2 to 5, characterized in that The determining the display mode of the first application based on the interface state when the second interface is displayed includes: Receiving a third operation; wherein the third operation is used to trigger the first application to run in the background; In response to the third operation, a display mode of the first application is determined based on an interface state when the second interface is displayed.

11. An electronic device, characterized in that: The electronic device includes a display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; the display screen is used to display an image generated by the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the startup method of the application described in any one of claims 1 to 10.

12. A computer-readable storage medium, characterized in that: The invention comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method for starting the application according to any one of claims 1 to 10.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for starting the application according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Application startup optimization method and apparatus, storage medium and intelligent terminal

    CN107748686A

  • Application visual theme switching method and device, storage medium and terminal

    CN113377479A

  • Image processing method, and training method and device of image processing model

    CN117218213A

  • Multi-Application Interaction Method

    US20230367464A1