Application interface switching method and device, equipment and storage medium

By creating a resident image carrier and display controller in Android car project, the one-shot animation effect between applications is achieved, which solves the problem of unsmooth application switching transition in traditional methods, and improves the visual experience and user experience.

CN119781886AActive Publication Date: 2025-04-08THUNDERSOFT
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411853044.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-08
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

In Android car project, realizing the one-shot animation effect of switching between applications is an important requirement, but traditional methods cannot integrate multiple applications, resulting in abrupt transitional screen switching and a poor visual experience.

Method used

By creating a resident image carrier and a corresponding resident display controller, the application interface is displayed on the screen of the terminal device, and the carrier level is increased and preset animations are played during switching to achieve a one-shot switching effect.

Benefits of technology

Without integrating multiple applications into one application, a smoother and cool visual experience is achieved when application switching is achieved, which avoids changes in the operating system source code, reduces memory usage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781886A_ABST
    Figure CN119781886A_ABST
Patent Text Reader

Abstract

Embodiments of the invention provide an application interface switching method and apparatus, a device and a storage medium. The method comprises the steps of creating a resident image carrier; the resident image carrier is provided with a corresponding resident display controller, and the resident image carrier has a corresponding carrier level on a screen of the terminal equipment; displaying a first application interface on a screen through a resident display controller; under the condition that the first application interface needs to be switched to the second application interface, the carrier level is increased to the upper layer of the first application interface, and a preset animation is played on a screen through the resident image carrier; switching the first application interface to a second application interface; and displaying the second application interface on the screen through the resident display controller. According to the embodiment of the invention, on the premise that a plurality of applications are not integrated into one application, smoother and cooler visual experience is provided for a user during application switching, the change of source codes of an operating system is avoided, and the influence on the safety of the operating system is small.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of vehicle technology, operating system technology, and computer technology, and in particular to a method and device for switching an application interface, an electronic device, and a storage medium. Background Art

[0002] In Android (Android operating system) car projects, it is an important requirement to achieve a one-shot animation effect for switching between applications. For example, 3D car model images are displayed in both the Launcher (Android system desktop launcher) desktop and the 360 ​​surround parking application. When switching applications, it is hoped that a cool and smooth one-shot switching effect can be displayed through 3D engines such as Kanzi (3D human-computer interaction solution), Unity (a cross-platform development engine), Cocos (a series of development frameworks and tools), or even ordinary video players to play animations. The traditional application switching effect may first display a black background when the Android screen is not fully loaded, or first display the application startup page and then display the car model image. In this way, the transition screen switching is very abrupt and the visual experience is not smooth.

[0003] In the related art, the page that needs the one-shot switching effect is generally integrated into one application, and a SurfaceView (image screen, the carrier used to draw the Surface in the application) is used as the application background. A 3D screen is drawn or a switching animation is played on this SurfaceView. However, due to business relationships or code maintenance considerations, it is often not possible to integrate multiple applications into one application to achieve the one-shot switching effect.

[0004] Therefore, how to provide users with a smoother and cooler visual experience when switching between applications without integrating multiple applications into one application is an urgent problem to be solved. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for switching application interfaces to solve the problem of how to provide users with a smoother and cooler visual experience when switching applications without integrating multiple applications into one application.

[0006] In order to solve the above problems, an embodiment of the present application discloses a method for switching application interfaces, which is applied to interface display services, and the method includes: creating a resident image carrier; the resident image carrier has a corresponding resident display controller, and the resident image carrier has a corresponding carrier level on the screen of a terminal device; displaying a first application interface on the screen through the resident display controller; when it is necessary to switch the first application interface to a second application interface, raising the carrier level to an upper layer of the first application interface, and playing a preset animation on the screen through the resident image carrier; switching the first application interface to the second application interface; and displaying the second application interface on the screen through the resident display controller.

[0007] An embodiment of the present application also discloses a switching device for an application interface, which is applied to an interface display service, and the device includes: a resident image carrier creation module, which is used to create a resident image carrier; the resident image carrier has a corresponding resident display controller, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; a first application interface display module, which is used to display the first application interface on the screen through the resident display controller; a preset animation playback module, which is used to increase the carrier level to the upper layer of the first application interface when it is necessary to switch the first application interface to the second application interface, and play a preset animation on the screen through the resident image carrier; an application interface switching module, which is used to switch the first application interface to the second application interface; and a second application interface display module, which is used to display the second application interface on the screen through the resident display controller.

[0008] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the application interface switching method as described in one or more of the embodiments of the present application.

[0009] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the application interface switching method as described in one or more of the embodiments of the present application.

[0010] The method provided by the embodiment of the present application has the following advantages:

[0011] In an embodiment of the present application, a resident image carrier is created; a resident display controller corresponding to the resident image carrier exists, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; the first application interface is displayed on the screen through the resident display controller; when the first application interface needs to be switched to the second application interface, the carrier level is increased to the upper layer of the first application interface, and a preset animation is played on the screen through the resident image carrier; the first application interface is switched to the second application interface; the second application interface is displayed on the screen through the resident display controller. The embodiment of the present application achieves a smoother and cooler visual experience for users when switching applications without integrating multiple applications into one application. The embodiment of the present application also avoids the modification of the operating system source code, and realizes the one-shot effect of the application switching animation through the background interface display service, which has little impact on the security of the operating system. The 3D vehicle model screen that each application needs to display can be enabled by the interface display service, which is simple to implement. If the same 3D resource file needs to be displayed in different applications, only one 3D resource file needs to be loaded by the interface display service, and there is no need to integrate it separately in each application, thereby reducing memory usage. The embodiment of the present application only needs to render a resident image carrier, and the consumption of the central processing unit and the graphics processing unit is relatively low. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is a flowchart of a method for switching an application interface of the present application;

[0013] Figure 2 This is a schematic diagram of a resident image carrier of an application interface switching method embodiment of the present application;

[0014] Figure 3 This is a schematic diagram of application switching in an embodiment of a method for switching an application interface of the present application;

[0015] Figure 4 This is a schematic diagram showing a first application interface of an application interface switching method embodiment of the present application;

[0016] Figure 5 This is a schematic diagram of application interface display of an application interface switching method embodiment of the present application;

[0017] Figure 6 This is a schematic diagram of image screens of different application interfaces in an embodiment of a method for switching application interfaces of the present application;

[0018] Figure 7 This is a schematic diagram of displaying a second application interface of an application interface switching method embodiment of the present application;

[0019] Figure 8It is a schematic diagram of a resident image carrier provided by a software development kit of an application interface switching method embodiment of the present application;

[0020] Fig. 9 It is a system structure diagram of an embodiment of a method for switching an application interface of the present application;

[0021] Fig.10 This is a system architecture diagram of an application interface switching method embodiment of the present application;

[0022] Fig.11 It is a logic flow chart of an embodiment of a method for switching an application interface of the present application;

[0023] Fig.12 It is a structural block diagram of an embodiment of a switching device for an application interface of the present application;

[0024] Fig.13 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0026] Reference Figure 1 , is a flowchart of an embodiment of a method for switching an application interface of the present application, comprising the following steps:

[0027] Step 101, creating a resident image carrier; the resident image carrier has a corresponding resident display controller, and the resident image carrier has a corresponding carrier level on the screen of the terminal device.

[0028] The method for switching an application interface shown in the embodiment of the present application can be applied to an in-vehicle Android operating system. Among them, the method for switching an application interface shown in the embodiment of the present application can be applied to an interface display service of an Android system. In one embodiment, a Java service can be provided as an interface display service on the in-vehicle Android operating system to execute the method for switching an application interface of the embodiment of the present application.

[0029] In step 101, a resident image carrier (Surface) and a corresponding resident display controller (SurfaceControl) can be created in the interface display service, and the resident image carrier has a corresponding carrier level on the screen of the terminal device, that is, the level of the image on the resident image carrier is displayed on the screen.

[0030] Reference Figure 2 , is a schematic diagram of a resident image carrier of an application interface switching method embodiment of the present application.

[0031] like Figure 2 As shown, create a resident Surface and a corresponding SurfaceControl in the Java service.

[0032] Step 102: Display a first application interface on the screen via the resident display controller.

[0033] In step 102, the first application interface is displayed on the screen through the resident display controller. In one embodiment, the interface display service has a corresponding image data provider, and the image data provider can draw the display content of the first application interface through the resident image carrier.

[0034] Step 103: When it is necessary to switch the first application interface to the second application interface, the carrier level is raised to the upper layer of the first application interface, and a preset animation is played on the screen through the resident image carrier.

[0035] In step 103, when the user needs to switch between the first application and the second application, that is, needs to switch the first application interface to the second application interface, the carrier level of the resident image carrier is raised to above the first application interface and a preset animation is played on the screen through the resident image carrier to cover the application switching action below the resident image carrier.

[0036] In one embodiment, a command can be initiated to a Java service through Binder (an inter-process communication mechanism in the Android system). After receiving the command information, the Java service raises the carrier level to above the first application interface and plays a preset animation on the screen through a resident image carrier.

[0037] Step 104: Switch the first application interface to the second application interface.

[0038] In step 104, while a preset animation is played on the screen through the resident image carrier, the first application interface is switched to the second application interface under the coverage of the resident image carrier.

[0039] Step 105: Display the second application interface on the screen via the resident display controller.

[0040] In step 105, the switched second application interface is displayed on the screen through the resident display controller. In one embodiment, the interface display service has a corresponding image data provider, and the image data provider can draw the display content of the second application interface through the resident image carrier.

[0041] Reference Figure 3, is an application switching schematic diagram of an application interface switching method embodiment of the present application.

[0042] like Figure 3 As shown, when it is necessary to switch the first application interface to the second application interface, the carrier level of the permanent image carrier (3D Surface) is raised to above the first application interface, and a preset animation is played on the screen through the permanent image carrier to cover (Cover) the original application switching action (Original Animation) under the permanent image carrier.

[0043] In an embodiment of the present application, a resident image carrier is created; a resident display controller corresponding to the resident image carrier exists, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; the first application interface is displayed on the screen through the resident display controller; when the first application interface needs to be switched to the second application interface, the carrier level is increased to the upper layer of the first application interface, and a preset animation is played on the screen through the resident image carrier; the first application interface is switched to the second application interface; the second application interface is displayed on the screen through the resident display controller. The embodiment of the present application achieves a smoother and cooler visual experience for users when switching applications without integrating multiple applications into one application. The embodiment of the present application also avoids the modification of the operating system source code, and realizes the one-shot effect of the application switching animation through the background interface display service, which has little impact on the security of the operating system. The 3D vehicle model screen that each application needs to display can be enabled by the interface display service, which is simple to implement. If the same 3D resource file needs to be displayed in different applications, only one 3D resource file needs to be loaded by the interface display service, and there is no need to integrate it separately in each application, thereby reducing memory usage. The embodiment of the present application only needs to render a resident image carrier, and the consumption of the central processing unit and the graphics processing unit is relatively low.

[0044] In an optional embodiment of the present application, the method includes:

[0045] Creating a first image screen in a first application, wherein the first image screen includes the first application interface;

[0046] Using the interface of the first image screen, obtaining a first display controller corresponding to the first image screen;

[0047] Receive the first display controller transmitted by the first application.

[0048] In this embodiment, it is necessary to prefabricate SurfaceView (image screen) in an application that requires one-shot switching.

[0049] For the first application, a first image screen (SurfaceView1) is created in the first application, and the first image screen includes the first application interface to be displayed. When the application process of the first application is started to the foreground display, the first application can use the public interface of the first image screen to obtain the first display controller (SurfaceControl1) corresponding to the first image screen, and communicate with the interface display service through the Binder mechanism to pass the first display controller to the interface display service.

[0050] The embodiment of the present application creates a first image screen for a first application and transmits the corresponding first display controller to an interface display service, thereby displaying the first application interface on the screen of the terminal device through a resident display controller.

[0051] In an optional embodiment of the present application, the resident display controller has a corresponding parent level, and step 102 includes:

[0052] resetting the parent level of the resident display controller to the first display controller;

[0053] The first image frame corresponding to the first display controller is displayed on the screen.

[0054] In this embodiment, when the first application interface needs to be displayed on the screen of the terminal device, the native public method of SurfaceControl is used to reset the parent level of the resident display controller of the interface display service to the first display controller of the first application, so as to display the first image screen corresponding to the first display controller on the screen. That is, by changing the parent level of the resident display controller to the first display controller of the first application, the first application interface is displayed on the screen.

[0055] Reference Figure 4 , is a schematic diagram of the first application interface display of an application interface switching method embodiment of the present application.

[0056] like Figure 4 As shown, a first image screen (SurfaceView1) is created in the first application. The first image screen includes a first application interface to be displayed. The first image screen also has a corresponding first display controller (SurfaceControl1). The first application can pass the first display controller to the interface display service through the Binder mechanism.

[0057] Reference Figure 5 , is a schematic diagram of application interface display of an application interface switching method embodiment of the present application.

[0058] like Figure 5As shown, when the application process of the first application is started to the foreground display, the parent level of the resident display controller of the interface display service is reset (reparent) to the first display controller of the first application, so as to display the first image screen corresponding to the first display controller on the screen through the surface synthesizer (SurfaceFlinger).

[0059] When the first application interface needs to be displayed, the embodiment of the present application only needs to reset the parent level of the resident display controller of the interface display service to the first display controller of the first application. There is no need to create a new image carrier, and the consumption of the central processing unit and the graphics processing unit is relatively low.

[0060] In an optional embodiment of the present application, the method includes:

[0061] Creating a second image screen in a second application, wherein the second image screen includes the second application interface;

[0062] Using the interface of the second image screen, obtaining a second display controller corresponding to the second image screen;

[0063] Receive the second display controller delivered by the second application.

[0064] In this embodiment, it is necessary to prefabricate SurfaceView (image screen) in an application that requires one-shot switching.

[0065] For the second application, a second image screen (SurfaceView2) is created in the second application, and the second image screen includes the second application interface to be displayed. When the application process of the second application is started to the foreground display, the second application can use the public interface of the second image screen to obtain the second display controller (SurfaceControl2) corresponding to the second image screen, and communicate with the interface display service through the Binder mechanism to pass the second display controller to the interface display service.

[0066] The embodiment of the present application creates a second image screen for the second application and passes the corresponding second display controller to the interface display service, thereby displaying the second application interface on the screen of the terminal device through the resident display controller.

[0067] In an optional embodiment of the present application, the resident display controller has a corresponding parent level, and step 105 includes:

[0068] resetting the parent level of the resident display controller to the second display controller;

[0069] The second image picture corresponding to the second display controller is displayed on the screen.

[0070] In this embodiment, when it is necessary to display the second application interface on the screen of the terminal device, the native public method of SurfaceControl is used to reset the parent level of the resident display controller of the interface display service to the second display controller of the second application, so as to display the second image screen corresponding to the second display controller on the screen. That is, by changing the parent level of the resident display controller to the second display controller of the second application, the second application interface is displayed on the screen.

[0071] Reference Figure 6 , is a schematic diagram of image screens of different application interfaces in an embodiment of an application interface switching method of the present application.

[0072] like Figure 6 As shown, it is necessary to prefabricate SurfaceView in an application that requires a one-shot switching. When a one-shot switching is required between a first application and a second application, a first image screen (SurfaceView1) can be created in the first application, and a second image screen (SurfaceView2) can be created in the second application.

[0073] Reference Figure 7 , is a schematic diagram of the second application interface display of an application interface switching method embodiment of the present application.

[0074] like Figure 7 As shown, when the first application interface successfully switches to the second application interface, a second image screen (SurfaceView2) is created in the second application. The second image screen includes the second application interface to be displayed. The second image screen also has a corresponding second display controller (SurfaceControl2). The second application can pass the second display controller to the interface display service through the Binder mechanism. When the application process of the second application is started to the foreground display, the parent level of the resident display controller of the interface display service is reset to the second display controller of the second application, so that the second image screen corresponding to the second display controller is displayed on the screen through the surface synthesizer.

[0075] When the second application interface needs to be displayed, the embodiment of the present application only needs to reset the parent level of the resident display controller of the interface display service to the second display controller of the second application. There is no need to create a new image carrier, and the consumption of the central processing unit and the graphics processing unit is relatively low.

[0076] In an optional embodiment of the present application, the screen includes a system interface element, the system interface element has a corresponding display area node, and the method further includes:

[0077] When it is necessary to switch the first application interface to the second application interface, changing the parent level of the resident display controller to the display area node;

[0078] The system interface element corresponding to the display area node is displayed on the screen.

[0079] In this embodiment, when switching the application interface, the parent of the resident display controller can be changed to the display area node (DisplayArea node) of the screen. The display area node corresponds to system interface elements, such as the Android navigation bar, status bar interface, etc. When the carrier level of the resident image carrier of the interface display service is raised, it will not block the Android navigation bar, status bar interface and other system interface elements, but will display the system interface elements corresponding to the display area node on the screen normally.

[0080] In the embodiment of the present application, when switching the application interface, the parent level of the resident display controller is changed to the display area node of the screen, thereby preventing the preset animation from blocking the system interface elements.

[0081] In an optional embodiment of the present application, the interface display service has a corresponding image data provider, and the method further includes:

[0082] providing the resident image carrier to the image data provider;

[0083] The system interface drawn by the image data provider through the resident image carrier is displayed.

[0084] In this embodiment, the interface display service can provide a resident image carrier to the image data provider, so that the image data provider can draw the system interface to be displayed through the resident image carrier and display the system interface drawn by the image data provider through the resident image carrier on the screen.

[0085] For example, after resetting the parent level of the resident display controller of the interface display service to the first display controller of the first application, the first image screen corresponding to the first application can be drawn by the image data provider through the resident image carrier, thereby displaying the first application interface on the screen. For another example, after resetting the parent level of the resident display controller of the interface display service to the second display controller of the second application, the second image screen corresponding to the second application can be drawn by the image data provider through the resident image carrier, thereby displaying the second application interface on the screen.

[0086] The embodiment of the present application can utilize the image data provider to display the system interface drawn by the image data provider on the screen, thereby realizing the playback of the preset animation when the application is switched.

[0087] In an optional embodiment of the present application, step 103 includes:

[0088] The image data provider is controlled to play the preset animation on the screen through the resident image carrier.

[0089] In this embodiment, when switching the application interface, the interface display service can notify the image data provider to play the preset animation, so that the image data provider plays the preset animation on the screen through the resident image carrier. In one embodiment, the preset animation can be a smooth one-shot switching animation.

[0090] When switching application interfaces, the embodiment of the present application notifies the image data provider to play a preset animation, thereby achieving a one-shot effect of the application switching animation and improving the user experience.

[0091] In an optional embodiment of the present application, providing the resident image carrier to the image data provider includes:

[0092] The resident image carrier is provided to the image data provider through a software development kit.

[0093] Reference Figure 8 , is a schematic diagram of a resident image carrier provided by a software development kit of an application interface switching method embodiment of the present application.

[0094] In this embodiment, if Figure 8 As shown, the interface display service can provide a resident image carrier to the image data provider through a software development kit (SDK).

[0095] The embodiment of the present application can utilize the image data provider to display the system interface drawn by the image data provider on the screen, thereby realizing the playback of the preset animation when the application is switched.

[0096] In an optional embodiment of the present application, the interface display service is applied to an Android operating system, and the Android operating system includes a surface synthesizer. The method includes: displaying an image screen corresponding to the resident display controller on the screen through the surface synthesizer.

[0097] The surface compositor (SurfaceFlinger) is a key component in the Android system, responsible for managing and compositating the Surface of all applications, and outputting the final composite image to the display device. In this embodiment, since there is only one resident image carrier (Surface), it is only necessary to display the image screen currently corresponding to the resident display controller on the screen through the surface compositor.

[0098] The embodiment of the present application only needs to display an image screen currently corresponding to a resident display controller corresponding to a resident image carrier through a surface synthesizer, and the consumption of the central processing unit and the graphics processing unit is relatively low.

[0099] In an embodiment of the present application, a resident image carrier is created; a resident display controller corresponding to the resident image carrier exists, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; the first application interface is displayed on the screen through the resident display controller; when the first application interface needs to be switched to the second application interface, the carrier level is increased to the upper layer of the first application interface, and a preset animation is played on the screen through the resident image carrier; the first application interface is switched to the second application interface; the second application interface is displayed on the screen through the resident display controller. The embodiment of the present application achieves a smoother and cooler visual experience for users when switching applications without integrating multiple applications into one application. The embodiment of the present application also avoids the modification of the operating system source code, and realizes the one-shot effect of the application switching animation through the background interface display service, which has little impact on the security of the operating system. The 3D vehicle model screen that each application needs to display can be enabled by the interface display service, which is simple to implement. If the same 3D resource file needs to be displayed in different applications, only one 3D resource file needs to be loaded by the interface display service, and there is no need to integrate it separately in each application, thereby reducing memory usage. The embodiment of the present application only needs to render a resident image carrier, and the consumption of the central processing unit and the graphics processing unit is relatively low.

[0100] On the basis of the above embodiments, in order to enable those skilled in the art to better understand a method for switching an application interface in an embodiment of the present application, a method for switching an application interface in an embodiment of the present application will be described in detail below.

[0101] Reference Fig. 9 , is a system structure diagram of an application interface switching method embodiment of the present application.

[0102] like Fig. 9 As shown, the Android system may include a Java service (ie, an interface display service), a SurfaceFlinger (surface synthesizer), an image data provider, a first application, and a second application.

[0103] A resident image carrier (Surface) and a corresponding resident display controller (SurfaceControl) are created in the interface display service, and the resident image carrier is provided to the image data provider through the software development kit (SDK). A first image screen (SurfaceView1) is created in the first application. The first image screen includes a first application interface to be displayed. The first image screen also has a corresponding first display controller (SurfaceControl1). The first application can pass the first display controller to the interface display service through the Binder mechanism. A second image screen (SurfaceView2) is created in the second application. The second image screen includes a second application interface to be displayed. The second image screen also has a corresponding second display controller (SurfaceControl2). The second application can pass the second display controller to the interface display service through the Binder mechanism.

[0104] When it is necessary to display the first user interface or the second application interface on the screen, the parent level of the resident display controller of the interface display service is reset (reparent) to the first display controller of the first application, so that the first image screen corresponding to the first display controller is displayed on the screen through the surface compositor; or, the parent level of the resident display controller of the interface display service is reset to the second display controller of the second application, so that the second image screen corresponding to the second display controller is displayed on the screen through the surface compositor.

[0105] Reference Fig.10 , is a system architecture diagram of an application interface switching method embodiment of the present application.

[0106] like Fig.10 As shown, Java services (i.e., interface display services) and interactive services (such as SDK, Applications, etc., where Applications include first applications, second applications, and other applications) are all implemented in the Android application layer, and there is no need to modify any Android system AOSP (Android Open Source Project, an open source project for the Android operating system) code, and SurfaceFlinger (surface synthesizer) is part of the AOSP code.

[0107] Reference Fig.11 , is a logic flow chart of an embodiment of an application interface switching method of the present application.

[0108] like Fig.11As shown, when the user turns on the device, the Android SystemServer (system service manager) starts the Java service (i.e., the interface display service). A resident image carrier (Surface) and a corresponding resident display controller (SurfaceControl) are created in the interface display service, and the resident image carrier is provided to the image data provider for rendering.

[0109] When the user starts Android application 1 (i.e., the first application), a first image screen (SurfaceView1) is created in the first application. The first image screen includes the first application interface to be displayed. The first image screen also has a corresponding first display controller (SurfaceControl1). The first application can pass the first display controller to the interface display service, and reset the parent level of the resident display controller of the interface display service to the first display controller of the first application, so as to display the first image screen corresponding to the first display controller on the screen through the surface synthesizer.

[0110] When the user continues to start Android application 2 (i.e., the second application), the switch from the first application interface to the second application interface is triggered, and the interface display service is notified to trigger the "one shot to the end" switching effect. The interface display service raises the carrier level of the resident image carrier to above the first application interface, and notifies the image data provider to play a preset animation to cover the application switching action below the resident image carrier.

[0111] At the same time, a second image screen (SurfaceView2) is created in the second application. The second image screen includes the second application interface to be displayed. The second image screen also has a corresponding second display controller (SurfaceControl2). The second application can pass the second display controller to the interface display service. When the application process of the second application is started to the foreground display, the parent level of the resident display controller of the interface display service is reset to the second display controller of the second application, so that the second image screen corresponding to the second display controller is displayed on the screen through the surface synthesizer.

[0112] In an embodiment of the present application, a resident image carrier is created; a resident display controller corresponding to the resident image carrier exists, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; the first application interface is displayed on the screen through the resident display controller; when the first application interface needs to be switched to the second application interface, the carrier level is increased to the upper layer of the first application interface, and a preset animation is played on the screen through the resident image carrier; the first application interface is switched to the second application interface; the second application interface is displayed on the screen through the resident display controller. The embodiment of the present application achieves a smoother and cooler visual experience for users when switching applications without integrating multiple applications into one application. The embodiment of the present application also avoids the modification of the operating system source code, and realizes the one-shot effect of the application switching animation through the background interface display service, which has little impact on the security of the operating system. The 3D vehicle model screen that each application needs to display can be enabled by the interface display service, which is simple to implement. If the same 3D resource file needs to be displayed in different applications, only one 3D resource file needs to be loaded by the interface display service, and there is no need to integrate it separately in each application, thereby reducing memory usage. The embodiment of the present application only needs to render a resident image carrier, and the consumption of the central processing unit and the graphics processing unit is relatively low.

[0113] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0114] On the basis of the above embodiments, this embodiment further provides a device for switching application interfaces, which is applied to electronic devices such as terminal devices and servers.

[0115] Reference Fig.12 , shows a structural block diagram of an embodiment of a switching device for an application interface of the present application, which may specifically include the following modules:

[0116] A resident image carrier creation module 1201 is used to create a resident image carrier; the resident image carrier has a corresponding resident display controller, and the resident image carrier has a corresponding carrier level on the screen of the terminal device;

[0117] A first application interface display module 1202, configured to display a first application interface on the screen through the resident display controller;

[0118] A preset animation playing module 1203 is used to raise the carrier level to the upper layer of the first application interface and play a preset animation on the screen through the resident image carrier when the first application interface needs to be switched to the second application interface;

[0119] An application interface switching module 1204, configured to switch the first application interface to the second application interface;

[0120] The second application interface display module 1205 is used to display the second application interface on the screen through the resident display controller.

[0121] In an optional embodiment of the present application, the device includes:

[0122] A first image screen creation module, used to create a first image screen in a first application, wherein the first image screen includes the first application interface;

[0123] A first display controller acquisition module, configured to acquire a first display controller corresponding to the first image screen by using an interface of the first image screen;

[0124] The first display controller receiving module is used to receive the first display controller transmitted by the first application.

[0125] In an optional embodiment of the present application, the resident display controller has a corresponding parent level, and the first application interface display module 1202 includes:

[0126] A first parent level resetting submodule, configured to reset the parent level of the resident display controller to the first display controller;

[0127] The first image screen display submodule is used to display the first image screen corresponding to the first display controller on the screen.

[0128] In an optional embodiment of the present application, the device includes:

[0129] A second image screen creation module, used to create a second image screen in a second application, wherein the second image screen includes the second application interface;

[0130] A second display controller acquisition module, configured to acquire a second display controller corresponding to the second image screen by using an interface of the second image screen;

[0131] The second display controller receiving module is used to receive the second display controller transmitted by the second application.

[0132] In an optional embodiment of the present application, the resident display controller has a corresponding parent level, and the second application interface display module 1205 includes:

[0133] A second parent level resetting submodule, used for resetting the parent level of the resident display controller to the second display controller;

[0134] The second image screen display submodule is used to display the second image screen corresponding to the second display controller on the screen.

[0135] In an optional embodiment of the present application, the screen includes a system interface element, the system interface element has a corresponding display area node, and the device further includes:

[0136] A parent level changing module, configured to change the parent level of the resident display controller to the display area node when the first application interface needs to be switched to the second application interface;

[0137] The system interface element display module is used to display the system interface element corresponding to the display area node on the screen.

[0138] In an optional embodiment of the present application, the interface display service has a corresponding image data provider, and the device further includes:

[0139] A resident image carrier providing module, used for providing the resident image carrier to the image data provider;

[0140] The system interface display module is used to display the system interface drawn by the image data provider through the resident image carrier.

[0141] In an optional embodiment of the present application, the preset animation playing module 1203 includes:

[0142] The image data provider animation playing submodule is used to control the image data provider to play the preset animation on the screen through the resident image carrier.

[0143] In an optional embodiment of the present application, the resident image carrier providing module is further used for:

[0144] The resident image carrier is provided to the image data provider through a software development kit.

[0145] In an optional embodiment of the present application, the interface display service is applied to an Android operating system, the Android operating system includes a surface synthesizer, and the device includes:

[0146] The surface synthesizer module is used to display the image picture corresponding to the resident display controller on the screen through the surface synthesizer.

[0147] In an embodiment of the present application, a resident image carrier is created; a resident display controller corresponding to the resident image carrier exists, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; the first application interface is displayed on the screen through the resident display controller; when the first application interface needs to be switched to the second application interface, the carrier level is increased to the upper layer of the first application interface, and a preset animation is played on the screen through the resident image carrier; the first application interface is switched to the second application interface; the second application interface is displayed on the screen through the resident display controller. The embodiment of the present application achieves a smoother and cooler visual experience for users when switching applications without integrating multiple applications into one application. The embodiment of the present application also avoids the modification of the operating system source code, and realizes the one-shot effect of the application switching animation through the background interface display service, which has little impact on the security of the operating system. The 3D vehicle model screen that each application needs to display can be enabled by the interface display service, which is simple to implement. If the same 3D resource file needs to be displayed in different applications, only one 3D resource file needs to be loaded by the interface display service, and there is no need to integrate it separately in each application, thereby reducing memory usage. The embodiment of the present application only needs to render a resident image carrier, and the consumption of the central processing unit and the graphics processing unit is relatively low.

[0148] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.

[0149] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).

[0150] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Fig.13 An exemplary apparatus 1300 that can be used to implement various embodiments described in this application is schematically shown.

[0151] For one embodiment, Fig.13An exemplary apparatus 1300 is shown having one or more processors 1302, a control module (chip set) 1304 coupled to at least one of the (one or more) processors 1302, a memory 1306 coupled to the control module 1304, a non-volatile memory (NVM) / storage device 1308 coupled to the control module 1304, one or more input / output devices 1310 coupled to the control module 1304, and a network interface 1312 coupled to the control module 1304.

[0152] The processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 1300 can be used as a terminal device, server (cluster), and other devices described in the embodiments of the present application.

[0153] In some embodiments, the device 1300 may include one or more computer-readable media (e.g., memory 1306 or NVM / storage device 1308) having instructions 1314 and one or more processors 1302 configured to execute the instructions 1314 in combination with the one or more computer-readable media to implement a module to perform the actions described in the present disclosure.

[0154] For one embodiment, the control module 1304 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 1302 and / or any suitable device or component in communication with the control module 1304 .

[0155] The control module 1304 may include a memory controller module to provide an interface to the memory 1306. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0156] The memory 1306 may be used, for example, to load and store data and / or instructions 1314 for the device 1300. For one embodiment, the memory 1306 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 1306 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0157] For one embodiment, control module 1304 may include one or more input / output controllers to provide an interface to NVM / storage device 1308 and input / output device(s) 1310 .

[0158] For example, NVM / storage 1308 may be used to store data and / or instructions 1314. NVM / storage 1308 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0159] NVM / storage device 1308 may include storage resources that are physically part of the device on which apparatus 1300 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 1308 may be accessed via input / output device(s) 1310 over a network.

[0160] (One or more) input / output devices 1310 may provide an interface for the apparatus 1300 to communicate with any other appropriate device, and the input / output device 1310 may include a communication component, an audio component, a sensor component, etc. The network interface 1312 may provide an interface for the apparatus 1300 to communicate through one or more networks, and the apparatus 1300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.

[0161] For one embodiment, at least one of the processor(s) 1302 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 1304. For one embodiment, at least one of the processor(s) 1302 may be packaged together with the logic of one or more controllers of the control module 1304 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with the logic of one or more controllers of the control module 1304. For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with the logic of one or more controllers of the control module 1304 to form a system-on-chip (SoC).

[0162] In various embodiments, the device 1300 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 1300 may have more or fewer components and / or a different architecture. For example, in some embodiments, the device 1300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0163] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.

[0164] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0165] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0166] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0167] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0168] The above is a detailed introduction to a method and device for switching an application interface, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for switching an application interface, characterized in that: Applied to the interface display service, the method includes: Creating a resident image carrier; the resident image carrier has a corresponding resident display controller, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; Displaying a first application interface on the screen by means of the resident display controller; When it is necessary to switch the first application interface to the second application interface, raising the carrier level to the upper layer of the first application interface, and playing a preset animation on the screen through the resident image carrier; Switching the first application interface to the second application interface; The second application interface is displayed on the screen through the resident display controller.

2. The method according to claim 1, characterized in that The method comprises: Creating a first image screen in a first application, wherein the first image screen includes the first application interface; Using the interface of the first image screen, obtaining a first display controller corresponding to the first image screen; Receive the first display controller transmitted by the first application.

3. The method according to claim 2, characterized in that The resident display controller has a corresponding parent level, and displaying the first application interface on the screen through the resident display controller includes: resetting the parent level of the resident display controller to the first display controller; The first image frame corresponding to the first display controller is displayed on the screen.

4. The method according to claim 1, characterized in that: The method comprises: Creating a second image screen in a second application, wherein the second image screen includes the second application interface; Using the interface of the second image screen, obtaining a second display controller corresponding to the second image screen; Receive the second display controller delivered by the second application.

5. The method according to claim 4, characterized in that The resident display controller has a corresponding parent level, and displaying the second application interface on the screen through the resident display controller includes: resetting the parent level of the resident display controller to the second display controller; The second image picture corresponding to the second display controller is displayed on the screen.

6. The method according to claim 3 or 5, characterized in that: The screen includes a system interface element, and the system interface element has a corresponding display area node. The method further includes: When it is necessary to switch the first application interface to the second application interface, changing the parent level of the resident display controller to the display area node; The system interface element corresponding to the display area node is displayed on the screen.

7. The method according to claim 1, characterized in that The interface display service has a corresponding image data provider, and the method further includes: providing the resident image carrier to the image data provider; Displaying the system interface drawn by the image data provider through the resident image carrier; wherein playing a preset animation on the screen through the resident image carrier includes: The image data provider is controlled to play the preset animation on the screen through the resident image carrier.

8. The method according to any one of claims 1 to 7, characterized in that: The interface display service is applied to an Android operating system, the Android operating system includes a surface synthesizer, and the method includes: The image picture corresponding to the resident display controller is displayed on the screen through the surface synthesizer.

9. A switching device for an application interface, characterized in that: Applied to interface display service, the device comprises: A resident image carrier creation module, used to create a resident image carrier; the resident image carrier has a corresponding resident display controller, and the resident image carrier has a corresponding carrier level on the screen of the terminal device; A first application interface display module, configured to display a first application interface on the screen through the resident display controller; A preset animation playing module, used for raising the carrier level to the upper layer of the first application interface and playing a preset animation on the screen through the resident image carrier when the first application interface needs to be switched to the second application interface; An application interface switching module, used to switch the first application interface to the second application interface; The second application interface display module is used to display the second application interface on the screen through the resident display controller.

10. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enables the processor to execute the method for switching the application interface as described in one or more of claims 1-8.

11. One or more machine-readable media having executable codes stored thereon, which, when executed, enable a processor to execute the application interface switching method as described in one or more of claims 1-8.

Citation Information

Patent Citations

  • Image switching method and device, electronic equipment and storage medium

    CN110069313A

  • Global floating window implementation method and device, terminal and storage medium

    CN112612468A

  • Interface display method and device, terminal equipment and computer readable storage medium

    CN115080158A

  • Method and device for controlling layers in system

    CN117271034A

  • Window display method, electronic equipment and computer readable storage medium

    CN117873348A