Application starting method and device, electronic equipment, storage medium and program product
By immediately executing the icon animation when the user triggers the application icon, and continuing to execute the application launch page and interface animation after receiving the application pre-launch completion instruction from the system service, the problem of excessively long application startup time on electronic devices is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202511023846.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2025-11-07
AI Technical Summary
When electronic devices launch applications, users experience a poor user experience due to excessively long response times, especially on low-end devices or under high load.
By immediately executing the icon animation when the user triggers the application icon, and continuing to execute the application launch page animation and interface animation after receiving the application pre-launch completion instruction from the system service on the system desktop, the application launch page animation and interface animation are improved.
It shortens the time users wait for system responses, improves application startup speed and user experience.
Smart Images

Figure CN120909672A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electronic devices, and more particularly, to an application starting method and device, an electronic device, a storage medium, and a program product. BACKGROUND
[0002] With the development of science and technology, electronic devices are increasingly widely used and have more and more functions, and have become one of the necessities in people's daily life. At present, electronic devices can be installed with application programs, and accordingly, the desktop of the electronic device can display corresponding application icons, and a user can start an application program by touching an application icon. However, the electronic device cannot start the application program immediately after the user touches the application icon, and the application starting time is relatively long, which leads to a long waiting time for the user to respond and a poor user experience. SUMMARY
[0003] In view of the above problems, the present application provides an application starting method and device, an electronic device, a storage medium, and a program product to solve the above problems.
[0004] In a first aspect, an application starting method is provided, and the method comprises: displaying a desktop, wherein the desktop comprises an application icon; in a case where a touch operation acting on the application icon is detected, executing an icon animation through a system desktop, and sending an application starting instruction to a system service through the system desktop to instruct the system service to execute application pre-starting based on the application starting instruction; in a case where the icon animation is executed to a specified progress and an application pre-starting completion instruction fed back by the system service is received through the system desktop, extracting a first application starting page animation and an application interface animation from the application pre-starting completion instruction through the system desktop; and executing the first application starting page animation and the application interface animation through the system desktop.
[0005] In a second aspect, an application starting device is provided, and the device comprises: a desktop display module configured to display a desktop, wherein the desktop comprises an application icon; an icon animation execution module configured to, in a case where a touch operation acting on the application icon is detected, execute an icon animation through a system desktop, and send an application starting instruction to a system service through the system desktop to instruct the system service to execute application pre-starting based on the application starting instruction; an application animation extraction module configured to, in a case where the icon animation is executed to a specified progress and an application pre-starting completion instruction fed back by the system service is received through the system desktop, extract a first application starting page animation and an application interface animation from the application pre-starting completion instruction through the system desktop; and an application animation execution module configured to execute the first application starting page animation and the application interface animation through the system desktop.
[0006] In a third aspect, an electronic device is provided, including a memory and a processor, the memory is coupled to the processor, and the memory stores instructions, when the instructions are executed by the processor, the processor executes the method described above.
[0007] In a fourth aspect, a computer readable storage medium is provided, the computer readable storage medium stores program codes, the program codes can be invoked by a processor to execute the method described above.
[0008] In a fifth aspect, a computer program product is provided, the computer program product includes a computer program, when the computer program is executed by a processor, the method described above is implemented.
[0009] The application embodiment provides an application starting method and device, an electronic device, a storage medium and a program product. A desktop including an application icon is displayed. In a case where a touch operation acting on the application icon is detected, an icon animation is executed through a system desktop, and an application starting instruction is sent to a system service through the system desktop to instruct the system service to execute application pre-starting based on the application starting instruction. In a case where the icon animation is executed to a specified progress, and an application pre-starting completion instruction fed back by the system service is received through the system desktop, a first application starting page animation and an application interface animation are extracted from the application pre-starting completion instruction through the system desktop, and the first application starting page animation and the application interface animation are executed through the system desktop. Thus, the icon animation is executed immediately when the user triggers the application icon of the desktop, and after the application pre-starting completion instruction of the system service is received through the system desktop, the running progress of the icon animation continues to execute the application starting page animation and the interface animation. The application starting speed is improved, and the time length for the user to wait for the system response is shortened. BRIEF DESCRIPTION OF DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0011] Figure 1 A flowchart of an application starting method provided by an embodiment of the present application is shown;
[0012] Figure 2 A flowchart of an application starting method provided by an embodiment of the present application is shown;
[0013] Figure 3An interaction diagram of the application starting method provided by an embodiment of the present application is shown;
[0014] Figure 4 A flow diagram of the application starting method provided by an embodiment of the present application is shown;
[0015] Figure 5 An interaction diagram of the application starting method provided by an embodiment of the present application is shown;
[0016] Figure 6 An interaction diagram of the application starting method provided by an embodiment of the present application is shown;
[0017] Figure 7 A flow diagram of the application starting method provided by an embodiment of the present application is shown; Figure 4 A flow diagram of the step S350 of the application starting method is shown;
[0018] Figure 8 A flow diagram of the application starting method provided by an embodiment of the present application is shown;
[0019] Figure 9 A flow diagram of the application starting method provided by an embodiment of the present application is shown;
[0020] Figure 10 A flow diagram of the application starting method provided by an embodiment of the present application is shown;
[0021] Figure 11 An interaction diagram of the application starting method provided by an embodiment of the present application is shown;
[0022] Figure 12 An interaction diagram of the application starting method provided by an embodiment of the present application is shown;
[0023] Figure 13 A module block diagram of the application starting apparatus provided by an embodiment of the present application is shown;
[0024] Figure 14 A block diagram of an electronic device for executing the application starting method according to an embodiment of the present application is shown;
[0025] Figure 15 A storage unit for storing or carrying program codes for implementing the application starting method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to make the personnel in the technical field better understand the present application scheme, the technical scheme in the present application embodiment will be described clearly and completely below by combining the drawings in the present application embodiment.
[0027] Currently, an electronic device can be installed with an application program, accordingly, a desktop of the electronic device can display a corresponding application icon, and a user can start the application program by touching the application icon. Wherein, after the user touches the application icon displayed on the desktop, the system desktop (Launcher) of the electronic device sends an application starting instruction to the system service (SystemServer) of the electronic device, after the system service receives the application starting instruction, it will first initialize a layer (StartingSurface), and fill the starting screenshot of the application into the layer, and then execute the application pre-starting and send the instruction to the system desktop. After the system desktop receives the application pre-starting completion instruction, it starts to execute the application starting animation (the application starting animation is divided into three parts: icon animation, application starting page animation, and application interface animation), the application starting animation process is as follows: first, the icon animation is executed, after the icon animation runs to a certain progress, the application starting page animation and the application interface animation are executed.
[0028] Therefore, after the user touches the application icon, the application starting animation cannot be seen immediately after the system service application pre-starting is completed, and the waiting time may be longer when the electronic device is in high load or on a low-end machine, so that the user needs to wait for a period of time to see the application starting animation, and the user's visual experience is poor.
[0029] To solve the above problems, the inventors have found, through long-term research, and proposed the application starting method, device, electronic device, storage medium and program product provided by the embodiments of the present application, which immediately executes the icon animation when the user triggers the application icon of the desktop, and then executes the application starting page animation and the interface animation according to the running progress of the icon animation after the system desktop receives the application pre-starting completion instruction of the system service, so as to improve the application starting speed and shorten the user's waiting time for system response. Wherein, the specific application starting method is described in detail in the subsequent embodiments.
[0030] The following will explain the terms that can be used in the application starting method provided by the embodiments of the present application:
[0031] Launcher: system desktop of the electronic device;
[0032] SystemServer: system service of the electronic device, which provides various services (including but not limited to application starting, exiting, etc.) to the upper layer application;
[0033] StartingSurface: a layer filled with the application starting page created by the system service when starting the application;
[0034] AppThumbSurface: An application startup page filled with a layer created by the system desktop when the application starts.
[0035] Please refer to Figure 1 , Figure 1 A flowchart of an application startup method provided by an embodiment of the present application is shown. The method is used to execute an icon animation as soon as the user triggers an application icon on the desktop, and then continue the running progress of the icon animation to execute an application startup page animation and an interface animation after the system desktop receives an application pre-startup completion instruction from a system service, so as to improve the application startup speed and shorten the time for the user to wait for the system response. In a specific embodiment, the application startup method is applied to an application startup device 200 as shown in Figure 13 and an electronic device 100 configured with the application startup device 200 (as shown in Figure 14 ). In the following, the specific process of the embodiment will be described by taking the electronic device as an example. It can be understood that the electronic device to which the embodiment is applied can include a smart phone, a tablet computer, a car machine device, a wearable device, etc., which are not limited herein. In the following, the application startup method will be described in detail with reference to the flowchart shown in Figure 1 . The application startup method can specifically include the following steps:
[0036] Step S110: Display a desktop, wherein the desktop includes an application icon.
[0037] In the embodiment, the electronic device can display a desktop. Optionally, the desktop can display an application icon, can display a folder, can display a weather component, can display a time component, can display a calendar component, etc., which are not limited herein.
[0038] In some embodiments, when the electronic device is in a bright screen state, the interface displayed by the electronic device can be detected, and it is determined whether the interface displayed by the electronic device is a desktop, and the subsequent steps are executed when it is determined that the interface displayed by the electronic device is a desktop. The interface displayed by the electronic device can include a lock screen interface, a screen-off interface, a desktop, an application interface, etc., which are not limited herein.
[0039] The lock screen interface can be understood as an interface displayed by the electronic device before it is unlocked, aiming to protect the security and privacy of the electronic device. When the electronic device displays the lock screen interface, the user needs to input a password, pattern, fingerprint, or other identity verification methods to enter the desktop or application page. Of course, under the lock screen interface, the electronic device can also display basic information such as time, date, notifications, weather, etc., to facilitate the user to view without unlocking the electronic device. In addition, under the lock screen interface, the electronic device can also allow the user to personalize the lock screen interface, such as changing the background picture, adding widgets, etc., to meet the aesthetic and use needs of different users.
[0040] The screen-off interface can be understood as an interface displayed by the electronic device when the touch screen is turned off but some functions are still active. Under the screen-off interface, the electronic device allows the user to view time, date, notifications, etc. without lighting up the entire screen, so that the user can quickly view important information such as time, date, and notifications without fully waking up the electronic device, and significantly reduce the power consumption of the electronic device by lighting up only a small part of the touch screen. In addition, when the screen-off interface is displayed, the electronic device allows the user to personalize the style and content of the screen-off display, such as selecting different clock styles, adding pictures or animations, etc.
[0041] The desktop can be understood as the main interface presented by the electronic device after unlocking, which is the core area for users to perform various operations and application management. Users can install, uninstall, move, and arrange application icons on the desktop to quickly launch and manage applications. In addition, users can personalize the desktop according to their own preferences and needs, such as changing the background picture, adjusting the icon size, adding widgets, etc. In addition, the desktop usually provides shortcuts for file management and access, making it easy for users to view and manage files and data on the device.
[0042] The application interface can be understood as a page of an application presented by the electronic device after unlocking, which usually refers to the specific interface in a software or application that users interact with. These pages are an important part of software functionality, used to display information, collect user input, provide navigation, and perform various operations requested by users. The design of application pages directly affects user experience and software usability.
[0043] In some embodiments, the electronic device can display the desktop upon receiving the input target voice information, upon detecting the target touch operation acting on the electronic device, upon detecting the target lifting operation acting on the electronic device, upon detecting the target shaking operation acting on the electronic device, etc., without limitation.
[0044] In some embodiments, the application icon can be directly displayed on the desktop of the electronic device, or a folder can be displayed on the desktop of the electronic device, and the application icon can be displayed in the folder, etc., which are not limited herein.
[0045] Optionally, the number of application icons included in the desktop can be one or more, which are not limited herein.
[0046] Step S120: in the case that the touch operation acting on the application icon is detected, performing an icon animation through the system desktop, and sending an application starting instruction to a system service through the system desktop to instruct the system service to perform application pre-starting based on the application starting instruction.
[0047] In the present embodiment, during the process of displaying the desktop, the touch operation acting on the application icon can be detected. In the case that the touch operation acting on the application icon is detected, it can be determined that the user triggers to start the application program to which the application icon belongs, and thus an icon animation can be performed through the system desktop (Launcher) of the electronic device, and an application starting instruction can be sent to the system service of the electronic device through the system desktop to instruct the system service to perform application pre-starting for the application program to which the application icon belongs based on the application starting instruction. Further, the icon animation can be performed immediately when the user touches the application icon, so that the user can immediately see the application starting, and the application starting experience of the user is improved.
[0048] In some embodiments, during the process of displaying the desktop, the touch operation acting on the application icon can be detected in real time, the touch operation acting on the application icon can be detected at a preset time interval, the touch operation acting on the application icon can be detected at a preset time point, the touch operation acting on the application icon can be detected according to other preset conditions, etc., which are not limited herein.
[0049] In some embodiments, the touch operation acting on the application icon can include a click operation acting on the application icon, such as a single-finger click operation acting on the application icon, a multi-finger click operation acting on the application icon, a single-time click operation acting on the application icon, a continuous multi-time click operation acting on the application icon, etc.; a pressing operation acting on the application icon, such as a single-finger pressing operation acting on the application icon, a multi-finger pressing operation acting on the application icon, a pressing operation acting on the application icon with a pressing force reaching a force threshold, a pressing operation acting on the application icon with a pressing area reaching an area threshold, etc.; a sliding operation acting on the application icon, such as a single-finger sliding operation acting on the application icon, a multi-finger sliding operation acting on the application icon, a sliding operation acting on the application icon along a preset trajectory, etc., which are not limited herein.
[0050] In some embodiments, since the application icon belongs to the element managed by the system desktop, the resources required for the icon animation (such as scaling, displacement, transparency change, and other parameter settings) can be pre-stored in the system desktop process, without relying on the initialization operation of the system service or the application process, so that the system desktop can directly call the relevant resources to start and execute the icon animation. Among them, the icon animation runs according to the preset process (such as the effect of starting from the original position, zooming in, slightly bouncing, or gradient), and the system desktop can track the running progress of the icon animation in real time (such as the time length of execution, the key frame completed, etc.), which is not limited here.
[0051] In some embodiments, in the case of detecting a touch operation acting on the application icon, the system desktop can first identify the application program to which the application icon corresponding to the touch operation belongs (for example, by determining the application package name and other information associated with the application icon). At this time, the system desktop not only starts the icon animation immediately, but also synchronously generates an instruction to start the application program to which the application icon belongs (application start instruction). The application start instruction contains the core information required for starting, such as the package name and process name of the application program to which the application icon belongs, which is used by the system service to accurately locate and start the corresponding application program.
[0052] Optionally, the system desktop can send the generated application start instruction to the system service through the inter-process communication (IPC) mechanism inside the system. This communication can be realized by relying on the Binder mechanism, that is, the system desktop acts as a client and transmits the application start instruction data to the system service by calling the relevant service interface (application start-related service interface) provided by the system service.
[0053] Optionally, after receiving the application start instruction sent by the system desktop, the system service can perform preliminary verification (such as verifying whether the application program exists and whether it has the permission to start). After the verification passes, the system service can enter the pre-processing stage of application start, including initializing the first layer and performing application pre-start operation, and can subsequently feed back the application pre-start completion instruction (containing application start page animation and application interface animation parameters) to the system desktop to promote the continuation of the animation process.
[0054] Step S130: In the case where the icon animation is executed to a specified progress and the application pre-start completion instruction fed back by the system service is received by the system desktop, the first application start page animation and the application interface animation are extracted from the application pre-start completion instruction by the system desktop.
[0055] In some embodiments, the electronic device can be pre-configured and stored with a specified progress, which is used as a basis for judging the execution progress of the icon animation. Therefore, in this embodiment, during the execution of the icon animation on the system desktop, the execution progress of the icon animation can be detected, and the execution progress can be compared with the specified progress to determine whether the execution progress reaches the specified progress. If the execution progress reaches the specified progress, it can be determined that the icon animation is executed to the specified progress; if the execution progress does not reach the specified progress, it can be determined that the icon animation is not executed to the specified progress.
[0056] As an implementable way, the specified progress can include a critical node of visual transition. For example, the icon animation is executed to a stage of "the icon is scaled to the maximum size and starts to fade slightly" (for example, 60%-70% of the total duration of the icon animation). At this time, the core visual feedback of the icon animation (such as zooming after clicking, bouncing effect) has been basically completed, which is a suitable time for transition from "icon animation" to "launcher related animation".
[0057] As another implementable way, the specified progress can include a preset time point on the time axis. For example, assuming that the total duration of the icon animation is 200 ms, the specified progress can be set at a time point of 100 ms-150 ms of the animation execution. At this time, the icon animation has been performed for more than half, which can not only ensure that the user feels instant feedback, but also reserve enough connection time for subsequent animations to avoid visual discontinuity.
[0058] In some embodiments, when the system desktop sends the application launch instruction to the system service, it can detect whether the application pre-launch completion instruction fed back by the system service is received. If it is detected that the application pre-launch completion instruction fed back by the system service is received, it can be considered that the system service has completed the application pre-launch, and has fed back the application launch page animation and the application interface animation, so that the system desktop can normally obtain and execute the application launch page animation and the application interface animation. If it is detected that the application pre-launch completion instruction fed back by the system service is not received, it can be considered that the system service has not completed the application pre-launch, and the system service has not fed back the application launch page animation and the application interface animation, so that the system desktop cannot obtain and execute the application launch page animation and the application interface animation.
[0059] In some embodiments, the system desktop can detect whether the application pre-launch completion instruction fed back by the system service is received at the same time as detecting whether the execution progress of the icon animation reaches the specified progress; the system desktop can detect whether the application pre-launch completion instruction fed back by the system service is received after detecting that the execution progress of the icon animation reaches the specified progress; the system desktop can detect whether the execution progress of the icon animation reaches the specified progress after detecting that the application pre-launch completion instruction fed back by the system service is received, and the like, which are not limited herein.
[0060] In the embodiment, in the case that the icon animation is executed to a specified progress and the application pre-start completion instruction is received from the system service through the system desktop, it can be considered that the icon animation is executed and the application start page animation and the application interface animation can be normally continued to be executed, and the first application start page animation and the application interface animation can be extracted from the application pre-start completion instruction through the system desktop.
[0061] In some embodiments, after the system service completes the pre-start operation of the application (including initializing the layer filled with the application start page animation, loading the application interface related resources, etc.), an instruction of "application pre-start completion" is sent to the system desktop. The parameters of the instruction include the identification or reference information of the core data related to the start, including the first application start page animation (the layer created by the system service and filled with the application start page) and the application interface animation (the application initial interface resource to be displayed). The system desktop as the receiver can obtain the corresponding layer object and the resource handle (or related reference) of the application interface through the analysis of the specific field in the parameters, so as to determine the visual elements to be displayed subsequently, that is, the first application start page animation and the application interface animation. Optionally, after the system desktop obtains the first application start page animation and the application interface animation, the system desktop can associate the two elements with the icon animation being executed, so as to ensure that the subsequent animation can be seamlessly connected based on the progress of the previous animation, maintain the visual continuity, and finally complete the smooth transition from the start animation to the actual application interface.
[0062] Step S140: executing the first application start page animation and the application interface animation through the system desktop.
[0063] In the embodiment, in the case that the first application start page animation and the application interface animation are extracted from the application pre-start completion instruction through the system desktop, the system desktop can execute the first application start page animation and the application interface animation. That is, the execution of the first application start page animation and the application interface animation can be continued based on the execution progress of the icon animation, so as to ensure the continuity and coherence of the application start animation.
[0064] In some embodiments, the system desktop can call the system layer management interface to load the first application start page animation into the current display level, and the position and size of the first application start page animation are matched with the end position of the previous icon animation, so as to ensure the visual continuity. Then, the application start page animation effect (such as scaling, fading, displacement, etc.) is executed, and the core of the animation is to gradually transition from the end state of the icon animation to the full-screen display state of the application start page, so as to simulate the visual effect of the start page "expanding".
[0065] In some embodiments, while the first application startup page animation is being executed, the system desktop can start loading application interface resources and associating them with the first application startup page animation. Through layer transparency gradient, content replacement, and other effects, the application interface gradually appears from an invisible state, while the first application startup page animation gradually disappears, and finally completes the smooth transition from the "startup page" to the "actual application interface". After the animation ends, the application interface is fully displayed, and the startup process is completed.
[0066] The application startup method provided by an embodiment of the present application displays a desktop including an application icon, executes an icon animation through the system desktop in the case of detecting a touch operation acting on the application icon, and sends an application startup instruction to a system service through the system desktop to instruct the system service to execute application pre-startup based on the application startup instruction. In the case of executing the icon animation to a specified progress and receiving an application pre-startup completion instruction fed back by the system service through the system desktop, the system desktop extracts a first application startup page animation and an application interface animation from the application pre-startup completion instruction, and executes the first application startup page animation and the application interface animation through the system desktop. Thus, the icon animation is executed immediately when the user triggers the application icon of the desktop, and after the system desktop receives the application pre-startup completion instruction of the system service, the running progress of the icon animation continues to execute the application startup page animation and the interface animation, which can improve the application startup speed and shorten the length of time for which the user waits for the system response.
[0067] Please refer to Figure 2 , Figure 2 A flowchart of an application startup method provided by an embodiment of the present application is shown. The following will be a detailed description of the flowchart shown in Figure 2 The application startup method can specifically include the following steps:
[0068] Step S210: Display a desktop, wherein the desktop includes an application icon.
[0069] Step S220: In the case of detecting a touch operation acting on the application icon, execute an icon animation through the system desktop, and send an application startup instruction to a system service through the system desktop to instruct the system service to execute application pre-startup based on the application startup instruction.
[0070] For specific descriptions of steps S210-S220, please refer to steps S110-S120, which will not be described here.
[0071] Step S230: Create a first layer through the system service, and fill an application startup screenshot corresponding to an application program to which the application icon belongs into the first layer to obtain the first application startup page animation.
[0072] In this embodiment, the system service can create a layer filled with the application startup page as the first layer in response to the application startup instruction sent by the system desktop, and fill the application startup screenshot corresponding to the application program to which the application icon belongs into the first layer to obtain the first application startup page animation.
[0073] In some embodiments, the system service can call the interface of the underlying graphics system (such as SurfaceFlinger) to create a temporary first layer object (i.e. the underlying carrier of StartingSurface) in response to the application startup instruction sent by the system desktop. The first layer is assigned a specific size (consistent with the application startup page, usually the screen size) and a level (to ensure that it is above the system desktop interface and below the application interface, so as not to be blocked). At this time, if the application program to which the application icon belongs has a preset startup page (such as Splash Screen), the system service can directly read the resource file (picture or layout file) of the preset startup page. If the application program to which the application icon belongs has no preset startup page, the system service can call the historical startup screenshot of the application program to which the application icon belongs (for example, the first screen screenshot of the application program to which the application icon belongs after the last normal startup). If the application program to which the application icon belongs is a first-time startup application program, the system service can use the system default startup page (such as a blank page or a brand default picture). The system service draws the obtained application startup screenshot into the created first layer through the graphics rendering interface (such as Canvas), ensuring that the screenshot fills the entire first layer (automatically adapting the size or scaling proportionally). At this time, the first layer has become a "visual layer for displaying the application startup page animation", that is, the first application startup page animation is obtained.
[0074] Step S240: performing the application pre-startup corresponding to the application program to which the application icon belongs through the system service.
[0075] In this embodiment, the system service can perform the application pre-startup corresponding to the application program to which the application icon belongs in response to the first application startup page animation.
[0076] In some embodiments, the system service performing the application pre-launch corresponding to the application program to which the application icon belongs can include triggering initialization preparation of an application process, for example, checking whether the application program to which the application icon belongs has been running in the background, if the application program to which the application icon belongs has been running, no new process is needed and the application program is directly woken up, if the application program to which the application icon belongs has not been running, a process resource (such as memory, CPU scheduling priority) is requested from the system, initialization of a basic system service connection required by the application (such as PackageManager obtaining application information, ActivityManager managing a page stack) is performed, a core configuration file (such as AndroidManifest.xml) of the application program to which the application icon belongs is loaded, information of a start page (Launcher Activity) is confirmed, legality of application signature, permission and the like is checked, it is ensured that the start request conforms to system safety rules, part of basic resources (such as an application icon, a theme style) are preloaded, time consumption of subsequent interface display is reduced, and the like, without limitation.
[0077] Step S250: in the case where the application pre-launch is completed, the system service generates and feeds back the application pre-launch completion instruction to the system desktop.
[0078] In the embodiment, the service system can detect whether the application pre-launch is completed in the process of performing the application pre-launch corresponding to the application program to which the application icon belongs. In the case where the application pre-launch is detected to be completed, an application pre-launch completion instruction is generated and the system service feeds back the application pre-launch completion instruction to the system desktop, in the case where the application pre-launch is detected to be not completed, the application pre-launch corresponding to the application program to which the application icon belongs is continuously performed, until the case where the application pre-launch is detected to be completed, then an application pre-launch completion instruction is generated and the system service feeds back the application pre-launch completion instruction to the system desktop.
[0079] In some embodiments, after confirming that the application pre-launch is completed, the system service can generate an application pre-launch completion instruction, the application pre-launch completion instruction containing a key parameter, reference information (such as layer identification, state data and the like) of a first application start page animation, and basic information (used for subsequent display of an application actual interface) of an application interface animation. These parameters are core bases for the system desktop to subsequently perform the first application start page animation and the application interface animation.
[0080] In some embodiments, the system service sends the generated application pre-launch completion instruction to the system desktop through a system inter-process communication mechanism (such as Binder, a common inter-process communication mechanism in the Android system), to realize information synchronization between the system service and the system desktop, to inform the system desktop that the front preparation of the application start has been completed and the subsequent animation can be continuously performed.
[0081] Step S260: In the case that the icon animation is executed to a specified progress and the application pre-start completion instruction fed back by the system service is received by the system desktop, the first application start page animation and the application interface animation are extracted from the application pre-start completion instruction by the system desktop.
[0082] Step S270: The first application start page animation and the application interface animation are executed by the system desktop.
[0083] The specific description of steps S260-S270 can be referred to steps S130-S140, which will not be repeated here.
[0084] Please refer to Figure 3 , Figure 3 The interaction schematic diagram of the application start method provided by an embodiment of the present application is shown. As shown in Figure 3 , the system desktop starts to execute the icon animation after the user touches the application icon, and starts to execute the first application start page animation and the application interface animation after the application pre-start completion instruction fed back by the system service is received.
[0085] The application start method provided by an embodiment of the present application displays the desktop including the application icon, executes the icon animation by the system desktop in the case that the touch operation acting on the application icon is detected, sends the application start instruction to the system service by the system desktop to instruct the system service to execute the application pre-start based on the application start instruction, creates the first layer by the system service, fills the application start screenshot corresponding to the application program to which the application icon belongs into the first layer, obtains the first application start page animation, executes the application pre-start of the application program corresponding to the application icon by the system service, generates and feeds back the application pre-start completion instruction to the system desktop by the system service in the case that the application pre-start is completed, extracts the first application start page animation and the application interface animation from the application pre-start completion instruction by the system desktop in the case that the icon animation is executed to a specified progress and the application pre-start completion instruction fed back by the system service is received by the system desktop, and executes the first application start page animation and the application interface animation by the system desktop. Compared with the application start method shown in Figure 1 , the embodiment further obtains the application start page animation by filling the application start screenshot into the layer created by the system service, and feeds back the application pre-start to the system desktop, so as to ensure the normal start of the application and the use experience of the user.
[0086] Please refer to Figure 4 , Figure 4 The flow schematic diagram of the application start method provided by an embodiment of the present application is shown. In the following, the application start method will be described in detail with reference to Figure 4The flow shown is described in detail, and the application starting method can specifically include the following steps:
[0087] Step S310: display a desktop, wherein the desktop includes an application icon.
[0088] Step S320: in the case where a touch operation acting on the application icon is detected, perform an icon animation through a system desktop, and send an application starting instruction to a system service through the system desktop to instruct the system service to perform application pre-starting based on the application starting instruction.
[0089] Step S330: in the case where the icon animation is performed to a specified progress, and an application pre-starting completion instruction fed back by the system service is received through the system desktop, extract a first application starting page animation and an application interface animation from the application pre-starting completion instruction through the system desktop.
[0090] Step S340: perform the first application starting page animation and the application interface animation through the system desktop.
[0091] Specific descriptions of steps S310-S340 can be referred to steps S110-S140, which will not be described here.
[0092] Step S350: in the case where the icon animation is performed to the specified progress, and the application pre-starting completion instruction fed back by the system service is not received through the system desktop, generate and perform a second application starting page animation through the system desktop.
[0093] The above embodiment is a flow in an ideal case, but in practice, due to the involvement of multiple processes in application starting, there can be a problem that the animation in the system desktop cannot be normally connected when the system service takes too long to start the application. For example, Figure 5 As shown, after the icon animation in the system desktop is completed, the application pre-starting completion instruction of the system service is received, and during this period, since no animation element is running, the animation bottom-out connection abnormality occurs. For example, Figure 6 As shown, to solve this abnormality, a second layer is additionally added in the system desktop, which is also filled as an application starting page animation. Since the first layer and the second layer are both filled as application starting pages, in the above Figure 6 As shown in the flow, even if the icon animation is completed before the system desktop receives the application pre-starting completion instruction of the system service, since the second application starting page animation is already being executed, when the application pre-starting completion instruction is received later, the animation connection abnormality problem will not occur.
[0094] In this embodiment, in the case that the icon animation is executed to a specified progress and the system desktop does not receive the application pre-start completion instruction fed back by the system service, it can be considered that the icon animation is completed and cannot be normally connected to execute the application start page animation and the application interface animation, and the problem of animation bottom exposure can occur, therefore, the second application start page animation can be generated and executed by the system desktop. It can be understood that at this time, even if the icon animation has been completed before the system desktop receives the application pre-start completion instruction fed back by the system service, because the second application start page animation has already been executed, when the application pre-start completion instruction is received later, the problem of animation connection exception will not occur.
[0095] Please refer to Figure 7 , Figure 7 application is shown in Figure 4 The flowchart of step S350 of the application start method is shown in Figure 7 The method will be described in detail below with respect to the flowchart shown in
[0096] Step S351: A second layer is created by the system desktop, and the application start screenshot corresponding to the application program to which the application icon belongs is filled into the second layer to obtain the second application start page animation.
[0097] In this embodiment, in the case that the icon animation is executed to a specified progress and the system desktop does not receive the application pre-start completion instruction fed back by the system service, the system desktop can create a layer filled with an application start page as a second layer, and fill the application start screenshot corresponding to the application program to which the application icon belongs into the second layer to obtain the second application start page animation.
[0098] In some embodiments, the system desktop can invoke the interface of the underlying graphics system (such as SurfaceFlinger) to create a temporary second layer object (i.e. the underlying carrier of StartingSurface). The second layer will be assigned a specific size (consistent with the application startup page, usually the screen size) and level (to ensure that it is above the system desktop interface and below the application interface, avoiding being blocked). At this time, if the application icon belongs to the application program has a preset startup page (such as SplashScreen), the system service can directly read the resource file (picture or layout file) of the preset startup page; if the application icon belongs to the application program has no preset startup page, the system service can call the historical startup screenshot of the application icon belonging to the application program (for example, the first screen screenshot of the application icon belonging to the application program after the last normal startup); if the application icon belongs to the application program is the first time to start the application program, the system default startup page (such as a blank page or a brand default picture) can be used. The system desktop draws the obtained application startup screenshot into the created second layer through the graphics rendering interface (such as Canvas), ensuring that the screenshot fills the entire second layer (automatic size adaptation or scaling). At this time, the second layer has become a "visual layer for displaying application startup page animation", that is, the second application startup page animation is obtained.
[0099] Step S352: execute the second application startup page animation.
[0100] In some embodiments, the system desktop can continue to perform the second application startup page animation after obtaining the second application startup page animation, which can avoid the animation bottom exposure problem when the system service feedback application pre-startup completion instruction is not received at this time, and improve the user's visual experience.
[0101] Step S360: In the case of receiving the application pre-startup completion instruction from the system service through the system desktop, extracting the first application startup page animation and the application interface animation from the application pre-startup completion instruction through the system desktop.
[0102] In the embodiment, during the execution of the second application startup page animation, it can be detected whether the application pre-startup completion instruction fed back by the system service is received. If the application pre-startup completion instruction fed back by the system service is detected to be received, it can be considered that the system service has completed the application pre-startup and has fed back the first application startup page animation and the application interface animation, and the system desktop can normally acquire and execute the first application startup page animation and the application interface animation. If the application pre-startup completion instruction fed back by the system service is detected not to be received, it can be considered that the system service has not completed the application pre-startup, and the system service has not fed back the first application startup page animation and the application interface animation, and the system desktop cannot acquire and execute the first application startup page animation and the application interface animation.
[0103] In some embodiments, during the execution of the second application startup page animation, in the case that the system service feedback application pre-startup completion instruction is received through the system desktop, it can be considered that the icon animation execution is completed and the first application startup page animation and the application interface animation can be normally continued to be executed, and the first application startup page animation and the application interface animation can be extracted from the application pre-startup completion instruction through the system desktop.
[0104] Step S370: executing the first application startup page animation and the application interface animation through the system desktop.
[0105] In the embodiment, in the case that the first application startup page animation and the application interface animation are extracted from the application pre-startup completion instruction through the system desktop, the first application startup page animation and the application interface animation can be executed through the system desktop. That is, the first application startup page animation and the application interface animation can be continued to be executed after the second application startup page animation, so as to ensure the continuity and coherence of the application startup animation.
[0106] In some embodiments, executing the first application startup page animation and the application interface animation through the system desktop can include: stopping executing the second application startup page animation through the system desktop, and executing the first application startup page animation and the application interface animation through the system desktop. Optionally, during the process of stopping executing the second application startup page animation through the system desktop and executing the first application startup page animation and the application interface animation through the system desktop, a transition animation can be added between the second application startup page animation and the first application startup page animation, so that the transition from the second application startup page animation to the first application startup page animation is more natural, and the visual experience of the user is improved.
[0107] As an implementable manner, the first application startup page animation and the second application startup page animation can be the same, that is, the images contained in the first application startup page animation and the second application startup page animation and the corresponding time length can be the same. Based on this, stopping the execution of the second application startup page animation through the system desktop and executing the first application startup page animation and the application interface animation through the system desktop can include: determining, from the second application startup page animation, an unexecuted application startup page animation that the system desktop has not executed when receiving the application pre-startup completion instruction fed back by the system service, determining, from the first application startup page animation, a to-be-executed application startup page animation corresponding to the unexecuted application startup page animation, stopping the execution of the unexecuted application application startup page animation through the system desktop, and executing the to-be-executed application startup page animation and the application interface animation through the system desktop.
[0108] As an example, it is assumed that the first application startup page animation and the second application startup page animation are the same, and the time length of the first application startup page animation and the second application startup page animation is 100 ms. During the execution of the second application startup page animation by the system desktop, if the second application startup page animation is executed to 50 ms when receiving the application pre-startup completion instruction fed back by the system service, 51 ms-100 ms of the second application startup page animation can be determined as the unexecuted application startup page animation from the second application startup page animation. Then, correspondingly, 51 ms-100 ms of the first application startup page animation can be determined as the to-be-executed application startup page animation from the first application startup page animation, and then, the execution of 51 ms-100 ms of the second application startup page animation through the system desktop can be stopped, and the first application startup page animation and the application interface animation can be executed through the system desktop.
[0109] The application launching method provided in an embodiment of the present application comprises the following steps: displaying a desktop comprising an application icon; in the case that a touch operation acting on the application icon is detected, performing an icon animation through the system desktop and sending an application launching instruction to a system service through the system desktop to instruct the system service to execute application pre-launching based on the application launching instruction; in the case that the icon animation is executed to a specified progress and an application pre-launching completion instruction fed back by the system service is received through the system desktop, extracting a first application launching page animation and an application interface animation from the application pre-launching completion instruction through the system desktop, and executing the first application launching page animation and the application interface animation through the system desktop; in the case that the icon animation is executed to the specified progress and the application pre-launching completion instruction fed back by the system service is not received through the system desktop, generating and executing a second application launching page animation through the system desktop; in the case that the application pre-launching instruction completion fed back by the system service is received through the system desktop, extracting the first application launching page animation and the application interface animation from the application pre-launching completion instruction through the system desktop, and executing the first application launching page animation and the application interface animation through the system desktop. Compared with the application launching method shown in Figure 1 The present embodiment further creates a layer filled with an application launching page through the system desktop to start the application launching page animation in advance, thereby shortening the time for the user to wait for the system response when opening the application and improving the application launching speed.
[0110] Please refer to Figure 8 , Figure 8 A flowchart of the application launching method provided in an embodiment of the present application is shown. The following will be a detailed description of the flowchart shown in Figure 8 The application launching method can specifically comprise the following steps:
[0111] Step S410: displaying a desktop, wherein the desktop comprises an application icon.
[0112] The specific description of step S410 can be referred to step S110, which will not be repeated here.
[0113] Step S420: in the case that a touch operation acting on the application icon is detected, determining the application type corresponding to the application program to which the application icon belongs.
[0114] In the present embodiment, in the case that a touch operation acting on the application icon is detected, the application type corresponding to the application program to which the application icon belongs can be determined.
[0115] In some embodiments, the classification of the application program to which the application icon belongs in the application store can be acquired, and the application type corresponding to the application program to which the application icon belongs can be determined based on the classification of the application program to which the application icon belongs in the application store.
[0116] In some embodiments, the name and description of the application program to which the application icon belongs can be acquired, and the application type corresponding to the application program to which the application icon belongs is determined based on the name and description of the application program to which the application icon belongs.
[0117] Step S430: If the application type meets the specified type, the icon animation is executed through the system desktop, and the application launch instruction is sent to the system service through the system desktop to instruct the system service to execute application pre-launch based on the application launch instruction.
[0118] In some embodiments, the electronic device can be pre-set and store a specified type, which is used as a basis for determining the application type of the application program to which the application icon belongs. Therefore, in this embodiment, when the application type of the application program to which the application icon belongs is determined, the application type can be compared with the specified type to determine whether the application type matches the specified type. If it is determined that the application type matches the specified type, it can be determined that the application type meets the specified type, the launch speed of the application program to which the application icon belongs can be improved, the icon animation can be executed through the system desktop, and the application launch instruction can be sent to the system service through the system desktop; if it is determined that the application type does not match the specified type, it can be determined that the application type does not meet the specified type, the launch speed of the application program to which the application icon belongs can be maintained, the icon animation can be executed again in the case that the application pre-launch completion instruction fed back by the system service is received, and the first application launch page animation and the application interface animation can be executed again in the case that the icon animation is executed to a specified progress.
[0119] Optionally, the specified type can be set by default by the electronic device. For example, the application type with a frequency higher than a frequency threshold can be set as the specified type by default, such as instant messaging type, game type, etc.; the application type with an application score higher than a score threshold can be set as the specified type by default; the application type with a commercial value higher than a value threshold can be set as the specified type by default, etc., which are not limited herein.
[0120] Optionally, the specified type can be manually set by the user. For example, the user can select to set a certain application type as the specified type, for example, the user can select to set the application type that the user likes as the specified type, the user can select to set the application type that the user often uses as the specified type, etc., which are not limited herein.
[0121] Step S440: In the case that the icon animation is executed to a specified progress and the application pre-launch completion instruction fed back by the system service is received through the system desktop, the first application launch page animation and the application interface animation are extracted from the application pre-launch completion instruction through the system desktop.
[0122] Step S450: performing the first application start page animation and the application interface animation through the system desktop.
[0123] The specific description of steps S440-S450 can refer to steps S130-S140, which will not be repeated here.
[0124] The application start method provided in an embodiment of the present application displays a desktop including an application icon. In the case where a touch operation acting on the application icon is detected, the application type corresponding to the application program to which the application icon belongs is determined. If the application type meets a specified type, an icon animation is performed through the system desktop, and an application start instruction is sent to a system service through the system desktop to instruct the system service to perform application pre-starting based on the application start instruction. In the case where the icon animation is performed to a specified progress and an application pre-starting completion instruction fed back by the system service is received through the system desktop, a first application start page animation and an application interface animation are extracted from the application pre-starting completion instruction through the system desktop, and the first application start page animation and the application interface animation are performed through the system desktop. Compared with the application start method shown in Figure 1 The present embodiment also sets to improve the application start speed for the application programs of the specified type, and meets the personalized settings of the user for the application programs.
[0125] Please refer to Figure 9 , Figure 9 A flowchart of an application start method provided in an embodiment of the present application is shown. The application start method will be described in detail below with reference to the flowchart shown in Figure 9 The application start method can specifically include the following steps:
[0126] Step S510: displaying a desktop, wherein the desktop includes an application icon.
[0127] The specific description of step S510 can refer to step S110, which will not be repeated here.
[0128] Step S520: in the case where a touch operation acting on the application icon is detected, determining the remaining power of the electronic device.
[0129] In the present embodiment, in the case where a touch operation acting on the application icon is detected, the remaining power of the electronic device can be determined.
[0130] In some embodiments, in the case where a touch operation acting on the application icon is detected, the percentage of power displayed on the status bar of the electronic device can be obtained, and the remaining power of the electronic device is determined based on the percentage of power.
[0131] In some embodiments, in the case that the touch operation acting on the application icon is detected, the power consumption of the electronic device can be determined through a setting item of the electronic device, and the remaining power of the electronic device can be determined based on the power consumption.
[0132] In some embodiments, in the case that the touch operation acting on the application icon is detected, the power information of the electronic device can be obtained through a third-party application, and the remaining power of the electronic device can be determined based on the power information.
[0133] Step S530: If the remaining power is lower than the power threshold, the icon animation is executed through the system desktop, and the application starting instruction is sent to the system service through the system desktop to instruct the system service to execute the application pre-starting based on the application starting instruction.
[0134] In some embodiments, the electronic device can be pre-configured and stored with a power threshold, which is used as a basis for determining the remaining power of the electronic device. Therefore, in the case that the remaining power of the electronic device is determined, the remaining power can be compared with the power threshold to determine whether the remaining power is lower than the power threshold. If it is determined that the remaining power is lower than the power threshold, it can be determined that the remaining power of the electronic device is not enough to support the long-time operation of the electronic device, the starting speed of the application program to which the application icon belongs can be improved, the icon animation can be executed through the system desktop, and the application starting instruction can be sent to the system service through the system desktop. If it is determined that the remaining power is equal to or higher than the power threshold, it can be determined that the remaining power of the electronic device is enough to support the long-time operation of the electronic device, the starting speed of the application program to which the application icon belongs can be maintained, the icon animation can be executed again in the case that the application pre-starting completion instruction fed back by the system service is received through the system desktop, and the first application starting page animation and the application interface animation can be executed again in the case that the icon animation is executed to a specified progress.
[0135] Optionally, the remaining power can include 10%, 20%, etc., which is not limited herein.
[0136] Step S540: In the case that the icon animation is executed to a specified progress and the application pre-starting completion instruction fed back by the system service is received through the system desktop, the first application starting page animation and the application interface animation are extracted from the application pre-starting completion instruction through the system desktop.
[0137] Step S550: The first application starting page animation and the application interface animation are executed through the system desktop.
[0138] The specific description of steps S540-S550 can be referred to steps S130-S140, which will not be repeated here.
[0139] The application starting method provided by an embodiment of the present application comprises the following steps: displaying a desktop comprising an application icon; determining the remaining power of the electronic device in the case that a touch operation acting on the application icon is detected; executing an icon animation through the system desktop and sending an application starting instruction to a system service through the system desktop in the case that the remaining power is lower than a power threshold; instructing the system service to execute application pre-starting based on the application starting instruction; extracting a first application starting page animation and an application interface animation from the application pre-starting completion instruction fed back by the system service through the system desktop in the case that the icon animation is executed to a specified progress and the application pre-starting completion instruction is received through the system desktop; and executing the first application starting page animation and the application interface animation through the system desktop. Figure 1 Compared with the application starting method shown in
[0140] Please refer to Figure 10 , Figure 10 The flowchart of the application starting method provided by an embodiment of the present application is shown. The following will be described in detail with respect to the flowchart shown in Figure 10 The application starting method can specifically comprise the following steps:
[0141] Step S610: displaying a desktop, wherein the desktop comprises an application icon.
[0142] The specific description of step S610 can be referred to step S110, which will not be repeated here.
[0143] Step S620: determining the performance parameter of the processor of the electronic device in the case that a touch operation acting on the application icon is detected.
[0144] In the embodiment, the performance parameter of the processor of the electronic device can be determined in the case that a touch operation acting on the application icon is detected.
[0145] In some embodiments, the official specification of the electronic device can be checked in the case that a touch operation acting on the application icon is detected, and the performance parameter of the processor of the electronic device can be determined based on the official specification.
[0146] In some embodiments, the model, real-time usage rate, frequency and other parameters of the processor can be checked using a system information tool in the case that a touch operation acting on the application icon is detected, and the performance parameter of the processor of the electronic device can be determined based on the checked parameters.
[0147] In some embodiments, in the case that the touch operation acting on the application icon is detected, the benchmark test tool can be run to test the model, real-time usage rate, frequency and other parameters of the processor, and based on the tested parameters, the performance parameter of the processor of the electronic device is determined.
[0148] Step S630: If the performance parameter does not reach the preset performance parameter, the icon animation is executed through the system desktop, and the application starting instruction is sent to the system service through the system desktop to instruct the system service to execute the application pre-starting based on the application starting instruction.
[0149] In some embodiments, the electronic device can be pre-set and stored with a preset performance parameter, which is used as a basis for determining the performance parameter of the processor of the electronic device. Therefore, in the case that the performance parameter of the processor of the electronic device is determined, the performance parameter can be compared with the preset performance parameter to determine whether the performance parameter reaches the preset performance parameter. If it is determined that the performance parameter does not reach the preset performance parameter, it can be determined that the performance of the electronic device is poor, the time delay of starting the application program is long, the starting speed of the application program to which the application icon belongs can be improved, the icon animation can be executed through the system desktop, and the application starting instruction can be sent to the system service through the system desktop. If it is determined that the performance parameter reaches the preset performance parameter, it can be determined that the performance of the electronic device is good, the time delay of starting the application program is short, the starting speed of the application program to which the application icon belongs can be maintained, the icon animation can be executed again in the case that the application pre-starting completion instruction fed back by the system service is received, and the first application starting page animation and the application interface animation can be executed again in the case that the icon animation is executed to a specified progress.
[0150] Step S640: In the case that the icon animation is executed to a specified progress and the application pre-starting completion instruction fed back by the system service is received through the system desktop, the first application starting page animation and the application interface animation are extracted from the application pre-starting completion instruction through the system desktop.
[0151] Step S650: The first application starting page animation and the application interface animation are executed through the system desktop.
[0152] The specific description of steps S640-S650 can be referred to steps S130-S140, which will not be repeated here.
[0153] The application launching method provided by an embodiment of the present application comprises the following steps: displaying a desktop comprising an application icon; determining a performance parameter of a processor of an electronic device in the case that a touch operation acting on the application icon is detected; executing an icon animation through a system desktop and sending an application launching instruction to a system service through the system desktop in the case that the performance parameter does not reach a preset performance parameter, so as to instruct the system service to execute application pre-launching based on the application launching instruction; extracting a first application launching page animation and an application interface animation from the application pre-launching completion instruction through the system desktop in the case that the icon animation is executed to a specified progress and the application pre-launching completion instruction fed back by the system service is received through the system desktop; and executing the first application launching page animation and the application interface animation through the system desktop. Compared with the application launching method shown in Figure 1 The application launching method provided by an embodiment of the present application comprises the following steps: displaying a desktop comprising an application icon; determining a performance parameter of a processor of an electronic device in the case that a touch operation acting on the application icon is detected; executing an icon animation through a system desktop and sending an application launching instruction to a system service through the system desktop in the case that the performance parameter does not reach a preset performance parameter, so as to instruct the system service to execute application pre-launching based on the application launching instruction; extracting a first application launching page animation and an application interface animation from the application pre-launching completion instruction through the system desktop in the case that the icon animation is executed to a specified progress and the application pre-launching completion instruction fed back by the system service is received through the system desktop; and executing the first application launching page animation and the application interface animation through the system desktop. Compared with the application launching method shown in
[0154] Please refer to Figure 11 In the process of displaying the desktop, the system desktop can execute the icon animation and send the application launching instruction to the system service in the case that the touch operation acting on the application icon is detected. When the application icon animation is executed to the specified progress, if the system desktop has received the application pre-launching completion instruction sent by the system service, the first application launching page animation and the application interface animation are directly executed.
[0155] Please refer to Figure 12 In the process of displaying the desktop, the system desktop can execute the icon animation and send the application launching instruction to the system service in the case that the touch operation acting on the application icon is detected. When the application icon animation is executed to the specified progress, if the system desktop has received the application pre-launching completion instruction sent by the system service, the first application launching page animation and the application interface animation are directly executed.
[0156] Please refer to Figure 13 , Figure 13 A module block diagram of the application launching device provided by an embodiment of the present application is shown. The following will be described with reference to the block diagram shown in Figure 13 The application launching device 200 comprises the following modules: a desktop display module 210, an icon animation execution module 220, an application animation extraction module 230 and an application animation execution module 240, wherein:
[0157] The desktop display module 210 is configured to display a desktop, wherein the desktop comprises an application icon.
[0158] The icon animation execution module 220 is configured to execute an icon animation through a system desktop when detecting a touch operation on the application icon, and send an application starting instruction to a system service through the system desktop to instruct the system service to execute application pre-starting based on the application starting instruction.
[0159] Further, the icon animation execution module 220 comprises an application type determination submodule and a first icon animation execution submodule.
[0160] The application type determination submodule is configured to determine an application type corresponding to an application program to which the application icon belongs when detecting a touch operation on the application icon.
[0161] The first icon animation execution submodule is configured to execute the icon animation through the system desktop and send the application starting instruction to the system service through the system desktop if the application type meets a specified type.
[0162] Further, the icon animation execution module 220 comprises a remaining power determination submodule and a second icon animation execution submodule.
[0163] The remaining power determination submodule is configured to determine a remaining power of the electronic device when detecting a touch operation on the application icon.
[0164] The second icon animation execution submodule is configured to execute the icon animation through the system desktop and send the application starting instruction to the system service through the system desktop if the remaining power is lower than a power threshold.
[0165] Further, the icon animation execution module 220 comprises a performance parameter determination submodule and a third icon animation execution submodule.
[0166] The performance parameter determination submodule is configured to determine a performance parameter of a processor of the electronic device when detecting a touch operation on the application icon.
[0167] The third icon animation execution submodule is configured to execute the icon animation through the system desktop and send the application starting instruction to the system service through the system desktop if the performance parameter does not reach a preset performance parameter.
[0168] The application animation extraction module 230 is configured to extract a first application starting page animation and an application interface animation from the application pre-starting completion instruction through the system desktop when the icon animation execution reaches a specified progress and the application pre-starting completion instruction fed back by the system service is received through the system desktop.
[0169] The application animation execution module 240 is configured to execute the first application startup page animation and the application interface animation on the system desktop.
[0170] Further, the application startup device 200 further comprises a first application startup page animation obtaining module, an application pre-startup execution module, and an application pre-startup completion instruction sending module.
[0171] The first application startup page animation obtaining module is configured to create a first layer through the system service, fill the application startup screenshot corresponding to the application program to which the application icon belongs into the first layer, and obtain the first application startup page animation.
[0172] The application pre-startup execution module is configured to execute the application pre-startup corresponding to the application program to which the application icon belongs through the system service.
[0173] The application pre-startup completion instruction sending module is configured to generate and feed back the application pre-startup completion instruction to the system desktop through the system service in the case that the application pre-startup is completed.
[0174] Further, the application startup device 200 further comprises a second application startup page animation execution module, an application animation extraction module, and an application animation execution module.
[0175] The second application startup page animation execution module is configured to generate and execute a second application startup page animation on the system desktop in the case that the icon animation is executed to the specified progress and the application pre-startup completion instruction fed back by the system service is not received by the system desktop.
[0176] Further, the second application startup page animation execution module comprises a second application startup page animation obtaining submodule and a second application startup page animation execution submodule.
[0177] The second application startup page animation obtaining submodule is configured to create a second layer through the system desktop, fill the application startup screenshot corresponding to the application program to which the application icon belongs into the second layer, and obtain the second application startup page animation.
[0178] The second application startup page animation execution submodule is configured to execute the second application startup page animation.
[0179] The application animation extraction module is configured to extract the first application startup page animation and the application interface animation from the application pre-startup completion instruction on the system desktop in the case that the application pre-startup completion instruction fed back by the system service is received on the system desktop.
[0180] The application animation execution module is configured to execute the first application startup page animation and the application interface animation through the system desktop.
[0181] Further, the application animation execution module comprises an application animation execution submodule.
[0182] The application animation execution submodule is configured to stop executing the second application startup page animation through the system desktop and execute the first application startup page animation and the application interface animation through the system desktop.
[0183] Further, the first application startup page animation is identical to the second application startup page animation, and the application animation execution submodule comprises an unexecuted application startup page animation determination unit, a to-be-executed application startup page animation determination unit, and an application animation execution unit.
[0184] The unexecuted application startup page animation determination unit is configured to determine, from the second application startup page animation, an unexecuted application startup page animation that is not executed by the system desktop when the system service feedback application pre-startup completion instruction is received.
[0185] The to-be-executed application startup page animation determination unit is configured to determine, from the first application startup page animation, a to-be-executed application startup page animation corresponding to the unexecuted application startup page animation.
[0186] The application animation execution unit is configured to stop executing the unexecuted application startup page animation through the system desktop and execute the to-be-executed application startup page animation and the application interface animation through the system desktop.
[0187] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and module can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0188] In several embodiments provided in the present application, the coupling between the modules can be electrical, mechanical or other forms of coupling.
[0189] In addition, each functional module in each embodiment of the present application can be integrated in one processing module, or each module can exist physically independently, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0190] Please refer to Figure 14Fig. 1 shows a structural block diagram of an electronic device 100 according to an embodiment of the present application. The electronic device 100 can be a smart phone, a tablet computer, an e-book, or the like, which can run an application program. The electronic device 100 according to the present application can include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs can be stored in the memory 120 and configured to be executed by the one or more processors 110, and the one or more programs are configured to perform the method as described in the foregoing method embodiments.
[0191] The processor 110 can include one or more processing cores. The processor 110 connects various parts within the entire electronic device 100 by various interfaces and lines, performs various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Alternatively, the processor 110 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 110 can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes an operating system, a user interface, and an application program, etc.; the GPU is responsible for rendering and drawing of content to be displayed; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 110, but can be implemented by a separate communication chip.
[0192] The memory 120 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 120 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing functions (such as touch functions, sound playing functions, image playing functions, etc.), instructions for implementing various method embodiments described below, etc. The data storage area can also store data created by the electronic device 100 in use (such as a phone book, audio and video data, chat record data, etc.).
[0193] In some embodiments, the electronic device 100 can further include a touch screen, wherein the touch screen is used to display information input by a user, information provided to the user, and various graphical user interfaces of the electronic device 100, which can be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen can be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), without limitation.
[0194] In some embodiments, the electronic device 100 can further include a camera for collecting motion data of a user. Optionally, the camera can include a front camera, a rear camera, a telescopic camera, a rotating camera, etc., without limitation.
[0195] In some embodiments, the electronic device 100 can further include a sensor, wherein the sensor can include a light sensor, which can be used to turn off the display of the touch screen when an object approaches the touch screen, for example, when the body of the electronic device is moved to the ear. The sensor can include a pressure sensor, which can be used to detect the pressure generated by pressing on the electronic device, i.e., the pressure sensor can detect the pressure generated by the contact or pressing between the user and the electronic device, for example, the pressure generated by the contact or pressing between the ear or finger of the user and the electronic device. The sensor can include a gravity sensor for detecting the magnitude of acceleration in each direction (generally three axes), and detecting the magnitude and direction of gravity when at rest, which can be used for applications such as identifying the posture of the electronic device (such as switching between horizontal and vertical screens, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device can also be configured with a gyroscope, barometer, hygrometer, and other sensors, without limitation.
[0196] In some embodiments, the electronic device 100 can further include an artificial intelligence module, wherein the artificial intelligence module can be integrated in the processor 110 of the electronic device 100, for improving the intelligent level and performance of the electronic device.
[0197] Of course, the electronic device can also include other more components, which will not be described here.
[0198] Please refer to Figure 15 which shows a structural block diagram of a computer readable storage medium provided by an embodiment of the present application. The computer readable medium 300 stores program code, which can be called and executed by a processor to perform the methods described in the above method embodiments.
[0199] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. Optionally, the computer-readable storage medium 300 comprises a non-transitory computer-readable medium. The computer-readable storage medium 300 has storage space for program code 310 for carrying out any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in a suitable form.
[0200] In some embodiments, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the application starting method in the embodiments of the present application.
[0201] In summary, the application starting method, device, electronic device, storage medium and program product provided by the embodiments of the present application display a desktop including an application icon, in the case of detecting a touch operation acting on the application icon, execute an icon animation through the system desktop, and send an application starting instruction to the system service through the system desktop to instruct the system service to execute application pre-starting based on the application starting instruction, in the case of executing the icon animation to a specified progress and receiving an application pre-starting completion instruction fed back by the system service through the system desktop, extract a first application starting page animation and an application interface animation from the application pre-starting completion instruction through the system desktop, and execute the first application starting page animation and the application interface animation through the system desktop, so as to execute the icon animation as soon as the user triggers the application icon of the desktop, and then continue to execute the application starting page animation and the interface animation according to the running progress of the icon animation after the system desktop receives the application pre-starting completion instruction of the system service, which can improve the application starting speed and shorten the time length of user waiting for system response.
[0202] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to part of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An application starting method characterized by comprising: The method comprises: displaying a desktop, wherein the desktop comprises an application icon; in the case of detecting a touch operation acting on the application icon, executing an icon animation through a system desktop, and sending an application starting instruction to a system service through the system desktop to instruct the system service to execute application pre-starting based on the application starting instruction; in the case of the icon animation being executed to a specified progress and the system desktop receiving an application pre-starting completion instruction fed back by the system service, extracting a first application starting page animation and an application interface animation from the application pre-starting completion instruction through the system desktop; executing the first application starting page animation and the application interface animation through the system desktop.
2. The method of claim 1, wherein, After the case of detecting a touch operation acting on the application icon, executing an icon animation through a system desktop, and sending an application starting instruction to a system service through the system desktop, the method further comprises: creating a first layer through the system service, and filling an application starting screenshot corresponding to an application program to which the application icon belongs into the first layer to obtain the first application starting page animation; executing application pre-starting of the application program to which the application icon belongs through the system service; in the case of application pre-starting being completed, generating and feeding back the application pre-starting completion instruction to the system desktop through the system service.
3. The method of claim 1, wherein, The method further comprises: in the case of the icon animation being executed to the specified progress and the system desktop not receiving the application pre-starting completion instruction fed back by the system service, generating and executing a second application starting page animation through the system desktop; in the case of the system desktop receiving the application pre-starting completion instruction fed back by the system service, extracting the first application starting page animation and the application interface animation from the application pre-starting completion instruction through the system desktop; executing the first application starting page animation and the application interface animation through the system desktop.
4. The method of claim 3, wherein, The generating and executing a second application starting page animation through the system desktop comprises: creating a second layer through the system desktop, and filling an application starting screenshot corresponding to an application program to which the application icon belongs into the second layer to obtain the second application starting page animation; executing the second application starting page animation.
5. The method of claim 3, wherein, The executing the first application starting page animation and the application interface animation through the system desktop comprises: stopping executing the second application starting page animation through the system desktop, and executing the first application starting page animation and the application interface animation through the system desktop.
6. The method of claim 5, wherein, The first application starting page animation and the second application starting page animation are the same, and the stopping executing the second application starting page animation through the system desktop, and executing the first application starting page animation and the application interface animation through the system desktop comprises: determining, from the second application starting page animation, an application starting page animation that is not executed by the system desktop when the system desktop receives the application pre-starting completion instruction fed back by the system service; The first application startup page animation is determined from the unexecuted application startup page animation, and a to-be-executed application startup page animation corresponding to the unexecuted application startup page animation is determined. The unexecuted application startup page animation is stopped from being executed through the system desktop, and the to-be-executed application startup page animation and the application interface animation are executed through the system desktop.
7. The method according to any one of claims 1 to 6, characterized in that, The icon animation is executed through the system desktop, and the application startup instruction is sent to the system service through the system desktop in the case that the touch operation acting on the application icon is detected. The application type corresponding to the application program to which the application icon belongs is determined in the case that the touch operation acting on the application icon is detected. The icon animation is executed through the system desktop, and the application startup instruction is sent to the system service through the system desktop in the case that the application type meets the specified type.
8. The method according to any one of claims 1 to 6, characterized in that, The icon animation is executed through the system desktop, and the application startup instruction is sent to the system service through the system desktop in the case that the touch operation acting on the application icon is detected. The remaining power of the electronic device is determined in the case that the touch operation acting on the application icon is detected. The icon animation is executed through the system desktop, and the application startup instruction is sent to the system service through the system desktop in the case that the remaining power is lower than the power threshold.
9. The method according to any one of claims 1 to 6, characterized in that, The icon animation is executed through the system desktop, and the application startup instruction is sent to the system service through the system desktop in the case that the touch operation acting on the application icon is detected. The performance parameter of the processor of the electronic device is determined in the case that the touch operation acting on the application icon is detected. The icon animation is executed through the system desktop, and the application startup instruction is sent to the system service through the system desktop in the case that the performance parameter does not reach the preset performance parameter.
10. An application starting apparatus characterized by comprising: The device comprises: a desktop display module configured to display a desktop, wherein the desktop comprises an application icon; an icon animation execution module configured to execute an icon animation through a system desktop in the case that a touch operation acting on the application icon is detected, and send an application startup instruction to a system service through the system desktop to instruct the system service to execute an application pre-startup based on the application startup instruction; an application animation extraction module configured to extract a first application startup page animation and an application interface animation from the application pre-startup completion instruction through the system desktop in the case that the icon animation is executed to a specified progress and the application pre-startup completion instruction fed back by the system service is received through the system desktop; an application animation execution module configured to execute the first application startup page animation and the application interface animation through the system desktop.
11. An electronic device, comprising: The computer readable storage medium stores program codes, and the program codes can be invoked by a processor to execute the method according to any one of claims 1-9.
12. A computer readable storage medium, characterized in that, The computer readable storage medium stores program codes, and the program codes can be invoked by a processor to execute the method according to any one of claims 1-9.
13. A computer program product, characterised in that, The computer program product comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 9.