Abstract:
This application provides a method for performing a drawing operation by an application and an electronic device. The method for performing a drawing operation by an application includes: determining a background drawing frequency of an application program; and when the application program is switched to a background application, intercepting a drawing operation of the application program, so that the application program performs the drawing operation at the background drawing frequency.
Abstract:
A method for recovering description information, or a method for caching data in a database, includes: judging whether a database is closed normally after the last operation; if the database is not closed normally, traversing each data block in a level-2 cache, where corresponding disk location information is saved in a header of each data block; obtaining a data block in a disk according to the disk location information; and when the obtained data block in the disk is the same as a corresponding data block in the level-2 cache, establishing description information according to location information of the data block in the disk and location information of the data block in the level-2 cache, where the description information is used to describe correspondence between the location information of data in the disk and the location information of data in the level-2 cache.
Abstract:
A method includes playing a starting animation and an exiting animation of a first application using a same animationLeash object such that the starting animation and the exiting animation transition smoothly. When playing the starting animation stops, the exiting animation is played.
Abstract:
A display method and an electronic device provide icon animation and starting window image decoding that can be performed in parallel. After a launch operation is detected, an application launch animation may start to be displayed, thus reducing waiting latency and improving user experience.