Application startup method, device, storage medium and electronic device
By loading the virtual screen in advance and switching to the background, the problem of low startup efficiency of electronic device applications is solved, rapid application startup is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202210751999.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-28
AI Technical Summary
Existing electronic devices need to load multiple resources when an application is started, resulting in low start-up efficiency, which usually takes several seconds or even ten seconds.
Load the target application in advance through the virtual screen, and switch it to the background of the physical screen after the application is loaded. Thus, when the startup command is received, the application is directly switched from the background to the foreground to avoid reloading the application on the physical screen.
It improves the startup efficiency of applications, reduces the time consumption of loading applications on the physical screen, and improves the user experience.
Smart Images

Figure CN115033307B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and in particular, relates to an application startup method, device, storage medium and electronic device. Background Art
[0002] At present, electronic devices such as smart phones, tablet computers, laptops, and smart home appliances have become indispensable in people's daily lives. As the configuration of electronic devices continues to improve, dozens or even hundreds of applications can be installed in most electronic devices. As the functions of applications become increasingly rich, more and more resources need to be loaded when the applications are running. When an application needs to be started, the electronic device will load the resources required to start the application. After the loading is complete, it will enter the initial interface of the application. The whole process usually takes several seconds or even more than ten seconds, resulting in low application startup efficiency. Summary of the invention
[0003] The embodiments of the present application provide an application startup method, device, storage medium and electronic device, which can improve the startup efficiency of the application.
[0004] In a first aspect, an embodiment of the present application provides an application startup method, comprising:
[0005] Determine the target application that needs to be loaded;
[0006] loading the target application through a virtual screen;
[0007] After the target application is loaded, switching the target application to the background of the physical screen;
[0008] In response to a start-up instruction for the target application, the target application is switched from the background of the physical screen to the foreground of the physical screen.
[0009] In a second aspect, an embodiment of the present application provides an application startup device, including:
[0010] An application determination module, used to determine a target application to be loaded;
[0011] An application loading module, used for loading the target application through a virtual screen;
[0012] An application switching module, used for switching the target application to the background of the physical screen after the target application is loaded;
[0013] The application startup module is used to switch the target application from the background of the physical screen to the foreground of the physical screen in response to a startup instruction for the target application.
[0014] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the application startup method provided by the embodiment of the present application.
[0015] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the application startup method provided in the embodiment of the present application by calling a computer program stored in the memory.
[0016] In the embodiment of the present application, the target application is loaded through the virtual screen in advance, and after the target application is loaded, the target application is switched to the background of the physical screen. When a startup instruction for the target application is received, the target application is directly switched from the background of the physical screen to the foreground of the physical screen. There is no need to load the target application on the physical screen, thereby avoiding the time consumption of loading the target application on the physical screen and improving the startup efficiency of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0018] Figure 1 It is a flowchart of the application startup method provided in an embodiment of the present application.
[0019] Figure 2 This is a schematic diagram of the first scenario of the application startup method provided in an embodiment of the present application.
[0020] Figure 3 This is a schematic diagram of the second scenario of the application startup method provided in an embodiment of the present application.
[0021] Figure 4 This is a schematic diagram of the third scenario of the application startup method provided in an embodiment of the present application.
[0022] Figure 5 It is a structural diagram of an application startup device provided in an embodiment of the present application.
[0023] Figure 6 This is a schematic diagram of the first structure of an electronic device provided in an embodiment of the present application.
[0024] Figure 7 This is a second structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] It should be noted that the terms "first" and "second" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] The embodiments of the present application provide an application startup method, an application startup device, a storage medium, and an electronic device, wherein the execution subject of the application startup method may be the application startup device provided in the embodiments of the present application, or an electronic device integrated with the application startup device, wherein the application startup device may be implemented in hardware or software. The electronic device may be a device such as a smart phone, a tablet computer, a PDA, a laptop computer, etc. that is equipped with a processor and has the ability to start an application.
[0028] See also Figure 1 , Figure 1 : is a flow chart of the application startup method provided in the embodiment of the present application, and the flow may include:
[0029] 101. Determine the target application that needs to be loaded.
[0030] The target application is an application that needs to be loaded in advance.
[0031] For example, assuming that the electronic device predicts that the user wants to use application A1, the electronic device may determine application A1 as a target application that needs to be loaded.
[0032] For another example, when the electronic device starts a corresponding application, such as a camera application, it will clear out some applications. Then, when the application exits these applications, such as the camera application, the electronic device can determine the applications cleared out when starting these applications, such as the camera application, as target applications that need to be loaded.
[0033] For another example, when the electronic device has insufficient memory, the electronic device will automatically clean up some background applications, and the electronic device can determine these cleaned up applications as target applications.
[0034] For another example, if the electronic device switches the connected Wi-Fi due to a change in location, the electronic device may determine the application corresponding to the current location as the target application. For example, if the current location is an office, the electronic device may determine some office applications as the target application.
[0035] 102. Load the target application through the virtual screen.
[0036] Among them, the virtual screen can be created by an electronic device with the function of creating a virtual screen. The virtual screen is a virtual component independent of the physical screen. The virtual screen is invisible to the user. The virtual screen can be understood as a piece of memory for loading the target application. The application interface of the target application is not displayed on the physical screen. The size of the virtual screen can be the same as the size of the physical screen. The physical screen is visible to the user and is part of the electronic device. The electronic device can realize human-computer interaction, information display, etc. through the physical screen.
[0037] For example, Figure 2 As shown, assuming that the target application is application A1, the electronic device loads application A1 through the virtual screen. Specifically, the electronic device loads the resources required to load when application A1 is running through the virtual screen, such as the application process of application A1 (including the main process, service process, etc.), application startup animation, advertising interface, application initial interface, application secondary interface, etc.
[0038] 103. After the target application is loaded, switch the target application to the background of the physical screen.
[0039] For example, Figure 3 As shown, assuming that the target application is application A1, after application A1 is loaded, the electronic device switches application A1 to the background of the physical screen. In other words, application A1 is used as one of the background applications of the physical screen, so application A1 is normally managed by the background management module.
[0040] The background management module may include a cleaning module and a freezing module. When the memory is insufficient, the cleaning module will clean up the background applications. Then, after the electronic device switches application A1 to the background of the physical screen, application A1 is also normally controlled by the cleaning module. The application normally loaded on the physical screen will be frozen by the freezing module after it retreats to the background of the physical screen. Then, after the electronic device switches application A1 to the background of the physical screen, application A1 is also normally controlled by the freezing module.
[0041] In this embodiment, when an application is loaded into a corresponding designated application interface, it is determined that the application has been loaded. As for which specific application interface is loaded to determine that the application has been loaded, it can be set according to actual conditions. For example, it can be set to load to the initial interface of the application to determine that the application has been loaded. It can also be set to load to the application interface when the application was last closed (including background application cleanup and user active exit) to determine that the application has been loaded.
[0042] It is understandable that the electronic device can also continue to load other target applications, such as application A2, A3 or A4, etc., through the virtual screen in the above manner, and after other target applications are loaded, switch other target applications to the background of the physical screen.
[0043] 104. In response to the start instruction for the target application, switch the target application from the background of the physical screen to the foreground of the physical screen.
[0044] The start instruction for the target application may be triggered by a user, by launching other applications, or by other means, which are not specifically limited here.
[0045] For example, Figure 4 As shown, assuming that the target application is application A1, when the user clicks the application icon of application A1 displayed on the electronic device desktop, the electronic device receives a startup instruction for application A1. In response to the startup instruction for application A1, the electronic device can switch application A1 from the background of the physical screen to the foreground of the physical screen.
[0046] For another example, assuming that the target application is application A1, which can be launched by application A2, then when application A2 is detected to have launched application A1, the electronic device receives a launch instruction for application A1. In response to the launch instruction for application A1, the electronic device can switch application A1 from the background of the physical screen to the foreground of the physical screen.
[0047] In this embodiment, the target application is loaded on the virtual screen in advance, and after the target application is loaded, the target application is switched to the background of the physical screen. When a startup instruction for the target application is received, the target application is directly switched from the background of the physical screen to the foreground of the physical screen. There is no need to load the target application on the physical screen, thereby avoiding the time consumption of loading the target application on the physical screen and improving the startup efficiency of the application.
[0048] In an optional embodiment, loading the target application through the virtual screen includes:
[0049] (1) Create a blank image;
[0050] (2) Using a blank image as the surface object of a virtual screen;
[0051] (3) Load the target application through the surface object.
[0052] The blank image (empty image) is an image with only size but no content. The size of the blank image can be the same as the size of the virtual screen.
[0053] When an application is started for the first time, also known as a cold start, a startup screen will be used for the startup animation. When the application retreats to the background, a screenshot of the last interface of the application will be taken. When the user starts the application next time, also known as a hot start, the screenshot of the last interface will be used for the startup animation. If there is no such screenshot, the startup animation during the hot start will appear to be black.
[0054] In this embodiment, in order to avoid a black screen flashing when subsequent applications are hot-started, the electronic device uses a blank image (empty image) as the surface object (surface) of the virtual screen, so that when the target application is loaded through the surface object, the corresponding application interface of the target application is drawn (only when there is a surface on the screen can the corresponding interface of the application be drawn normally on the screen, and only when the corresponding interface of the application is drawn on the screen can a screenshot of the corresponding interface of the application be obtained subsequently). Furthermore, under the premise of ensuring that the virtual screen is invisible, when the target application switches to the background of the physical screen, a screenshot of the last interface of the target application can be obtained normally, thereby avoiding a black screen when subsequent applications are hot-started.
[0055] In an optional embodiment, the application startup method further includes:
[0056] After the target application is loaded, the interface image of the target application is obtained;
[0057] In the process of switching the target application from the background of the physical screen to the foreground of the physical screen, an interface image is displayed on the physical screen.
[0058] It is understandable that, taking application A1 as the target application, in order to avoid the black screen flashing phenomenon, after application A1 is loaded, the electronic device takes a screenshot of the application interface after application A1 is loaded (assuming that application A1 is loaded to the initial interface, then the application interface after application A1 is loaded is the initial interface) to obtain the corresponding interface image, and the electronic device switches application A1 to the background of the physical screen. When receiving a startup instruction for application A1, in response to the startup instruction for application A1, the electronic device switches application A1 from the background of the physical screen to the foreground of the physical screen, and in the process of switching application A1 from the background of the physical screen to the foreground of the physical screen, the interface image is displayed on the physical screen, thereby avoiding the black screen flashing phenomenon.
[0059] In an optional embodiment, before determining the target application to be loaded, the method further includes:
[0060] When the target application is cleaned up, the application interface of the target application when being cleaned up is recorded;
[0061] Load the target application through the virtual screen, including:
[0062] Load the application interface through the virtual screen;
[0063] The application startup method also includes:
[0064] In the process of switching the target application from the background of the physical screen to the foreground of the physical screen, the application interface is displayed on the physical screen.
[0065] Taking into account that some applications may be cleared due to insufficient memory, but users may still use these applications in the future, in order to provide users with a better user experience, when these applications are cleared, the electronic device can record the application interface of these applications when they are cleared, such as the last application interface before being cleared. The next time these applications are loaded, the application interface of these applications when they were cleared can be directly loaded.
[0066] For example, assuming that application A1 is switched to the background of the physical screen when the application interface B1 is displayed, and the cleaning module cleans up application A1, then the electronic device can record application interface B1. When application A1 is determined as the target application, the electronic device can load the application interface B1 of application A1 through the virtual screen, so that when receiving the startup instruction for application A1, the electronic device responds to the startup instruction and switches application A1 from the background of the physical screen to the foreground of the physical screen, and in the process of switching application A1 from the background of the physical screen to the foreground of the physical screen, the application interface B1 is displayed on the physical screen. In other words, application A1 is switched from the background of the physical screen to the foreground of the physical screen, so that application interface B1 is displayed on the physical screen.
[0067] In an optional embodiment, after the target application is loaded, switching the target application to the background of the physical screen includes:
[0068] (1) After the target application is loaded, switch the target application to the background of the virtual screen;
[0069] (2) Switch the target application from the background of the virtual screen to the background of the physical screen.
[0070] In this embodiment, after the target application is loaded, the electronic device first switches the target application to the background of the virtual screen, and then switches the target application from the background of the virtual screen to the background of the physical screen.
[0071] In an optional embodiment, after the target application is loaded, switching the target application to the background of the virtual screen includes:
[0072] After the target application is loaded, a preset interface is loaded through the virtual screen to switch the target application to the background of the virtual screen.
[0073] In this embodiment, after the target application is loaded, the electronic device can load a preset interface through the virtual screen, thereby switching the target application to the background of the virtual screen. The preset interface can be pre-set by the user in the electronic device. For example, the preset interface can be a virtual desktop created by the user.
[0074] In an optional embodiment, the preset interface may also be an application interface of a preset application. Then, after the target application is loaded, the electronic device may load the preset interface of the preset application through the virtual screen, thereby switching the target application to the background of the virtual screen. Among them, the preset application may be pre-built by the user and built into the electronic device. The preset application may only include a preset interface, which may be an interface with only size but no content, thereby speeding up the speed at which the electronic device loads the preset interface through the virtual screen, thereby increasing the speed of switching the target application to the background of the virtual screen. The size of the preset interface may be the same as the size of the virtual screen.
[0075] It is understandable that, assuming that the application interface of application A1 is displayed on the screen, when the application interface of application A2 is loaded through the screen, the electronic device will retreat application A1 to the background of the screen. Therefore, the electronic device can also switch application A1 to the background of the virtual screen in this way.
[0076] In an optional embodiment, before loading the target application through the virtual screen, the method further includes:
[0077] Determine how long it takes for the target app to load;
[0078] After loading the target application on the virtual screen, it also includes:
[0079] When the cumulative duration of loading the target application reaches the loading duration, it is determined that the loading of the target application is complete.
[0080] The cumulative duration of loading the target application is the time from the start time of loading the target application to the current time. For example, assuming that the start time of loading the target application is 10:20:00 on June 1, 2022, and the current time is 10:21:00 on June 1, 2022, the cumulative duration of loading the target application is 1 minute.
[0081] In this embodiment, different applications can be preloaded, and the time required for different applications to be loaded from the beginning to the end is counted, and the loading time of different applications is set based on the time. The loading time of an application can be greater than or equal to the time required for the application to be loaded from the beginning to the end. For example, assuming that the time required for application A1 to be loaded from the beginning to the end is 10 seconds, then the loading time of application A1 can be 10 seconds, 11 seconds, 15 seconds, and so on.
[0082] For example, assuming that the target application is application A1 and the loading time of application A1 is 11 seconds, then when the cumulative time of loading application A1 reaches 11 seconds, the electronic device determines that the loading of application A1 is complete.
[0083] In an optional embodiment, in response to a start instruction for the target application, switching the target application from the background of the physical screen to the foreground of the physical screen includes:
[0084] (1) in response to a start instruction for a target application, determining an available display window size of a physical screen;
[0085] (2) According to the available display window size, the target application is switched from the background of the physical screen to the foreground of the physical screen.
[0086] It is understandable that, since some other objects need to be displayed on the physical screen, such as a status bar, which displays a battery indicator, a signal indicator, time, etc., but the virtual screen does not display a status bar, even if the virtual screen and the physical screen are the same size, the application window of the target application loaded on the virtual screen is not compatible with the physical screen. Then, the electronic device can determine the available display window size of the physical screen in response to the startup instruction for the target application, such as determining the display window size excluding the status bar. Then, the electronic device adjusts the application window size of the target application according to the available display window size, so that the application window of the target application is compatible with the physical screen, and then switches the target application after the application window adjustment from the background of the physical screen to the foreground of the physical screen.
[0087] In an optional embodiment, the application startup method further includes:
[0088] During the process of loading the target application through the virtual screen, disabling the prompt function of the target application;
[0089] After the target application is loaded, the target application is switched to the background of the physical screen, and the following steps are also included:
[0090] Enable the prompt function of the target application.
[0091] Considering that loading the target application through the virtual screen is an invisible process, if corresponding prompts, such as sound prompts, notification prompts, etc., are performed during the process of loading the target application through the virtual screen, it may affect the user's normal use of the electronic device. Therefore, in this embodiment, during the process of loading the target application through the virtual screen, the electronic device can disable the prompt function of the target application. Considering that normal background applications can also perform corresponding prompts, therefore, when the target application is switched to the background of the physical screen, making the target application one of the background applications of the physical screen, the electronic device can enable the prompt function of the target application, thereby realizing normal prompt functions, such as notifications in the notification bar, Toast prompts, and so on.
[0092] In an optional embodiment, the application startup method further includes:
[0093] In the process of loading the target application through the virtual screen, when a screen rotation instruction is received, the target application is kept loaded in the initial loading direction of the target application.
[0094] To prevent the loading of the target application from being affected by the user rotating the physical screen, in this embodiment, during the process of loading the target application on the virtual screen, even if a screen rotation instruction is received, the electronic device still keeps loading the target application in its initial loading direction.
[0095] For example, suppose that the electronic device loads the target application in a first loading direction, wherein the first loading direction remains corresponding to the portrait orientation of the physical screen, and suppose that the user rotates the physical screen so that the physical screen is displayed in landscape orientation, at this time, the electronic device will not control the loading direction of the target application to correspond to the landscape orientation of the physical screen. For example, the electronic device will not load the target application in a second loading direction corresponding to the landscape orientation of the physical screen, but will still load the target application in the first loading direction.
[0096] In an optional embodiment, the application startup method further includes:
[0097] In the process of loading the target application through the virtual screen, if a start instruction for the target application is received, the loading of the target application through the virtual screen is stopped, and the target application is loaded through the physical screen.
[0098] In this embodiment, during the process of loading the target application through the virtual screen, if the user starts the target application, the electronic device can stop loading the target application through the virtual screen and cold start the target application through the physical screen, thereby avoiding repeated loading of the target application.
[0099] Specifically, during the process of loading the target application through the virtual screen, if a start instruction for the target application is received, the electronic device stops loading the target application through the virtual screen, clears the loaded content, and loads the target application through the physical screen.
[0100] In an optional embodiment, determining the target application to be loaded includes:
[0101] Get user operation information;
[0102] According to the user operation information, the target application to be loaded is determined.
[0103] The user operation information includes some information generated by the user operating the electronic device.
[0104] For example, suppose that the user starts application A1, and in order to ensure the normal operation of application A1, the electronic device clears background applications A2 and A3. After using application A1 for a period of time, the user exits application A1. All information generated in this process can be used as user operation information. Based on the above operation information, the electronic device can determine that applications A2 and A3 were cleared because the user started application A1. Then, after the user exits application A1, the electronic device can determine application A2 and application A3 as target applications that need to be loaded.
[0105] For another example, suppose the user starts application A1 at 10:00 on June 10, 11, 12, and 13, 2022. All information generated in this process can be used as user operation information. Based on the above operation information, the electronic device can determine that the user will start application A1 at 10:00 every day. Then, before 10:00 every day, the electronic device can determine application A1 as the target application to be loaded, thereby loading application A1 in advance, and then quickly starting application A1 when receiving the startup instruction for application A1.
[0106] In an optional embodiment, before loading the target application through the virtual screen, the method further includes:
[0107] Create a virtual screen.
[0108] It is understandable that the loading of an application usually relies on a screen, and in order to make the loading process invisible, in this embodiment, the electronic device first creates a virtual screen, and then loads the target application through the virtual screen.
[0109] It should be noted that the virtual screen may be created before determining the target application to be loaded, while determining the target application to be loaded, or after determining the target application to be loaded, and there is no specific limitation here.
[0110] In an optional embodiment, when there are multiple target applications, the electronic device may create multiple virtual screens, and load each target application through each virtual screen, wherein the number of virtual screens is the same as the number of target applications.
[0111] In an optional embodiment, when there are multiple target applications, the electronic device may create multiple virtual screens, and load corresponding target applications through corresponding virtual screens respectively, wherein the number of virtual screens is less than the number of target applications.
[0112] For example, assuming that the target applications include applications A1, A2, and A3, and the virtual screens include virtual screens S1 and S2, the electronic device can sequentially load applications A1 and A2 through virtual screen S1, and simultaneously load application A3 through virtual screen S2. The electronic device can also load application A1 and application A2 through virtual screens S1 and S2, respectively, and after one application, such as application A2, is loaded first, application A3 is loaded through virtual screen S2.
[0113] In an optional embodiment, when there are multiple target applications, the electronic device may create a virtual screen and sequentially load each target application through the virtual screen.
[0114] In an optional embodiment, after the target application is loaded, the target application is switched to the background of the physical screen, and the method further includes:
[0115] Remove the virtual screen.
[0116] It is understandable that after switching the target application to the background of the physical screen, the electronic device can remove the virtual screen.
[0117] In some embodiments, the virtual screen may be removed after each target application is loaded and switched to the background of the physical screen, or the virtual screen may be removed when no application is loaded on the virtual screen within a preset time.
[0118] See also Figure 5 , Figure 5 The schematic diagram of the structure of the application startup device provided in the embodiment of the present application is as follows: The application startup device 200 comprises: an application determination module 201 , an application loading module 202 , an application switching module 203 and an application startup module 204 .
[0119] The application determination module 201 is used to determine the target application that needs to be loaded.
[0120] The application loading module 202 is used to load the target application through the virtual screen.
[0121] The application switching module 203 is used to switch the target application to the background of the physical screen after the target application is loaded.
[0122] The application startup module 204 is used to switch the target application from the background of the physical screen to the foreground of the physical screen in response to the startup instruction for the target application.
[0123] In an optional embodiment, the application loading module 202 may be used to: create a blank image; use the blank image as a surface object of the virtual screen; and load the target application through the surface object.
[0124] In an optional embodiment, the application startup module 204 can be used to: obtain the interface image of the target application after the target application is loaded; and display the interface image on the physical screen during the process of switching the target application from the background of the physical screen to the foreground of the physical screen.
[0125] In an optional embodiment, the application determination module 201 may be used to: when the target application is cleaned up, record the application interface when the target application is cleaned up;
[0126] The application loading module 202 may be used to: load the application interface via a virtual screen;
[0127] The application starting module 204 may be used to display the application interface on the physical screen during the process of switching the target application from the background of the physical screen to the foreground of the physical screen.
[0128] In an optional embodiment, the application switching module 203 can be used to: after the target application is loaded, switch the target application to the background of the virtual screen; switch the target application from the background of the virtual screen to the background of the physical screen.
[0129] In an optional embodiment, the application switching module 203 may be used to: after the target application is loaded, load a preset interface through the virtual screen to switch the target application to the background of the virtual screen.
[0130] In an optional embodiment, the application loading module 202 may be used to: determine the loading duration of the target application; and determine that the loading of the target application is complete when the cumulative loading duration of the target application reaches the loading duration.
[0131] In an optional embodiment, the application startup module 204 can be used to: determine the available display window size of the physical screen in response to a startup instruction for the target application; and switch the target application from the background of the physical screen to the foreground of the physical screen according to the available display window size.
[0132] In an optional embodiment, the application loading module 202 may be used to: during the process of loading the target application through the virtual screen, disable the prompt function of the target application;
[0133] The application switching module 203 may be used to enable the prompt function of the target application.
[0134] In an optional embodiment, the application loading module 202 may be configured to: during the process of loading the target application through the virtual screen, upon receiving a screen rotation instruction, keep loading the target application in the initial loading direction of the target application.
[0135] In an optional embodiment, the application loading module 202 can be used to: during the process of loading the target application through the virtual screen, if a start instruction for the target application is received, stop loading the target application through the virtual screen and load the target application through the physical screen.
[0136] In an optional embodiment, the application determination module 201 may be used to: obtain user operation information; and determine a target application that needs to be loaded according to the user operation information.
[0137] In an optional embodiment, the application loading module 202 may be used to create a virtual screen.
[0138] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the application startup method provided in this embodiment.
[0139] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the application startup method provided in the present embodiment by calling a computer program stored in the memory.
[0140] For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Figure 6 , Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0141] The electronic device 300 may include components such as a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 6The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0142] The processor 301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 302 and calling data stored in the memory 302, thereby monitoring the electronic device as a whole.
[0143] The memory 302 may be used to store applications and data. The applications stored in the memory 302 include executable codes. The applications may be composed of various functional modules. The processor 301 executes various functional applications and data processing by running the applications stored in the memory 302.
[0144] In this embodiment, the processor 301 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application program stored in the memory 302, thereby implementing the process:
[0145] Determine the target application that needs to be loaded;
[0146] loading the target application through a virtual screen;
[0147] After the target application is loaded, switching the target application to the background of the physical screen;
[0148] In response to a start-up instruction for the target application, the target application is switched from the background of the physical screen to the foreground of the physical screen.
[0149] See also Figure 7 The electronic device 300 may include components such as a processor 301, a memory 302, an input unit 303, and an output unit 304.
[0150] The processor 301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 302 and calling data stored in the memory 302, thereby monitoring the electronic device as a whole.
[0151] The memory 302 may be used to store applications and data. The applications stored in the memory 302 include executable codes. The applications may be composed of various functional modules. The processor 301 executes various functional applications and data processing by running the applications stored in the memory 302.
[0152] The input unit 303 may be used to receive input numbers, character information or user feature information (such as fingerprints), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0153] The output unit 304 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, videos, and any combination thereof. The output unit may include a display screen, which may include a display area.
[0154] In this embodiment, the processor 301 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application program stored in the memory 302, thereby implementing the process:
[0155] Determine the target application that needs to be loaded;
[0156] loading the target application through a virtual screen;
[0157] After the target application is loaded, switching the target application to the background of the physical screen;
[0158] In response to a start-up instruction for the target application, the target application is switched from the background of the physical screen to the foreground of the physical screen.
[0159] In an optional embodiment, when the processor 301 executes the loading of the target application through the virtual screen, it may execute: creating a blank image; using the blank image as a surface object of the virtual screen; and loading the target application through the surface object.
[0160] In an optional embodiment, the processor 301 may also execute: after the target application is loaded, obtaining the interface image of the target application; in the process of switching the target application from the background of the physical screen to the foreground of the physical screen, displaying the interface image on the physical screen.
[0161] In an optional embodiment, before the processor 301 executes the determination of the target application to be loaded, it may also execute: when the target application is cleared, recording the application interface of the target application when it is cleared; when the processor 301 executes the loading of the target application through the virtual screen, it may execute: loading the application interface through the virtual screen; the processor 301 may also execute: in the process of switching the target application from the background of the physical screen to the foreground of the physical screen, displaying the application interface on the physical screen.
[0162] In an optional embodiment, when the processor 301 executes the switching of the target application to the background of the physical screen after the target application is loaded, it can execute: switching the target application to the background of the virtual screen after the target application is loaded; switching the target application from the background of the virtual screen to the background of the physical screen.
[0163] In an optional embodiment, when the processor 301 executes the switching of the target application to the background of the virtual screen after the target application is loaded, it can execute: after the target application is loaded, loading a preset interface through the virtual screen to switch the target application to the background of the virtual screen.
[0164] In an optional embodiment, before the processor 301 executes the loading of the target application through the virtual screen, it may also execute: determining the loading time of the target application; after the processor 301 executes the loading of the target application through the virtual screen, it may also execute: when the cumulative time for loading the target application reaches the loading time, determining that the loading of the target application is complete.
[0165] In an optional embodiment, when the processor 301 executes the response to the startup instruction for the target application to switch the target application from the background of the physical screen to the foreground of the physical screen, it can execute: in response to the startup instruction for the target application, determine the available display window size of the physical screen; according to the available display window size, switch the target application from the background of the physical screen to the foreground of the physical screen.
[0166] In an optional embodiment, the processor 301 may also execute: during the process of loading the target application through the virtual screen, disabling the prompt function of the target application; after the processor 301 executes the switching of the target application to the background of the physical screen after the target application is loaded, it may also execute: enabling the prompt function of the target application.
[0167] In an optional embodiment, the processor 301 may further execute: in the process of loading the target application through the virtual screen, when receiving a screen rotation instruction, keep loading the target application in the initial loading direction of the target application.
[0168] In an optional embodiment, the processor 301 may further execute: during the process of loading the target application through the virtual screen, if a start instruction for the target application is received, stopping loading the target application through the virtual screen and loading the target application through the physical screen.
[0169] In an optional embodiment, when the processor 301 executes the step of determining the target application to be loaded, the processor 301 may execute: obtaining user operation information; and determining the target application to be loaded according to the user operation information.
[0170] In an optional embodiment, before executing the step of loading the target application on the virtual screen, the processor 301 may further execute: creating a virtual screen.
[0171] In the above embodiments, the description of each embodiment has its own focus. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the application startup method above, and will not be repeated here.
[0172] The application startup device provided in the embodiment of the present application and the application startup method in the above embodiment belong to the same concept. Any method provided in the application startup method embodiment can be run on the application startup device. The specific implementation process is detailed in the application startup method embodiment and will not be repeated here.
[0173] It should be noted that, for the application startup method of the embodiment of the present application, ordinary technicians in the field can understand that all or part of the process of implementing the application startup method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the application startup method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), etc.
[0174] For the application startup device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0175] The above is a detailed introduction to an application startup method, device, storage medium and electronic device provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for starting an application, characterized in that: include: When the application is cleaned up, recording the application interface when the application is cleaned up; Determine the target application that needs to be loaded; Create a blank image; Using the blank image as a surface object of a virtual screen; Loading the target application interface when the target application is cleaned through the surface object; After the target application is loaded, a preset interface is loaded through the virtual screen to switch the target application to the background of the virtual screen, wherein the preset interface is an interface with a size but no content; Switching the target application from the background of the virtual screen to the background of the physical screen; In response to a start instruction for the target application, switching the target application from the background of the physical screen to the foreground of the physical screen; In the process of switching the target application from the background of the physical screen to the foreground of the physical screen, the target application interface is displayed on the physical screen.
2. The application startup method according to claim 1, characterized in that: The method further comprises: After the target application is loaded, obtaining an interface image of the target application; In the process of switching the target application from the background of the physical screen to the foreground of the physical screen, the interface image is displayed on the physical screen.
3. The application startup method according to claim 1, characterized in that: Before creating the blank image, the method further includes: Determining a loading time of the target application; After the target application interface when the target application is cleared is loaded through the surface object, the method further includes: When the accumulated time for loading the target application reaches the loading time, it is determined that the loading of the target application is completed.
4. The application startup method according to claim 1, characterized in that: The step of switching the target application from the background of the physical screen to the foreground of the physical screen in response to the start instruction for the target application includes: In response to a start instruction for the target application, determining an available display window size of the physical screen; According to the available display window size, the target application is switched from the background of the physical screen to the foreground of the physical screen.
5. The application startup method according to claim 1, characterized in that: The method further comprises: In the process of loading the target application interface when the target application is cleaned through the surface object, disabling the prompt function of the target application; After the target application is switched from the background of the virtual screen to the background of the physical screen, the method further includes: Enable the prompt function of the target application.
6. The application startup method according to claim 1, characterized in that: The method further comprises: In the process of loading the target application through the virtual screen, when a screen rotation instruction is received, the target application is kept loaded in the initial loading direction of the target application.
7. The application startup method according to claim 1, characterized in that: The method further comprises: In the process of loading the target application interface when the target application is cleared through the surface object, if a start instruction for the target application is received, loading the target application through the virtual screen is stopped, and the target application is loaded through the physical screen.
8. The application startup method according to claim 1, characterized in that: The determining of the target application to be loaded includes: Get user operation information; According to the user operation information, a target application to be loaded is determined.
9. The application startup method according to claim 1, characterized in that: Before creating the blank image, the method further includes: Create a virtual screen.
10. An application startup device, characterized in that: include: An application determination module, used for recording the application interface of the target application when the target application is cleaned up; Determine the target application that needs to be loaded; Apply loading module to create blank image; Using the blank image as a surface object of a virtual screen; loading the target application interface when the target application is cleared through the surface object; An application switching module, used to load a preset interface through the virtual screen after the target application is loaded, so as to switch the target application to the background of the virtual screen, wherein the preset interface is an interface with a size but no content; and switch the target application from the background of the virtual screen to the background of the physical screen; An application startup module, configured to switch the target application from the background of the physical screen to the foreground of the physical screen in response to a startup instruction for the target application; In the process of switching the target application from the background of the physical screen to the foreground of the physical screen, the target application interface is displayed on the physical screen.
11. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the application startup method according to any one of claims 1 to 9.
12. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the application startup method according to any one of claims 1 to 9 by calling the computer program stored in the memory.
