Application management method and device based on Android system and terminal equipment

By updating the application logo displayed in the taskbar, the problem of inconvenient use of traditional Android devices when switching multiple applications is solved, and the functions of quickly switching and managing multiple applications are realized, and the user experience is enhanced.

CN119376900AInactive Publication Date: 2025-01-28SHENZHEN XUNLONG SOFTWARE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411960596.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-01-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When switching multiple applications in traditional Android devices, they need to first exit the current application interface, return to the desktop, and then select a new application to open it, which is not convenient enough.

Method used

By determining each application and application status information currently run, obtain the task stack information and application priority of the application logo in the taskbar, and update the application logo displayed in the taskbar. Users can quickly switch and manage multiple applications. Essence

Benefits of technology

The efficiency of quickly switching multiple applications in Android devices has been achieved, and interactive flexibility and speed between users and applications have been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376900A_ABST
    Figure CN119376900A_ABST
Patent Text Reader

Abstract

The invention relates to an application management method and device based on an Android system and terminal equipment. The method is applied to terminal equipment with an Android system, a taskbar is arranged on a display interface of the terminal equipment, and the method comprises the following steps: determining each currently running application program, and obtaining application state information of each currently running application program; obtaining task stack information of an application program indicated by each application identifier displayed in the taskbar, and obtaining an application priority corresponding to the application program indicated by each application identifier; and updating identifiers of the application programs displayed in the taskbar according to the application state information of each application program, the task stack information and the application priority. By adopting the method, quick switching and management of multiple applications in the terminal equipment with the Android system can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an Android-based application management method, apparatus, terminal device, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of computer technology, the functions of terminal devices are becoming more and more powerful, and more and more applications are installed in terminal devices. Different applications can provide different services, and users often need to switch back and forth between multiple applications when using terminal devices.

[0003] When switching between multiple applications on a traditional Android device, the user needs to first exit the currently viewed application interface, return to the desktop, and then select a new application to open in order to switch between applications. This is not convenient to use. Summary of the invention

[0004] The embodiments of the present application provide an Android-based application management method, apparatus, terminal device, and computer-readable storage medium, which can realize fast switching and management of multiple applications.

[0005] On the one hand, the present application provides an Android-based application management method, which is applied to a terminal device having an Android system, wherein a display interface of the terminal device is provided with a task bar, and the method comprises:

[0006] Identify each currently running application and obtain application status information for each currently running application;

[0007] Obtaining task stack information of an application program indicated by each application identifier displayed in the task bar, and obtaining an application priority corresponding to the application program indicated by each application identifier;

[0008] The identification of the application displayed in the task bar is updated according to the application state information of each application, the task stack information and the application priority.

[0009] On the other hand, the present application also provides an application management device based on the Android system. The device comprises:

[0010] A determination module, used to determine each currently running application and obtain application status information of each currently running application;

[0011] An acquisition module, used to acquire task stack information of an application indicated by each application identifier displayed in the task bar, and to acquire application priority corresponding to the application indicated by each application identifier;

[0012] The updating module is used to update the identification of the application displayed in the task bar according to the application status information of each application, the task stack information and the application priority.

[0013] On the other hand, the present application also provides a terminal device. The terminal device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0014] Identify each currently running application and obtain application status information for each currently running application;

[0015] Obtaining task stack information of an application program indicated by each application identifier displayed in the task bar, and obtaining an application priority corresponding to the application program indicated by each application identifier;

[0016] The identification of the application displayed in the task bar is updated according to the application state information of each application, the task stack information and the application priority.

[0017] On the other hand, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0018] Identify each currently running application and obtain application status information for each currently running application;

[0019] Obtaining task stack information of an application program indicated by each application identifier displayed in the task bar, and obtaining an application priority corresponding to the application program indicated by each application identifier;

[0020] The identification of the application displayed in the task bar is updated according to the application state information of each application, the task stack information and the application priority.

[0021] On the other hand, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0022] Identify each currently running application and obtain application status information for each currently running application;

[0023] Obtaining task stack information of an application program indicated by each application identifier displayed in the task bar, and obtaining an application priority corresponding to the application program indicated by each application identifier;

[0024] The identification of the application displayed in the task bar is updated according to the application state information of each application, the task stack information and the application priority.

[0025] The above-mentioned application management method, device, terminal device, computer-readable storage medium and computer program product based on the Android system, the display interface of the terminal device is provided with a taskbar, so that the user can conveniently and quickly manage multiple applications on the Android device through the taskbar. Determine each currently running application, and obtain the application status information of each currently running application, obtain the task stack information of the application indicated by each application identifier displayed in the taskbar, and obtain the application priority corresponding to the application indicated by each application identifier. According to the application status information, task stack information and application priority of each application, update the identification of the application displayed in the taskbar, so that the user can switch between multiple applications efficiently in the Android device, making the interaction between the user and the application more flexible and faster. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] FIG1 is an application environment diagram of an application management method based on an Android system in one embodiment;

[0028] FIG2 is a flow chart of an Android-based application management method in one embodiment;

[0029] FIG3 is a schematic diagram showing the update of an indicator in a task bar in a display interface in one embodiment;

[0030] FIG4 is a structural block diagram of an Android-based application management device in one embodiment;

[0031] Figure 5 Schematic diagram of the internal structure of a terminal device in an embodiment. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0033] The application management method based on the Android system provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal device 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal device 102 determines each application currently running, and the terminal device 102 obtains the application status information of each application currently running from the server 104. The terminal device 102 obtains the task stack information of the application indicated by each application identifier displayed in the task bar from the server 104, and obtains the application priority corresponding to the application indicated by each application identifier. The terminal device 102 updates the identification of the application displayed in the task bar according to the application status information, task stack information and application priority of each application. Among them, the terminal device 102 can be, but is not limited to, various personal computers, laptops, mobile phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0034] In one embodiment, as shown in FIG. 2 , an application management method based on an Android system is provided. The method is described by taking the application of the method to the terminal device in FIG. 1 as an example. The terminal device has an Android system, and a display interface of the terminal device is provided with a task bar. The method includes the following steps:

[0035] Step 202: determine each currently running application and obtain application status information of each currently running application.

[0036] The terminal device has an Android operating system, which is referred to as the Android system. A task bar is provided on the display interface of the terminal device, and the display interface can be the desktop of the terminal device.

[0037] The taskbar is the access point for applications displayed on the display interface of the terminal device. Users can directly provide commands, access resources, and view application status from the taskbar. The taskbar is the display area for launched applications or frequently used applications, allowing users to quickly switch and manage multiple tasks.

[0038] The currently running application refers to the application that is currently in operation, which may include at least one of the foreground application, background application, and recently used application. The foreground application refers to the application that the user is currently using on the terminal device, and the background application refers to the application that is not currently directly displayed but is running in the background of the terminal device. The recently used application is the application that has been used recently. The application status information refers to the running status of the application, including foreground running, background running, and recently used.

[0039] Specifically, the terminal device displays a display interface, and displays a task bar in the display interface. In response to a preset operation triggered on the display interface, the terminal device determines each currently running application and obtains application status information of each currently running application.

[0040] The preset operation refers to an operation that triggers the update of the logo of the application in the taskbar, which may be a trigger operation on the logo of any application of the terminal device, a mode adjustment operation on the display interface, a trigger operation on the logo in the taskbar, etc., but not limited thereto. The trigger operation may be a start operation, a switch operation, an exit operation, etc. of the application, but not limited thereto.

[0041] In one embodiment, the terminal device may use an application task list, which records currently running applications. Further, the terminal device may obtain an application task list within a preset time period, and determine the currently running application from the application task list. The application at the front of the application task list is the foreground application, and the rest of the applications are background applications.

[0042] For example, when a user clicks an icon in the taskbar, the application indicated by the icon is changed to the foreground application.

[0043] In one embodiment, the terminal device can obtain the application process information running on itself, determine the foreground application and the background application in the currently running application according to the application process information, and determine the application state information of the application according to the application process information. When the application process information contains background running code, the application corresponding to the process is determined to be a background application. When a process in the application process information is in the display state of the front-end interface, the application corresponding to the process is determined to be a foreground application.

[0044] In one embodiment, the terminal device calls the activity management interface, determines each currently running application through the called activity management interface, and obtains application status information of each currently running application. For example, the application task list or application process information is obtained through the called activity management interface to determine each currently running application and application status information.

[0045] In this embodiment, the activity management interface may be called periodically.

[0046] Step 204: Acquire task stack information of the application indicated by each application identifier displayed in the task bar, and acquire application priority corresponding to the application indicated by each application identifier.

[0047] The task stack information is a list of application tasks arranged in order in the terminal device, which records the user's operations on the application program. Each application program corresponds to its own task stack information.

[0048] Specifically, the terminal device can determine each application identifier currently displayed in the task bar, and obtain task stack information of the application program indicated by each application identifier. The terminal device obtains the application priority corresponding to the application program indicated by each application identifier.

[0049] Step 206: Update the identification of the application displayed in the task bar according to the application state information, task stack information and application priority of each application.

[0050] Specifically, according to the application state information, task stack information and application priority of each application, the identification of each application to be displayed in the task bar is determined, and the identification currently displayed in the task bar is updated. As shown in FIG3 , identification A, identification B and identification C are displayed in the task bar before the update, and identification A, identification B and identification D are displayed in the task bar after the update.

[0051] In this embodiment, by calling the Package Manager API, the attribute information of each application to be displayed in the taskbar is obtained through the called package management interface, and the attribute information includes the application's identifier, name, version information, etc. According to the attribute information of each application, the identifier of each application is rendered in the taskbar.

[0052] For example, in order to display the application's icon, name and other basic information, the Package Manager API can be used to obtain the application's attribute information. Through methods such as Package Manager.getApplicationInfo() and getApplicationIcon(), the icons and names of installed applications can be efficiently loaded, and this information can be passed to the interface rendering module to ensure that the application information displayed in the taskbar is accurate and consistent. This process uses asynchronous loading to avoid blocking the UI thread when reading data, thereby improving the user experience.

[0053] In one embodiment, the terminal device responds to a layout adjustment operation triggered on the taskbar, obtains the target layout parameters corresponding to the layout adjustment operation and the current layout parameters of the taskbar in the display interface, adjusts the current layout parameters to the target layout parameters, and displays the taskbar in the display interface according to the layout indicated by the target layout parameters.

[0054] In one of the embodiments, the method also includes: determining the resolution of the terminal device, determining the layout parameters of the taskbar according to the resolution of the terminal device, and displaying the taskbar on the display interface according to the layout indicated by the layout parameters, so that it is compatible with devices with different resolutions, so that it can be displayed normally on multiple terminal devices, and smoothly cooperate with the desktop system to realize various functions of the taskbar.

[0055] The above-mentioned application management method based on the Android system is applied to a terminal device with an Android system, and the display interface of the terminal device is provided with a task bar, so that the user can conveniently and quickly manage multiple applications on the Android device through the task bar. Determine each currently running application, and obtain the application status information of each currently running application, obtain the task stack information of the application indicated by each application identifier displayed in the task bar, and obtain the application priority corresponding to the application indicated by each application identifier. According to the application status information, task stack information and application priority of each application, update the identification of the application displayed in the task bar, so that the user can switch multiple applications efficiently in the Android device, making the interaction between the user and the application more flexible and faster.

[0056] In one embodiment, obtaining the application priority corresponding to the application program indicated by each application identifier includes:

[0057] The startup time, operation frequency and running time corresponding to the application program indicated by each application identifier are obtained; and the application priority corresponding to each application program is determined according to the startup time, operation frequency and running time of each application program.

[0058] Specifically, the terminal device obtains the startup time, operation frequency and running time corresponding to the application indicated by each application identifier. For each application indicated by the application identifier, the usage probability of the application is determined according to the startup time, operation frequency and running time corresponding to the application. The usage probability represents the possibility of the application being used.

[0059] The application priority of each application is determined based on the usage probability of each application. The greater the usage probability, the higher the priority.

[0060] In this embodiment, the weights of the startup time, operation frequency and running time can be obtained, and the startup time, operation frequency, running time and their respective weights corresponding to the application program are summed to obtain the usage probability.

[0061] In this embodiment, the startup time, operation frequency and running time corresponding to the application indicated by each application identifier are obtained, and the possibility of each application being used next is predicted based on the startup time, operation frequency and running time. The greater the possibility, the higher the application priority. The application priority can be used as a consideration for updating the application identifier in the taskbar, so that the taskbar can be updated accurately to facilitate user operation.

[0062] In one embodiment, the method further comprises:

[0063] In response to a layout adjustment operation triggered for the taskbar, a window management interface is called, and target layout parameters corresponding to the layout adjustment operation are obtained through the called window management interface; current layout parameters of the taskbar in the display interface are obtained through the window management interface; current layout parameters are adjusted to target layout parameters through the window management interface, and the taskbar is displayed in the display interface according to the layout indicated by the target layout parameters.

[0064] The layout adjustment operation is an operation for adjusting the layout of the task bar in the display interface. The layout adjustment operation may be at least one of a move operation, a size adjustment operation, a shape adjustment operation, etc. of the task bar.

[0065] The current layout parameters are parameters that characterize the current layout of the task bar in the display interface. The current layout parameters include at least one of the following: a current position parameter, a current size parameter, and a current shape parameter.

[0066] The target layout parameter is a parameter that characterizes the target layout of the task bar in the display interface. The target layout parameter includes at least one of the following: a target position parameter, a target size parameter, and a target shape parameter.

[0067] Specifically, the user can adjust the layout of the taskbar, and the terminal device calls the window management interface in response to the layout adjustment operation triggered by the user on the taskbar. Through the called window management interface, the target layout parameters corresponding to the layout adjustment operation are obtained, and the current layout parameters of the taskbar in the display interface are obtained. Through the window management interface, the current layout parameters are adjusted to the target layout parameters, and the taskbar is displayed in the display interface according to the layout indicated by the target layout parameters.

[0068] For example, a taskbar movement operation, a size adjustment operation, or a shape adjustment operation. The terminal device responds to a user's movement operation on the taskbar by calling a window management interface. Through the called window management interface, the current position parameter before the movement operation and the target position parameter after the movement operation are obtained. Through the window management interface, the current position parameter is adjusted to the target position parameter, and the taskbar is moved from the current position to the target position, and the taskbar is displayed at the target position.

[0069] In this embodiment, in response to a layout adjustment operation triggered on the taskbar, a window management interface is called, and through the called window management interface, target layout parameters corresponding to the layout adjustment operation are obtained, and through the window management interface, the current layout parameters of the taskbar in the display interface are obtained, and through the window management interface, the current layout parameters are adjusted to the target layout parameters, and the taskbar is displayed in the display interface according to the layout indicated by the target layout parameters, so that the layout of the taskbar can be flexibly adjusted according to user needs.

[0070] In one embodiment, the method further comprises:

[0071] In response to a mode adjustment operation on a display interface, a display mode corresponding to the mode adjustment operation is determined; a taskbar state corresponding to the display mode is determined, and the taskbar is adjusted from a current state to a taskbar state corresponding to the display mode.

[0072] The display mode includes, but is not limited to, a full-screen display mode and a standard display mode. The taskbar state includes a display state and a hidden state. The display mode of the display interface corresponds to the taskbar state. For example, the full-screen display mode corresponds to the hidden state of the taskbar, so that when the display interface is displayed in full screen, the taskbar is hidden.

[0073] Specifically, the user can adjust the display mode of the display interface, and the terminal device calls the window management interface in response to the mode adjustment operation on the display interface. Through the called window management interface, the display mode corresponding to the mode adjustment operation is determined, and the taskbar state corresponding to the display mode is determined. Through the called window management interface, the terminal device adjusts the taskbar from the current state to the taskbar state corresponding to the display mode.

[0074] For example, in response to a full-screen display operation of the display interface, the terminal device displays the display interface in full-screen display mode, and the terminal device determines that the taskbar state corresponding to the full-screen display mode is a hidden state, and then hides the taskbar in the display interface. When exiting the full-screen display mode, the terminal device displays the taskbar in the display interface.

[0075] In one embodiment, the terminal device displays a display control and a hiding control for the taskbar on the display interface, and displays the taskbar on the display interface in response to a user triggering operation on the display control. In response to a user triggering operation on the hiding control, the taskbar is hidden on the display interface.

[0076] In this embodiment, the display and hiding control of the window is realized by calling the window management interface, and the display state and hiding state of the taskbar are dynamically adjusted in coordination with the user operation, so that the taskbar can adaptively adjust the layout in different display interfaces.

[0077] In one embodiment, the taskbar is automatically hidden and only briefly displayed when the user triggers an interactive operation, thereby improving coordination with the system desktop. That is, the taskbar can be automatically hidden in the display interface, and displayed when the user triggers the hidden taskbar, and restored to the hidden state if it is not triggered within a preset time.

[0078] In one embodiment, the display interface also supports window animation, making the taskbar smoother when showing and hiding. For example, the taskbar can be automatically hidden in the display interface, and a window animation can be displayed after hiding, so that the user can clearly know where the taskbar is hidden, which is convenient for the user to trigger the restoration of the display state.

[0079] In one embodiment, the method includes:

[0080] When an application message for a target application is generated in the background, a prompt mark corresponding to the application message is displayed for the mark of the target application in the task bar.

[0081] Specifically, when the background of the terminal device generates an application message of the target application, it is determined whether the target application logo is displayed in the task bar. When the target application logo is displayed in the task bar, a prompt mark related to the application message is generated, and the prompt mark is displayed in the task bar for the logo.

[0082] In this embodiment, an application message generated in the background for a target application can be detected through a message notification interface. When an application message is detected, a prompt mark corresponding to the application message is displayed for the mark of the target application in the taskbar.

[0083] In one embodiment, different types of application messages may be marked with different prompts. For example, a message used to prompt an application update may be marked with one prompt, and a message used to prompt an application running abnormality may be marked with another prompt.

[0084] In one embodiment, a prompt mark and a prompt box may be displayed for the identifier, and the application message may be displayed in the prompt box.

[0085] In this embodiment, an interactive function between the background service and the foreground taskbar is provided, so that when the application is running in the background, it is ensured that the taskbar is always kept stable when switching between different applications. Through the background service and message notification interface, it can be displayed in the background and interact with the user through the taskbar. When there is an important application notification in the background, a prompt mark can be displayed on the taskbar icon and a pop-up reminder box can be displayed to remind the user of the notification event to be processed, so that the user can process the application message without leaving the current application, thereby being able to manage application notifications more conveniently.

[0086] In one embodiment, the method includes:

[0087] In response to a configuration operation triggered on the taskbar, the taskbar in the configuration state is displayed; in response to an interactive configuration operation on an application identifier in the taskbar in the configuration state, configuration information generated by the interactive configuration operation is obtained; the configuration information is used to define the interactive function between the user and the application identifier in the taskbar.

[0088] The configuration information is used to customize the interaction function between the user and the application logo in the taskbar.

[0089] Specifically, the user can trigger a configuration operation on the taskbar, and the terminal device displays the taskbar in the configuration state in response to the configuration operation triggered by the user on the taskbar. The user can select at least one application identifier in the taskbar in the configuration state to perform an interactive configuration operation. In response to the interactive configuration operation, the terminal device displays a configuration area, and the user can configure the configuration information of the interactive function that he wants to customize in the configuration area. In response to the user's configuration completion operation, the terminal device obtains the user's configuration information and implements the user-customized interactive function based on the configuration information. After the interactive function is implemented, the user can interact with the application identifier in the taskbar to implement the interactive function.

[0090] For example, the user hopes that when clicking a certain logo on the taskbar, a preview window of the logo can be displayed, or the preview window of the logo can be displayed in a specific size.

[0091] For example, when a user long presses a certain icon on the taskbar, more operation information is displayed, such as closing the task, viewing application property information, and other operation information.

[0092] In this embodiment, some customized interaction logic is implemented, so that the Android system interface is closely integrated with the system desktop, so as to enable users to customize the interactive functions of the application logo in the taskbar, greatly improving the user experience. The application management method based on the Android system in this embodiment is compatible with devices with different resolutions, so that it can be displayed normally on a variety of terminal devices, and smoothly cooperates with the desktop system to realize various functions of the taskbar.

[0093] In one embodiment, an application management method based on the Android system is provided, which is applied to a terminal device having the Android system, and the display interface of the terminal device is provided with a task bar, and the method includes:

[0094] In response to a preset operation triggered on the display interface, the activity management interface is called, and each currently running application is determined through the called activity management interface, and application status information of each currently running application is obtained;

[0095] By calling the activity management interface, the task stack information of the application indicated by each application identifier displayed in the task bar is obtained, and the startup time, operation frequency and running time corresponding to the application indicated by each application identifier are obtained;

[0096] By calling the activity management interface, the application priority corresponding to each application is determined according to the startup time, operation frequency and running time of each application;

[0097] By calling the activity management interface, according to the application status information, task stack information and application priority of each application, the application to be displayed in the taskbar is determined;

[0098] The software package management interface is called to obtain the property information of each application program that needs to be displayed in the task bar through the called software package management interface.

[0099] The identifier of each application is rendered into the taskbar according to the attribute information of each application through the called software package management interface, so as to update the identifier of the application displayed in the taskbar.

[0100] In response to a layout adjustment operation triggered for the taskbar, a window management interface is called, and target layout parameters corresponding to the layout adjustment operation are obtained through the called window management interface; current layout parameters of the taskbar in the display interface are obtained through the window management interface; current layout parameters are adjusted to target layout parameters through the window management interface, and the taskbar is displayed in the display interface according to the layout indicated by the target layout parameters.

[0101] In response to a mode adjustment operation on the display interface, a display mode corresponding to the mode adjustment operation is determined through a window management interface; a taskbar state corresponding to the display mode is determined through the window management interface, and the taskbar is adjusted from a current state to a taskbar state corresponding to the display mode.

[0102] In response to a configuration operation triggered on the taskbar, the taskbar in the configuration state is displayed and the configuration interface is called; in response to an interactive configuration operation on an application identifier in the taskbar in the configuration state, configuration information generated by the interactive configuration operation is obtained through the called configuration interface; the configuration information is used to define the interactive function between the user and the application identifier in the taskbar.

[0103] When an application message for a target application is generated in the background, a prompt mark corresponding to the application message is displayed for the mark of the target application in the task bar.

[0104] In one embodiment, an application management method for a terminal device with an Android system is improved, and a task bar is provided on the display interface of the terminal device, so that the display interface is an interactive interface integrating multi-task management, application quick start, status display and user operation response. Its main function is to present the opened or frequently used applications to the user through visual application identification, and support the user to realize quick application switching and operation management through operations such as clicking and long pressing. The data flow of the method is mainly divided into three stages: data generation, data processing and data output. Data generation is generated by the terminal device, and the application task list and application status information required for the task bar display are obtained through the monitoring system; data processing includes identification asynchronous loading, task stack management, user operation response, etc., which are executed by the terminal device; data output is the final task bar interface display, including application identification, application status, application message, etc., and the terminal device is responsible for interface update.

[0105] The application management method based on the Android system includes the following modules: the application status monitoring module is responsible for periodically or event-driven monitoring of the status information of applications in the system (suspended, opened, etc.), and updates the application status list; the task stack management module manages the priority and display status of applications on the taskbar (i.e., the display or hiding of the taskbar), and transmits the status information, priority, and display status to the icon management module; the icon management module loads the application icon according to the task stack information (i.e., the status information of each application) and sets the icon position and status; the user interaction processing module is responsible for monitoring user clicks, long presses, etc., and triggering corresponding task operations; the interface rendering module draws the taskbar information on the interface and dynamically updates the taskbar display content (i.e., displaying application icons). These modules are executed sequentially in the data stream to ensure that the taskbar displays task information and responds to user operations in real time and accurately.

[0106] Recently used applications, foreground application IDs and background application IDs. Users can enter the application by clicking the icon or long pressing to display more operations; background data processing implements data management and operation response through processes such as application status monitoring, task stack management, icon loading, and user interaction response.

[0107] This method is applicable to multiple scenarios, such as multi-tasking management and hiding the taskbar in full-screen mode. In addition, the system architecture includes the taskbar front end and the application manager (Activity Manager), and each part cooperates with each other to ensure real-time data synchronization and taskbar information update.

[0108] Application priority can be determined based on the task opening time, user frequency, running time, etc. For example, when a user uses a task, the system will increase the priority of the task and sort the tasks from high to low priority. The specific implementation of this algorithm is: traverse each application in the application list, load the logo for each application, and update the display status of the application logo in the taskbar.

[0109] In one embodiment, the core mechanism of multitasking management: The Android system uses Activity Manager to manage task stacks and activity lifecycles. Whenever a user starts a new application or reopens a background application, the system checks the current task stack and decides whether to start a new task or bring an existing task to the foreground. The system usually retains the most recently used task stack in the background so that when the user returns to the application, they can directly restore to the previous state. Android will give priority to retaining high-priority task stacks. When the system is low on memory, low-priority tasks may be cleared to ensure smooth operation of the device.

[0110] Multitasking process: When the user clicks the application icon in the taskbar or enters a task through task switching (such as the multitasking button), the system will find the corresponding task stack based on the unique identifier of the task (Task ID). If the task stack exists, the system will bring it from the background to the foreground and switch the focus to the top activity of the task. If the task stack does not exist or has been cleared, the system will restart the application and add the new task to the task stack.

[0111] Task stack management strategy: In this embodiment, the Android system is used, and the task stack can be configured with multiple startup modes (such as standard, singleTop, singleTask, singleInstance) to optimize multi-tasking. The functions of each mode are as follows:

[0112] standard: A new instance is created each time the activity is started, which is suitable for general operations.

[0113] singleTop: When the activity already exists at the top of the task stack, a new instance will not be created. Instead, the existing instance will be reused. This is suitable for interfaces that need to avoid duplication.

[0114] singleTask: Each time an activity is started, it is started in an independent task stack. It is suitable for global tasks that require a single instance.

[0115] singleInstance: Launches the activity into a separate task stack, which is suitable for special application scenarios that require complete isolation.

[0116] Activity state management in task stack: The activities in each task stack are arranged in the order of the stack, and the state of the activities is managed according to the application life cycle (such as onCreate, onStart, onResume, onPause, onStop, onDestroy). This ensures that when the user returns to a task, the system will restore the state of the activities in the task in the order of the stack. For example, when the user presses the "Back" key, the system will destroy the current activity and display the next activity until the task stack is empty. In this way, the Android system can effectively manage resources and memory and improve the efficiency of device operation.

[0117] Multitasking display and management in the taskbar: This embodiment calls the multitasking management interface of the Android system, providing an intuitive way for users to switch and manage multitasking. Users can quickly view the list of recently used applications through the taskbar and switch between multiple applications as needed. The taskbar displays the application icons, application names, and foreground and background status of the user's recently used applications by obtaining the task stack information in the Activity Manager.

[0118] Background task priority and cleanup strategy in multitasking mode: This embodiment follows the Android process and allocates resources and memory according to task priority and application status. For example, foreground applications usually have the highest priority to ensure a smooth user experience, while background applications dynamically adjust memory usage according to their priority. When the system memory is insufficient, ActivityManager will gradually clean up low-priority background tasks and activities to free up resources. The system will give priority to retaining recently used tasks to ensure that applications can be quickly restored when users switch.

[0119] In this embodiment, by calling these Android APIs and cooperating with the desktop system, this embodiment implements efficient multi-tasking management of the taskbar and user-friendly underlying interaction logic, allowing users to enjoy a smooth and convenient experience in task switching and application management.

[0120] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0121] Based on the same inventive concept, the embodiment of the present application also provides an Android-based application management device for implementing the Android-based application management method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more Android-based application management device embodiments provided below can refer to the above limitations on the Android-based application management method, and will not be repeated here.

[0122] In one embodiment, as shown in FIG. 4 , an Android-based application management device 400 is provided, which is applied to a terminal device having an Android system. The display interface of the terminal device is provided with a task bar, including:

[0123] The determination module 402 is used to determine each currently running application and obtain application status information of each currently running application.

[0124] The acquisition module 404 is used to acquire the task stack information of the application indicated by each application identifier displayed in the task bar, and acquire the application priority corresponding to the application indicated by each application identifier.

[0125] The updating module 406 is used to update the identification of the application displayed in the task bar according to the application status information, task stack information and application priority of each application.

[0126] In one embodiment, the acquisition module 404 is used to obtain the startup time, operation frequency and running time corresponding to the application indicated by each application identifier; and determine the application priority corresponding to each application according to the startup time, operation frequency and running time of each application.

[0127] In one embodiment, the apparatus further comprises:

[0128] The adjustment module is used to call the window management interface in response to the layout adjustment operation triggered for the taskbar, and obtain the target layout parameters corresponding to the layout adjustment operation through the called window management interface; obtain the current layout parameters of the taskbar in the display interface through the window management interface; adjust the current layout parameters to the target layout parameters through the window management interface, and display the taskbar in the display interface according to the layout indicated by the target layout parameters.

