CN110413385B - Task management method, terminal device and medium - Google Patents

Task management method, terminal device and medium Download PDF

Info

Publication number
CN110413385B
CN110413385B CN201910563607.3A CN201910563607A CN110413385B CN 110413385 B CN110413385 B CN 110413385B CN 201910563607 A CN201910563607 A CN 201910563607A CN 110413385 B CN110413385 B CN 110413385B
Authority
CN
China
Prior art keywords
target
input
task
time
running state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910563607.3A
Other languages
Chinese (zh)
Other versions
CN110413385A (en
Inventor
周昱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910563607.3A priority Critical patent/CN110413385B/en
Publication of CN110413385A publication Critical patent/CN110413385A/en
Application granted granted Critical
Publication of CN110413385B publication Critical patent/CN110413385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a task management method, terminal equipment and a medium. The task management method comprises the following steps: receiving a target input; responding to target input, and switching the target task from a foreground running state to a background running state; and after the background running of the target task reaches the target time corresponding to the input parameters input by the target, closing the target task or switching the target task to a foreground running state. The embodiment of the invention can increase the diversity of management modes of the working state of the terminal task, can provide more flexible task management function for users, and enables the task management function to adapt to various use scenes.

Description

Task management method, terminal device and medium
Technical Field
The embodiment of the invention relates to the technical field of terminal task management, in particular to a task management method, terminal equipment and a medium.
Background
Currently, if a user needs to leave a currently used application temporarily during the course of using various terminal tasks in a terminal device, the application usually has only two states after leaving the interface of the currently used application: to run resident in the background and shut down immediately.
The task management method is difficult to satisfy rich use scenes of the application program, for example, users have temporary use requirements such as temporary downloading by using the application program, and cannot flexibly manage the terminal task according to the use scene of the currently used terminal task.
Disclosure of Invention
The embodiment of the invention provides a task management method, terminal equipment and a medium, which are used for solving the problem that the working state of a terminal task cannot be flexibly managed.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a task management method, applied to a terminal device, including:
receiving a target input;
responding to target input, and switching the target task from a foreground running state to a background running state;
and after the background running of the target task reaches the target time corresponding to the input parameters input by the target, closing the target task or switching the target task to a foreground running state.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
an input receiving module configured to receive a target input;
the state switching module is configured to respond to target input and switch the target task from a foreground running state to a background running state;
and the state control module is configured to close the target task or switch the target task to a foreground running state after the background running of the target task reaches the target time corresponding to the input parameter input by the target.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, where the computer program, when executed by the processor, implements the steps of the task management method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the task management method according to the first aspect.
In the embodiment of the invention, the terminal equipment can control the target time of the target task in the background running state according to the input parameters of the target input under the condition that the target task is switched from the foreground running state to the background running state in response to the target input by the user, and close the target task or switch the target task to the foreground running state after the background running of the target task reaches the target time, so that the diversity of the management modes of the working state of the terminal task can be increased, a more flexible task management function is provided for the user, and the task management function is suitable for various use scenes.
Drawings
The present invention may be better understood from the following description of specific embodiments of the invention taken in conjunction with the accompanying drawings, in which like or similar reference numerals identify like or similar features.
Fig. 1 is a flowchart illustrating a task management method according to an embodiment of the present invention;
FIG. 2 is a graphical interface diagram for displaying runtime provided by one embodiment of the present invention;
FIG. 3 is an interaction diagram of target input provided by one embodiment of the present invention;
FIG. 4 is an interaction diagram of a graphical interface diagram provided by one embodiment of the present invention;
FIG. 5 is an interaction diagram of target input provided by another embodiment of the present invention;
FIG. 6 is an interaction diagram of a graphical interface diagram provided in accordance with another embodiment of the present invention;
FIG. 7 is an interaction diagram of a target input provided by yet another embodiment of the present invention;
FIG. 8 is an interaction diagram of a graphical interface diagram provided in accordance with yet another embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For a terminal task in a terminal device, the existing working state includes a foreground running state, a background resident running state and a closing state.
The method for managing the working state of each terminal task by a user generally includes marking the terminal task as a blacklist task and a whitelist task respectively by using a task setting function provided by a setting interface of a terminal device. After the terminal device leaves the interface of the currently used terminal task, if the terminal task is a blacklist task, the foreground running state is immediately switched to the closed state, and if the terminal task is a whitelist task, the terminal task is allowed to be switched from the foreground running state to the background resident running state, so that the terminal task is operated in the background resident mode.
If the user wants to have a terminal task in the background running state for a period of time, for example, when the user uses an application for temporary downloading, the application is expected to be in the background running state only during the downloading. The existing management mode of the working state of the terminal task cannot meet the requirement. For example, if the user sets the application to a white list task, when the application is in a background-resident running state, the usage period of the application may have ended, and the application still runs in the background-resident running state, occupying resources of the terminal device.
Therefore, the user cannot conveniently control the running time of the terminal task in the background so as to meet the rich use scenes of the terminal task and cannot provide the best use experience for the user.
In order to solve the above problem, embodiments of the present invention provide a task management method, a terminal device, and a medium that can enable a user to conveniently control a working state of a terminal task.
Fig. 1 is a flowchart illustrating a task management method according to an embodiment of the present invention. As shown in fig. 1, the task management method applied to the terminal device includes:
s110, receiving target input;
s120, responding to target input, and switching the target task from a foreground running state to a background running state;
and S130, after the background operation of the target task reaches the target time corresponding to the input parameters input by the target, closing the target task or switching the target task to a foreground operation state.
In the embodiment of the invention, the terminal equipment can control the target time of the target task in the background running state according to the input parameters of the target input under the condition that the target task is switched from the foreground running state to the background running state in response to the target input by the user, and close the target task or switch the target task to the foreground running state after the background running of the target task reaches the target time, so that the diversity of the management modes of the working state of the terminal task can be increased, a more flexible task management function is provided for the user, and the task management function is suitable for various use scenes.
In the embodiment of the present invention, the target task may be an application or a task in a foreground running state, which is being used by a user.
In step S110 of this specification embodiment, when the user is using the target task of the terminal device, a target input may be input to switch the target task from the foreground running state to the background running state.
In some embodiments of the present invention, the target input entered by the user may be pressing a key of the terminal device. The keys of the terminal device can be virtual keys and physical keys according to different terminal devices, and the physical keys include keys (Home keys) having a function of returning to a main screen and pressure keys.
In other embodiments of the present invention, the target input by the user may be a slide gesture input at a position of a preset position of the terminal device. The preset position of the terminal device can be a virtual key position area on the display unit, and the sliding gesture can be linear sliding towards any direction.
In step S120 in this embodiment of the present disclosure, the terminal device may enter a desktop or a multitask interface from an interface of the target task in response to a target input by the user, so that the target task is switched from a foreground operating state to a background operating state.
In step S130 of some embodiments of the present invention, after the background operation of the target task reaches the target time corresponding to the input parameter of the target input, the target task may be closed.
Therefore, the embodiment of the invention can immediately close the target task under the condition that the time of the target task in the background running state reaches the target time, and avoids the occupation of resources of the terminal equipment due to the continuous running of the target task in the background.
At this time, the target time may be set to be at least 0s and may be set to be resident at the longest, and when the target time is 0s, the target task is directly switched from the foreground running state to the closed state, that is, the target task is immediately closed based on the touch operation.
In step S130 according to another embodiment of the present invention, after the background operation of the target task reaches the target time corresponding to the input parameter of the target input, the target task may be switched from the background operation state to the foreground operation state.
Therefore, the embodiment of the invention can ensure that the target task can be automatically switched back to the foreground running state when the user wants to reuse the target task after the target time under the condition that the time of the target task in the background running state reaches the target time, thereby facilitating the use of the user.
In other embodiments of the present invention, when the time that the target task is in the background running state reaches the target time, a prompt message may be further displayed to prompt the user that the time that the target task runs in the background has reached the target time, and then the target task is switched to the closed state after the prompt message is displayed and the target task is delayed to run for a period of time, so as to provide a richer task management manner for the user.
In step S130 of the embodiment of the present invention, the target time may be determined according to the input parameters input by the target.
In some embodiments of the present invention, in the case where the target input is a key press, the input parameter may be a press duration and/or a press pressure at the time of ending the key press.
It should be noted that, in other embodiments of the present invention, in the case that the target input is a key press, the input parameter may also be a maximum pressing pressure during the key press.
In other embodiments of the present invention, in the case that the target input is a swipe gesture, the input parameter is a contact movement distance at the time of ending the swipe gesture.
Therefore, in the embodiment of the present invention, according to different terminal devices, different touch operations for switching the target task state may be adopted as the target input of the terminal device, and corresponding input parameters are acquired based on different target inputs, thereby increasing flexibility and diversity of operation modes of task management.
In the embodiment of the present invention, a specific method for determining a target time corresponding to an input parameter of a target input may include: acquiring a corresponding relation between a preset input parameter and target time; and determining target time corresponding to the input parameters of the target input according to the corresponding relation.
Taking the example that the target input is the pressing of the Home key and the input parameter is the pressing duration when the key pressing is finished, different pressing durations may correspond to different operation durations one to one, for example, each second pressing duration corresponds to one operation duration; a plurality of press durations may also correspond to one run duration, for example, every 5 seconds of press duration may correspond to one run duration.
In some embodiments of the present invention, the preset input parameter may correspond to the target time in a fixed relationship, for example, an unchangeable relationship preset when the terminal device is shipped from a factory. In other embodiments of the present invention, the preset corresponding relationship between the input parameter and the target time may be set and adjusted by the user according to the preference.
Under the condition that the corresponding relationship between the preset input parameter and the target time can be set by the user, the task management method according to the embodiment of the present invention may further include:
a setting interface for displaying the corresponding relation between the input parameters and the target time;
and receiving input parameter setting input and corresponding target time setting input in the corresponding relation between the input parameters and the target time by the user.
Thus, the user can set the minimum input value and the maximum input value of the input parameter according to the preference, and the target time, the maximum target time and the minimum target time corresponding to different input parameter values or input parameter ranges. The target time can also be set according to the user, the minimum target time can be set to 0s, and the maximum target time can be set to reside in the background. When the target time is 0s, the target task may immediately switch to the off state based on the target input.
In addition, in the embodiment of the invention, a user can set the same corresponding relation between the input parameters and the target time aiming at different terminal tasks, so that the target tasks are uniformly managed; and the corresponding relation between different input parameters and target time can be set for different terminal tasks, so that specific task management can be performed for different target tasks according to requirements.
Therefore, the embodiment of the invention can provide more diversified and more flexible task management modes for the user, and the user can set and adjust the task management modes based on the user preference, thereby improving the user experience and meeting the use requirements of different users.
In this embodiment of the present invention, the task management method may further include:
and in the process of receiving the target input, displaying the target time corresponding to the input parameters of the target input.
In some embodiments, the display method may be to display the target time corresponding to the input parameter in a text form. In other embodiments, the display method may be to display the target time corresponding to the input parameter in the form of a graphical interface.
Specifically, for example, the target time corresponding to the input parameter is displayed in a graphical interface, and the display method may include:
responding to the target input, and displaying an input progress indication mark and a plurality of preset running times, wherein the input progress indication mark is an indication mark corresponding to the input parameters of the target input; and determining the preset operation time indicated by the input progress indication identification in the plurality of preset operation times when the target input is ended as the target time of the target task.
Wherein the input progress indication mark may be an arrow changing in length along a plurality of preset operation times based on the input parameter, or an icon moving in position along a plurality of preset operation times based on the input parameter.
FIG. 2 is a graphical interface diagram illustrating run length display provided by one embodiment of the present invention. As shown in fig. 2, taking the example that the input progress indication mark is an arrow which changes length along a plurality of preset operation times based on the input parameter, the plurality of preset operation times may be displayed in the form of a graduated scale, wherein each graduation corresponds to one preset operation time, and a straight portion of the arrow is arranged in parallel with the graduated scale, and the straight portion may change length along the plurality of preset operation times based on the input parameter, so that an indication portion of the arrow is located at a position corresponding to the input parameter to indicate the preset operation time corresponding to the input parameter.
According to the embodiment of the invention, the target time corresponding to the input parameter of the target input can be displayed in real time, so that the user can adjust the target input according to the preset running time indicated by the input progress indication mark and change the input parameter corresponding to the target input, so as to obtain the target time of the target task expected by the user in the background running state.
In some embodiments of the present invention, the task management method may further include:
responding to touch operation target input, and acquiring a plurality of continuous historical running times of a target task;
under the condition that a plurality of continuous historical running times are the same, after the background running of the target task reaches the historical running time, closing the target task or switching the target task to a foreground running state;
and, after the background operation of the target task reaches the target time corresponding to the input parameter of the target input, closing the target task or switching the target task to the foreground operation state may specifically include:
and under the condition that a plurality of continuous historical running times are different, closing the target task or switching the target task to a foreground running state after the background running of the target task reaches the target time corresponding to the input parameter input by the target.
The plurality of continuous historical operating times may be a plurality of continuous historical operating times within the same time period as the time period in which the user inputs the target input, may be a plurality of continuous historical operating times within the same place as the user inputs the target input, or may be a plurality of continuous historical operating times within a preset time period before the time in which the user inputs the target input.
If the plurality of continuous historical running times are the same, the historical running time is considered as the preference of the user for the time of the target task in the background running state, the target time can be determined without the input parameters input by the user according to the target, the target task can be directly run in the background to reach the historical running time, and the system resources of the terminal device are saved. However, if the multiple continuous historical running times are different, the user is not considered to have a specific preference for the time when the target task is in the background running state, and the target time still needs to be determined according to the input parameters input by the user as to enable the target task to run in the background to reach the target time.
Hereinafter, the task management method according to the embodiment of the present invention will be described in detail by using three embodiments.
Example one
FIG. 3 illustrates an interaction diagram of target input provided by one embodiment of the present invention. FIG. 4 is an interaction diagram of a graphical interface diagram provided by one embodiment of the invention.
The embodiment provides a task management process when a Home key is pressed to trigger leaving of a currently used application program, which specifically includes the following steps:
step S201, as shown in fig. 3, when the user clicks the Home key, leaves the current application program interface, and enters the desktop or the multitasking interface, step S202 is triggered, the user is guided to change the input parameter of clicking the Home key, and the collection of the pressing duration of pressing the Home key is started.
Step S202, after the user executes step S201, displaying the graphical interface diagram shown in fig. 4, converting into an arrow length (y) according to the pressing duration (x) input by the user, and updating in real time accordingly. Assuming that the length of the scale is L in the longitudinal design, the maximum pressing time of the user is T, and the calculation formula of the arrow length is y = x L/T.
Step S203, when the user finishes pressing the Home key, that is, the user lifts the finger, the background operation policy indicated by the indication part is selected according to the position of the indication part of the arrow, for example, the background operation policy is switched to a closed state after being in the background operation state for 5 minutes, and the background operation policy is executed on the current application program.
Therefore, the task management method of the embodiment can realize convenient and accurate task management through the entity keys and/or the virtual keys of the existing terminal device, the operation process follows the common logic of the user, the use cost is low, the consistent background operation management strategy can be accurately implemented on the current use scene of the application program, the use interaction of the user is greatly facilitated, and the resources of the terminal device are saved.
Example two
FIG. 5 is an interaction diagram illustrating target input provided by another embodiment of the present invention. Fig. 6 is an interaction diagram of a graphical interface diagram provided by another embodiment of the present invention.
The embodiment provides a task management process when an application program used currently is triggered to leave through a swipe gesture, which specifically includes the following steps:
step S301, as shown in fig. 5, when the user inputs a sliding gesture in the display area corresponding to the virtual key position, and the terminal device leaves the current application program interface and enters the desktop or the multitasking interface, step S302 is triggered to guide the user to change the input parameters of the sliding gesture, and start to collect the contact movement distance.
Step S302, after the user performs step S301, the graphical interface diagram shown in fig. 6 is displayed, the contact movement distance is determined according to the sliding coordinates of the contact, then, the position of the icon is calculated by using the similar calculation method as in the first embodiment, and the icon is displayed at the corresponding position.
Step S303, when the user finishes the sliding gesture and lifts the finger, selecting the background operation policy indicated by the icon according to the position of the icon, for example, switching to a closed state after 15 minutes from the background operation state, and executing the background operation policy on the current application program.
Therefore, the task management method of the second embodiment can realize convenient and accurate task management, the operation process follows the common logic of the user, the use cost is low, the consistent background operation management strategy can be accurately implemented on the current use scene of the application program, the use interaction of the user is greatly facilitated, and the resources of the terminal equipment are saved. In addition, in the second embodiment, the running time of the terminal task in the background running state is determined according to the contact movement distance of the sliding gesture, so that long-time operation by a user is not needed, waiting caused by long-time operation is avoided, and a background running management strategy can be selected more intuitively and conveniently.
EXAMPLE III
FIG. 7 is an interaction diagram illustrating a target input provided by yet another embodiment of the present invention. Fig. 8 is an interaction diagram of a graphical interface diagram provided by another embodiment of the present invention.
The embodiment provides a task management process when a currently used application program is left by pressing a pressure key, which specifically includes the following steps:
step S401, as shown in fig. 7, when the user presses the pressure-sensitive key, leaves the current application program interface, and enters the desktop or the multitasking interface, step S402 is triggered to guide the user to change the input parameters of the pressure-sensitive key, and start to collect the pressing pressure of the pressure-sensitive key.
Step S402, after the user executes step S401, displaying the graphical interface diagram shown in fig. 8, converting into an arrow length (y) according to the pressing pressure (x) input by the user, and updating in real time accordingly. Assuming that the length of the scale is L in the longitudinal design, the maximum pressing time of the user is N, and the calculation formula of the arrow length is y = x L/N.
Step S403, when the user finishes pressing the pressure-sensitive key, that is, at the moment when the pressing pressure starts to decrease, selecting the background operation policy indicated by the indication portion according to the position of the indication portion of the arrow, for example, switching to the off state after the background operation state reaches 5 minutes, and executing the background operation policy on the current application program.
Therefore, the task management method of the third embodiment can realize convenient and accurate task management, the operation process follows the common logic of the user, the use cost is low, the consistent background operation management strategy can be accurately implemented on the current use scene of the application program, the use interaction of the user is greatly facilitated, and the resources of the terminal device are saved. In addition, in the third embodiment, the background operation management strategy can be directly selected by using the pressure keys configured on the terminal device through the pressing pressure of the user, so that the user does not need to perform long-time operation and long-distance sliding gesture operation, and more convenient operation experience can be provided for the user.
In summary, the task management method according to the embodiment of the present invention can integrate task management operations into the existing operation habits of users, and collect lightweight input parameters corresponding to target input of the users to support the task management function, when selecting the background operation management policy of the terminal task, the task management method can be quickly set without leaving the current terminal task, so that the best matching background operation management policy can be better set according to the current usage scenario, and the operation resources of the terminal device can be more effectively saved.
Fig. 9 shows a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 9, the terminal device includes:
an input receiving module 510 configured to receive a target input;
a state switching module 520 configured to switch the target task from a foreground running state to a background running state in response to the target input;
and the state control module 530 is configured to close the target task or switch the target task to a foreground operating state after the background operation of the target task reaches the target time corresponding to the input parameter of the target input.
In the embodiment of the invention, the terminal equipment can realize the control of the target time of the target task in the background running state according to the input parameter of the target input under the condition that the target task is switched from the foreground running state to the background running state in response to the target input by the user, and close the target task or switch the target task to the foreground running state after the background running of the target task reaches the target time, thereby increasing the diversity of the management modes of the working state of the terminal task, providing a more flexible task management function for the user and enabling the task management function to be suitable for various use scenes.
In the embodiment of the present invention, the target task may be an application or a task in a foreground running state, which is being used by a user.
In some embodiments of the present invention, the target input of the user input received by the input receiving module 510 may be a key press of the terminal device. The keys of the terminal device can be virtual keys and physical keys according to different terminal devices, and the physical keys include keys (Home keys) having a function of returning to a main screen and pressure keys.
In other embodiments of the present invention, the target input of the user input received by the input receiving module 510 may be a sliding gesture input at a position of a preset position of the terminal device. The preset position of the terminal device can be a virtual key position area on the display unit, and the sliding gesture can be linear sliding towards any direction.
In some embodiments of the present invention, the state control module 530 may close the target task after the target task background operation reaches the target time corresponding to the input parameter of the target input.
Therefore, the embodiment of the invention can immediately close the target task under the condition that the time of the target task in the background running state reaches the target time, and avoids the occupation of resources of the terminal equipment due to the continuous running of the target task in the background.
In other embodiments of the present invention, the state control module 530 may switch the target task from the background running state to the foreground running state after the background running of the target task reaches the target time corresponding to the input parameter of the target input.
Therefore, the embodiment of the invention can ensure that the target task can be automatically switched back to the foreground running state when the user wants to reuse the target task after the target time under the condition that the time of the target task in the background running state reaches the target time, thereby facilitating the use of the user.
In the embodiment of the present invention, the target time may be determined according to input parameters input by the target.
Specifically, in some embodiments of the present invention, in the case where the target input is a key press, the input parameter may be a press duration and/or a press pressure at the time of ending the key press. In other embodiments of the present invention, in the case that the target input is a swipe gesture, the input parameter may be a contact movement distance at the time of ending the swipe gesture.
Therefore, in the embodiment of the invention, different target inputs for switching the target task state can be adopted according to different terminal devices, and corresponding input parameters are acquired based on different target inputs, so that the flexibility and diversity of the operation mode of task management are increased.
In this embodiment of the present invention, the state control module 530 may be further configured to: acquiring a corresponding relation between preset input parameters and target time; and determining target time corresponding to the input parameters of the target input according to the corresponding relation.
In some embodiments of the present invention, the preset input parameter may correspond to the target time in a fixed relationship, for example, an unchangeable relationship preset when the terminal device is shipped from a factory. In other embodiments of the present invention, the preset corresponding relationship between the input parameter and the target time may be set and adjusted by the user according to the preference.
Specifically, the terminal device may further include a display control module configured to: a setting interface for displaying the corresponding relation between the input parameters and the target time; and receiving input parameter setting input and corresponding target time setting input in the corresponding relation between the input parameters and the target time by the user.
Therefore, the embodiment of the invention can provide more diversified and more flexible task management modes for the user, and the user can set and adjust the task management modes based on the user preference, thereby improving the user experience and meeting the use requirements of different users.
In the embodiment of the present invention, the display control module may be further configured to: and in the process of receiving the target input, displaying the target time corresponding to the input parameters of the target input.
In an embodiment of the present invention, the display control module may be further configured to: responding to the target input, and displaying an input progress indication mark and a plurality of preset running times, wherein the input progress indication mark is an indication mark corresponding to the input parameters of the target input; at this point, the state control module 530 may be further configured to: and determining the preset operation time indicated by the input progress indication mark in the plurality of preset operation times when the target input is ended as the target time.
Specifically, the input progress indication is identified as an arrow that changes in length along a plurality of preset operation times based on the input parameter, or an icon that moves in position along a plurality of preset operation times based on the input parameter.
According to the embodiment of the invention, the target time corresponding to the input parameter of the target input can be displayed in real time, so that the user can adjust the target input according to the preset running time indicated by the input progress indication mark and change the input parameter corresponding to the target input, so as to obtain the target time of the target task expected by the user in a background running state.
In this embodiment of the present invention, the state control module 530 may be further configured to:
responding to target input, and acquiring a plurality of continuous historical running times of a target task;
under the condition that a plurality of continuous historical running times are the same, after the background running of the target task reaches the historical running time, closing the target task or switching the target task to a foreground running state;
and under the condition that the plurality of continuous historical running times are different, closing the target task or switching the target task to a foreground running state after the background running of the target task reaches the target time corresponding to the input parameter input by the target.
The plurality of continuous historical operating times may be a plurality of continuous historical operating times within the same time period as the time period in which the user inputs the target input, may be a plurality of continuous historical operating times within the same place as the user inputs the target input, or may be a plurality of continuous historical operating times within a preset time period before the time in which the user inputs the target input.
If the plurality of continuous historical running times are the same, the historical running time is considered as the preference of the user for the time when the target task is in the background running state, the target time can be determined without the need of input parameters input by the user according to the target, the target task can be directly run in the background to reach the historical running time, and system resources of the terminal device are saved. However, if the plurality of continuous historical running times are different, the user is not considered to have specific preference for the time when the target task is in the background running state, and the target time still needs to be determined according to the input parameters input by the user, so that the target task runs in the background to reach the target time.
Fig. 10 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention.
The terminal device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 10 is not intended to be limiting, and that terminal devices may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 610 is configured to receive a target input; responding to target input, and switching the target task from a foreground running state to a background running state; and after the background running of the target task reaches the target time corresponding to the input parameters input by the target, closing the target task or switching the target task to a foreground running state.
In the embodiment of the invention, the terminal equipment can control the target time of the target task in the background running state according to the input parameters of the target input under the condition that the target task is switched from the foreground running state to the background running state in response to the target input by the user, and close the target task or switch the target task to the foreground running state after the background running of the target task reaches the target time, so that the diversity of the management modes of the working state of the terminal task can be increased, a more flexible task management function is provided for the user, and the task management function is suitable for various use scenes.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. Generally, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 can also provide audio output related to a specific function performed by the terminal apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The terminal device 600 further comprises at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the luminance of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the terminal apparatus 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 605 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not further described herein.
The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation thereon or nearby, the touch operation can be transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 can provide a corresponding visual output on the display panel 6061 according to the type of the touch event. Although in fig. 10, the touch panel 6071 and the display panel 6061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the terminal device, and this is not limited here.
The interface unit 608 is an interface through which an external device is connected to the terminal apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 600 or may be used to transmit data between the terminal apparatus 600 and an external device.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby performing overall monitoring of the terminal device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The terminal device 600 may further include a power supply 611 (such as a battery) for supplying power to various components, and preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 610, a memory 609, and a computer program that is stored in the memory 609 and can run on the processor 610, and when the computer program is executed by the processor 610, the processes in the task management method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the embodiment of the task management method, and can achieve the same technical effect, and in order to avoid repetition, the computer program is not described herein again. The computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A task management method is applied to terminal equipment and is characterized by comprising the following steps:
receiving a target input, wherein the target input comprises a key pressing or sliding gesture;
responding to the target input, and switching the target task from a foreground running state to a background running state;
and after the background running of the target task reaches the target time corresponding to the input parameters input by the target, closing the target task or switching the target task to a foreground running state.
2. The method according to claim 1, wherein in the case that the target input is a key press, the input parameter is a press duration and/or a press pressure of the key press.
3. The method according to claim 1, wherein in a case where the target input is a swipe gesture, the input parameter is a contact movement distance of the swipe gesture.
4. The method of claim 1, further comprising:
acquiring a corresponding relation between a preset input parameter and target time;
and determining the target time corresponding to the input parameters of the target input according to the corresponding relation.
5. The method of claim 1, further comprising:
and in the process of receiving the target input, displaying the target time corresponding to the input parameters of the target input.
6. The method according to claim 5, wherein displaying the target time corresponding to the input parameter of the target input in the process of receiving the target input comprises:
responding to the target input, and displaying an input progress indication mark and a plurality of preset running times, wherein the input progress indication mark is an indication mark corresponding to the input parameters of the target input;
and determining the preset operation time indicated by the input progress indication mark in the plurality of preset operation times and the target input ending time as the target time.
7. The method of claim 6, wherein the input progress indication is identified as an arrow that changes length along the plurality of preset run times based on the input parameter, or an icon that moves position along the plurality of preset run times based on the input parameter.
8. The method of claim 1, further comprising:
obtaining a plurality of consecutive historical run times of the target task in response to the target input;
under the condition that the plurality of continuous historical running times are the same, after the target task runs in the background and reaches the historical running time, closing the target task or switching the target task to a foreground running state;
after the target task background operation reaches the target time corresponding to the input parameter input by the target, closing the target task or switching the target task to a foreground operation state includes:
and under the condition that the plurality of continuous historical running times are different, after the target task runs in the background and reaches the target time corresponding to the input parameters input by the target, closing the target task or switching the target task to a foreground running state.
9. A terminal device, comprising:
an input receiving module configured to receive a target input, the target input comprising a press key or a swipe gesture;
a state switching module configured to switch a target task from a foreground running state to a background running state in response to the target input;
and the state control module is configured to close the target task or switch the target task to a foreground running state after the background running of the target task reaches the target time corresponding to the input parameter input by the target.
10. The terminal device according to claim 9, wherein in the case that the target input is a key press, the input parameter is a press duration and/or a press pressure of the key press;
in a case where the target input is a swipe gesture, the input parameter is a contact movement distance of the swipe gesture.
11. The terminal device according to claim 9, further comprising:
and the display control module is configured to display the target time corresponding to the input parameter of the target input in the process of receiving the target input.
12. The terminal device of claim 11, wherein the display control module is further configured to display, in response to the target input, an input progress indicator and a plurality of preset run times, wherein,
the input progress indication mark is an indication mark corresponding to the input parameters input by the target;
the state control module is further configured to determine a preset running time indicated by the input progress indication mark in the plurality of preset running times and at the time of finishing the target input as the target time.
13. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the task management method according to any one of claims 1 to 8.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the task management method according to any one of claims 1 to 8.
CN201910563607.3A 2019-06-26 2019-06-26 Task management method, terminal device and medium Active CN110413385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910563607.3A CN110413385B (en) 2019-06-26 2019-06-26 Task management method, terminal device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910563607.3A CN110413385B (en) 2019-06-26 2019-06-26 Task management method, terminal device and medium

Publications (2)

Publication Number Publication Date
CN110413385A CN110413385A (en) 2019-11-05
CN110413385B true CN110413385B (en) 2022-10-18

Family

ID=68359893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910563607.3A Active CN110413385B (en) 2019-06-26 2019-06-26 Task management method, terminal device and medium

Country Status (1)

Country Link
CN (1) CN110413385B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732392A (en) * 2021-01-20 2021-04-30 维沃移动通信有限公司 Operation control method and device for application program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294706A (en) * 2012-02-28 2013-09-11 腾讯科技(深圳)有限公司 Text searching method and device in touch type terminals
CN103984597A (en) * 2014-06-04 2014-08-13 福州瑞芯微电子有限公司 Method, device and system for task run switching
CN106815065B (en) * 2015-11-27 2020-02-11 腾讯科技(深圳)有限公司 Background application awakening method and device and electronic equipment
CN107861767A (en) * 2017-10-20 2018-03-30 朱健雄 A kind of method that cell phone software background program is closed in timing
CN108196944A (en) * 2017-12-27 2018-06-22 北京传嘉科技有限公司 Mobile terminal background application inspection method and device
CN108427526B (en) * 2018-03-16 2020-03-31 维沃移动通信有限公司 Application program management method and terminal

Also Published As

Publication number Publication date
CN110413385A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN108182019B (en) Suspension control display processing method and mobile terminal
CN111092990B (en) Application program sharing method, electronic device and storage medium
CN111142991A (en) Application function page display method and electronic equipment
CN108279948B (en) Application program starting method and mobile terminal
CN111142723B (en) Icon moving method and electronic equipment
CN108958593B (en) Method for determining communication object and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN108536509B (en) Application body-splitting method and mobile terminal
CN110752981B (en) Information control method and electronic equipment
CN110825295B (en) Application program control method and electronic equipment
CN110531915B (en) Screen operation method and terminal equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN110308834B (en) Setting method of application icon display mode and terminal
CN110609648A (en) Application program control method and terminal
CN110795189A (en) Application starting method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN111124706A (en) Application program sharing method and electronic equipment
CN111240545A (en) Application switching method and electronic equipment
CN107728923B (en) Operation processing method and mobile terminal
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN110096203B (en) Screenshot method and mobile terminal
CN109189514B (en) Terminal device control method and terminal device
CN110941469A (en) Application body-splitting creating method and terminal equipment thereof
CN111475066B (en) Background switching method of application program and electronic equipment
CN111176529B (en) Key display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant