A processing method and electronic device
Patent Information
- Application Number
- CN202311639559.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-31
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2040-03-31
AI Technical Summary
[0004]当用户需查看应用中任务的任务状态时,如果应用已被切走,则需进入应用并调出所需任务的任务状态信息进行观看,这需要设备将应用进程切至前台运行;而对于多应用中多任务的任务状态查看,相应需要设备不断地进行前台应用进程切换,以进入不同应用,并于不同应用中查看相对应的任务状态信息,整个过程中只能单向进行,导致操作路径冗长,且加大了对设备资源的占用及功耗消耗
[0048]由以上方案可知,本申请公开的处理方法及电子设备,监测电子设备上处于第一状态的第一应用,并在第一应用维持第一状态的情形下,展示并激活第一应用启动的任务中目标任务的任务状态信息,由于第一状态为能表明第一应用已从设备前台切走且第一应用中启动有至少一个任务的状态,因此,该方法本质上相当于在第一应用从设备前台切走的情形下,于第一应用的应用界面之外展示其目标任务的任务状态信息,并通过对展示的任务状态信息进行激活控制使其与第一应用中目标任务的实际状态相同步,这样,对于已从设备前台切走的第一应用来说,不需要进入该应用就可以查看其目标任务的任务状态信息,设备也不需将其切至前台运行,节约了设备资源及功耗,并缩短了用户操作路径、简化了用户操作。
Smart Images