[0129] In one embodiment, the apparatus further comprises:

[0130] The adjustment module is used to respond to the mode adjustment operation on the display interface, determine the display mode corresponding to the mode adjustment operation; determine the taskbar state corresponding to the display mode, and adjust the taskbar from the current state to the taskbar state corresponding to the display mode.

[0131] In one embodiment, the apparatus comprises:

[0132] The display module is used to display a prompt mark corresponding to the application notification for the application identifier of the target application in the task bar when an application message for the target application is generated in the background.

[0133] In one embodiment, the apparatus comprises:

[0134] A configuration module is used to display a taskbar in a configuration state in response to a configuration operation triggered on the taskbar; in response to an interactive configuration operation on an application identifier in the taskbar in the configuration state, obtain configuration information generated by the interactive configuration operation; the configuration information is used to define the interactive function between the user and the application identifier in the taskbar.

[0135] Each module in the above-mentioned application management device based on the Android system can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device in the form of hardware, or can be stored in the memory in the terminal device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0136] In one embodiment, a terminal device is provided, whose internal structure diagram can be as follows: Figure 5As shown. The terminal device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the terminal device is used to exchange information between the processor and the external device. The communication interface of the terminal device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an application management method based on the Android system is realized. The display unit of the terminal device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the terminal device shell, or an external keyboard, touchpad or mouse.

[0137] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device to which the scheme of the present application is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0138] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the application management method based on the Android system.

[0139] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the application management method based on the Android system.

[0140] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0143] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An application management method based on Android system, characterized in that: Applied to a terminal device with an Android system, the display interface of the terminal device is provided with a task bar, and the method includes: Identify each currently running application and obtain application status information for each currently running application; Obtaining task stack information of an application program indicated by each application identifier displayed in the task bar, and obtaining an application priority corresponding to the application program indicated by each application identifier; The identification of the application displayed in the task bar is updated according to the application state information of each application, the task stack information and the application priority.

2. The method according to claim 1, characterized in that The obtaining the application priority corresponding to the application program indicated by each application identifier includes: Obtaining the startup time, operation frequency and running time corresponding to the application program indicated by each application identifier; The application priority corresponding to each of the application programs is determined according to the startup time, operation frequency and running time of each of the application programs.

3. The method according to claim 1, characterized in that The method further comprises: In response to a layout adjustment operation triggered on the task bar, calling a window management interface, and obtaining target layout parameters corresponding to the layout adjustment operation through the called window management interface; Obtaining, through the window management interface, current layout parameters of the task bar in the display interface; The current layout parameters are adjusted to target layout parameters through the window management interface, and the task bar is displayed in the display interface according to the layout indicated by the target layout parameters.

4. The method according to claim 1, characterized in that The method further comprises: In response to a mode adjustment operation on the display interface, determining a display mode corresponding to the mode adjustment operation; Determine a taskbar state corresponding to the display mode, and adjust the taskbar from a current state to a taskbar state corresponding to the display mode.

5. The method according to claim 1, characterized in that The method comprises: When an application message for a target application is generated in the background, a prompt mark corresponding to the application message is displayed for the identifier of the target application in the task bar.

6. The method according to any one of claims 1 to 5, characterized in that: The method comprises: In response to a configuration operation triggered on the task bar, displaying the task bar in a configuration state; In response to an interactive configuration operation on an application identifier in a task bar in a configuration state, configuration information generated by the interactive configuration operation is obtained; the configuration information is used to define an interactive function between a user and the application identifier in the task bar.

7. An application management device based on the Android system, characterized in that: Applied to a terminal device with an Android system, the display interface of the terminal device is provided with a task bar, and the device comprises: A determination module, used to determine each currently running application and obtain application status information of each currently running application; An acquisition module, used to acquire task stack information of an application indicated by each application identifier displayed in the task bar, and to acquire application priority corresponding to the application indicated by each application identifier; The updating module is used to update the identification of the application displayed in the task bar according to the application status information of each application, the task stack information and the application priority.

8. A terminal device, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Android-based multi-task management method, intelligent terminal and storage medium

    CN111061549A

  • Multi-task interface management method and electronic equipment

    CN112748972A

  • Application management method and electronic equipment

    CN118484113A