CN115033307A - Application starting method and device, storage medium and electronic equipment - Google Patents

Application starting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115033307A
CN115033307A CN202210751999.8A CN202210751999A CN115033307A CN 115033307 A CN115033307 A CN 115033307A CN 202210751999 A CN202210751999 A CN 202210751999A CN 115033307 A CN115033307 A CN 115033307A
Authority
CN
China
Prior art keywords
application
target application
screen
loading
loaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210751999.8A
Other languages
Chinese (zh)
Inventor
顾云建
刘桦
吏渊
孙海
罗俊
朱超
黄勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210751999.8A priority Critical patent/CN115033307A/en
Publication of CN115033307A publication Critical patent/CN115033307A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses an application starting method and device, a storage medium and electronic equipment. The method comprises the following steps: determining a target application needing to be loaded; loading the target application through a virtual screen; after the target application is loaded, switching the target application to a background of an entity screen; and responding to a starting instruction aiming at the target application, and switching the target application from the background of the entity screen to the foreground of the entity screen. The application starting method and the application starting device can improve the starting efficiency of the application.

Description

Application starting method and device, storage medium and electronic equipment
Technical Field
The present application belongs to the field of electronic technologies, and in particular, to an application starting method and apparatus, a storage medium, and an electronic device.
Background
At present, electronic devices such as smart phones, tablet computers, notebook computers, and smart appliances have become essential in daily life. With the continuous increase of the configuration of electronic devices, dozens or even hundreds of applications can be installed in most electronic devices, and with the increasing abundance of the functions of the applications, more and more resources need to be loaded when the applications run. When an application needs to be started, the electronic device loads resources required by starting the application, and enters an initial interface of the application after the loading is finished, so that the whole process usually takes several seconds or even ten seconds, and the starting efficiency of the application is low.
Disclosure of Invention
The embodiment of the application starting method and device, the storage medium and the electronic device can improve the starting efficiency of the application.
In a first aspect, an embodiment of the present application provides an application starting method, including:
determining a target application needing to be loaded;
loading the target application through a virtual screen;
after the target application is loaded, switching the target application to a background of an entity screen;
and responding to a starting instruction aiming at the target application, and switching the target application from the background of the entity screen to the foreground of the entity screen.
In a second aspect, an embodiment of the present application provides an application starting apparatus, including:
the application determining module is used for determining a target application which needs to be loaded;
the application loading module is used for loading the target application through a virtual screen;
the application switching module is used for switching the target application to a background of an entity screen after the target application is loaded;
and the application starting module is used for responding to a starting instruction aiming at the target application and switching the target application from the background of the entity screen to the foreground of the entity screen.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute an application starting method provided by the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the application starting method provided in the embodiment of the present application by calling a computer program stored in the memory.
In the embodiment of the application, the target application is loaded through the virtual screen in advance, and is switched to the background of the entity screen after the target application is loaded, so that when a starting instruction for the target application is received, the target application is directly switched to the foreground of the entity screen from the background of the entity screen, the target application does not need to be loaded on the entity screen, time consumption for loading the target application on the entity screen is avoided, and the starting efficiency of the application is improved.
Drawings
The technical solutions and advantages of the present application will be apparent from the following detailed description of specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an application starting method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a first scenario of an application starting method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a second scenario of an application starting method according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a third scenario of an application starting method according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an application starting apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that the terms "first" and "second", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An embodiment of the present application provides an application starting method, an application starting apparatus, a storage medium, and an electronic device, where an execution main body of the application starting method may be the application starting apparatus provided in the embodiment of the present application, or the electronic device integrated with the application starting apparatus, where the application starting apparatus may be implemented in a hardware or software manner. The electronic device may be a device which is equipped with a processor and has application starting capability, such as a smart phone, a tablet computer, a palm computer, a notebook computer, and the like.
Referring to fig. 1, fig. 1 is a schematic flowchart of an application starting method according to an embodiment of the present application, where the flowchart may include:
101. and determining the target application needing to be loaded.
The target application is an application which needs to be loaded in advance.
For example, assuming that the electronic device predicts that the user wants to use application a1, the electronic device may determine application a1 as the target application that needs to be loaded.
For another example, when the electronic device starts a corresponding application, such as a camera application, some applications may be cleaned up, and then when the application exits the applications, such as the camera application, the electronic device may determine the applications that are cleaned up when the applications are started, such as the camera application, as target applications that need to be loaded.
For another example, when the memory of the electronic device is insufficient, the electronic device may automatically clean some background applications, and the electronic device may determine the cleaned applications as target applications.
For another example, it is assumed that when the electronic device switches wifi of a connection due to a change of a location, the electronic device may determine an application corresponding to the current location as a target application. For example, the current location is an office, then the electronic device may determine some office applications as target applications.
102. And loading the target application through the virtual screen.
The virtual screen can be created by an electronic device with a function of creating the virtual screen. The virtual screen is a virtual component independent from 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, and the application interface of the target application is not displayed in the physical screen. The size of the virtual screen may be the same as the size of the physical screen. The physical screen is visible to a user, which is part of the electronic device. The electronic device can realize human-computer interaction, information display and the like through the entity screen.
For example, as shown in fig. 2, assuming that the target application is application a1, the electronic device loads application a1 through the virtual screen. Specifically, the electronic device loads resources required to be loaded when the application a1 runs through the virtual screen, such as application processes (including a main process, a service process, and the like) of the application a1, application start animations, an advertisement interface, an application initial interface, an application secondary interface, and the like.
103. And after the target application is loaded, switching the target application to the background of the entity screen.
For example, as shown in fig. 3, assuming that the target application is application a1, after application a1 is loaded, the electronic device switches application a1 to the background of the entity screen. That is, application a1 is taken as one of the background applications of the entity screen, and thus application a1 is normally managed by the background management module.
The background management module may include a clean-up module and a freeze module. When the memory is insufficient, the cleaning module will clean the background application, and then after the electronic device switches the application a1 to the background of the physical screen, the application a1 is also normally controlled by the cleaning module. And an application normally loaded on the physical screen is frozen by the freezing module after falling back to the background of the physical screen, then the application a1 is also normally controlled by the freezing module after the electronic device switches the application a1 to the background of the physical screen.
In this embodiment, when an application is loaded to a corresponding specified application interface, it is determined that the application is loaded completely. The specific application interface to which the application is loaded determines that the application loading is completed, and the setting can be carried out according to actual conditions. For example, an initial interface loaded to the application may be set to determine that the application loading is complete. The application interface loaded to the last time the application was closed (including background application cleaning and user active exit) may also be set to determine that the application loading is complete.
It is understood that the electronic device may also continue to load other target applications, such as the application a2, A3, a4, etc., through the virtual screen in the above manner, and switch the other target applications to the background of the physical screen after the other target applications are loaded.
104. And responding to a starting instruction aiming at the target application, and switching the target application from the background of the entity screen to the foreground of the entity screen.
The starting instruction for the target application may be triggered by a user, may be triggered by pulling up of another application, and may also be triggered by another manner, which is not limited specifically here.
For example, as shown in fig. 4, assuming that the target application is application a1, when the user clicks the application icon of application a1 displayed on the desktop of the electronic device, the electronic device receives a start instruction for application a 1. In response to the launch instruction for app a1, the electronic device may switch app a1 from the background of the entity screen to the foreground of the entity screen.
For another example, assuming that the target application is application a1, which can be pulled by application a2, when it is detected that application a2 pulls application a1, the electronic device receives a start instruction for application a 1. In response to the launch instruction for app a1, the electronic device may switch app a1 from the background of the entity screen to the foreground of the entity screen.
In the embodiment, the target application is loaded on the virtual screen in advance, and the target application is switched to the background of the entity screen after the target application is loaded, so that when a starting instruction for the target application is received, the target application is directly switched to the foreground of the entity screen from the background of the entity screen, the target application does not need to be loaded on the entity screen, time consumption for loading the target application on the entity screen is further avoided, and the starting efficiency of the application is improved.
In an optional embodiment, loading the target application through the virtual screen includes:
(1) creating a blank image;
(2) taking the blank image as a surface object of the virtual screen;
(3) the target application is loaded through the surface object.
A blank image (empty image) is an image having only a size and no content. Wherein the size of the blank image may be the same as the size of the virtual screen.
The first time the application is started, also called cold start, a start-up interface is used for the start-up animation. When the application is returned to a background, the screen capture of the last interface of the application is carried out, when the application is started by a user next time, the screen capture of the last interface is also called hot start, the screen capture of the last interface is used as a starting animation, and if the screen capture is not carried out, the screen flashing phenomenon can occur in the starting animation during the hot start.
In this embodiment, in order to avoid the black screen flashing phenomenon when the subsequent application is hot-started, the electronic device uses a blank image (empty image) as a surface object (surface) of the virtual screen, so that when the target application is loaded through the surface object, drawing a corresponding application interface of the target application (only if the surface exists on the screen, the corresponding interface of the application can be normally drawn on the screen, and only if the corresponding interface of the application is drawn on the screen, screen capture of the corresponding interface of the application can be subsequently obtained), and on the premise that the virtual screen is not visible, when the target application is switched to a background of the solid screen, screen capture of the last interface of the target application can be normally obtained, and the black screen phenomenon when the subsequent application is hot-started can be avoided.
In an optional embodiment, the application starting method further includes:
after the target application is loaded, acquiring an interface image of the target application;
displaying an interface image on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
It can be understood that, taking the target application as application a1 as an example, to avoid the phenomenon of flashing black screen, after application a1 is loaded, the electronic device performs screen capture on an application interface after application a1 is loaded (assuming that when application a1 is loaded to an initial interface, application a1 is loaded completely, and application a1 is loaded completely, the application interface is an initial interface), so as to obtain a corresponding interface image, and the electronic device switches application a1 to the background of the entity screen. When receiving a start instruction for the application A1, in response to the start instruction for the application A1, the electronic device switches the application A1 from the background of the entity screen to the foreground of the entity screen, and displays the interface image on the entity screen in the process of switching the application A1 from the background of the entity screen to the foreground of the entity screen, so that the phenomenon of black flashing is avoided.
In an optional embodiment, before determining the target application that needs to be loaded, the method further includes:
when the target application is cleaned, recording an application interface when the target application is cleaned;
loading a target application through a virtual screen, comprising:
loading an application interface through a virtual screen;
the application starting method further comprises the following steps:
and displaying an application interface on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
Considering that some applications may be cleaned up due to insufficient memory, but the applications may be used subsequently by the user, so as to bring a better use feeling to the user, when the applications are cleaned up, the electronic device may record the application interface when the applications are cleaned up, such as the last application interface before the applications are cleaned up, and when the applications are loaded next time, the application interface when the applications are cleaned up may be directly loaded.
For example, assuming that application a1 was switched to the background of the entity screen while application B1 was displayed and the cleaning module cleaned application a1, the electronic device may record application B1. When the application a1 is determined to be the target application, the electronic device may load the application interface B1 of the application a1 through the virtual screen, so that when receiving a start instruction for the application a1, the electronic device switches the application a1 from the background of the entity screen to the foreground of the entity screen in response to the start instruction, and displays the application interface B1 on the entity screen in the process of switching the application a1 from the background of the entity screen to the foreground of the entity screen. In other words, app a1 is switched from the background of the physical screen to the foreground of the physical screen, so that app interface B1 is displayed on the physical screen.
In an optional embodiment, after the target application is loaded, switching the target application to the background of the entity screen includes:
(1) after the target application is loaded, switching the target application to a background of the virtual screen;
(2) and switching the target application from the background of the virtual screen to the background of the entity screen.
In this embodiment, after the target application is loaded, the electronic device switches the target application to the background of the virtual screen first, and then switches the target application from the background of the virtual screen to the background of the physical screen.
In an optional embodiment, after the target application is loaded, switching the target application to the background of the virtual screen includes:
and 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.
In this embodiment, after the target application is loaded, the electronic device may load a preset interface through the virtual screen, so as to switch the target application to the background of the virtual screen. The preset interface can be preset in the electronic equipment by a user. For example, the preset interface may be a virtual desktop created by the user.
In an optional embodiment, the preset interface may also be an application interface of a certain preset application, and then, after the target application is loaded, the electronic device may load the preset interface of the preset application through the virtual screen, so as to switch the target application to the background of the virtual screen. The preset application can be constructed in advance by a user and is built in the electronic equipment. The preset application can only comprise a preset interface, and the preset interface can be an interface with only size and no content, so that the speed of loading the preset interface by the electronic equipment through the virtual screen can be increased, and the speed of switching the target application to the background of the virtual screen can be increased. The preset interface may have the same size as the virtual screen.
It can be understood that, assuming that the application interface of the application a1 is displayed on the screen, when the application interface of the application a2 is loaded through the screen, the electronic device will fall back the application a1 to the background of the screen, and therefore, the electronic device can also switch the application a1 to the background of the virtual screen in this way.
In an optional embodiment, before loading the target application through the virtual screen, the method further includes:
determining the loading time length of a target application;
after the target application is loaded on the virtual screen, the method further comprises the following steps:
and when the accumulated time for loading the target application reaches the loading time, determining that the target application is loaded completely.
And the accumulated duration of the loading target application is the time between the time of starting loading the target application and the current time. For example, assuming that the time for starting to load the target application is 20 minutes and 0 seconds at 10 months and 1 day of 2022 years, and the current time is 21 minutes and 0 seconds at 10 months and 1 day of 2022 years, the cumulative time period for loading the target application is 1 minute.
In this embodiment, different applications may be preloaded, the time duration required from the start of loading to the completion of loading of the different applications may be counted, and the loading time duration of the different applications may be set based on the time duration. The loading time length of a certain application can be greater than or equal to the time length from the start of loading to the completion of loading of the application. For example, assuming that the time required for the application a1 to complete from the start of loading is 10 seconds, the loading time for the application a1 may be 10 seconds, 11 seconds, 15 seconds, and so on.
For example, assuming that the target application is application a1 and the loading time of application a1 is 11 seconds, the electronic device determines that the loading of application a1 is completed when the cumulative time for loading application a1 reaches 11 seconds.
In an optional embodiment, in response to a start instruction for the target application, switching the target application from the background of the entity screen to the foreground of the entity screen includes:
(1) determining an available display window size of the entity screen in response to a launch instruction for the target application;
(2) and switching the target application from the background of the entity screen to the foreground of the entity screen according to the size of the available display window.
It will be appreciated that since some other objects need to be displayed on the physical screen, such as a status bar, a battery identifier, a signal identifier, a time, etc. are displayed in the status bar. And the status bar is not displayed on the virtual screen, so that even if the virtual screen and the physical screen are the same in size, the application window of the target application loaded on the virtual screen is not adapted to the physical screen, and then the electronic device can respond to a starting instruction for the target application to determine the size of the available display window of the physical screen, such as the size of the display window except the status bar, and then the electronic device adjusts the size of the application window of the target application according to the size of the available display window, so that the application window of the target application is adapted to the physical screen, and then switches the target application after the application window is adjusted from the background of the physical screen to the foreground of the physical screen.
In an optional embodiment, the application starting method further includes:
in the process of loading the target application through the virtual screen, stopping a prompt function of the target application;
after the target application is loaded and completed, the target application is switched to the background of the entity screen, the method further comprises the following steps:
enabling the prompt functionality of the target application.
Considering that the loading of the target application through the virtual screen is an invisible process, if corresponding prompts, such as a voice prompt, a notification prompt, and the like, are performed during the loading of the target application through the virtual screen, normal use of the electronic device by the user may be affected, and therefore, in this embodiment, during the loading of the target application through the virtual screen, the electronic device may disable the prompt function of the target application. In consideration of that the normal background application can also perform corresponding prompting, when the target application is switched to the background of the entity screen, so that the target application becomes one of the background applications of the entity screen, the electronic device can enable the prompting function of the target application, so that the normal prompting functions, such as notification of a notification bar, Toast prompting, and the like, can be realized.
In an optional embodiment, the application starting method further includes:
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.
In order to avoid the influence of the user rotating the physical screen on the loading of the target application, in the embodiment, in the process of loading the target application on the virtual screen, even if the screen rotation instruction is received, the electronic device still keeps loading the target application in the initial loading direction of the target application.
For example, assuming that the electronic device loads the target application in a first loading direction, wherein the first loading direction is kept corresponding to the vertical screen direction of the solid screen, and assuming that the user rotates the solid screen to make the solid screen display in a horizontal screen direction, at this time, the electronic device does not control the loading direction of the target application to correspond to the horizontal screen direction of the solid screen, if the electronic device does not load the target application in a second loading direction corresponding to the horizontal screen direction of the solid screen, but still loads the target application in the first loading direction.
In an optional embodiment, the application starting method further includes:
in the process of loading the target application through the virtual screen, if a starting instruction for the target application is received, the virtual screen is stopped from loading the target application, and the target application is loaded through the entity screen.
In this embodiment, in the process of loading the target application through the virtual screen, if the user starts the target application, the electronic device may stop loading the target application through the virtual screen, and cold start the target application through the physical screen, thereby avoiding repeatedly loading the target application.
Specifically, in 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 entity screen.
In an optional embodiment, determining a target application that needs to be loaded includes:
acquiring user operation information;
and determining the target application needing to be loaded according to the user operation information.
The user operation information comprises some information generated by the user operating the electronic equipment.
For example, assuming that the user operates to start the application a1, and to ensure the normal running of the application a1, the electronic device clears the background applications a2 and A3, and the user operates to exit the application a1 after using the application a1 for a while, all the information generated by this process may be used as the user operation information. And through the above operation information, the electronic device may determine that the applications a2 and A3 are cleaned up because the user operates the start application a1, and then, after the user operates to exit the application a1, the electronic device may determine the applications a2 and A3 as target applications that need to be loaded.
For another example, assuming that the user has started the application a1 at each of 6/month and 10/11/12/13/2022, all information generated by this process may be used as the user operation information. Through the operation information, the electronic device can determine that the user starts the application a1 every 10 hours, and then before 10 hours every day, the electronic device can determine the application a1 as a target application that needs to be loaded, so as to load the application a1 in advance, and further, when a start instruction for the application a1 is received, the application a1 can be started quickly.
In an optional embodiment, before loading the target application through the virtual screen, the method further includes:
a virtual screen is created.
It can be understood that the loading of the application is usually dependent on the 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.
It should be noted that the virtual screen may be created before the target application that needs to be loaded is determined, the virtual screen may be created while the target application that needs to be loaded is determined, or the virtual screen may be created after the target application that needs to be loaded is determined, which is not limited herein.
In an alternative 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.
In an optional embodiment, when there are multiple target applications, the electronic device may create multiple virtual screens, and load the corresponding target applications through the corresponding virtual screens, respectively. Wherein the number of virtual screens is less than the number of target applications.
For example, assuming that the target application includes applications a1, a2, and A3, the virtual screen includes virtual screens S1 and S2, the electronic device may sequentially load applications a1 and a2 through the virtual screen S1, and simultaneously load application A3 through the virtual screen S2. The electronic device may also load the application a1 and the application a2 through the virtual screens S1 and S2, respectively, and load the application A3 through the virtual screen S2 after one of the applications, for example, the application a2, is loaded first.
In an alternative embodiment, when there are multiple target applications, the electronic device may create a virtual screen and load each target application in turn through the virtual screen.
In an optional embodiment, after the target application is loaded and then switched to the background of the entity screen, the method further includes:
the virtual screen is removed.
It can be appreciated that the electronic device can remove the virtual screen after switching the target application to the background of the physical screen.
In some embodiments, the virtual screen may be removed after a target application is completely loaded and switched to the background of the physical screen, or the virtual screen may be removed when an application is not loaded on the virtual screen within a preset time period.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an application startup device according to an embodiment of the present application. The application startup device 200 includes: an application determination module 201, an application loading module 202, an application switching module 203, and an application starting module 204.
The application determining module 201 is configured to determine a target application that needs to be loaded.
And an application loading module 202, configured to load the target application through the virtual screen.
And the application switching module 203 is configured to switch the target application to a background of the entity screen after the target application is loaded.
An application starting module 204, configured to switch the target application from the background of the entity screen to the foreground of the entity screen in response to a starting instruction for the target application.
In an alternative embodiment, the application loading module 202 may be configured to: creating a blank image; taking the blank image as a surface object of the virtual screen; loading the target application through the surface object.
In an alternative embodiment, the application starting module 204 may be configured to: after the target application is loaded, acquiring an interface image of the target application; displaying the interface image on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
In an alternative embodiment, the application determining module 201 may be configured to: when the target application is cleaned, recording an application interface when the target application is cleaned;
an application loading module 202, which may be configured to: loading the application interface through a virtual screen;
an application launch module 204, which may be configured to: displaying the application interface on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
In an optional embodiment, the application switching module 203 may be configured to: after the target application is loaded, switching the target application to a background of the virtual screen; and switching the target application from the background of the virtual screen to the background of the entity screen.
In an optional embodiment, the application switching module 203 may be configured to: and 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.
In an alternative embodiment, the application loading module 202 may be configured to: determining the loading duration of the target application; and when the accumulated time for loading the target application reaches the loading time, determining that the target application is loaded completely.
In an alternative embodiment, the application starting module 204 may be configured to: determining an available display window size of the entity screen in response to a launch instruction for the target application; and switching the target application from the background of the entity screen to the foreground of the entity screen according to the size of the available display window.
In an alternative embodiment, the application loading module 202 may be configured to: in the process of loading the target application through the virtual screen, stopping a prompt function of the target application;
the application switching module 203 may be configured to: enabling a prompt function of the target application.
In an alternative embodiment, the application loading module 202 may be configured to: 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.
In an alternative embodiment, the application loading module 202 may be configured to: in the process of loading the target application through the virtual screen, if a starting instruction for the target application is received, stopping loading the target application through the virtual screen, and loading the target application through the entity screen.
In an alternative embodiment, the application determining module 201 may be configured to: acquiring user operation information; and determining the target application needing to be loaded according to the user operation information.
In an alternative embodiment, the application loading module 202 may be configured to: a virtual screen is created.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the application starting method provided in the embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is used to execute the application starting method provided in this embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 300 may comprise a processor 301, a memory 302, etc. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The processor 301 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 302 and calling the data stored in the memory 302, thereby performing overall monitoring of the electronic device.
The memory 302 may be used to store applications and data. The memory 302 stores applications containing executable code. The application programs may constitute various functional modules. The processor 301 executes various functional applications and data processing by running an application program stored in the memory 302.
In this embodiment, the processor 301 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 runs the application programs stored in the memory 302, thereby implementing the following processes:
determining a target application needing to be loaded;
loading the target application through a virtual screen;
after the target application is loaded, switching the target application to a background of an entity screen;
and responding to a starting instruction aiming at the target application, and switching the target application from the background of the entity screen to the foreground of the entity screen.
Referring to fig. 7, an electronic device 300 may include a processor 301, a memory 302, an input unit 303, an output unit 304, and the like.
The processor 301 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 302 and calling data stored in the memory 302, thereby integrally monitoring the electronic device.
The memory 302 may be used to store applications and data. The memory 302 stores applications containing executable code. The application programs may constitute various functional modules. The processor 301 executes various functional applications and data processing by running an application program stored in the memory 302.
The input unit 303 may be used to receive input numerals, character information, or user characteristic information, such as a fingerprint, and generate a keyboard, mouse, joystick, optical, or trackball signal input related to user setting and function control.
The output unit 304 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The output unit may include a display screen, and the display screen may include a display area.
In this embodiment, the processor 301 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 runs the application programs stored in the memory 302, thereby implementing the following processes:
determining a target application needing to be loaded;
loading the target application through a virtual screen;
after the target application is loaded, switching the target application to a background of an entity screen;
and responding to a starting instruction aiming at the target application, and switching the target application from the background of the entity screen to the foreground of the entity screen.
In an alternative embodiment, when the processor 301 executes the loading of the target application through the virtual screen, it may execute: creating a blank image; taking the blank image as a surface object of the virtual screen; loading the target application through the surface object.
In an alternative embodiment, the processor 301 may further perform: after the target application is loaded, acquiring an interface image of the target application; displaying the interface image on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
In an optional embodiment, before the processor 301 executes the target application that needs to be loaded, it may further execute: when the target application is cleaned, recording an application interface when the target application is cleaned; when the processor 301 executes the loading of the target application through the virtual screen, it may execute: loading the application interface through a virtual screen; processor 301 may also perform: displaying the application interface on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
In an optional embodiment, when the processor 301 executes the switching of the target application to the background of the entity screen after the target application is loaded, it may execute: after the target application is loaded, switching the target application to a background of the virtual screen; and switching the target application from the background of the virtual screen to the background of the entity screen.
In an optional embodiment, when the processor 301 performs the switching of the target application to the background of the virtual screen after the target application is loaded, the following steps may be performed: and 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.
In an optional embodiment, before the processor 301 executes the loading of the target application through the virtual screen, it may further execute: determining the loading duration of the target application; after the processor 301 executes the loading of the target application through the virtual screen, the following steps may be further executed: and when the accumulated time for loading the target application reaches the loading time, determining that the target application is loaded completely.
In an optional embodiment, when the processor 301 executes the target application to switch from the background of the entity screen to the foreground of the entity screen in response to the start instruction for the target application, it may execute: determining an available display window size of the entity screen in response to a launch instruction for the target application; and switching the target application from the background of the entity screen to the foreground of the entity screen according to the size of the available display window.
In an alternative embodiment, the processor 301 may further perform: in the process of loading the target application through the virtual screen, stopping a prompt function of the target application; after the processor 301 executes the step of switching the target application to the background of the entity screen after the target application is loaded, the following may be further executed: enabling a prompt function of the target application.
In an alternative embodiment, the processor 301 may further perform: 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.
In an alternative embodiment, the processor 301 may further perform: in the process of loading the target application through the virtual screen, if a starting instruction for the target application is received, stopping loading the target application through the virtual screen, and loading the target application through the entity screen.
In an optional embodiment, when the processor 301 executes the target application that needs to be loaded, it may perform: acquiring user operation information; and determining the target application needing to be loaded according to the user operation information.
In an optional embodiment, before the processor 301 executes the loading of the target application on the virtual screen, it may further execute: a virtual screen is created.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the application starting method, and are not described herein again.
The application starting device provided in the embodiment of the present application and the application starting method in the above embodiments belong to the same concept, and any method provided in the embodiment of the application starting method can be run on the application starting device, and the specific implementation process thereof is described in detail in the embodiment of the application starting method, and is not described here again.
It should be noted that, for the application starting method in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the application starting method in the embodiment of the present application may be implemented by controlling related hardware through a computer program, the computer program may be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and the process of executing the computer program may include the process of the embodiment of the application starting method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the application starting device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The application starting method, the application starting device, the storage medium and the electronic device provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (16)

1. An application startup method, comprising:
determining a target application needing to be loaded;
loading the target application through a virtual screen;
after the target application is loaded, switching the target application to a background of an entity screen;
and responding to a starting instruction aiming at the target application, and switching the target application from the background of the entity screen to the foreground of the entity screen.
2. The application starting method according to claim 1, wherein the loading the target application through the virtual screen comprises:
creating a blank image;
taking the blank image as a surface object of the virtual screen;
loading the target application through the surface object.
3. The application launching method according to claim 2, characterized in that the method further comprises:
after the target application is loaded, acquiring an interface image of the target application;
displaying the interface image on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
4. The application starting method according to claim 1, wherein before determining the target application that needs to be loaded, the method further comprises:
when the target application is cleaned, recording an application interface when the target application is cleaned;
the loading the target application through the virtual screen comprises the following steps:
loading the application interface through a virtual screen;
the method further comprises the following steps:
displaying the application interface on the entity screen in the process of switching the target application from the background of the entity screen to the foreground of the entity screen.
5. The application starting method according to claim 1, wherein the switching the target application to the background of the entity screen after the target application is loaded comprises:
after the target application is loaded, switching the target application to a background of the virtual screen;
and switching the target application from the background of the virtual screen to the background of the entity screen.
6. The application starting method according to claim 5, wherein the switching the target application to the background of the virtual screen after the target application is loaded comprises:
and 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.
7. The application starting method according to claim 1, wherein before the loading the target application through the virtual screen, the method further comprises:
determining the loading duration of the target application;
after the target application is loaded on the virtual screen, the method further comprises the following steps:
and when the accumulated time for loading the target application reaches the loading time, determining that the target application is loaded completely.
8. The application starting method according to claim 1, wherein the switching the target application from the background of the entity screen to the foreground of the entity screen in response to the starting instruction for the target application comprises:
determining an available display window size of the entity screen in response to a launch instruction for the target application;
and switching the target application from the background of the entity screen to the foreground of the entity screen according to the size of the available display window.
9. The application launching method according to claim 1, characterized in that the method further comprises:
in the process of loading the target application through the virtual screen, stopping a prompt function of the target application;
after the target application is switched to the background of the entity screen after the target application is loaded, the method further includes:
enabling a prompt function of the target application.
10. The application launching 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.
11. The application launching method according to claim 1, characterized in that the method further comprises:
in the process of loading the target application through the virtual screen, if a starting instruction for the target application is received, stopping loading the target application through the virtual screen, and loading the target application through the entity screen.
12. The application starting method according to claim 1, wherein the determining the target application which needs to be loaded comprises:
acquiring user operation information;
and determining the target application needing to be loaded according to the user operation information.
13. The application starting method according to claim 1, wherein before the target application is loaded on the virtual screen, the method further comprises:
a virtual screen is created.
14. An application startup device, characterized by comprising:
the application determining module is used for determining a target application which needs to be loaded;
the application loading module is used for loading the target application through a virtual screen;
the application switching module is used for switching the target application to a background of an entity screen after the target application is loaded;
and the application starting module is used for responding to a starting instruction aiming at the target application and switching the target application from the background of the entity screen to the foreground of the entity screen.
15. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the application launching method of any one of claims 1 to 13.
16. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the application launching method according to any one of claims 1 to 13 by calling the computer program stored in the memory.
CN202210751999.8A 2022-06-28 2022-06-28 Application starting method and device, storage medium and electronic equipment Pending CN115033307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210751999.8A CN115033307A (en) 2022-06-28 2022-06-28 Application starting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210751999.8A CN115033307A (en) 2022-06-28 2022-06-28 Application starting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115033307A true CN115033307A (en) 2022-09-09

Family

ID=83126610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210751999.8A Pending CN115033307A (en) 2022-06-28 2022-06-28 Application starting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115033307A (en)

Similar Documents

Publication Publication Date Title
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN107766128B (en) Method and device for starting application
CN107783830B (en) Multitask management method and terminal equipment
US10871985B2 (en) Displaying media files between changes in states of an application client
CN108595224B (en) Application program prompting method and device, storage medium and terminal
CN108958830B (en) Application program starting method and device, storage medium and terminal
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN108132735B (en) Terminal and application control method
EP2503455A2 (en) Method for customizing user interface and electronic device thereof
CN115576645B (en) Virtual processor scheduling method and device, storage medium and electronic equipment
CN109271208A (en) Parameter setting method, device, terminal and storage medium
CN113051493A (en) Application program display method and device, storage medium and terminal
CN111597009B (en) Application program display method and device and terminal equipment
CN108762838B (en) Application program preloading method and device, storage medium and terminal
CN108549575B (en) Processing method and device for quitting split screen, storage medium and electronic equipment
WO2024007760A1 (en) Interface display method and apparatus, electronic device, and storage medium
CN111880701B (en) Page switching method and device and electronic equipment
CN114116040A (en) Method for accelerating application starting, electronic equipment and computer storage medium
CN115033307A (en) Application starting method and device, storage medium and electronic equipment
CN112256354B (en) Application starting method and device, storage medium and electronic equipment
CN113568748A (en) Application process processing method and device, storage medium and electronic equipment
CN105468480B (en) Startup management method and device
CN111857871A (en) Application starting method, terminal and computer storage medium
CN113032290A (en) Flash memory configuration method and device, electronic equipment and storage medium
CN111880912A (en) Method and device for controlling electronic equipment and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination