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

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

Info

Publication number
CN110162343B
CN110162343B CN201910286144.0A CN201910286144A CN110162343B CN 110162343 B CN110162343 B CN 110162343B CN 201910286144 A CN201910286144 A CN 201910286144A CN 110162343 B CN110162343 B CN 110162343B
Authority
CN
China
Prior art keywords
application
animation
starting
frame image
transition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910286144.0A
Other languages
Chinese (zh)
Other versions
CN110162343A (en
Inventor
吴岩
刘明杰
王济普
王永亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN201910286144.0A priority Critical patent/CN110162343B/en
Publication of CN110162343A publication Critical patent/CN110162343A/en
Application granted granted Critical
Publication of CN110162343B publication Critical patent/CN110162343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides an application starting method and device, electronic equipment and a storage medium. The application starting method comprises the following steps: detecting a starting instruction for starting the first application; starting the first application in a background according to the starting instruction; entering display of transition animation based on the starting instruction; wherein the transition animation is different from a launch animation of the application; and after the first application finishes the starting, switching into an application interface display of the first application or a starting animation display of the first application.

Description

Application starting method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of information technologies, and in particular, to an application starting method and apparatus, an electronic device, and a storage medium.
Background
With the development of information technology, application developers provide applications with different functions; for example, various types of applications such as a map application, a shopping application, a music application, a schedule application, and the like. The display page of the electronic equipment can be switched between the desktop and the application and also can be switched between different application planes. If the user currently wants to open an application that is not started, the electronic device usually exits the current page and displays an application interface of the started application. However, when an application is started, a large number of initialization operations are involved, which may cause a phenomenon that the application is started slowly, and may cause a user to feel anxious and poor user experience.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide an application starting method and apparatus, an electronic device, and a storage medium.
The technical scheme of the invention is realized as follows:
an application launching method, comprising:
detecting a starting instruction for starting the first application;
according to the starting instruction, starting the first application in a background;
entering the display of transition animation based on the starting instruction; wherein the transition animation is different from a launch animation of the application;
and after the first application finishes the starting, switching into an application interface display of the first application or a starting animation display of the first application.
Based on the above scheme, the switching into the application interface display of the first application after the first application completes the launching includes:
and outputting the application interface of the first application as the tail frame image of the transition animation.
Based on the above scheme, the method further comprises:
determining whether the first application contains a type to launch an animation;
if the first application is of a type containing a starting animation, acquiring class information of an application interface of the first application;
the outputting the application interface of the first application as the end frame image of the transition animation comprises:
and outputting the application interface of the first application as a tail frame image of the transition animation according to the class information of the first application interface.
Based on the above solution, if the first application is of a type including a start animation, acquiring class information of an application interface of the first application, including:
if the first application is of a type containing starting animation, obtaining class information of the first two classes of the first application; wherein, the first class of the first two classes is the class information of the starting animation; the second class of the first two classes is class information of an application interface of the first application;
the outputting the application interface of the first application as the end frame image of the transition animation according to the class information of the first application interface comprises:
and if the class information of the first two classes is successfully acquired, skipping the execution of the activity corresponding to the animation information, and outputting the application interface of the first application as a tail frame image of the transition animation according to the class information of the second class.
Based on the above scheme, the outputting the application interface of the first application as the end frame image of the transition animation includes:
if the first application does not contain the type of the starting animation, sequentially reading the class information of the first application; the first class information of the first application is class information of an application interface of the first application;
the outputting the application interface of the first application as the end frame image of the transition animation comprises:
and according to the class information of the first class of the first application, outputting the application interface of the first application as a tail frame image of the transition animation.
Based on the above scheme, when the first application starts the animation display after the first application starts, the method further includes:
determining a first frame image of a starting animation of the first application;
and outputting the first frame image of the starting animation as the tail frame image of the transition animation.
Based on the above scheme, the determining the first frame image of the starting animation of the first application includes:
and the transition thread reads the first frame image of the starting animation of the first application based on transition configuration information according to the identification information of the first application pointed by the starting instruction.
Based on the above scheme, the method further comprises:
adjusting animation parameters of the start animation to change the start animation from original first animation parameters to second animation parameters,
and the playing time length of the starting animation played by the first animation parameter is longer than the playing time length of the starting animation played by the second animation parameter.
Based on the above scheme, the adjusting the animation parameters of the starting animation includes:
deleting the frame number of the starting animation;
and increasing the playing speed of the starting animation.
Based on the above scheme, the method further comprises:
acquiring sight line information of a user;
the adjusting animation parameters of the starting animation comprises the following steps:
and if the sight line information indicates that the sight line of the user is positioned in the display area of the electronic equipment, adjusting the animation parameter for starting the animation.
Based on the above scheme, the method further comprises:
monitoring the first application starting process to obtain starting condition information of the first application;
adjusting a third animation parameter of the transition animation according to the starting condition information, wherein the third animation parameter comprises: at least one of a frame number, content, and playback rate.
Based on the above scheme, the method further comprises:
reading a base animation of the transition animation;
and adjusting a third animation parameter of the transition animation according to the starting condition information, wherein the third animation parameter comprises the following steps:
modifying a third animation parameter of the base animation based on the start-up condition information.
Based on the above scheme, the method further comprises:
acquiring historical starting information of the first application;
and generating the transition animation of which the tail frame image is the first frame image of the starting animation by combining the historical starting information.
Based on the above scheme, the obtaining of the historical start-up information of the first application includes at least one of:
acquiring historical starting duration of the first application for a preset number of times;
and acquiring the historical starting duration of the first application under the current resource condition of the electronic equipment.
Based on the above scheme, the detecting a start instruction for starting the first application includes at least one of:
when the desktop is displayed, detecting a starting instruction for starting the first application;
and detecting a starting instruction for starting the first application when an application interface of a second application is displayed.
An application launching device comprising:
the detection module is used for detecting a starting instruction for starting the first application;
the starting module is used for starting the first application at the background according to the starting instruction;
the display module is used for entering the display of transition animation based on the starting instruction; wherein the transition animation is different from a launch animation of the application;
and the switching module is used for switching into the application interface display of the first application or the starting animation display of the first application after the first application is started.
An electronic device, comprising:
a display;
a memory;
and the processor is respectively connected with the display and the memory and is used for controlling the display of the display by executing the computer executable instructions stored in the memory and realizing the application starting method provided by any technical scheme.
A computer storage medium having stored thereon computer-executable instructions; after the computer executable instruction is executed by the processor, the application starting method provided by any technical scheme can be realized.
According to the technical scheme provided by the embodiment of the invention, after the starting instruction is detected, the first application needing to be started is started in the background, and transition animation different from the starting animation contained in the application is played in the foreground while the first application is started; after the first application is started, the application interface of the first application is directly displayed or the starting animation of the first application is played, so that the phenomenon that the electronic equipment stays in a certain starting page in the starting process for a long time due to slow starting of the first application is reduced, anxiety caused by slow starting or boredom of the psychological feeling of a user is caused, and the user experience is improved.
Drawings
Fig. 1 is a schematic flowchart of a first application starting method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a second application starting method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an application starting apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification.
As shown in fig. 1, the present embodiment provides an application starting method, including:
step S110: detecting a starting instruction for starting the first application;
step S120: starting the first application in a background according to the starting instruction;
step S130: entering display of transition animation based on the starting instruction; wherein the transition animation is different from a launch animation of the application;
step S140: and after the first application finishes the starting, switching into an application interface display of the first application or a starting animation display of the first application.
In this embodiment, the application starting method may be applied to various electronic devices, such as in-vehicle devices.
When the electronic equipment displays the first page, a starting instruction is received, wherein the starting instruction can be a touch instruction of a user for manually operating a touch screen, a voice instruction and the like. That is, the first page is a page currently displayed by the electronic device, and the page may be a system page of an operating system or an application interface of another application.
The first application here is a target application that is launched.
After receiving the starting instruction, the first application is started in the background according to the starting instruction. If the first application is started in the background, the starting process of the first application cannot be directly displayed in the foreground, so that the electronic equipment is prevented from displaying a certain starting page in the starting process for a long time due to the slow starting process of the first application, the phenomenon that a user waits for urgency occurs, and the user experience is improved.
It is worth noting that: in this embodiment, one of the start instructions may cause the electronic device to perform two operations, one of which is to start the first application and start in the background; the other is to go to the display of transition animation. In some embodiments, said step S120 and said step S130 are performed in parallel.
In some embodiments, the step S130 may include: and entering the display of the transition animation after exiting the display of the first page. In some embodiments, the first page may be a first frame image of a dynamically generated transition animation, and thus, smooth switching of the first page to the transition animation may be achieved.
In this embodiment, the transition animation is a different start animation than the application itself contains. Typically, different launching applications have different launching animations, and the development and provision of the launching animations is provided by the application developer.
The start animation of an application belongs to application-level animation. And the transition animation can be shared by a plurality of applications and belongs to the animation of a cross-application level. In some particular cases, the transition animation may be an operating system level animation. The operating system can be an android system, an IOS system and/or a linux system and the like.
In this embodiment, if the start instruction is detected, the electronic device exits from displaying the current first page and enters displaying the transition animation.
After the first application is started, an application interface of the first application can be directly displayed, and the playing of the starting animation of the first application can be switched to.
If the playing of the transition animation is finished after the first application is started, the application interface of the first application is directly displayed, and therefore the duration of switching to the application interface of the first application for displaying is not increased due to the introduction of the playing of the transition animation.
Certainly, in some embodiments, after the first application is started, playing of the first application starting animation may be performed, so that the electronic device may not pause on a certain picture for a long time due to the fact that the first application is started, and user experience may also be improved.
In this embodiment, the starting the first application includes at least one of:
reading initialization data of the first application;
according to the initialization data, creating a display window of the first application;
and drawing a User Interface (UI) Interface in the display window. One or more controls are included on the UI interface that can detect user operation.
In some embodiments, the step S140 may include: and outputting the application interface of the first application as the tail frame image of the transition animation.
In this embodiment, after the first application is started, an application interface of the first application is directly obtained, where the application interface is an interface through which a user can directly perform information interaction with the application, and is not a start interface corresponding to the start animation. If an application includes a launch animation, the application interface is displayed after the launch interface corresponding to the launch animation.
In this embodiment, in order to implement smooth transition to further improve user experience, in this embodiment, an application interface of the first application is directly obtained and output as an end frame image of the scene animation.
In some embodiments, as shown in fig. 2, the method further comprises:
step S101: determining whether the first application contains a type to launch an animation;
step S102: if the first application is of a type containing a starting animation, acquiring class information of an application interface of the first application;
correspondingly, the step S140 may include a step S141; the step S141 may include: and outputting the application interface of the first application as a tail frame image of the transition animation according to the class information of the first application interface.
In some embodiments, the step S102 may adjust an order of obtaining the class information of each class of the first application, skip obtaining the class information of the starting animation, and directly obtain the class information of the application interface of the first application, so that the starting animation is automatically skipped to enter the display of the application interface of the first application when the class of the first application is executed according to the class information.
In other embodiments, in order to be well compatible with the prior art, the step S102 may include:
if the first application is of a type containing starting animation, class information of the first two classes of the first application is obtained; wherein, the first class of the first two classes is the class information of the starting animation; the second class of the first two classes is class information of an application interface of the first application;
the step S140 may include: and if the class information of the first two classes is successfully acquired, skipping the execution of the activity corresponding to the animation information, and outputting the application interface of the first application as the end frame image of the transition animation according to the class information of the second class.
In some embodiments, the first application may be of a type that does not include a launch animation, e.g., a native application installed in an operating system of the electronic device may not include a launch animation.
In some cases, the first application may be a third party application, which may have been developed with a launch animation.
In some embodiments, if the class information of the two classes is not successfully acquired, the start animation may be played according to the successfully acquired class information of the first class, and then the application interface of the first application is entered.
When directly entering the application interface display of the first application in step S140, the class information of the first two classes of the first application is obtained at the same time, where the class information includes: the package name and/or class name of the package in which the class resides.
Then directly skipping the first class information of the starting animation, directly executing class execution according to the second class information, successfully acquiring the application interface of the first application, and outputting the application interface of the first application as a tail frame image of the transition animation.
In some embodiments, the outputting the application interface of the first application as the end frame image of the transition animation includes:
if the first application does not contain the type of the starting animation, sequentially reading the class information of the first application; the first class information of the first application is class information of an application interface of the first application;
the outputting the application interface of the first application as the end frame image of the transition animation comprises:
and outputting the application interface of the first application as a tail frame image of the transition animation according to the class information of the first class of the first application.
If the first application currently launched is of a type that does not start animation, for example, is a native application of an operating system of the electronic device, the launch animation of the application may be directly removed by a developer of the operating system.
At this time, the electronic device may sequentially read the class information of each class of the first application according to the order, and the read class information of the first class is the class information of the application interface of the first application. The reading of the information is equivalent to the successful acquisition of the application interface of the first application, so that the information can be output as a tail frame image of the transition animation.
In some embodiments, upon a launch animation display of the first application after the first application has launched, the method further comprises:
determining a first frame image of a starting animation of the first application;
and outputting the first frame image of the starting animation as the tail frame image of the transition animation.
In some embodiments, some third party applications do not agree to directly remove the start animation from playing; at this time, the start animation still needs to be played.
To achieve a visually seamless transition for the user, the first image of the start animation of the first application is determined.
And outputting the first frame image of the starting animation of the first application as the last frame image of the transition animation, so that the smooth connection between the transition animation and the starting animation is realized.
In some embodiments, the determining a first frame image of a start animation of the first application includes:
and the transition thread reads the first frame image of the starting animation of the first application based on transition configuration information according to the identification information of the first application pointed by the starting instruction.
In this embodiment, when the transition animation is played, a transition thread is provided in the electronic device; the transition thread may intercept an application identifier of the first application in the read instruction, where the application identifier may be a serial number and/or a name and/or a uniform resource address of the application.
Thus, the transition thread reads the first frame image of the starting animation of the first application based on the transition configuration information; therefore, the first frame of image of the starting animation is not required to be read after the electronic equipment finishes the starting of the first application; and the phenomenon that transition from transition animation to starting animation is not smooth due to unsuccessful reading is reduced.
Further, the method further comprises:
adjusting animation parameters of the start animation so that the start animation is changed from original first animation parameters to second animation parameters,
and the playing time length of the starting animation played by the first animation parameter is longer than the playing time length of the starting animation played by the second animation parameter.
In this embodiment, in order to reduce the animation playing time, the animation parameter of the starting animation is adjusted, and after the animation parameter is adjusted, the time for starting the animation playing is reduced.
Specifically, the adjusting animation parameters of the starting animation includes:
deleting the frame number of the starting animation;
and increasing the playing speed of the starting animation.
For example, 1.5 times or 2 times of the standard playing speed is used as the playing speed corresponding to the second animation parameter.
By compressing the number of frames of the start animation, it is obvious that the playing time of the start animation can also be shortened.
In still other embodiments, the method further comprises:
acquiring sight line information of a user;
the adjusting animation parameters of the starting animation comprises:
and if the sight line information indicates that the sight line of the user is positioned in the display area of the electronic equipment, adjusting animation parameters of the starting animation.
The method comprises the steps of positioning sight line information of a user through an image acquisition mode and the like, adjusting animation parameters if the sight line information of the user indicates that the user is currently watching electronic equipment, and if the sight line information of the user indicates that the user does not watch the electronic equipment currently, indicating that the user does not put the user into urgent use of the electronic equipment, adjusting the animation parameters of the starting animation without adjusting the starting animation, wherein the starting animation of the first application can be played normally.
In some embodiments, the method further comprises:
monitoring the starting process of the first application to obtain starting condition information of the first application;
adjusting a third animation parameter of the transition animation according to the starting condition information, wherein the third animation parameter comprises: at least one of a frame number, content, and playback rate.
In this embodiment, the transition animation is not a predetermined fixed animation, and if the predetermined fixed animation is used, it may happen that the first application is started completely, and the transition animation is not played completely, and it is necessary to wait until the transition animation is played completely, and then enter the application interface of the first application or start playing of the animation. In another case, after the transition animation is played, the first application is not started yet, and at this time, the electronic device does not switch the picture for a long time.
Therefore, in this embodiment, the start-up process of the first application is monitored, and the start-up status information of the first application is obtained, where the start-up status information includes but is not limited to: first information indicating a completion of a start-up of a first application; second information indicating an expected time required for the first application to be launched for completion, and the like.
And adjusting a third animation parameter of the transition animation in the starting process of the first application and/or the playing process of the transition animation according to the starting condition information.
The animation parameters include, but are not limited to, frame number, content and/or play rate of the transition animation.
For example, the time required for completing the starting of the first application is expected to be longer than the time for completing the playing of the transition animation at the standard speed, the frame number of the transition animation can be increased, the content to be played can be increased in the transition animation, or the playing speed of the transition animation can be slowed down, and the transition animation can be played at the actual playing speed which is lower than the standard speed.
For another example, the time length required for completing the starting of the first application is expected to be less than the time length for completing the playing of the transition animation at the standard speed, the frame number of the transition animation can be deleted, or the partially removable content to be played in the transition animation can be deleted, or the playing speed of the transition animation can be increased, so as to play the transition animation at the actual playing speed higher than the standard speed.
In some embodiments, the method further comprises:
reading a base animation of the transition animation;
and adjusting a third animation parameter of the transition animation according to the starting condition information, wherein the third animation parameter comprises the following steps:
modifying a third animation parameter of the base animation based on the start-up condition information.
The first storage area of the electronic equipment stores basic animations, the number of the basic animations can be one or more, and the basic animations are adjusted to form the played transition animation.
In some embodiments, the electronic device may store a plurality of different basic animations or transition animations in advance, and sequentially poll and play the basic animations or the transition animations according to the playing records of the basic animations or the transition animations, so that a phenomenon that only one basic animation or one transition animation is stored in the electronic device to cause the same playing effect of multiple application starts is reduced.
In some further embodiments, a corresponding relation between the basic animation and the transition animation and the function type of the first application is established, and the basic animation or the transition animation played in the background starting process of the first application is determined according to the corresponding relation.
In some embodiments, the method further comprises:
acquiring historical starting information of the first application;
and generating the transition animation of which the tail frame image is the first frame image of the starting animation by combining the historical starting information.
If the first application is not the newly installed application, the current starting of the first application by the electronic equipment is not the first starting, so that the information such as the starting time required by the first application for completing the starting can be estimated according to the historical starting information of the first application.
In some embodiments, the obtaining the historical launching information of the first application includes:
acquiring historical starting time of the first application for a preset number of times;
and acquiring the historical starting duration of the first application under the current resource condition of the electronic equipment.
In different resource conditions of the electronic device, the starting duration for starting the first application may be different, so in this embodiment, the historical starting duration of the first application is also obtained according to the current resource condition of the electronic device, and the accurate estimation of the starting duration of the current starting of the first application is realized.
In some embodiments, the detecting a launch instruction to launch the first application includes at least one of:
when the desktop is displayed, detecting a starting instruction for starting the first application;
while displaying an application interface of a second application, a start instruction to start the first application is detected.
In some embodiments, the first interface may be a desktop, and the desktop may be an interface displaying application icons of a plurality of applications and is a main interface of the operating system.
In other embodiments, the first interface is an application interface of a second application that is different from the first application.
In short, the application starting method in this embodiment may be applied to a start transition from a desktop to an application, and may also be applied to a transition between applications.
As shown in fig. 3, the present embodiment provides an application starting apparatus, including:
a detecting module 110, configured to detect a start instruction for starting a first application;
a starting module 120, configured to start the first application in a background according to the starting instruction;
the display module 130 is used for entering the display of transition animation based on the starting instruction; wherein the transition animation is different from a launch animation of the application;
and a switching module 140, configured to switch into an application interface display of the first application or a start animation display of the first application after the first application completes the start.
In some embodiments, the switching module 140 is specifically configured to output an application interface of the first application as an end frame image of the transition animation.
In some embodiments, the apparatus further comprises:
the first determining module is used for determining whether the first application contains the type of the starting animation;
the first obtaining module is used for obtaining the class information of the application interface of the first application if the first application is of a type containing a starting animation;
the display module 130 is configured to output the application interface of the first application as the end frame image of the transition animation according to the class information of the first application interface.
Further, the first obtaining unit is specifically configured to obtain class information of the first two classes of the first application if the first application is of a type that includes a start animation; wherein, the first class of the first two classes is the class information of the starting animation; the second class of the first two classes is class information of an application interface of the first application;
the display module 130 is configured to skip execution of a motion corresponding to the animation information if the class information of the first two classes is successfully acquired, and output the application interface of the first application as a last frame image of the transition animation according to the class information of the second class.
In some embodiments, the display module 130 is specifically configured to, if the first application does not include the type of the start animation, sequentially read the class information of the first application; the first class information of the first application is class information of an application interface of the first application; and outputting the application interface of the first application as a tail frame image of the transition animation according to the class information of the first class of the first application.
In some embodiments, upon a launch animation display of the first application after the first application has launched, the apparatus further comprises:
the second determination module is used for determining the first frame image of the starting animation of the first application;
the display module 130 is specifically configured to output the first frame image of the start animation as the last frame image of the transition animation.
In some embodiments, the second determining module is specifically configured to, by the transition thread, read, according to the identification information of the first application pointed by the start instruction, a first frame image of a start animation of the first application based on transition configuration information.
In some embodiments, the apparatus further comprises:
a first adjusting module for adjusting the animation parameters of the starting animation to change the starting animation from the original first animation parameters to the second animation parameters,
and the playing time length of the starting animation played by the first animation parameter is longer than the playing time length of the starting animation played by the second animation parameter.
In some embodiments, the first adjusting module is specifically configured to perform at least one of:
deleting the frame number of the starting animation;
and increasing the playing speed of the starting animation.
In some embodiments, the apparatus further comprises:
the second acquisition module is used for acquiring sight line information of the user;
the first adjusting module is used for adjusting the animation parameters of the starting animation if the sight line information indicates that the sight line of the user is located in the display area of the electronic equipment.
In still other embodiments, the apparatus further comprises:
the monitoring module is used for monitoring the starting process of the first application and acquiring the starting condition information of the first application;
a second adjusting module, configured to adjust a third animation parameter of the transition animation according to the start condition information, where the third animation parameter includes: at least one of a frame number, content, and playback rate.
In some embodiments, the apparatus further comprises:
the reading module is used for reading the basic animation of the transition animation;
the second adjusting module is specifically configured to modify a third animation parameter of the basic animation based on the starting condition information.
The base animation is stored in a predetermined area, for example, a buffer area, so that the playing of the transition animation can be started immediately after the start instruction is detected.
In some embodiments, the apparatus further comprises:
a third obtaining module, configured to obtain historical starting information of the first application;
and the generation module is used for generating the transition animation of which the tail frame image is the first frame image of the starting animation by combining the historical starting information.
A third obtaining module, specifically configured to execute at least one of:
acquiring historical starting time of the first application for a preset number of times;
and acquiring the historical starting duration of the first application under the current resource condition of the electronic equipment.
The detecting module 110 is specifically configured to execute at least one of the following:
when the desktop is displayed, detecting a starting instruction for starting the first application;
while displaying an application interface of a second application, a start instruction to start the first application is detected.
One specific example is provided below in connection with any of the embodiments described above:
example 1:
the present example provides a desktop-to-application fantasy based on engine (unity 3 d) to enable desktop display and management, comprising:
detecting user operation of an Application (APP) icon based on a desktop realized by unity3d, and sending a message of opening the APP to an android system by using UntiyPlayer.
Based on the message, starting loading the APP in the background, and simultaneously starting playing transition animation through the animation component by the unit;
when the APP is loaded, the unity animation is played until the last frame is overlapped with the first frame image of the APP, and the APP page covers the unity page, so that seamless transition is realized. The transition animation in the embodiment of the present invention may be an animation pre-stored in the electronic device, for example, an animation pre-stored in a cache of the electronic device.
After a starting instruction of the APP icon is detected, the unit acquires a first frame starting picture of the APP terminal, the picture is transmitted to the unit through data transmission, and the unit performs real-time operation on the last frame picture of the APP icon clicked by a user and the first frame starting picture of the APP terminal to form a transition animation; in this way, it is at least achieved that the last frame picture (i.e. the end frame picture) of each transition animation is different.
In this example, when the APP is loaded, the unity animation is played until the last frame coincides with the first frame image of the APP, and the APP page covers the unity page (the unity page may be an animation page of the transition animation, so as to implement seamless transition.
The unit obtains a first frame starting picture of the APP end, the picture is transmitted to the unit end through data transmission, and the unit performs real-time operation according to the last frame picture of the APP and the first frame starting picture of the APP end to form a section of transition animation.
In this example, the uniclayervity is an interface inside a jar packet that projects unity into one that can be used by android, and the android system uses uniclayervity to complete data communication of unity with android by inheriting uniclayervity.
As shown in fig. 4, the present embodiment further provides an electronic device, including:
display device
A memory;
and the processor is respectively connected with the audio acquisition module and the memory, and is used for controlling the display of the display by executing the computer executable instructions on the memory and realizing the application starting method provided by any technical scheme, for example, at least one of the methods shown in fig. 1 and/or fig. 2.
The electronic device provided by the embodiment can be various types of electronic devices, and optionally an in-vehicle device mounted on an automobile.
The display may be various types of displays, such as a liquid crystal display, an electronic ink display, or a projection display. The memory may be a variety of storage devices including computer storage media, which may be non-transitory storage media.
The processor may be various types of processors, such as a central processing unit, a microprocessor, a programmable array, or digital signal processing, among others.
The processor can be respectively connected with the display and the memory through structures such as a bus and the like, and controls the working states of the display and the memory.
In some embodiments, as shown in fig. 4, the electronic device provided in this embodiment further includes a human-computer interaction interface, where the human-computer interaction interface may include a touch screen, a voice capture module, and/or a physical key, and may detect a user instruction, for example, the user instruction includes, but is not limited to, the foregoing start instruction.
The present embodiments also provide a computer storage medium having computer-executable instructions stored thereon; the computer-executable instructions, when executed by a processor, can implement the application launching method provided by any of the foregoing technical solutions, for example, at least one of the methods shown in fig. 1 and/or fig. 2.
The computer storage medium may include a non-transitory storage medium, such as flash memory (flash) or the like.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (17)

1. An application startup method, comprising:
detecting a starting instruction for starting the first application;
starting the first application in a background according to the starting instruction;
entering the display of transition animation based on the starting instruction; wherein the transition animation is different from a launch animation of the application; the end frame image of the transition animation is as follows: a first frame image of the first application;
if the first frame image is the first frame image of the first application starting animation, obtaining sight line information of a user and adjusting animation parameters of the starting animation; wherein the adjusting animation parameters of the starting animation comprises: if the sight line information indicates that the sight line of the user is located in a display area of the electronic equipment, adjusting animation parameters of the starting animation;
and after the transition animation is displayed, the first application is operated in the foreground.
2. The method of claim 1, wherein the first application is a native application, and the first frame image of the first application is an application interface of the first application;
alternatively, the first and second electrodes may be,
and if the first application is a third-party application, the first frame image of the first application is the first frame image of the first application starting animation.
3. The method of claim 2, further comprising:
determining whether the first application contains a type to launch an animation;
if the first application is of a type containing a starting animation, acquiring class information of an application interface of the first application;
and outputting the application interface of the first application as a tail frame image of the transition animation according to the class information of the first application interface.
4. The method of claim 3, wherein the obtaining the class information of the application interface of the first application if the first application is of a type including a start animation comprises:
if the first application is of a type containing starting animation, obtaining class information of the first two classes of the first application; wherein, the first class of the first two classes is the class information of the starting animation; the second class of the first two classes is class information of an application interface of the first application;
and if the class information of the first two classes is successfully acquired, skipping the execution of the activity corresponding to the animation information, and outputting the application interface of the first application as the end frame image of the transition animation according to the class information of the second class.
5. The method of claim 3, wherein outputting the application interface of the first application as an end frame image of the transition animation comprises:
if the first application does not contain the type of the starting animation, sequentially reading the class information of the first application; the first class information of the first application is class information of an application interface of the first application;
the outputting the application interface of the first application as the end frame image of the transition animation comprises:
and outputting the application interface of the first application as a tail frame image of the transition animation according to the class information of the first class of the first application.
6. The method of claim 2, wherein if the first application is a third-party application, the first frame image of the first application is a first frame image of the first application startup animation, and the method comprises:
determining a first frame image of a starting animation of the first application;
and outputting the first frame image of the starting animation as the tail frame image of the transition animation.
7. The method of claim 6, wherein the determining a first frame image of a start animation of the first application comprises:
and the transition thread reads the first frame image of the starting animation of the first application based on transition configuration information according to the identification information of the first application pointed by the starting instruction.
8. The method of claim 6, further comprising:
adjusting animation parameters of the start animation so that the start animation is changed from original first animation parameters to second animation parameters,
and the playing time length of the starting animation played by the first animation parameter is longer than the playing time length of the starting animation played by the second animation parameter.
9. The method of claim 8, wherein said adjusting animation parameters of said start animation comprises:
deleting the frame number of the starting animation;
and increasing the playing speed of the starting animation.
10. The method according to any one of claims 1 to 9, further comprising:
monitoring the starting process of the first application to obtain starting condition information of the first application;
adjusting a third animation parameter of the transition animation according to the starting condition information, wherein the third animation parameter comprises: at least one of a frame number, content, and playback rate.
11. The method of claim 10, further comprising:
reading a base animation of the transition animation;
and adjusting a third animation parameter of the transition animation according to the starting condition information, wherein the third animation parameter comprises the following steps:
modifying a third animation parameter of the base animation based on the starting condition information.
12. The method of claim 10, further comprising:
acquiring historical starting information of the first application;
and generating the transition animation of which the tail frame image is the first frame image of the starting animation by combining the historical starting information.
13. The method of claim 12, wherein obtaining historical launch information for the first application comprises at least one of:
acquiring historical starting time of the first application for a preset number of times;
and acquiring the historical starting time of the first application under the current resource condition of the electronic equipment.
14. The method according to any one of claims 1 to 9, wherein the detecting of the start instruction for starting the first application comprises at least one of:
when the desktop is displayed, detecting a starting instruction for starting the first application;
while displaying an application interface of a second application, a start instruction to start the first application is detected.
15. An application startup device, characterized by comprising:
the detection module is used for detecting a starting instruction for starting the first application;
the starting module is used for starting the first application at the background according to the starting instruction;
the display module is used for entering the display of transition animation based on the starting instruction; wherein the transition animation is different from a launch animation of the application; the end frame image of the transition animation is as follows: a first frame image of the first application;
the adjusting module is used for acquiring sight line information of a user and adjusting animation parameters of the starting animation if the first frame image is the first frame image of the first application starting animation; wherein the adjusting animation parameters of the starting animation comprises: if the sight line information indicates that the sight line of the user is located in a display area of the electronic equipment, adjusting animation parameters of the starting animation;
and the switching module is used for running the first application in the foreground after the transition animation is displayed.
16. An electronic device, comprising:
a display;
a memory;
a processor, coupled to the display and the memory, respectively, for controlling the display of the display by executing computer-executable instructions stored on the memory, and implementing the method provided by any one of claims 1 to 14.
17. A computer storage medium having computer-executable instructions stored thereon; the computer executable instructions, when executed by a processor, enable the method as provided in any one of claims 1 to 14.
CN201910286144.0A 2019-04-10 2019-04-10 Application starting method and device, electronic equipment and storage medium Active CN110162343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910286144.0A CN110162343B (en) 2019-04-10 2019-04-10 Application starting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910286144.0A CN110162343B (en) 2019-04-10 2019-04-10 Application starting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110162343A CN110162343A (en) 2019-08-23
CN110162343B true CN110162343B (en) 2023-04-07

Family

ID=67639056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910286144.0A Active CN110162343B (en) 2019-04-10 2019-04-10 Application starting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110162343B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569100B (en) * 2019-09-23 2023-04-07 重庆渝高科技产业(集团)股份有限公司 Transition animation playing control system
CN113778633A (en) * 2020-06-09 2021-12-10 比亚迪股份有限公司 Operation control method and device of vehicle machine
CN113835793B (en) * 2020-06-22 2023-09-01 深圳市万普拉斯科技有限公司 Switch display method and device in setting interface, electronic equipment and storage medium
CN112702656A (en) * 2020-12-21 2021-04-23 北京达佳互联信息技术有限公司 Video editing method and video editing device
CN113176904A (en) * 2021-04-16 2021-07-27 维沃移动通信有限公司 Application starting animation adjusting method and device
CN115344176A (en) * 2021-05-12 2022-11-15 荣耀终端有限公司 Display method and electronic equipment
CN115390957A (en) * 2021-05-25 2022-11-25 华为技术有限公司 Method and device for dynamic effect linking of application programs
CN115480834A (en) * 2021-05-29 2022-12-16 华为技术有限公司 Display method and electronic equipment
CN113806727B (en) * 2021-08-12 2022-12-02 荣耀终端有限公司 Switching method for login account of electronic equipment and electronic equipment
CN113627994A (en) * 2021-08-27 2021-11-09 京东方科技集团股份有限公司 Material processing method and device for information distribution, electronic equipment and storage medium
CN114047973A (en) * 2021-11-15 2022-02-15 合众新能源汽车有限公司 Starting method and starting device for vehicle-mounted application
CN117648137A (en) * 2022-01-10 2024-03-05 荣耀终端有限公司 Application starting method, electronic device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013152627A (en) * 2012-01-25 2013-08-08 Denso Corp On-vehicle terminal, and application execution environment program
CN106557328A (en) * 2016-11-29 2017-04-05 芜湖美智空调设备有限公司 A kind of method for realizing household electrical appliances transition animation, system and client
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488833A (en) * 2014-10-09 2016-04-13 华为技术有限公司 Method and apparatus for realizing 3D transition animation for 2D control
CN104462567B (en) * 2014-12-26 2018-01-09 北京奇虎科技有限公司 The switching method and apparatus of web page and the comprehensive page provide device
CN105516767B (en) * 2015-12-01 2019-04-16 海信集团有限公司 Smart television and its application switching method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013152627A (en) * 2012-01-25 2013-08-08 Denso Corp On-vehicle terminal, and application execution environment program
CN106557328A (en) * 2016-11-29 2017-04-05 芜湖美智空调设备有限公司 A kind of method for realizing household electrical appliances transition animation, system and client
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device

Also Published As

Publication number Publication date
CN110162343A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110162343B (en) Application starting method and device, electronic equipment and storage medium
CN108491275B (en) Program optimization method, device, terminal and storage medium
CN107483812B (en) Multi-platform parallel live broadcast method and device
CN106998494B (en) Video recording method and related device
CN108496198B (en) Image processing method and device
CN109391843B (en) Online video speed doubling playing method, device, medium and intelligent terminal
CN112231021B (en) Method and device for guiding new functions of software
CN110781080B (en) Program debugging method and device and storage medium
CN111966311A (en) Display setting method and device of cloud game, readable storage medium and equipment
CN111367456A (en) Communication terminal and display method in multi-window mode
CN110825456A (en) Loading time calculation method and device, computer equipment and storage medium
CN113259744B (en) Video display method, device, equipment and medium
CN109618216B (en) Method, device and equipment for displaying video loading state identification and storage medium
EP3671627A1 (en) Image processing method and device
CN104615432B (en) Splash screen information processing method and client
CN112148395A (en) Page display method, device, equipment and storage medium
CN105893020A (en) Screen recording starting method, screen recording starting device and mobile terminal
US20230412723A1 (en) Method and apparatus for generating imagery record, electronic device, and storage medium
WO2014067368A1 (en) Method, apparatus and device for obtaining resource preview image
CN110941464B (en) Light exposure method, device, system and storage medium
CN110248237B (en) Video playing method, device, equipment and storage medium
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN113825022A (en) Play control state detection method and device, storage medium and electronic equipment
CN107678737B (en) Service processing method and device and self-service terminal equipment
US20220035591A1 (en) Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium

Legal Events

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