Display device and over-the-scene animation configuration method
By obtaining the developer ID and system API version of the application and utilizing cross-process communication and resource libraries, the problem of inconsistent animation effects when switching across application stacks is solved, unified configuration and stability of animation effects are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202510884069.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-10-17
AI Technical Summary
In the iterative updates of the Android system, when switching across application stacks, the cutscene resource IDs of each application are inconsistent, resulting in chaotic loading of animation effects.
By obtaining the developer identifiers of the first application and the second application, the animation effect configuration file is obtained from the shared resource library or the default resource library respectively to ensure the consistency of the entry and exit animations. The animation effect decision maker is determined by using cross-process communication and system API version to achieve unified configuration of animation effects.
During the application switching process, the continuity and consistency of the animation effects are guaranteed, which avoids animation loading errors caused by inconsistent resource IDs and improves the user experience.
Smart Images

Figure CN120803582A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display devices, and in particular to a display device and a transition animation configuration method. BACKGROUND
[0002] The applications running in the display device can perform animation entering effects and animation exiting effects when switching, and the animation entering effects and the animation exiting effects are adapted to each other to ensure the fluency and the watchability of the application switching. The animation effects can be defined in advance, and the applications only need to access the configuration files corresponding to the animation effects to implement the application of the animation effects in the process of switching.
[0003] However, based on the iterative update of the Android system, the application switching is implemented in the cross-application stack scenario. In order to ensure the stability and safety of the running in the cross-task stack switching scenario, the Android system will forcibly take over the animation control, that is, the system default animation effect is used as the switching animation.
[0004] In order to avoid the system from forcibly executing the default animation, a self-defined animation effect can be implemented based on the independent compilation mode of the plug-in framework. However, in this mode, different resource IDs can be assigned to the same animation effect resource by different plug-ins, so that the animation effect resources accessed by the plug-ins of different applications are inconsistent in the process of switching, resulting in the disorder of the animation effect loading. SUMMARY
[0005] The present application provides a display device and a transition animation configuration method to solve the problem that the animation effect loading is easily disordered due to the inconsistent transition animation resource IDs of different applications in the process of application switching.
[0006] In a first aspect, the present application provides a display device, comprising a display and a controller. The controller is configured to:
[0007] In response to an application switching instruction, the developer identifiers of a first application and a second application are obtained. The first application is an application currently running in the foreground, and the second application is an application to be switched to run in the foreground. The developer identifier is used to represent the developer identity information of the first application and the second application.
[0008] If the developer identifiers of the first application and the second application are the same, a first animation effect configuration file is obtained from a shared resource library of the first application and the second application. The exit animation of the first application is configured according to the entry animation configuration information in the first animation effect configuration file, and the entry animation of the second application is configured according to the exit animation configuration information in the first animation effect configuration file.
[0009] If the developer identifiers of the first application and the second application are different, the second animation effect configuration file is obtained from the default resource library of the first application or the third animation effect configuration file is obtained from the default resource library of the second application; the exit animation of the first application is configured according to the entry animation configuration information of the second animation effect configuration file or the third animation effect configuration file, and the entry animation of the second application is configured according to the exit animation configuration information of the second animation effect configuration file or the third animation effect configuration file.
[0010] In this way, it can be ensured that the entry animation and the exit animation corresponding to the first application and the second application belong to the same animation resource in the scenario of application switching, and thus the problem of animation loading disorder caused by the inconsistency of animation resource IDs corresponding to different applications can be avoided.
[0011] In some possible embodiments, the controller performs obtaining the first animation effect configuration file from the shared resource library of the first application and the second application, and is specifically configured to:
[0012] Obtain the first animation resource name and the first resource query interface of the first application.
[0013] Access the shared resource table through the first resource query interface.
[0014] Obtain the first animation resource ID from the shared resource table according to the first animation resource name. The first animation resource ID is a unique identifier corresponding to the animation resource used by the first application when entering or exiting the foreground running. The shared resource table includes a mapping relationship between the resource name and the resource ID.
[0015] Obtain the first animation effect configuration file from the shared resource library according to the first animation resource ID.
[0016] In this way, in the scenario where the developer identifiers of the first application and the second application are the same, the first application can determine which animation effect to use, and the first application can access the shared resource table to obtain the first animation resource ID according to the resource name, and then request the animation effect configuration file from the shared resource library according to the first animation resource ID. Based on the shared resource table and the shared resource library, it can be ensured that the first application and the second application use consistent animation resources, and the problem of animation disorder caused by the mismatch of resource IDs can be avoided.
[0017] In some possible embodiments, the controller performs obtaining the first animation effect configuration file from the shared resource library according to the first animation resource ID, and is further configured to:
[0018] Obtain a resource sharing interface.
[0019] Send the first animation resource ID to the second application through the resource sharing interface.
[0020] The second application is controlled to acquire the first animation effect configuration file from the shared resource library according to the first animation resource ID.
[0021] In this way, the first application can share the animation resource ID to the second application through the resource sharing interface, and the second application can directly acquire the animation effect configuration file from the shared resource library according to the animation resource ID, and then the same animation effect configuration file can be used by the first application and the second application in the scenario where the developer identifiers are consistent, and loading disorder of the animation effect is avoided.
[0022] In some possible embodiments, the controller is further configured to, in a case where the developer identifiers of the first application and the second application are different:
[0023] acquire an API version number of a system for supporting running of the first application and the second application. The system API version is used to represent an animation resource acquisition manner supported by the system.
[0024] If the API version number is in a first preset range, a third animation effect configuration file provided by the second application is acquired.
[0025] If the API version number is in a second preset range, a second animation effect configuration file is acquired from a default resource library of the first application. The API version number in the second preset range is lower than the API version number in the first preset range.
[0026] In this way, in the scenario where the developer identifiers of the first application and the second application are different, the animation effect configuration manner can be determined by judging the API version of the system. In the system with a high version number, the second application can be used as an animation effect decision maker to synchronize the animation effect. In the system with a relatively low version number, the first application can be used as an animation effect decision maker to synchronize the animation effect, so as to adapt to the animation resource demand in different system environments and ensure the coherence and consistency of the animation effect.
[0027] In some possible embodiments, the controller is further configured to, after acquiring the third animation effect configuration file from the default resource library of the first application:
[0028] configure an exit animation of the first application according to entry animation configuration information in the second animation effect configuration file.
[0029] configure an entry animation of the second application according to exit animation configuration information in the second animation effect configuration file.
[0030] In this way, when the API version of the system is in the second preset range, the first application can determine which animation effect to use, and the first application can synchronize the animation effect to the second application, so as to ensure consistency of the animation effect of the first application and the second application.
[0031] In some possible embodiments, the controller is further configured to, in the case that the developers of the first application and the second application are different:
[0032] obtain animation effect policy token and animation effect policy verification information. The animation effect policy token comprises animation effect policy metadata. The animation effect policy metadata is data provided by the first application for defining an animation effect execution policy. The animation effect policy verification information is used to represent a valid running range of the animation effect.
[0033] In the case that the animation effect policy metadata is in the valid running range, obtain an API version number of a system for supporting running of the first application and the second application.
[0034] In the case that the animation effect policy metadata is not in the valid running range, obtain a default animation effect configuration file of the system. The exit animation of the first application and the entry animation of the second application are configured according to the default animation effect configuration file.
[0035] In this way, the first application can provide the animation effect policy token in the process of application switching, so as to provide the animation effect execution policy through the animation effect policy token, so as to ensure that the animation effect does not affect the normal running of the system in the process of execution, and further ensure the stability of the system in the process of application switching.
[0036] In some possible embodiments, the controller is further configured to, before obtaining the animation effect policy token and the animation effect policy verification information:
[0037] control the first application to create the animation effect policy token.
[0038] control the first application to send the animation effect policy token to the second application. The animation effect policy token is used to enable the second application to call an animation policy verification interface.
[0039] In the case that the second application calls the animation policy verification interface, obtain the animation effect policy token and the animation effect policy verification information.
[0040] In this way, the first application and the second application can synchronize the animation effect policy token, forming a double-layer animation effect policy verification process, which on the one hand ensures consistency of the animation effects of the first application and the second application, and on the other hand ensures stability and security of the animation effect in cross-application stack jumping and running stability of the system in the process of application switching.
[0041] In some possible embodiments, the animation effect policy metadata comprises system-level policy metadata, application-level policy metadata, and window-level policy metadata. The system-level policy metadata is used to limit the system memory required by the animation effect. The application-level policy metadata is used to limit the developer running permission of the animation effect. The window-level policy metadata is used to limit the animation effect display permission of the animation running window.
[0042] The controller configured to acquire the animation effect policy token and the animation effect policy verification information is further configured to:
[0043] In a case where any one of the system-level policy metadata, the application-level policy metadata, and the window-level policy metadata is not in the valid running range, acquire a default animation effect configuration file of the system.
[0044] In this way, through multi-level policy verification, the consistency and stability of the animation effect between different applications and windows are ensured, animation failure caused by insufficient permission or resources is avoided, and the efficiency of the overall system operation and the fluency of the user experience are further guaranteed.
[0045] In some possible embodiments, the controller is further configured to:
[0046] If the API version number is in a third preset range, acquire a default animation effect configuration file of the system. The API version number in the third preset range is lower than the API version number in the second preset range.
[0047] According to the exit animation configuration information in the default animation effect configuration file, configure the entry animation of the second application.
[0048] According to the exit animation configuration information in the default animation effect configuration file, configure the entry animation of the second application.
[0049] In this way, even if the API version is low, the system can automatically adapt to the default animation configuration, ensure the coherence and stability of the animation effect when switching between applications, and further optimize the user experience.
[0050] In a second aspect, the present application provides an application transition animation configuration method, comprising:
[0051] In response to an application switching instruction, acquire the developer identifiers of a first application and a second application. The first application is an application that is about to be switched to foreground running, and the second application is an application that is currently running in the foreground. The developer identifier is used to represent the developer identity information of the first application and the second application.
[0052] If the developer identities of the first application and the second application are the same, the first animation effect configuration file is acquired from the shared resource library of the first application and the second application. The exit animation of the first application is configured according to the entry animation configuration information in the first animation effect configuration file, and the entry animation of the second application is configured according to the exit animation configuration information of the first animation effect configuration file.
[0053] If the developer identities of the first application and the second application are different, the second animation effect configuration file is acquired from the default resource library of the second application. The exit animation of the first application is configured according to the entry animation configuration information of the second animation effect configuration file, and the entry animation of the second application is configured according to the exit animation configuration information of the second animation effect configuration file. BRIEF DESCRIPTION OF DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0055] Figure 1 The schematic diagram of the display device operation scene provided by some embodiments of the present application;
[0056] Figure 2 The schematic diagram of the hardware configuration of the display device provided by some embodiments of the present application;
[0057] Figure 3 The schematic diagram of the software configuration of the display device provided by some embodiments of the present application;
[0058] Figure 4 The schematic diagram of the architecture of the plug-in, host and software product provided by some embodiments of the present application;
[0059] Figure 5 The schematic diagram of the interlude animation configuration process provided by some embodiments of the present application;
[0060] Figure 6 The schematic diagram of the process in which the first application acquires the first animation effect configuration file provided by some embodiments of the present application;
[0061] Figure 7 The schematic diagram of the process in which the first application and the second application coordinate the animation effect provided by some embodiments of the present application;
[0062] Figure 8 The schematic diagram of the animation effect configuration process of the first application and the second application when the API version number is in the first preset range provided by some embodiments of the present application;
[0063] Figure 9The API version number provided for some embodiments of the present application is in a second preset range, and the animation effect configuration flowchart of the first application and the second application is provided;
[0064] Figure 10 The animation effect verification flowchart provided for some embodiments of the present application is provided;
[0065] Figure 11 The animation effect strategy token schematic diagram provided for some embodiments of the present application is provided;
[0066] Figure 12 The single-layer animation effect verification flowchart provided for some embodiments of the present application is provided;
[0067] Figure 13 The double-layer animation effect verification flowchart provided for some embodiments of the present application is provided. DETAILED DESCRIPTION
[0068] The embodiments will be described in detail below with reference to the drawings. When the description below refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following embodiments are not meant to represent all implementations consistent with the present application. Rather, they are merely examples of implementations consistent with some aspects of the present application as detailed in the claims.
[0069] The embodiments will be described in detail below with reference to the drawings. When the description below refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following embodiments are not meant to represent all implementations consistent with the present application. Rather, they are merely examples of implementations consistent with some aspects of the present application as detailed in the claims.
[0070] It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the implementations described next, and is not intended to limit the implementations of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.
[0071] The terms "first", "second", "third", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit the specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchanged under appropriate circumstances.
[0072] The terms "include" and "have" and any variations thereof are intended to cover but not exclusive inclusion, for example, a product or device including a series of components does not necessarily limit to all components clearly listed, but can include other components not clearly listed or inherent to these products or devices.
[0073] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functionality associated with that element.
[0074] In the embodiments of the present application, the display device 200 generally refers to a device capable of displaying images and processing data. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.
[0075] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG, a user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.
[0076] The mobile terminal 300 can function as a control device for performing human-computer interaction between a user and the display device 200. The mobile terminal 300 can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, enabling connection and communication via a network communication protocol, enabling one-to-one control operations and data communication. Audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 for synchronized display.
[0077] like Figure 1 As shown in FIG, the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0078] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart TV, Internet Protocol television (IPTV), etc.
[0079] Figure 2 Some embodiments of this application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.
[0080] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0081] In some embodiments, the detector 230 is configured to collect signals of the external environment or the external interaction. For example, the detector 230 can include a millimeter wave radar, which can be configured to detect whether a user is included in a preset range. The detector 230 can also include a sound collector, which is configured to collect voice instructions input by the user.
[0082] In some embodiments, the display 260 includes a display functional component configured to present a picture, and a driving component configured to drive the image display. The display 260 is configured to receive an image signal output from the controller 250 for display. For example, the display 260 can be configured to display video content, image content, components of a menu control interface, and a user control UI interface, etc.
[0083] In some embodiments, the communication device 220 is a component configured to communicate with the external device or the server 400 according to various communication protocol types. The display device 200 can be provided with multiple communication devices 220 according to different supported communication manners. For example, when the display device 200 supports wireless network communication, the display device 200 can be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.
[0084] The communication device 220 can be configured to connect the display device 200 to the external device or the server 400 in a wireless or wired manner. The wired connection can be achieved by connecting the display device 200 to the external device through a data line, an interface, or the like. The wireless connection can be achieved by connecting the display device 200 to the external device through a wireless signal or a wireless network. The display device 200 can be directly connected to the external device, or can be indirectly connected to the external device through a gateway, a router, a connection device, or the like.
[0085] In some embodiments, the controller 250 can include at least one of a central processor, a video processor, an audio processor, a graphics processor, a power supply processor, a first interface to an n-th interface for input / output, and the controller 250 can control the operation of the display device and respond to the user's operation by controlling various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0086] In some embodiments, the controller 250 and the tuner demodulator 210 can be located in different split devices, i.e., the tuner demodulator 210 can also be located in an external device of the main body device where the controller 250 is located, such as an external set-top box, etc.
[0087] In some embodiments, the user can input user commands through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input commands through the graphical user interface (GUI).
[0088] In some embodiments, the audio output device 270 can be a native loudspeaker of the display device 200, or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 can further be provided with an external audio output terminal, and the audio output device can be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.
[0089] In some embodiments, the user input interface 280 can be used to receive instructions from user input. The user input interface 280 can include at least one of a microphone, a touchpad, a sensor, a remote control, and the like. In turn, the display device 200 can execute interactive functions with the user based on the instructions received by the user input interface 280 from the user input.
[0090] In order to perform user interaction, in some embodiments, the display device 200 can run an operating system. The operating system is a computer program used to manage and control hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.
[0091] It should be noted that the operating system can be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.
[0092] The operating system can be divided into different modules or levels according to the functions implemented, for example, as shown in FIG. 1, in some embodiments, the system is divided into four layers, from top to bottom, the application layer (referred to as "application layer" for short), the application framework layer (referred to as "framework layer" for short), the system library layer and the kernel layer. Figure 3
[0093] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer can host at least one application, which can include built-in window programs, system settings programs, clock programs, and the like, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0094] The framework layer provides applications with an application programming interface (API) and programming framework. The application framework layer includes predefined functions. The application framework layer acts as a processing center, determining the actions taken by applications in the application layer. Through the API, applications can access system resources and services during execution.
[0095] like Figure 3 As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to the system location service; a package manager for retrieving various information related to the application packages currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0096] In some embodiments, the activity manager is used to manage the lifecycle of each application and common navigation back functions, such as controlling application exit, opening, and back. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, taking screenshots, and controlling changes in display windows, such as shrinking, shaking, or distorting the display window.
[0097] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system runs the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions implemented by the framework layer.
[0098] In some embodiments, the kernel layer is a functional layer between the hardware and the software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, memory management, etc. For example, as shown in FIG. 2B, the kernel layer can be configured with hardware drivers. The drivers contained in the kernel layer can be at least one of the following drivers: an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power supply driver, etc. Figure 3
[0099] As shown in FIG. 2C, in the display device 200, a complete software product can be composed of a host and multiple plugins during the running process to form a functional set. For example, taking an e-commerce APP (Application) as an example, the host can provide the overall framework of the e-commerce APP, such as product display and user system. The plugins are responsible for specific functional modules, such as payment interface, logistics tracking, customer service chat, recommendation algorithm, etc. Through the cooperative work of the plugins, the user can obtain a smooth use experience when using the software product. Figure 4
[0100] Among them, the host as the core application framework, is mainly used to provide a running environment, manage the life cycle of the plugins, define the interface and communication protocol between the plugins, etc. The plugins correspond to independent functional modules, and usually exist in the form of APK (Andrioid Application Package) files. The plugins must depend on the loading of the host and the provision of the context to work normally. In some scenarios, the functional module corresponding to the plugin can be the function corresponding to the application in the software product, that is, the plugin can correspond to the application in the software product.
[0101] In this way, during the switching process of the application, the plugins can realize seamless switching of the application through the coordination of the host. Moreover, during the switching process of the application, it is not limited to the foreground-background switching of the application. In order to ensure the fluency or the visual enjoyment during the switching process, the developer can pre-set a transition animation for the switching process of the application. For example, when the application enters the foreground, the animation effect of sliding in from the left side can be used for display, and at the same time, when the switched application exits the foreground, the animation effect of sliding out from the right side can be used for hiding.
[0102] For the convenience of description, the application currently running in the foreground is referred to as the first application, i.e., the caller, and the application about to run in the foreground is referred to as the second application, i.e., the target, in the description of the current embodiment and subsequent embodiments.
[0103] It can be understood that there is a certain timing and coordination relationship between the animation effects of the first application and the second application, which ensures that the animation transition is natural and smooth. In this way, it is necessary to ensure the consistency of the animation effects of the first application and the second application during the configuration of the animation effects.
[0104] The plugins corresponding to the first application and the second application can access the animation effect configuration file prepared by the developer in advance to configure the animation effects. In order to ensure the consistency of the animation effects, the developer can set the exit animation required by the first application and the entry animation required by the second application in the animation effect configuration file, so that the first application and the second application respectively obtain the corresponding animation configuration information according to the identity parameters allocated by the system framework during application switching, and then configure the animation effects according to the animation configuration information.
[0105] For example, the Android system framework can allocate an "exit" identity parameter to the first application and an "entry" identity parameter to the second application during application switching, so that the first application can obtain the entry animation configuration information based on the exit identity parameter, and the second application can obtain the exit animation configuration information based on the entry identity parameter.
[0106] However, in the process of obtaining the animation effect configuration file by the plugins corresponding to the first application and the second application, the resource ID corresponding to the plugin itself can only be used within the plugin, so that in the process of developing the plugin, if the resource IDs corresponding to the animation effect configuration files are different, the host cannot provide the same animation effect configuration for the applications through different resource IDs provided by different plugins when the plugins corresponding to the first application and the second application request the resource IDs from the host to obtain the animation effect configuration files. Or even in the case where the resource IDs are the same, since the setting modes of the resource IDs corresponding to the plugins are different, the case where the configuration files corresponding to the same resource ID are different will also occur. Therefore, it is difficult to ensure the consistency of the animation effects of the first application and the second application.
[0107] To solve the above problems, the present application provides a display device 200, which comprises a display 260 and a controller 250. The display 260 can display a transition animation corresponding to an application switching process during the application switching process. The controller 250 can configure a transition animation for the first application and the second application during the application switching process. As shown in the figure, Figure 5 The controller is configured to:
[0108] S100: In response to an application switching instruction, obtain the developer identities of the first application and the second application.
[0109] In some embodiments, the developer identifier can be used to distinguish the developers to which the first application and the second application belong. The developer identifier can include an application package name, an application signature certificate, and the like. According to these identifiers, it can be determined whether the first application and the second application belong to the same developer, i.e., the corresponding developer identifiers are the same when the developers to which the first application and the second application belong are the same, and the corresponding developer identifiers are different when the developers to which the first application and the second application belong are different.
[0110] In this way, according to the developer attribution of the first application and the second application, a corresponding animation effect configuration strategy can be executed.
[0111] S200: If the developer identifiers of the first application and the second application are the same, the first animation effect configuration file is obtained from the shared resource library of the first application and the second application. The exit animation of the first application is configured according to the exit animation configuration information in the first animation effect configuration file, and the entry animation of the second application is configured according to the entry animation configuration information in the first animation effect configuration file.
[0112] In some embodiments, the first application and the second application belonging to the same developer can share part of the resources, i.e., the developer can pre-set a shared resource library to store the resources, such as animation effect configuration files, that the first application and the second application need to share. The animation effect configuration files obtained by the first application and the second application from the shared resource library are collectively referred to as the first animation effect configuration file.
[0113] In this way, during the switching process, the first application and the second application can obtain the first animation effect configuration file from the shared resource library, and configure their respective animation effects according to the first animation effect configuration file.
[0114] It can be understood that the first animation effect configuration file can include entry configuration information and exit configuration information. The first application can obtain the exit configuration information according to the pre-assigned exit identity parameter, and the second application can obtain the entry configuration information according to the pre-assigned entry identity parameter, thereby ensuring the consistency of the animation effects.
[0115] In some embodiments, the process in which the first application and the second application obtain the first animation effect configuration file can be completed by the plug-ins corresponding to the first application and the second application. The plug-ins read the corresponding animation files from the shared resource library. The process in which the plug-ins read the animation files is introduced in subsequent embodiments.
[0116] S300: If the developer identifiers of the first application and the second application are different, obtain the second animation effect configuration file from the default resource library of the first application or obtain the third animation effect configuration file from the default resource library of the second application; configure the exit animation of the first application according to the entry animation configuration information of the second animation effect configuration file or the third animation effect configuration file, and configure the entry animation of the second application according to the exit animation configuration information of the second animation effect configuration file or the third animation effect configuration file.
[0117] In some embodiments, the first application and the second application, which belong to different developers, each have independent resource libraries, and it is difficult for the applications from different developers to directly access the resource libraries of other applications. That is, the first application and the second application unify the animation effect configuration through coordination.
[0118] If the first application and the second application belong to different developers, the decision-making power for animation effects needs to be handed over to the second application. That is, after the second application obtains the animation effect configuration file from its default resource library, it can actively call the interface to upload the animation effect configuration file or animation effect configuration information to the system framework, so that the first application can read the animation effect configuration information in the system framework through the interface. This will achieve a unified animation effect configuration method with the second application as the animation effect decision-maker. The specific process of the second application uploading animation effect configuration information will be described in the subsequent embodiments.
[0119] In this way, if the first and second applications belong to the same developer, the decision-making power of the animation effects lies with the first application, and the first application can coordinate with the second application to obtain the first animation effect configuration file from the shared resource library to ensure the consistency of the animation effects. If they are developed by different developers, the second application becomes the decision-maker of the animation effects and achieves unified animation effects across applications by uploading the configuration information to the system framework.
[0120] In other embodiments, the decision-making power of animation effects can also be handed over to the first application, but the synchronization behavior of the first application's animation effects needs to be verified to ensure that it meets the animation effect configuration standards of the second application. This can also ensure that the first and second applications maintain consistency in transition animations even if they are developed by different developers.
[0121] like Figure 6 As shown, the controller is configured as follows during the process of configuring the animation effect of the first application:
[0122] Get the first animation resource name and first resource query interface of the first application.
[0123] Access the shared resource table through the first resource query interface.
[0124] According to the first animation resource name, a first animation resource ID is obtained from a shared resource table. The first animation resource ID is a unique identifier corresponding to an animation resource used by the first application when entering or exiting the foreground. The shared resource table includes a mapping relationship between resource names and resource IDs.
[0125] According to the first animation resource ID, a first animation effect configuration file is obtained from a shared resource library.
[0126] In some embodiments, the first animation resource name of the first application is pre-set by the developer. For example, after the first application receives an application switching instruction and is assigned an exit configuration parameter, the plug-in corresponding to the first application can confirm the animation resource name it needs, such as "slide_in".
[0127] In addition, the host actively provides a resource query interface during the application switching process, so that the plug-in corresponding to the first application can access the shared resource table through the resource query interface. The shared resource table records the first animation resource ID that has a mapping relationship with the first animation resource name. In the scenario where the first application and the second application belong to the same developer, the first animation resource ID is a global ID relative to the first application and the second application, and has global uniqueness, that is, the first animation resource ID corresponds to a unique animation effect configuration file. In this way, it can be ensured that the animation effect configuration file obtained by the plug-in corresponding to the first application and the second application through the first animation resource ID is the same. Further, the entry animation of the first application and the exit animation of the second application have consistency.
[0128] It should be noted that the shared resource table and the shared resource library are pre-set by the developer, and the plug-ins belonging to the same developer can access the shared resource table and the shared resource library to obtain target resources. The plug-in can access the shared resource table and the shared resource library through an interface provided by the system architecture.
[0129] For example, the plug-in can access the shared resource table through getHostResourceId("slide_in", "animation") to obtain the first animation resource ID corresponding to the current animation resource name.
[0130] Further, the plug-in can obtain an animation effect configuration file from the shared resource library according to the first animation resource ID. For example, the plug-in uploads the first animation resource ID to the system framework through the overridePendingTransition interface provided by the system framework, and the system framework can receive the first animation resource ID through ActivityTaskManagerService, and control the host to load the animation resource file corresponding to the first animation resource ID.
[0131] In addition, the plug-in corresponding to the first application can send the first animation resource ID to the plug-in of the second application, and the plug-in corresponding to the second application can configure the exit animation in the same animation effect configuration manner as the first application after receiving the first animation resource ID, thereby ensuring consistency of the transition animation of the first application and the second application.
[0132] In this way, in the case where the first application and the second application belong to the same developer, the first application is the decision maker in the animation effect configuration stage, and based on the cross-process communication manner, the first application can reach a consensus with the second application on animation effect configuration, thereby ensuring consistency of the transition animation.
[0133] As shown in Figure 7 The first application can coordinate the animation effect with the second application in a cross-process communication manner to ensure consistency of the transition animation performed by the first application and the second application in the application switching scenario. That is, the controller is configured to:
[0134] Obtain the resource sharing interface.
[0135] Send the first animation resource ID to the second application through the resource sharing interface.
[0136] Control the second application to obtain the first animation effect configuration file from the shared resource library according to the first animation resource ID.
[0137] In some embodiments, the system framework can provide a resource sharing interface, and based on the resource sharing interface, the cross-process communication capability can be provided for the first application and the second application. For example, the first application can communicate with the second application based on the cross-process communication manner of binder, and then send the first animation resource ID to the second application.
[0138] After the second application receives the ID, it can also trigger the ActivityTaskManagerService of the system framework through the overridePendingTransition interface, and then the system framework loads the animation resource file corresponding to the ID to the second application through the host.
[0139] In this way, based on the support of cross-process communication, the first application and the second application can ensure consistency of the entry animation and the exit animation when performing the transition animation, and prevent the problem of animation loading disorder caused by difficulty in unifying animation resources.
[0140] If the developer identifiers of the first and second applications are different, it is difficult for the first and second applications to directly access each other's configured resource files. Therefore, it is necessary to combine the various interfaces provided by the system framework to achieve unified animation effect configuration for the first and second applications. Different system API version numbers support different interface call capabilities. Therefore, it is necessary to combine the API version numbers of the system supporting the operation of the first and second applications to determine the decision maker of the animation effect to adapt to the unified animation effect capabilities supported by the system.
[0141] The controller 250 is configured as follows:
[0142] Obtain the API version number of the system used to support the operation of the first application and the second application. The system API version is used to indicate the animation resource acquisition method supported by the system.
[0143] If the API version number is within the first preset range, a second animation effect configuration file provided by the second application is obtained.
[0144] If the API version number is within the second preset range, a second animation effect configuration file is obtained from the default resource library of the first application. The API version number in the second preset range is lower than the API version number in the first preset range. The second animation effect configuration file is the pre-configured transition animation configuration file corresponding to the first application, and the third animation effect configuration file is the pre-configured transition animation configuration file corresponding to the second application. Controller 250 can determine the decision maker for configuring animation effects based on different API version numbers, and then configure the animation effects of the first and second applications based on the animation effect configuration files corresponding to the decision maker.
[0145] In some embodiments, the first preset range corresponds to a system operating scenario with an API version number greater than or equal to 34, and the second preset range corresponds to a system operating scenario with an API version number greater than or equal to 16 and less than 34. Systems with different API version numbers contain different API interfaces, so it is necessary to dynamically adjust the animation effect configuration strategy based on the API interface capabilities provided by the system.
[0146] In some embodiments, as Figure 8 As shown, when the system's API version number is within the first preset range, the system provides the overrideActivityTransition interface. Based on this interface, the second application can proactively report pre-configured animation effect configuration information, such as "slide left to enter" or "slide right to exit." The system framework, i.e., controller 250, can obtain a third animation effect configuration file reported by the second application and execute the animation effect configuration information according to the third animation effect configuration file.
[0147] It can be understood that in the system running scenario of Andriod 14+(API greater than or equal to 34), the second application can be the decision maker of the animation effect configuration stage, the second application registers its pre-configured animation effect to the system framework, and the system framework controls the first application and the second application to load the animation. Further, in the case that the first application and the second application belong to different developers, taking the second application as the decision maker of the animation effect configuration stage, based on the way that the second application actively uploads animation configuration information, the resource isolation problem corresponding to the cross-task stack can be solved, and the consistency of the exit animation of the first application and the entry animation of the second application is ensured.
[0148] In some embodiments, when the API version number of the system is in the second preset range, the system framework can provide a makeCustomAnimation interface, based on which the first application can be the decision maker of the animation effect configuration stage. As shown in Figure 9 The first application as the calling party can upload the second animation effect configuration file / configuration information to the system framework based on the makeCustomAnimation interface. For example, (makeCustomAnimation(enterAnim, exitAnim)). In this way, after receiving the configuration information uploaded by the first application, the system framework can issue the animation resource ID corresponding to the second animation effect configuration file to the window management service (WindowManagerService), and the window management service further configures the exit animation for the first application and the entry animation for the second application according to the animation effect configuration information.
[0149] In this way, in the case that the system framework does not support the overrideActivityTransition interface, flexible configuration of animation effects can also be realized through the makeCustomAnimation interface. That is, in the case that the second application cannot be the decision maker of the animation effect, the first application can still be the decision maker of the animation effect, and the makeCustomAnimation interface provides resource scheduling capabilities to control the first application and the second application to load exit animation resources and entry animation resources, respectively.
[0150] In some embodiments, the controller 250 can configure the animation effects of the first application and the second application based on the animation effect configuration file uploaded by the first application, that is, the controller 250 is configured to:
[0151] configure the exit animation of the first application according to the entry animation configuration information in the second animation effect configuration file.
[0152] configure the entry animation of the second application according to the exit animation configuration information in the second animation effect configuration file.
[0153] In some embodiments, the second animation effect configuration file can include parameters such as the form, duration, and transition effect of the transition animation. The system framework can parse the second animation effect configuration file and configure the exit animation of the first application and the entry animation of the second application according to the entry configuration information and the exit configuration information in the second animation effect configuration file.
[0154] It should be noted that based on the animation effect configuration file uploaded by the first application, the system framework can uniformly configure the exit animation of the first application and the entry animation of the second application to ensure the consistency and continuity of the transition animation when the applications are switched. In addition, it can ensure that the transition animations of the first application and the second application remain consistent even if the system can only provide lower version API interfaces.
[0155] In some embodiments, the API version of some systems is lower than the version in the second preset range, and it is difficult to support too complex animation effects in such systems. Therefore, when such system versions are detected, the default animation effect configuration strategy prepared in advance in the system needs to be executed. The controller 250 is further configured to:
[0156] If the API version number is in the third preset range, the default animation effect configuration file of the system is obtained. The API version number in the third preset range is lower than the API version number in the second preset range.
[0157] The entry animation of the first application is configured according to the entry animation configuration information in the default animation effect configuration file.
[0158] The exit animation of the second application is configured according to the exit animation configuration information in the default animation effect configuration file.
[0159] In some embodiments, the API version number of the system is less than 16, that is, the current API interface of the system is not sufficient to support the calling, uniformity, and other processes of complex animations. Therefore, in order to ensure the switching continuity and smoothness of the applications, the controller 250 can read the default animation effect configuration file configured by default by the system.
[0160] It can be understood that the default animation effect configuration file only defines basic parameters such as the entry and exit modes of the exit animation and the entry animation and the animation duration, so as to ensure that the application switching can still maintain basic visual continuity and user experience in a low version API environment.
[0161] In this way, in the scenario where the first application and the second application belong to different developers, the controller 250 can determine the execution strategy of the animation effect in combination with the API version number of the system, and thus when the API version of the system is in any interval, the consistency and coherence of the entry animation and the exit animation can be guaranteed. In this way, no matter how high or low the system API version is, the animation effect during application switching can be effectively guaranteed, avoiding the problem of inconsistent animation performance caused by API version differences, and improving the visual experience and operation fluency of the user when switching between different applications.
[0162] It can be understood that the transition animation generated during the application switching process also needs to occupy system resources. In order to ensure that the transition animation does not affect the stability of the system running, the configuration file of the transition animation needs to be verified. As shown in Figure 10 The controller 250 is configured to:
[0163] Obtain animation effect strategy tokens and animation effect strategy verification information. The animation effect strategy token includes animation effect strategy metadata. The animation effect strategy metadata is data provided by the first application for defining the animation effect execution strategy. The animation effect strategy verification information is used to represent the valid running range of the animation effect.
[0164] In the case where the animation effect strategy metadata is in the valid running range, obtain the API version number of the system supporting the running of the first application and the second application.
[0165] In the case where the animation effect strategy metadata is not in the valid running range, obtain the default animation effect configuration file of the system. Configure the entry animation of the first application and the exit animation of the second application according to the default animation effect configuration file.
[0166] In some embodiments, before the animation effect is executed, the running legality, running stability and the like of the animation effect need to be verified to ensure that the animation effect runs smoothly and does not interfere with the system running.
[0167] The controller 250 can obtain the threshold or limit condition of the current system regarding the running legality and the running stability. That is, the controller 250 can obtain the animation effect strategy verification information. The animation strategy verification information can exist in the form of a threshold, a limit condition, and the like. After obtaining the animation strategy verification information, the controller 250 can compare the animation strategy verification information with various parameters / conditions required for animation effect execution to determine whether the animation effect can be executed.
[0168] The animation effect policy token includes an execution policy corresponding to the determination result of each type of parameter / condition. For example, based on the setAllowOverrideSystem(true) in the animation effect policy token, it is indicated that it is necessary to check whether the current system allows custom animation effects to override system animations. The controller 250 determines whether the system allows custom animation effects according to the indication of the animation effect policy token and the animation effect policy check information. Then, in the case where the system allows custom animation effects to override system animations, subsequent processing actions such as obtaining the API version number of the system are performed.
[0169] In the case where the system does not allow custom animation effects to override system animations, a default animation effect configuration file is obtained, and the entry animation of the second application is configured according to the entry configuration information in the default animation effect configuration file, and the exit animation of the first application is configured according to the exit configuration information in the animation effect configuration file.
[0170] It can be understood that the animation effect policy check information represents the valid running range of the animation effect, and the animation effect policy token can indicate the content to be checked and how to execute the corresponding policy according to the check result. Then, the controller 250 can determine the feasibility of the animation effect by combining the animation effect policy token and the animation effect policy check information, and execute subsequent actions according to the determination result of the feasibility. In this way, the system can flexibly adjust the application animation under the premise of ensuring the legality and stability of the animation effect, and improve the user experience. At the same time, the system running risk caused by improper animation effect is avoided, and the balance between animation effect and system performance is achieved.
[0171] As shown in Figure 11 The animation effect policy token includes animation effect policy metadata, and based on the animation effect policy metadata, the animation effect policy token can have the ability to indicate the content to be checked and to execute the corresponding policy according to the check result.
[0172] In some embodiments, the animation effect policy metadata includes system-level policy metadata, application-level policy metadata, and window-level policy metadata. For example, the system-level policy metadata is used to limit the system memory required by the animation effect. The application-level policy metadata is used to limit the developer running permission of the animation effect. The window-level policy metadata is used to limit the animation effect display permission of the animation running window.
[0173] For example, if the current animation effect requires 1 GB of system memory, and the controller 250 determines that the current device has less than 1 GB of memory available after obtaining the animation effect policy token and performing the animation effect policy check, the controller 250 may force the reduced animation policy to be activated, such as using the system default animation configuration file to configure the animation effects of the first and second applications.
[0174] In addition, the controller 250 can also perform multi-level checks at the application level and window level for the animation effect. For example, during the application-level check, the controller 250 can determine whether the developer's running permission for the animation effect is legal. If the developer's signature for the animation effect is in the system whitelist, the controller 250 allows the animation effect to execute. Otherwise, the controller 250 will refuse to execute the animation effect and record a related security warning in the system log. The system default animation configuration file is used to configure the animation effects of the first and second applications.
[0175] For another example, during the window-level check, the controller 250 checks the permission of the animation running window, i.e., checks whether the current window supports complex animation running. If the current window supports complex animation running, the controller 250 allows the animation effect to execute. If the current window does not support complex animation running, the controller 250 uses the system default animation configuration file to configure the animation effects of the first and second applications.
[0176] During the verification process of the controller 250, the verification items specified in the animation effect policy token are checked. These verification items include various key parameters and conditions to ensure the correct execution of the animation effect. The controller 250 checks these items one by one to ensure that they are within the effective range of operation. If the result of any of these verification items shows that it is not within the effective range, i.e., it exceeds the predetermined threshold or standard, the controller 250 will immediately stop the currently executing animation effect to prevent system instability or failure that may be caused by abnormal parameters.
[0177] To further ensure the stable operation of the system, the controller 250 also switches to the system default animation configuration file and uses the system preset standard parameters and settings. In this way, the controller 250 ensures that the system can maintain stable operation even in abnormal situations, avoiding system crashes or other serious problems caused by abnormal animation effects. This mechanism not only improves the reliability of the system, but also ensures the continuity and smoothness of the user experience.
[0178] In some embodiments, when the API version number provided by the system is in a second preset range, the decision maker of the animation effect is the first application. That is, the first application forces the second application to synchronize the animation effect through the makeCustomAnimation interface, and therefore the behavior of the first application needs to be checked to ensure that the current behavior of synchronizing the animation effect is not malicious. The controller is configured to:
[0179] Control the first application to create an animation effect policy token.
[0180] Control the first application to send the animation effect policy token to the second application. The animation effect policy token is used to enable the second application to call an animation policy verification interface.
[0181] In the case where the second application calls the animation policy verification interface, obtain the animation effect policy token and animation effect policy verification information.
[0182] As shown in Figure 12 In some embodiments, the first application can create an animation effect policy token based on the makeCustomAnimation interface before synchronizing the animation effect of the second application. For example, the animation effect policy metadata is added based on the intent.putExtra() method to form the final animation effect policy token.
[0183] In this way, the controller 250 can obtain the animation effect policy token and animation effect policy verification information based on the ActivityTaskManagerService interface, and verify the legality of the running of the animation effect. In this way, it is ensured that the behavior of the first application in synchronizing the animation effect of the second application conforms to the system security specification, and malicious operations are prevented.
[0184] As shown in Figure 13 In other embodiments, the first application performs the action of creating an animation effect policy token in the startup phase of the second application to trigger the verification process. The first application can also send the animation effect policy token to the second application through cross-process communication to enable the second application to trigger the animation effect synchronization verification process again after startup. In this way, the system can effectively identify and prevent potential malicious behavior,
[0185] In this way, a multi-level verification mechanism can be formed to ensure that each animation effect synchronization is performed under strict monitoring, further improving the overall security and stability of the system. Moreover, in scenarios where the overall running state of the system is affected before and after the startup of the second application, the multi-level verification mechanism can further ensure that the execution of the animation effect does not affect the stability of the system running.
[0186] And, the security of the verification can be enhanced by the multi-level verification mechanism, for example, in the case of malicious tampering of the token, the multi-level verification mechanism can also determine whether the animation effect synchronization behavior initiated by the first application conforms to the safe operation specification of the system in a timely manner.
[0187] In this way, the controller 250 can effectively identify and intercept illegal animation effect synchronization requests based on the verification mechanism or multi-level verification mechanism, ensuring the safety and stability of system operation, preventing malicious operations from negatively affecting user experience. In this way, the overall security protection capability of the system is significantly improved. And it can also ensure the smooth transition of animation effects during application switching, avoid interface freezing or abnormalities caused by animation conflicts, and thus improve the user's use fluency and user experience.
[0188] The embodiments of the present application also provide a method for configuring a transition animation, comprising:
[0189] In response to an application switching instruction, the developer identifiers of the first application and the second application are obtained. The first application is an application that is about to be switched to foreground running, and the second application is an application that is currently running in the foreground. The developer identifier is used to represent the developer identity information of the first application and the second application.
[0190] If the developer identifiers of the first application and the second application are the same, the first animation effect configuration file is obtained from the shared resource library of the first application and the second application. The entry animation of the first application is configured according to the entry animation configuration information in the first animation effect configuration file, and the exit animation of the second application is configured according to the exit animation configuration information in the first animation effect configuration file.
[0191] If the developer identifiers of the first application and the second application are different, the second animation effect configuration file is obtained from the default resource library of the first application or the third animation effect configuration file is obtained from the default resource library of the second application; the exit animation of the first application is configured according to the entry animation configuration information of the second animation effect configuration file or the third animation effect configuration file, and the entry animation of the second application is configured according to the exit animation configuration information of the second animation effect configuration file or the third animation effect configuration file.
[0192] From the above technical content, the embodiments of the present application provide a display device and a method for configuring a transition animation. The display device obtains the developer identifiers of the first application and the second application when switching applications to determine the transition animation configuration strategy according to whether the first application and the second application belong to the same developer. Based on different animation configuration strategies, the decision maker of the animation effect is determined. In this way, it can be ensured that in the scenario of application switching, the entry animation and exit animation corresponding to the first application and the second application belong to the same animation resource, thereby avoiding the problem of animation loading disorder caused by the inconsistency of the animation resource IDs corresponding to different applications.
[0193] The similar parts among the embodiments provided in the application can be referred to each other, the specific embodiments provided above are only several examples under the general concept of the application, and do not constitute the limitation of the protection scope of the application. Any other embodiments extended according to the application scheme without creative labor for those skilled in the art shall fall within the protection scope of the application.
Claims
1. A display device, characterized in that: include: monitor; The controller is configured as: In response to the application switching instruction, obtaining developer identifiers of the first application and the second application; The first application is an application currently running in the foreground, and the second application is an application that is about to be switched to the foreground; The developer identifier is used to represent the identity information of the developers of the first application and the second application; If the developer identifiers of the first application and the second application are the same, obtaining a first animation effect configuration file from a shared resource library of the first application and the second application; Configuring the exit animation of the first application according to the exit animation configuration information in the first animation effect configuration file, and configuring the entry animation of the second application according to the entry animation configuration information in the first animation effect configuration file; If the developer identifiers of the first application and the second application are different, obtaining a second animation effect configuration file from a default resource library of the first application or obtaining a third animation effect configuration file from a default resource library of the second application; The exit animation of the first application is configured according to the entry animation configuration information of the second animation effect profile or the third animation effect profile, and the entry animation of the second application is configured according to the exit animation configuration information of the second animation effect profile or the third animation effect profile.
2. The display device according to claim 1, wherein The controller executes acquiring a first animation effect configuration file from a shared animation resource library of the first application and the second application, and is specifically configured to: Obtaining a first animation resource name and a first resource query interface of the first application; Accessing the shared resource table through the first resource query interface; Obtaining a first animation resource ID from the shared resource table according to the first animation resource name; The first animation resource ID is a unique identifier corresponding to an animation resource used by the first application when entering or exiting the foreground; the shared resource table includes a mapping relationship between resource names and resource IDs; The first animation effect configuration file is obtained from the shared resource library according to the first animation resource ID.
3. The display device according to claim 2, wherein The controller obtains the first animation effect configuration file from the shared resource library according to the first animation resource ID, and is further configured to: Get the resource sharing interface; Sending the first animation resource ID to the second application through the resource sharing interface; The second application is controlled to obtain the first animation effect configuration file from the shared resource library according to the first animation resource ID.
4. The display device according to claim 1, wherein When the developer identifiers of the first application and the second application are different, the controller is further configured to: Obtaining an API version number of a system used to support the operation of the first application and the second application; the system API version is used to indicate an animation resource synchronization method supported by the system; If the API version number is within a first preset range, obtaining a third animation effect configuration file provided by the second application; If the API version number is within a second preset range, obtaining a second animation effect configuration file from a default resource library of the first application; The API version number in the second preset range is lower than the API version number in the first preset range.
5. The display device according to claim 4, wherein: After the controller obtains the second animation effect configuration file from the default resource library of the first application, the controller is further configured to: Configuring the entrance animation of the first application according to the entrance animation configuration information in the second animation effect configuration file; The exit animation of the second application is configured according to the exit animation configuration information in the second animation effect configuration file.
6. The display device according to claim 4, wherein: When the developer identifiers of the first application and the second application are different, the controller is further configured to: Obtaining an animation effect policy token and animation effect policy verification information; the animation effect policy token includes animation effect policy metadata; the animation effect policy metadata is data provided by the first application for defining an animation effect execution policy; the animation effect policy verification information is used to represent a valid operating range of the animation effect; When the animation effect policy metadata is within the valid operation range, obtaining an API version number of a system for supporting the operation of the first application and the second application; When the animation effect policy metadata is not within the valid operation range, obtaining a default animation effect configuration file of the system; The exit animation of the first application and the entrance animation of the second application are configured according to the default animation effect configuration file.
7. The display device according to claim 6, wherein: Before the controller executes the acquisition of the animation effect policy token and the animation effect policy verification information, the controller is further configured to: Controlling the first application to create an animation effect policy token; Controlling the first application to send the animation effect policy token to the second application; the animation effect policy token is used to enable the second application to call an animation policy verification interface; When the second application calls the animation policy verification interface, the animation effect policy token and animation effect policy verification information are obtained.
8. The display device according to claim 6, wherein: The animation effect policy metadata includes system-level policy metadata, application-level policy metadata, and window-level policy metadata; the system-level policy metadata is used to limit the system memory required for the animation effect; the application-level policy metadata is used to limit the developer's running permissions for the animation effect; and the window-level policy metadata is used to limit the animation effect display permissions of the animation running window. The controller executes acquisition of animation effect policy token and animation effect policy verification information, and is further configured to: In a case where any one of the system-level policy metadata, the application-level policy metadata, and the window-level policy metadata is not within the valid operating range, a default animation effect configuration file of the system is obtained.
9. The display device according to claim 4, wherein: The controller is further configured to: If the API version number is in a third preset range, obtaining a default animation effect configuration file of the system; the API version number in the third preset range is lower than the API version number in the second preset range; Configuring the exit animation of the first application according to the entry animation configuration information in the default animation effect configuration file; The entry animation of the second application is configured according to the exit animation configuration information in the default animation effect configuration file.
10. A method for configuring a transition animation, characterized in that: include: In response to the application switching instruction, obtaining developer identifiers of the first application and the second application; The first application is an application currently running in the foreground, and the second application is an application that is about to be switched to the foreground; The developer identifier is used to represent the identity information of the developers of the first application and the second application; If the developer identifiers of the first application and the second application are the same, obtaining a first animation effect configuration file from a shared resource library of the first application and the second application; Configuring the exit animation of the first application according to the entry animation configuration information in the first animation effect configuration file, and configuring the entry animation of the second application according to the exit animation configuration information in the first animation effect configuration file; If the developer identifiers of the first application and the second application are different, obtaining a second animation effect configuration file from a default resource library of the first application or obtaining a third animation effect configuration file from a default resource library of the second application; The exit animation of the first application is configured according to the entry animation configuration information of the second animation effect profile or the third animation effect profile, and the entry animation of the second application is configured according to the exit animation configuration information of the second animation effect profile or the third animation effect profile.