Figure CN117667343B_ABST
Abstract
Description
[0001] This application is a divisional application filed on March 31, 2020, with application number 2020102471160 and invention title: A processing method and electronic device. Technical Field
[0002] This application belongs to the field of multi-task management technology, and in particular relates to a processing method and an electronic device. Background Technology
[0003] When using electronic devices such as smartphones and tablets, a typical scenario is that the user opens one or more applications on the device and starts one or more tasks in each of those applications. From the device's perspective, this means running one or more tasks.
[0004] When a user needs to view the task status of a task in an application, if the application has been switched away, the user needs to enter the application and retrieve the task status information of the required task. This requires the device to switch the application process to the foreground. For viewing the task status of multiple tasks in multiple applications, the device needs to constantly switch between foreground application processes to enter different applications and view the corresponding task status information in different applications. The entire process can only be carried out in one direction, resulting in a lengthy operation path and increased consumption of device resources and power consumption. Summary of the Invention
[0005] In view of this, this application provides a processing method and an electronic device to display the task status information of an application without entering the application (keeping the application in an out state and not switching it to the foreground), thereby saving device resources and power consumption, shortening the user operation path, and simplifying user operation.
[0006] The technical solution disclosed in this application is as follows:
[0007] A processing method includes:
[0008] At least one first application is detected on the electronic device in a first state; the first state indicates that the first application has been switched off the device foreground and at least one task has been launched in the first application;
[0009] Obtain the task status information of the target task that meets the first task condition among the tasks launched by the first application;
[0010] While the first application maintains the first state, the task status information is displayed so that the task status information of the target task is displayed outside the application interface of the first application.
[0011] The task status information displayed is in an active state; in the active state, the displayed task status information will undergo changes synchronized with the task status changes of the target task in the first application, and can be used as an entry point to enter the first application.
[0012] In the above method, preferably, the target task that satisfies the first task condition includes:
[0013] A specific task that conforms to the first interface protocol among the tasks launched by the first application;
[0014] or,
[0015] The tasks that meet the information filtering criteria in the first application's startup tasks.
[0016] Preferably, in the above method, obtaining the task status information of the target task that meets the first task condition among the tasks launched by the first application includes:
[0017] Using the first data interface of the first application, the task status information of the target task in the task launched by the first application is obtained; the first data interface is encapsulated with a first interface protocol, which can be used to support the first data interface to capture the task status information of at least one specific task among all tasks supported by the first application, and the target task is at least a part of the at least one specific task.
[0018] or,
[0019] Using the second data interface of the first application, the task status information of all tasks launched by the first application is obtained; the task status information of the target task that meets the information filtering conditions is selected from the task status information of all tasks; the second data interface encapsulates a second interface protocol, which can be used to support the second data interface to capture the task status information of all tasks supported by the first application.
[0020] The first interface protocol or the second interface protocol includes predetermined task parameters and format specification information of the task parameters corresponding to the task.
[0021] Preferably, in the above method, displaying the task status information while the first application maintains the first state includes at least one of the following:
[0022] If the first application maintains the first state:
[0023] The task status information is displayed in a predetermined top or bottom area of the electronic device screen interface; the predetermined top area includes: the top status bar area of the electronic device or other top areas independent of the top status bar.
[0024] The task status information is displayed in the quick settings interface or message notification bar of the electronic device;
[0025] The task status information is displayed in the application icon area of the first application or in a predetermined area associated with the application icon;
[0026] The task status information is displayed on the multitasking interface of the electronic device.
[0027] In the above method, preferably, displaying the task status information on the multitasking interface of the electronic device includes:
[0028] Obtain at least one application display section corresponding to the at least one first application; the application display section is used to display identifiable application information in a multi-tasking interface;
[0029] Each of the at least one application displays a corresponding first task status unit; the first task status unit of the application includes task status information of at least one target task running by the application;
[0030] Each of the application display sections is displayed in the multi-tasking interface, and at least for the target first application in the main application state, the application display section and the first task state section of the target first application are displayed together; wherein, the target first application in the main application state is: in the multi-tasking state, the first application whose display characteristics on the electronic device display device meet the display conditions.
[0031] In the above method, preferably, displaying each of the application display sections in a multi-tasking state includes:
[0032] The first application that meets the second task condition among the at least one first application is identified as the target first application;
[0033] The multitasking interface displays both the primary target application and non-primary target applications.
[0034] In the multi-tasking interface, the display characteristics of the application display section of the target first application on the electronic device display device meet the display conditions.
[0035] In the above method, preferably, displaying the task status information on the multitasking interface of the electronic device includes:
[0036] A second task status unit is generated; the second task status unit includes task status information of each target task launched in the at least one first application;
[0037] At least the status of the second task should be displayed in the multitasking interface.
[0038] In the above method, preferably, displaying at least the second task status section in the multi-tasking interface includes:
[0039] The status of the second task is displayed in the multitasking interface;
[0040] or,
[0041] The multitasking interface displays at least one application display section corresponding to at least one first application, and simultaneously displays the second task status section; the application display section is used to display identifiable application information on the multitasking interface.
[0042] In the above method, preferably, the displayed task status information generates changes synchronized with the task status changes of the target task in the first application, including:
[0043] Based on a predetermined strategy, update and display the task status information of the target task of the first application;
[0044] Among them, the task status information of at least one target task of the first application is managed by a queue, and the task status information of the target task currently being updated and displayed is at the head of the queue.
[0045] An electronic device, comprising:
[0046] Memory, used to store at least one set of instructions;
[0047] A processor for invoking and executing the instruction set in the memory, thereby performing the processing method as described in any of the preceding items.
[0048] As can be seen from the above solutions, the processing method and electronic device disclosed in this application monitor a first application in a first state on the electronic device, and while the first application maintains the first state, displays and activates the task status information of the target task in the tasks started by the first application. Since the first state indicates that the first application has been switched away from the device foreground and that at least one task has been started in the first application, this method is essentially equivalent to displaying the task status information of the target task outside the application interface of the first application when the first application is switched away from the device foreground, and synchronizing the displayed task status information with the actual state of the target task in the first application by activating and controlling it. In this way, for the first application that has been switched away from the device foreground, it is not necessary to enter the application to view the task status information of its target task, and the device does not need to switch it to the foreground to run, saving device resources and power consumption, shortening the user operation path, and simplifying the user operation. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0050] Figure 1 This is a schematic flowchart of a processing method provided in an embodiment of this application;
[0051] Figure 2 This is another flowchart illustrating the processing method provided in the embodiments of this application;
[0052] Figure 3 This is another flowchart illustrating the processing method provided in the embodiments of this application;
[0053] Figure 4 This is an example diagram illustrating the display of countdown task status information in the top status bar of an electronic device, as provided in an embodiment of this application.
[0054] Figure 5 This is an example diagram of displaying countdown status information in the application icon area, provided in an embodiment of this application.
[0055] Figure 6 This is a flowchart illustrating an implementation method for displaying the task status information of a first application target task in a multi-task interface, as provided in an embodiment of this application.
[0056] Figure 7(a) is a schematic diagram of the application display section and the first task status section that are associated and displayed in a multi-tasking interface in a tiled manner according to an embodiment of this application;
[0057] Figure 7(b) is a schematic diagram of the application display section and the first task status section that are associated and displayed in a stacked multi-task interface according to an embodiment of this application;
[0058] Figure 8 This is a flowchart illustrating another implementation method for displaying the task status information of a first application target task in a multi-task interface, as provided in this application embodiment.
[0059] Figure 9(a) is a schematic diagram showing only the second task status section in the multitasking interface according to an embodiment of this application;
[0060] Figure 9(b) is a schematic diagram of an application display section for each first application and a second task status section for a multitasking interface provided in an embodiment of this application.
[0061] Figure 10 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0062] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0063] The inventors discovered that users may simultaneously use multiple applications while using mobile devices, initiating or creating different tasks within each application. One possible scenario is that after get off work, a user might be chatting on an instant messaging app while simultaneously ordering food delivery through a food delivery service and booking a ride through a ride-hailing app. In this scenario, the food delivery and ride-hailing tasks constitute multiple tasks running concurrently on the device. Users typically need to monitor the status of these tasks, or at least some of them, in real-time or frequently. However, traditional technologies do not support efficient and convenient viewing of application status information. For example, in the scenario described above, the user must switch away from the current chat interface, enter the food delivery service application to find the initiated food delivery task to check its status, then switch back to the ride-hailing app to find the initiated ride-hailing task to check its status. This entire process is unidirectional, resulting in a lengthy user operation path and high power and resource consumption for the device.
[0064] The processing method and electronic device disclosed in this application aim to provide solutions to at least the aforementioned problems. When an application is switched off, by displaying the task status information of its specific target task outside the application's interface, it provides users with an efficient and convenient channel to view the application's task status information. The following detailed description of the processing method and electronic device of this application is provided through several specific embodiments.
[0065] In an optional embodiment of this application, a processing method is disclosed. This processing method can be applied to electronic devices. Specifically, the electronic devices to which this method is applied can be, but are not limited to, smart wearable devices such as smart bracelets / watches, portable mobile terminals such as mobile phones, tablets, laptops, handheld computers, and personal digital assistants, or personal PC devices such as laptops, desktops, and all-in-ones. The form of the device executing the method is not limited here. The following description will mainly use mobile terminals such as mobile phones as examples to illustrate the embodiments.
[0066] like Figure 1 The flowchart of the above processing method is shown. The processing method may include:
[0067] Step 101: Detect at least one first application in the first state on the electronic device.
[0068] The first state mentioned above indicates that the first application has been switched off the device foreground and at least one task has been started in the first application; that is, the first state refers to the state in which the first application has been switched off the device foreground and at least one task has been started in the first application.
[0069] When an application with a task is launched or created and runs in the foreground of the device, the user can directly view the task status information from the application's interface. Once the application process is switched to the background, its interface will be hidden. In order to support efficient and convenient viewing of the application's task status information even when the application is switched from the foreground, this application embodiment monitors the applications running on the electronic device. The monitoring mainly includes two aspects: first, monitoring the foreground and background operation of the application to determine whether the application process has been switched from running in the foreground to running in the background of the device; second, monitoring whether a task has been launched or created in the application.
[0070] It should be noted that, since tasks are generally no longer necessary or required to be viewed in real time or frequently when they are completed (such as when food delivery or ride-hailing has ended) or paused, when monitoring whether a task has been started or created in the application, it is preferable to further monitor whether there are any tasks that have been started but not yet completed or have been started and are waiting to run / are running when the application process is switched from the foreground to the background.
[0071] For applications running on electronic devices, one possible monitoring method is to first monitor only the application's foreground and background operation. When a foreground / background switching event is detected, task monitoring within the application is triggered to detect whether any tasks in the application were started but not yet completed, or started and waiting to run / currently running, at the time of the switch. Alternatively, task monitoring can begin as soon as the application is started and running, such as monitoring when which tasks were enabled, and the current state of each enabled task, while simultaneously monitoring the application's foreground and background operation. When a foreground / background switching event is detected, the monitoring task information is used to determine whether any tasks were started but not yet completed, or started and waiting to run / currently running, at the time of the switch.
[0072] If, based on monitoring, it is determined that there are tasks that have been started but not yet completed or have been started and are waiting to run / are running in the application at the time of switching between the application's foreground and background, then it is determined that the first application in the first state has been detected.
[0073] In practice, the foreground and background operation modes of an application can be determined by monitoring the process of the electronic device and / or monitoring the device interface information. As for monitoring the task information in the application, it can be achieved by monitoring the process / thread allocation of the application, monitoring the application's usage of the underlying resources of the device (such as the application starting to enable and continuously running components such as GPS modules or cameras from a certain moment) and / or using interfaces to capture task data.
[0074] Step 102: Obtain the task status information of the target task that meets the first task condition among the tasks launched by the first application.
[0075] After detecting at least one first application in a first state on an electronic device, this application selectively acquires the task status information of the target task that meets the first task condition in the task launched by the first application, so as to provide data basis for subsequent display and processing of task status information.
[0076] The target task that satisfies the first task condition can be any one of the following:
[0077] 1) A specific task that conforms to the first interface protocol among the tasks launched by the first application;
[0078] For a given application, at least one specific task within the application can be pre-defined based on a protocol (such as the first interface protocol mentioned above), and it can be agreed that this specific task can perform operations such as task monitoring and data capture. In actual implementation, optionally, tasks in the application that are highly urgent, have high real-time requirements, are less sensitive, and do not pose security risks can be designated as the aforementioned specific tasks based on the protocol.
[0079] In this scenario, when a specific task specified by the protocol in the application is started and run, it can be identified as the target task that satisfies the first task condition mentioned above.
[0080] Specifically, it can be that the target task is identified as meeting the first task condition at startup, and the task status information capture operation for the target task is triggered only when the application is detected to switch from the foreground to the background; or, optionally, it can be that the task is detected to meet the first task condition when the application is detected to switch from the foreground to the background, and the task status information capture operation for the target task is triggered.
[0081] 2) The corresponding tasks that meet the information filtering criteria in the tasks launched by the first application.
[0082] The information filtering criteria may include, but are not limited to, any one or more of the following conditions that can be used to extract information: the urgency, importance, or priority of the task / task information.
[0083] Step 103: If the first application maintains the first state, display the task status information of the target task.
[0084] Since the first state indicates that the first application has been switched from the device foreground and that at least one task has been launched in the first application, displaying the task status information of the target task while the first application is in the first state essentially means displaying the task status information of the target task outside the application interface of the first application while the first application is switched from the device foreground and running in the background.
[0085] While the first application maintains its first state, the display of the target task's status information can be achieved in various ways, such as using windows (e.g., floating windows, normal windows) and / or status bar information items. This part will be explained in detail later.
[0086] Step 104: The task status information displayed is in an active state.
[0087] When displaying the task status information of the target task outside the application interface of the first application, the task status information being displayed is kept active.
[0088] The task status information being in an active state means that the displayed task status information undergoes changes synchronized with the task status changes of the target task in the first application, and can be used as an entry point to enter the first application. In this embodiment, the task status information being in an active state is equivalent to the display component (such as a window, information item component in the status bar, etc.) carrying the task status information being in an active state (i.e., an active running state).
[0089] In practice, the task status information of the target task in the first application can be captured in real time or periodically via an interface. Based on the continuously captured data, the task status information displayed on the device outside the application interface of the first application is updated to synchronize the displayed task status information with the actual status of the target task in the first application. Alternatively, the task status information displayed outside the application interface can be used as an entry point to access the first application, such as clicking on the displayed task status information to enter the main page of the first application, or entering the task status information page of the target task within the first application. Thus, after the first application is switched from the foreground to the background, users can not only efficiently and conveniently view the real-time, dynamic task status information of the target task in the first application without entering the first application itself, but also directly access the first application when needed by using the displayed application status information as an entry point.
[0090] It is easy to understand that for tasks launched in the first application that do not meet the conditions of the first task, there is no need to capture their task status information, nor is there a need to process their task status information outside the application interface in accordance with the processing method of this embodiment.
[0091] The first application is an application running in the background and currently performing a task. This currently performing task is a target task that meets predetermined conditions. The predetermined conditions are parameters used to characterize the urgency of the task and the need for real-time user monitoring. For example, whether the currently performing task can be completed within a predetermined time. The predetermined conditions are a list of target tasks, i.e., whether the currently performing task of the background application is included in the list of target tasks. For example, a target task could be a countdown timer for a game character's respawn time in a game application; it could be a ride-hailing application's task where a ride-hailing vehicle determines its arrival time in real-time based on the distance between the ride-hailing vehicle and the user's location after accepting an order; it could be a food delivery application's task where a delivery rider determines its arrival time in real-time based on the distance between the delivery rider and the user's location after accepting an order; it could also be a countdown task in a clock application, etc.
[0092] In this embodiment, when the first application is switched away from the device foreground, the task status information of its target task is displayed outside the application interface of the first application. The displayed task status information is activated and synchronized with the actual status of the target task in the first application. In this way, for the first application that has been switched away from the device foreground, it is not necessary to enter the application to view the task status information of its target task. The device does not need to switch it to the foreground to run, saving device resources and power consumption, shortening the user operation path and simplifying the user operation.
[0093] Corresponding to scenario 1) of the target task provided above, in an optional implementation, see [reference needed]. Figure 2 Step 102 of the processing method (obtaining the task status information of the target task that meets the first task condition in the task launched by the first application) can be implemented through the following processing procedure:
[0094] Step 201: Use the first data interface of the first application to obtain the task status information of the target task in the task started by the first application.
[0095] The first data interface encapsulates a first interface protocol, which can be used to support the first data interface in capturing the task status information of at least one specific task among all tasks supported by the first application, and the determined target task is at least a portion of the at least one specific task.
[0096] In this implementation, the first task condition that the target task needs to meet can be set or understood as: it has been started in the first application (and has not yet been completed or is waiting to run / is running), and belongs to a specific task that the first data interface can support.
[0097] In this implementation, at least one specific task in the application is pre-defined based on a protocol. For example, tasks with high urgency, high real-time requirements, low sensitivity, and no security risks are designated as this specific task. This protocol is referred to as the first interface protocol, and it is agreed that this specific task can perform operations such as task monitoring and data capture. Furthermore, the protocol is functionally implemented using an interface, providing the first application with a first data interface encapsulating this first interface protocol. The first interface protocol encapsulated in the first data interface includes at least the predetermined task parameters for each specific task and the format specification information of the task parameters.
[0098] The following are examples.
[0099] For example, in a clock application, various types of tasks can be started or created, such as timed reminders or countdown tasks. For timed reminders, users typically do not need to monitor their status information in real time or frequently; they only need to ring / vibrate when the timer is reached (e.g., 6 AM every day). However, for countdown tasks, such as countdowns lasting 3 minutes, 5 minutes, or even seconds, users typically need to monitor their status information in real time or frequently, such as the current remaining time. Therefore, countdown tasks in the clock application can be pre-defined as specific tasks of the clock application based on a protocol, and the relevant parameters and format specifications of the countdown task can be encapsulated in the first data interface provided to the clock application. For example, the countdown task-related parameters encapsulated in the first data interface may include, but are not limited to, the current remaining time, the ratio of the elapsed time to the current remaining time to the total time.
[0100] When a user starts a countdown task in the clock app and then switches away from the app, the electronic device can retrieve task parameter data such as the current remaining time and the ratio of the elapsed time to the total remaining time through the clock app's first data interface. This data is then organized and packaged according to a specified format for displaying the countdown task's status information outside the clock app. However, for timed reminder tasks within the clock app, according to the interface protocol, no relevant parameter data is retrieved when using the first data interface for task data retrieval. Consequently, the timed reminder task's status information will not be displayed outside the clock app's interface after the user switches away from the app.
[0101] For example, you can designate instant food delivery tasks as specific tasks for food delivery apps (while other tasks, such as ordering movie tickets or travel tickets, can be designated as specific tasks), and ride-hailing tasks as specific tasks for ride-hailing apps, etc., etc., and so on. I will not give examples here.
[0102] Based on the implementation of this embodiment, the electronic device can capture relevant task parameter data of a specific task in the task launched by the first application through the first data interface and organize and encapsulate the task parameter data in a prescribed format, thereby providing data basis for displaying the application status information of a specific target application outside the application interface of the first application.
[0103] Corresponding to scenario 2) of the target task provided above, in an optional implementation, see [reference needed]. Figure 3 Step 102 of the above processing method (obtaining the task status information of the target task that meets the task conditions in the task launched by the first application) can be implemented through the following processing procedure:
[0104] Step 301: Use the second data interface of the first application to obtain the task status information of all tasks started by the first application.
[0105] The second data interface encapsulates a second interface protocol, which can be used to support the second data interface in capturing task status information of all tasks supported by the first application.
[0106] In this implementation, no specific task for task monitoring and data capture is specifically defined in the second data interface of the first application. Instead, the task data capture function for all tasks in the first application is provided indiscriminately in the second data interface. Correspondingly, the second interface protocol encapsulated in the second data interface includes the predetermined task parameters and the format specification information of the task parameters for all tasks that the first application can support.
[0107] Thus, when at least one first application in the first state is detected on the electronic device, and it is necessary to obtain the task status information of the target task of the first application, the task status information of all tasks that have been started (and not yet completed or waiting to run / running) in the first application is first captured using the second data interface of the first application. For example, the corresponding task parameters of each task are captured according to the second interface protocol and the parameter data is organized and encapsulated in the prescribed format.
[0108] Step 302: Select the task status information of the target task that meets the information filtering conditions from the task status information of all tasks.
[0109] After acquiring the task status information of all the tasks captured by the second data interface (the acquired task status information can be the task parameter data of each task packaged in a specified format), the electronic device can parse the acquired task status information of all the tasks, extract information according to the set information filtering conditions, and select the task status information of the target task that meets the conditions.
[0110] The information filtering criteria may include, but are not limited to, any one or more of the following conditions that can be used for information extraction: urgency, importance, or priority of the task / task information. Accordingly, based on the information filtering criteria, the task status information of the target task that meets the urgency, importance, or priority requirements can be extracted from a series of task data captured from the second data interface.
[0111] Taking the clock application as an example, based on the implementation method of this embodiment, when a user creates two tasks in the clock application—a timed reminder task and a countdown task—and switches the clock application away from the foreground of the device, the clock application will be monitored as the first application in the first state. This will further trigger a processing flow that uses the second data interface of the clock application to capture and encapsulate the task parameters of its timed reminder task and countdown task. After obtaining this data through the second data interface, the device further uses information filtering conditions determined by the urgency, importance, and / or priority of the task / task information to extract the task status data of the countdown task as the task status information of the target task, and accordingly filters out the task status information of the timed reminder task. Then, with the alarm clock application running in the background, the task status information of its countdown task is displayed on the device.
[0112] Unlike the previous embodiment, this embodiment determines the target task in the first application and extracts its task status information by filtering information on the device side (rather than the application side), providing a data basis for subsequently displaying the application status information of a specific target application outside the application interface of the first application.
[0113] In step 103 of the processing method of this application, the step of displaying the task status information of the target task while the first application maintains the first state may include at least one of the following implementation methods:
[0114] If the first application maintains the first state:
[0115] 1) Display the task status information of the target task in a predetermined top or bottom area of the electronic device screen interface.
[0116] The designated top area may include, but is not limited to, the top status bar area of an electronic device or other top areas independent of the top status bar.
[0117] Specifically, when the first application is switched from the foreground to the background, the task status information of the target task of the first application can be displayed as a status bar information item in the corresponding area of the top status bar of the electronic device. The display format can be icons and / or text, etc., without limitation. Figure 4As shown, an example diagram is provided showing the countdown task status information displayed in the top status bar of an electronic device. After the first application, such as a clock application or game application with a countdown task, is switched to the background, the user can easily view the relevant status information of the countdown task of the application from the top status bar of the device. The status information is active. By monitoring and synchronizing the countdown task in the application based on a data interface (such as the first data interface or the second data interface mentioned above), the countdown task status information in the status bar can be updated in real time. In addition, if needed, the clock application can be directly accessed through the task status information displayed in the status bar.
[0118] In addition, task status information of the target task can be displayed in a predetermined top or bottom area of the electronic device using components such as floating windows, ordinary windows, or transparent masks with corresponding transparency.
[0119] 2) Display the task status information in the quick settings interface or message notification bar of the electronic device;
[0120] Optionally, an application icon for the first application can be added to the quick settings interface, and the task status information of its target task can be dynamically displayed in the icon area. Taking the target task of the first application as a game countdown as an example, the displayed countdown information is synchronized with the actual status of the countdown task in the game, and the application can be entered by using the displayed countdown information.
[0121] Additionally, the task status information of the target task of the first application can be displayed in the message notification bar as a message notification.
[0122] 3) Display the task status information in the application icon area of the first application or a predetermined area associated with the application icon;
[0123] Specifically, the application status information of the target application can be displayed graphically and / or textually in the application icon area of the first application or in a predefined area associated with the application icon (such as the predefined area around the icon). See [link / reference]. Figure 5 It provides an example of displaying countdown status information (such as the countdown task in the game mentioned above) on the application icon area. The countdown status information is active and changes synchronously with the status of the countdown task, and can serve as an entry point to the first application.
[0124] 4) Display the task status information on the multitasking interface of the electronic device.
[0125] It can also display the task status information of at least one target task of the first application on the multitasking interface of the electronic device after the user triggers the electronic device to enter multitasking state.
[0126] As one possible implementation, such as Figure 6 As shown, the task status information of the target task of the first application can be displayed on the multitasking interface of an electronic device through the following processing:
[0127] Step 601: Obtain at least one application display unit corresponding to the at least one first application; the application display unit is used to display identifiable application information on the multi-task interface.
[0128] The application showcase of the first application can be, for example, a thumbnail of the first application displayed on the multitasking interface in a multitasking state.
[0129] Step 602: Associate the corresponding first task status section with the at least one application display section; the first task status section of the application includes the task status information of at least one target task running by the application.
[0130] The first task status section can be a separate component for displaying task status information, such as a separate small window (floating window or normal window) independent of the application display section of the first application, or it can be a part of the application display section of the first application, such as a part of the application thumbnail in the multi-tasking interface of the first application.
[0131] Step 603: Display each of the application display sections in the multi-tasking interface, and at least for the target first application in the main application state, display the application display section and the first task state section of the target first application together; wherein, the target first application in the main application state is: in the multi-tasking state, the first application whose display characteristics on the electronic device display device meet the display conditions.
[0132] After the user triggers the electronic device to enter multitasking mode, the application display section and first task status section of each first application are obtained, and the application display section and first task status section of the first application are displayed together on the multitasking interface of the electronic device.
[0133] Specifically, at least for the target first application in the main application state, the application display section and the first task state section of the target first application are displayed together. The target first application in the main application state is: in a multi-tasking state, the first application whose display characteristics on the electronic device display device meet the display conditions.
[0134] The display conditions may include, but are not limited to: the application display section of the first application is displayed in the middle of a set area of the electronic device, or the area ratio of the application display section of the first application in the multitasking interface reaches a set threshold, etc. From an appearance point of view, the target first application as the main application is the first application that is prominently displayed on the multitasking interface.
[0135] Multiple application display sections of different first applications can be displayed in the multitasking interface in a stacked or tiled manner (such as horizontal tiling or vertical tiling). Regardless of the method, the first task status section of the first application is displayed in association with the application display section of the first application in this embodiment. For example, at least the first task status section of the main application is displayed in association with the application display section of the multitasking interface. Users can switch the main application in the multitasking interface by performing application switching operations (such as swiping left and right or up and down). Once a first application becomes the main application of the multitasking interface, its application display section and first task status section are displayed in association with at least that first application. Specifically, the application display section can show a thumbnail of the first application, and the first task status section can show the task status information of the target task in the first application. The first task status section is active and can undergo state changes synchronized with the target task in the first application in a multi-tasking state (at least within the time period corresponding to the multi-tasking state). For example, it can show constantly changing countdown information or the delivery person's location information that is constantly being synchronized with the location information. The first application can be accessed by operating the first task status section.
[0136] Referring to Figures 7(a) and 7(b), Figure 7(a) provides a schematic diagram of the application display section and the first task status section of the first application being displayed together in a tiled multitasking interface, and Figure 7(b) provides a schematic diagram of the application display section and the first task status section of the first application being displayed together in a stacked multitasking interface. It should be noted that the first task status section of the first application can be located at any position in its application display section, such as the top, bottom, middle, or a predetermined area, or it can also be located in a predetermined area outside the application display section.
[0137] In practice, preferably, when a user brings up the multitasking interface and controls the electronic device to enter the multitasking state, at least one first application that meets the second task condition can be selected as the target first application, and the target first application is displayed as the main application of the multitasking interface. Other applications in at least one first application, i.e., non-target first applications, are controlled to participate in the display as non-main applications. During the display process, the user can switch the main application in the multitasking interface according to their needs through a switching operation.
[0138] The first application that satisfies the second task condition described above can be any of the following, but is not limited to:
[0139] 1) The first application launched with a task that has not yet been completed or is waiting to run / is currently running;
[0140] In this method, the first application that has recently started a task and whose task has not yet been completed or is yet to be run can be locked as the main application. Subsequently, the lock can be released when the user performs a main task switching operation in the multitasking interface.
[0141] 2) The running task is the first application with the highest priority / importance / urgency among the incomplete tasks of each first application.
[0142] In this embodiment, in the multi-tasking state, in addition to providing an application display section for each first application, a first application display section is also provided for each first application. The two display sections of the first application are displayed together in the multi-tasking interface. This allows users to conveniently view the task status information of the target task of at least one first application by opening the multi-tasking interface, without having to enter different first applications one by one to view the task status information. This shortens the user operation path, simplifies the user operation, and saves device resources and power consumption.
[0143] As another possible implementation, such as Figure 8 As shown, the task status information of the target task of the first application can also be displayed on the multitasking interface of the electronic device through the following processing:
[0144] Step 801: Generate a second task status unit; the second task status unit includes task status information of the target task launched in the at least one first application.
[0145] Step 802: Display at least the status section of the second task in the multitasking interface.
[0146] Unlike the first task status section, which only includes and displays the corresponding task status information of the specific first application, in this embodiment, the second task status section gathers the task status information of different target tasks of each first application, and displays at least the second task status section on the multi-task interface, so as to realize the centralized display of the task status information of each target task of at least one first application.
[0147] Optionally, when at least one first application is running on the electronic device in a first state, when the user triggers the electronic device to enter a multitasking state, the conventional multitasking interface display method can be replaced. Only the aforementioned second task status section is displayed in the multitasking interface. The second task status section can be displayed in the form of a normal window, a floating window, etc., and centrally displays the task status information of different target tasks in each of the first applications. The second task status section is active, and the various task status information it displays is synchronized with the actual task status of the corresponding target task in its respective first application. The displayed information can be updated over time, and different task status information can serve as the entry point for their respective first applications. Users can quickly access their corresponding first application by operating (such as clicking, long-pressing, or swiping) the corresponding task status information in the second task status section.
[0148] Alternatively, when displaying the second task status section in the multitasking interface, the original interface features of the multitasking interface can be retained. That is, the multitasking interface displays both the application display sections (such as application thumbnails) of each first application and the second task status section. In this implementation, preferably, the second task status section can be displayed at the top of each application display section. For example, the second task status section can be displayed as a floating window or a transparent mask at the top of a predetermined area (such as a predetermined top area or a predetermined bottom area) of the original multitasking interface. In this implementation, the display of the second task status section does not affect the original function of the multitasking interface. Users can still perform operations on the thumbnails of multiple applications and can centrally view the dynamic task status information of different target applications of multiple first applications through the displayed second task status section. At the same time, users can also enter the first application to which each task status information in the second task status section belongs.
[0149] Referring to Figures 9(a) and 9(b), Figure 9(a) shows the case where only the second task status section is displayed in the multitasking interface, and Figure 9(b) shows the case where both the application display section of each first application and the second task status section are displayed in the multitasking interface. In the second task status section of Figures 9(a) and 9(b), the task status information of the countdown task in the game application and the task status information of the food delivery task in the food delivery application are displayed. These task status information changes dynamically with the actual status of the corresponding target task in their respective applications and can serve as the entry point for their respective applications.
[0150] In this embodiment, under multitasking conditions, by displaying the second task status section, the task status information of different target tasks of each first application is centrally displayed. Users can conveniently and centrally view the dynamic task status information of different target tasks of each first application by opening the multitasking interface, without having to enter each first application to view the task status information. This shortens the user operation path, simplifies user operation, and saves device resources and power consumption.
[0151] In practice, the task manager in the electronic device can be used to display the task status information of different target tasks in each first application under multi-tasking conditions. The task manager can use a predetermined strategy to update the task status information displayed in the first or second task status section. Optionally, it can capture the task status information of the target tasks of the first application in real time or periodically at a set interval, and update the task status information in the first or second task status section to achieve dynamic display of task status information.
[0152] Optionally, for different target tasks of multiple first applications, the task manager can use a queue to manage the continuously captured task status information of these different target tasks, with the task status information of the target task currently being updated and displayed at the head of the queue. By using the task status information in the queue to dynamically update the task status information of the corresponding target tasks displayed in the first or second task status section, it is ensured that the task status information of the target tasks of at least one application (such as the main application) in the multi-tasking interface is in an active running state (i.e., an active state), so that users can view their dynamic task status information.
[0153] Corresponding to the above processing method, this application also discloses an electronic device. The electronic device may be, but is not limited to, smart wearable devices such as smart bracelets / watches, portable mobile terminals such as mobile phones, tablets, laptops, handheld computers, and personal digital assistants, or personal PC devices such as laptops, desktops, and all-in-ones. The device form of the electronic device is not limited here.
[0154] See Figure 10 The provided schematic diagram of the electronic device includes at least the following components:
[0155] Memory 1001 is used to store at least one set of instructions;
[0156] Processor 1002 is configured to call and execute the instruction set in the memory, and perform the following processing by executing the instruction set:
[0157] At least one first application is detected on the electronic device in a first state; the first state indicates that the first application has been switched off the device foreground and at least one task has been launched in the first application;
[0158] Obtain the task status information of the target task that meets the first task condition among the tasks launched by the first application;
[0159] While the first application maintains the first state, the task status information is displayed so that the task status information of the target task is displayed outside the application interface of the first application.
[0160] The task status information displayed is in an active state; in the active state, the displayed task status information will undergo changes synchronized with the task status changes of the target task in the first application, and can be used as an entry point to enter the first application.
[0161] The first state mentioned above indicates that the first application has been switched off the device foreground and at least one task has been started in the first application; that is, the first state refers to the state in which the first application has been switched off the device foreground and at least one task has been started in the first application.
[0162] To enable efficient and convenient viewing of application task status information even when the application is switched from the foreground, this application embodiment monitors applications running on electronic devices. The monitoring mainly includes two aspects: first, monitoring the foreground and background operation of the application to determine whether the application process has been switched from running in the foreground to running in the background of the device; second, monitoring whether any tasks have been started or created in the application.
[0163] It should be noted that, since tasks are generally no longer necessary or required to be viewed in real time or frequently when they are completed (such as when food delivery or ride-hailing has ended) or paused, when monitoring whether a task has been started or created in the application, it is preferable to further monitor whether there are any tasks that have been started but not yet completed or have been started and are waiting to run / are running when the application process is switched from the foreground to the background.
[0164] If, based on monitoring, it is determined that there are tasks that have been started but not yet completed or have been started and are waiting to run / are running in the application at the time of switching between the application's foreground and background, then it is determined that the first application in the first state has been detected.
[0165] After detecting at least one first application in a first state on an electronic device, this application selectively acquires the task status information of the target task that meets the first task condition in the task launched by the first application, so as to provide data basis for subsequent display and processing of task status information.
[0166] The target task that satisfies the first task condition can be any one of the following:
[0167] 1) A specific task that conforms to the first interface protocol among the tasks launched by the first application;
[0168] 2) The corresponding tasks that meet the information filtering criteria in the tasks launched by the first application.
[0169] Since the first state indicates that the first application has been switched from the device foreground and that at least one task has been launched in the first application, displaying the task status information of the target task while the first application is in the first state essentially means displaying the task status information of the target task outside the application interface of the first application while the first application is switched from the device foreground and running in the background.
[0170] When displaying the task status information of the target task outside the application interface of the first application, the task status information being displayed is kept active.
[0171] The task status information being in an active state means that the displayed task status information undergoes changes synchronized with the task status changes of the target task in the first application, and can be used as an entry point to enter the first application. In this embodiment, the task status information being in an active state is equivalent to the display component (such as a window, information item component in the status bar, etc.) carrying the task status information being in an active state (i.e., an active running state).
[0172] It is easy to understand that for tasks launched in the first application that do not meet the conditions of the first task, there is no need to capture their task status information, nor is there a need to process their task status information outside the application interface in accordance with the processing method of this embodiment.
[0173] In this embodiment, when the first application is switched away from the device foreground, the task status information of its target task is displayed outside the application interface of the first application. The displayed task status information is activated and synchronized with the actual status of the target task in the first application. In this way, for the first application that has been switched away from the device foreground, it is not necessary to enter the application to view the task status information of its target task. The device does not need to switch it to the foreground to run, saving device resources and power consumption, shortening the user operation path and simplifying the user operation.
[0174] Corresponding to the first scenario of the target task provided above, in an optional implementation, the processor 1002 in the electronic device obtains the task status information of the target task that meets the first task condition in the task launched by the first application, which can be achieved through the following processing procedure:
[0175] Using the first data interface of the first application, obtain the task status information of the target task in the task launched by the first application.
[0176] The first data interface encapsulates a first interface protocol, which can be used to support the first data interface in capturing the task status information of at least one specific task among all tasks supported by the first application, and the determined target task is at least a portion of the at least one specific task.
[0177] In this implementation, the first task condition that the target task needs to meet can be set or understood as: it has been started in the first application (and has not yet been completed or is waiting to run / is running), and belongs to a specific task that the first data interface can support.
[0178] In this implementation, at least one specific task in the application is pre-defined based on a protocol. For example, tasks with high urgency, high real-time requirements, low sensitivity, and no security risks are designated as this specific task. This protocol is referred to as the first interface protocol, and it is agreed that this specific task can perform operations such as task monitoring and data capture. Furthermore, the protocol is functionally implemented using an interface, providing the first application with a first data interface encapsulating this first interface protocol. The first interface protocol encapsulated in the first data interface includes at least the predetermined task parameters for each specific task and the format specification information of the task parameters.
[0179] Based on the implementation of this embodiment, the electronic device can capture relevant task parameter data of a specific task in the task launched by the first application through the first data interface and organize and encapsulate the task parameter data in a prescribed format, thereby providing data basis for displaying the application status information of a specific target application outside the application interface of the first application.
[0180] Corresponding to the second scenario of the target task provided above, in an optional implementation, the processor 1002 of the electronic device obtains the task status information of the target task that meets the task conditions in the task launched by the first application, which can be achieved through the following processing procedure:
[0181] Using the second data interface of the first application, obtain the task status information of all tasks launched by the first application; select the task status information of the target task that meets the information filtering conditions from the task status information of all tasks.
[0182] The second data interface encapsulates a second interface protocol, which can be used to support the second data interface in capturing task status information of all tasks supported by the first application.
[0183] In this implementation, no specific task for task monitoring and data capture is specifically defined in the second data interface of the first application. Instead, the task data capture function for all tasks in the first application is provided indiscriminately in the second data interface. Correspondingly, the second interface protocol encapsulated in the second data interface includes the predetermined task parameters and the format specification information of the task parameters for all tasks that the first application can support.
[0184] Thus, when at least one first application in the first state is detected on the electronic device, and it is necessary to obtain the task status information of the target task of the first application, the task status information of all tasks that have been started (and not yet completed or waiting to run / running) in the first application is first captured using the second data interface of the first application. For example, the corresponding task parameters of each task are captured according to the second interface protocol and the parameter data is organized and encapsulated in the prescribed format.
[0185] After acquiring the task status information of all the tasks captured by the second data interface (the acquired task status information can be the task parameter data of each task packaged in a specified format), the electronic device can parse the acquired task status information of all the tasks, extract information according to the set information filtering conditions, and select the task status information of the target task that meets the conditions.
[0186] The information filtering criteria may include, but are not limited to, any one or more of the following conditions that can be used for information extraction: urgency, importance, or priority of the task / task information. Accordingly, based on the information filtering criteria, the task status information of the target task that meets the urgency, importance, or priority requirements can be extracted from a series of task data captured from the second data interface.
[0187] Unlike the previous embodiment, this embodiment determines the target task in the first application and extracts its task status information by filtering information on the device side (rather than the application side), providing a data basis for subsequently displaying the application status information of a specific target application outside the application interface of the first application.
[0188] In an optional embodiment of this example, the processor 1002 of the electronic device displays task status information of the target task while the first application maintains a first state. This can be specifically implemented in at least one of the following ways:
[0189] If the first application maintains the first state:
[0190] 1) Display the task status information of the target task in a predetermined top or bottom area of the electronic device screen interface.
[0191] The designated top area may include, but is not limited to, the top status bar area of an electronic device or other top areas independent of the top status bar.
[0192] 2) Display the task status information in the quick settings interface or message notification bar of the electronic device;
[0193] Optionally, an application icon for the first application can be added to the quick settings interface, and the task status information of its target task can be dynamically displayed in the icon area. Taking the target task of the first application as a game countdown as an example, the displayed countdown information is synchronized with the actual status of the countdown task in the game, and the application can be entered by using the displayed countdown information.
[0194] Additionally, the task status information of the target task of the first application can be displayed in the message notification bar as a message notification.
[0195] 3) Display the task status information in the application icon area of the first application or a predetermined area associated with the application icon;
[0196] Specifically, the application status information of the target application can be displayed graphically and / or textually in the application icon area of the first application or in a predefined area associated with the application icon (such as the predefined area around the icon). See [link / reference]. Figure 5 It provides an example of displaying countdown status information (such as the countdown task in the game mentioned above) on the icon area, where the displayed countdown status information is active and changes synchronously with the status of the countdown task, and can serve as an entry point to the first application.
[0197] 4) Display the task status information on the multitasking interface of the electronic device.
[0198] It can also display the task status information of at least one target task of the first application on the multitasking interface of the electronic device after the user triggers the electronic device to enter multitasking state.
[0199] As one possible implementation, the processor 1002 of the electronic device can display the task status information of the target task of the first application on the multitasking interface of the electronic device through the following processing:
[0200] Obtain at least one application display unit corresponding to the at least one first application; the application display unit of the application is used to display identifiable application information on a multi-task interface; associate the at least one application display unit with a corresponding first task status unit; the first task status unit of the application includes task status information of at least one target task running by the application; display each of the application display units on the multi-task interface, and at least for the target first application in the main application state, associate and display the application display unit and the first task status unit of the target first application.
[0201] The application showcase of the first application can be, for example, a thumbnail of the first application displayed on the multitasking interface in a multitasking state.
[0202] The first task status section can be a separate component for displaying task status information, such as a separate small window (floating window or normal window) independent of the application display section of the first application, or it can be a part of the application display section of the first application, such as a part of the application thumbnail in the multi-tasking interface of the first application.
[0203] Among them, the target first application in the main application state is: in the multi-tasking state, the application display unit's display features on the electronic device display device meet the display conditions.
[0204] After the user triggers the electronic device to enter multitasking mode, the application display section and first task status section of each first application are obtained, and the application display section and first task status section of the first application are displayed together on the multitasking interface of the electronic device.
[0205] Specifically, at least for the target first application in the main application state, the application display section and the first task state section of the target first application are displayed together. The target first application in the main application state is: in a multi-tasking state, the first application whose display characteristics on the electronic device display device meet the display conditions.
[0206] The display conditions may include, but are not limited to: the application display section of the first application is displayed in the middle of a set area of the electronic device, or the area ratio of the application display section of the first application in the multitasking interface reaches a set threshold, etc. From an appearance point of view, the target first application as the main application is the first application that is prominently displayed on the multitasking interface.
[0207] Multiple application display sections of different first applications can be displayed in the multitasking interface in a stacked or tiled manner (such as horizontal tiling or vertical tiling). Regardless of the method, the first task status section of the first application is displayed in association with the application display section of the first application in this embodiment. For example, at least the first task status section of the main application is displayed in association with the application display section of the multitasking interface. Users can switch the main application in the multitasking interface by performing application switching operations (such as swiping left and right or up and down). Once a first application becomes the main application of the multitasking interface, its application display section and first task status section are displayed in association with at least that first application. Specifically, the application display section can show a thumbnail of the first application, and the first task status section can show the task status information of the target task in the first application. The first task status section is active and can undergo state changes synchronized with the target task in the first application in a multi-tasking state (at least within the time period corresponding to the multi-tasking state). For example, it can show constantly changing countdown information or the delivery person's location information that is constantly being synchronized with the location information. The first application can be accessed by operating the first task status section.
[0208] In practice, preferably, when a user brings up the multitasking interface and controls the electronic device to enter the multitasking state, at least one first application that meets the second task condition can be selected as the target first application, and the target first application is displayed as the main application of the multitasking interface. Other applications in at least one first application, i.e., non-target first applications, are controlled to participate in the display as non-main applications. During the display process, the user can switch the main application in the multitasking interface according to their needs through a switching operation.
[0209] The first application that satisfies the second task condition described above can be any of the following, but is not limited to:
[0210] 1) The first application launched with a task that has not yet been completed or is waiting to run / is currently running;
[0211] In this method, the first application that has recently started a task and whose task has not yet been completed or is yet to be run can be locked as the main application. Subsequently, the lock can be released when the user performs a main task switching operation in the multitasking interface.
[0212] 2) The running task is the first application with the highest priority / importance / urgency among the incomplete tasks of each first application.
[0213] In this embodiment, in the multi-tasking state, in addition to providing an application display section for each first application, a first application display section is also provided for each first application. The two display sections of the first application are displayed together in the multi-tasking interface. This allows users to conveniently view the task status information of the target task of at least one first application by opening the multi-tasking interface, without having to enter different first applications one by one to view the task status information. This shortens the user operation path, simplifies the user operation, and saves device resources and power consumption.
[0214] As another possible implementation, the processor 1002 of the electronic device can also display the task status information of the target task of the first application on the multitasking interface of the electronic device through the following processing:
[0215] A second task status section is generated; the second task status section includes task status information of each target task launched in the at least one first application; at least the second task status section is displayed in the multi-task interface.
[0216] Unlike the first task status section, which only includes and displays the corresponding task status information of the specific first application, in this embodiment, the second task status section gathers the task status information of different target tasks of each first application, and displays at least the second task status section on the multi-task interface, so as to realize the centralized display of the task status information of each target task of at least one first application.
[0217] Optionally, when at least one first application is running on the electronic device in a first state, when the user triggers the electronic device to enter a multitasking state, the conventional multitasking interface display method can be replaced. Only the aforementioned second task status section is displayed in the multitasking interface. The second task status section can be displayed in the form of a normal window, a floating window, etc., and centrally displays the task status information of different target tasks in each of the first applications. The second task status section is active, and the various task status information it displays is synchronized with the actual task status of the corresponding target task in its respective first application. The displayed information can be updated over time, and different task status information can serve as the entry point for their respective first applications. Users can quickly access their corresponding first application by operating (such as clicking, long-pressing, or swiping) the corresponding task status information in the second task status section.
[0218] Alternatively, when displaying the second task status section in the multitasking interface, the original interface features of the multitasking interface can be retained. That is, the multitasking interface displays both the application display sections (such as application thumbnails) of each first application and the second task status section. In this implementation, preferably, the second task status section can be displayed at the top of each application display section. For example, the second task status section can be displayed as a floating window or a transparent mask at the top of a predetermined area (such as a predetermined top area or a predetermined bottom area) of the original multitasking interface. In this implementation, the display of the second task status section does not affect the original function of the multitasking interface. Users can still perform operations on the thumbnails of multiple applications and can centrally view the dynamic task status information of different target applications of multiple first applications through the displayed second task status section. At the same time, users can also enter the first application to which each task status information in the second task status section belongs.
[0219] In this embodiment, under multitasking conditions, by displaying the second task status section, the task status information of different target tasks of each first application is centrally displayed. Users can conveniently and centrally view the dynamic task status information of different target tasks of each first application by opening the multitasking interface, without having to enter each first application to view the task status information. This shortens the user operation path, simplifies user operation, and saves device resources and power consumption.
[0220] In practice, the task manager in the electronic device can be used to display the task status information of different target tasks in each first application under multi-tasking conditions. The task manager can use a predetermined strategy to update the task status information displayed in the first or second task status section. Optionally, it can capture the task status information of the target tasks of the first application in real time or periodically at a set interval, and update the task status information in the first or second task status section to achieve dynamic display of task status information.
[0221] Optionally, for different target tasks of multiple first applications, the task manager can use a queue to manage the continuously captured task status information of these different target tasks, with the task status information of the target task currently being updated and displayed at the head of the queue. By using the task status information in the queue to dynamically update the task status information of the corresponding target tasks displayed in the first or second task status section, it is ensured that the task status information of the target tasks of at least one application (such as the main application) in the multi-tasking interface is in an active running state (i.e., an active state), so that users can view their dynamic task status information.
[0222] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Furthermore, each embodiment may be combined or split in terms of features within the framework of this application. Similar or identical parts between embodiments can be referred to mutually.
[0223] For ease of description, the above systems or devices are described separately as various modules or units based on their functions. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware components.
[0224] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0225] Finally, it should be noted that in this document, relational terms such as first, second, third, and fourth are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0226] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A processing method, comprising: At least one first application in a first state is detected on the electronic device; The first state indicates that at least one task is running in the first application and the application interface of the first application is hidden so that the user cannot view the task status information of the at least one task from the application interface. Obtain the task status information of the target task that meets the first task condition in the tasks launched by the first application. The task status information is the task status information of the target task captured in the first application. The target task includes one of the following: a ride-hailing application's task of determining the arrival time in real time based on the distance between the ride-hailing vehicle and the user's location after accepting an order, and a food delivery application's task of determining the arrival time in real time based on the distance between the rider and the user's location after accepting an order. While the first application maintains the first state, the task status information is displayed so that the task status information of the target task is displayed outside the application interface of the first application. The displayed task status information will generate changes synchronized with the task status changes of the target task in the first application, and can be used as an entry point to enter the first application.
2. The method according to claim 1, wherein the target task satisfying the first task condition includes: A specific task that conforms to the first interface protocol among the tasks launched by the first application; or, The tasks that meet the information filtering criteria in the first application's startup tasks.
3. The method according to claim 1, wherein obtaining the task status information of the target task that satisfies the first task condition in the task launched by the first application includes: Using the first data interface of the first application, obtain the task status information of the target task in the task launched by the first application; The first data interface encapsulates a first interface protocol, which can be used to support the first data interface in capturing task status information of at least one specific task among all tasks supported by the first application, wherein the target task is at least a part of the at least one specific task; or, Using the second data interface of the first application, obtain the task status information of all tasks launched by the first application; Select the task status information of the target task that meets the information filtering conditions from the task status information of all tasks; the second data interface encapsulates a second interface protocol, which can be used to support the second data interface in capturing the task status information of all tasks supported by the first application. The first interface protocol or the second interface protocol includes predetermined task parameters and format specification information of the task parameters corresponding to the task.
4. The method according to claim 1, wherein displaying the task status information while the first application maintains the first state includes at least one of the following: If the first application maintains the first state: The task status information is displayed in a predetermined top or bottom area of the electronic device screen interface; the predetermined top area includes: The top status bar area of an electronic device or a separate top area independent of the top status bar; The task status information is displayed in the quick settings interface or message notification bar of the electronic device; The task status information is displayed in the application icon area of the first application or in a predetermined area associated with the application icon; The task status information is displayed on the multitasking interface of the electronic device.
5. The method according to claim 4, wherein displaying the task status information on the multitasking interface of the electronic device includes: Obtain at least one application display section corresponding to the at least one first application; The application's application display section is used to display identifiable application information in the multitasking interface; Each of the at least one application displays a corresponding first task status unit; the first task status unit of the application includes task status information of at least one target task running by the application; Each of the application display sections is displayed in the multi-tasking interface, and at least for the target first application in the main application state, the application display section and the first task state section of the target first application are displayed together; wherein, the target first application in the main application state is: in the multi-tasking state, the first application whose display characteristics on the electronic device display device meet the display conditions.
6. The method according to claim 1, wherein the task status information of the target task of the first application is displayed as a status bar information item of the device in the corresponding area of the top status bar of the electronic device, and the display form is an icon and / or text.
7. The method according to claim 1, wherein an application icon of the first application is added to the quick settings interface of the electronic device, and the task status information of the target task of the first application is dynamically displayed in the icon area.
8. The method according to claim 1, wherein the task status information of the target task of the first application is displayed in the message notification bar of the electronic device in the form of a message notification.
9. The method according to claim 1, wherein, The displayed task status information generates changes synchronized with the task status changes of the target task in the first application, including: Based on a predetermined strategy, update and display the task status information of the target task of the first application; Among them, the task status information of at least one target task of the first application is managed by a queue, and the task status information of the target task currently being updated and displayed is at the head of the queue.
10. An electronic device, comprising: Memory, used to store at least one set of instructions; A processor for invoking and executing the instruction set in the memory, thereby performing the processing method as described in any one of claims 1-9.
Citation Information
Patent Citations
Video displaying control method and mobile terminal
CN107613362A
Processing method and electronic equipment
CN111444006A