Summary of the invention
The embodiment of the present invention provides a kind of multitask changing method and terminal, for solving prior art multitask switching, needs first by the long slow problem of multitask switch speed of bringing by operations such as Home key and user click.
The invention provides a kind of multitask changing method, and the method is applied to have the terminal of touch-screen, has at least one function key on this touch-screen, the method comprises:
Detect the touch action of user on described touch-screen;
Judgement detects whether the touch action obtained is to slip over the touch action of a function key according to predetermined glide direction;
If judgment result is that, be a background task to be switched to foreground.
Alternatively, described judgement detects whether the touch action obtained is to slip over the step of the touch action of a function key according to predetermined glide direction, is specially:
Judgement detects whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction.
Alternatively, described judgement detects whether the touch action obtained is to slip over the step of the touch action of a function key within the predetermined touch time according to predetermined glide direction, comprising:
Obtain the touch feedback information that detects the touch action obtain, wherein, described touch feedback information comprises the direction of time that the user touches, slip and the quantity of the function key that slips over;
According to described touch feedback information, judge whether the touch action that described detection obtains is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction.
Alternatively, the task type of described background task comprises: opening recently of task, task or preassigned task that task, the frequency of utilization that priority is the highest is the highest.
Alternatively, judgment result is that if described to be, a background task be switched to the step on foreground, comprising:
If judgment result is that, be, according to the corresponding relation between the task type of the glide direction of setting up in advance and switching, to determine the task type corresponding to direction of described slip;
According to the described task type of determining, corresponding background task is switched to foreground.
The invention provides a kind of terminal, this terminal has touch-screen, and has at least one function key on touch-screen, and this terminal also comprises:
Detecting unit, the touch action for detection of the user on described touch-screen;
Judging unit, after at described detecting unit, touch action being detected, judgement detects whether the touch action obtained is to slip over the touch action of a function key according to predetermined glide direction;
Switch unit, if for judgment result is that of described judging unit be, be switched to foreground by a background task.
Alternatively, described judging unit is specifically for after described detecting unit detects touch action, and judgement detects whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction.
Alternatively, described judging unit comprises:
Acquiring unit, for after described detecting unit detects touch action, obtain the touch feedback information that detects the touch action obtain, and wherein, described touch feedback information comprises the direction of time that the user touches, slip and the quantity of the function key that slips over;
The action judging unit, for after described acquiring unit obtains described touch feedback information, according to described touch feedback information, judge whether the touch action that described detection obtains is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction.
Alternatively, the task type of described background task comprises: opening recently of task, task or preassigned task that task, the frequency of utilization that priority is the highest is the highest.
Alternatively, described switch unit comprises:
Determining unit, if for judgment result is that of described judging unit be, according to the corresponding relation between the task type of the glide direction of setting up in advance and switching, determine the task type corresponding to direction of described slip;
The task switch unit, for after described determining unit is determined described task type, be switched to foreground according to the described task type of determining by corresponding background task.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
There is the terminal that there is at least one function key on touch-screen and touch-screen and detect the touch action of user on this touch-screen, and judgement detects whether the touch action obtained is to slip over the touch action of a function key according to predetermined glide direction, if judgment result is that, be, a background task is switched to foreground, make the user can realize the switching of multitask by a touch action, can effectively improve the speed of multitask switching, improve user's experience.
Embodiment
The embodiment of the present invention provides a kind of multitask changing method and terminal, for solving prior art multitask switching, needs first by the long slow problem of multitask switch speed of bringing by operations such as Home key and user click.
Refer to Fig. 1, for the embodiment of multitask changing method in the embodiment of the present invention, this multitask changing method can be applicable to have the terminal of touch-screen, such as mobile phone, panel computer etc., and have at least one function key on this touch-screen, this multitask changing method comprises:
101, detect the touch action of user on touch-screen;
Terminal in the embodiment of the present invention has touch-screen, and at least one function key is arranged on touch-screen, this function key is touch-controlled key or virtual key, the user can be by carrying out touch action to this function key, the operation of realization to terminal, for better understanding, take on mobile phone that to have a function key be example, refer to Fig. 2, front view for the mobile phone in the embodiment of the present invention, wherein, function key in Fig. 2 is touch-controlled key, and the touch area that its region is touch-screen, in this zone, used special displaying symbol (for example circle in Fig. 2) to be identified.
In embodiments of the present invention, the user can use terminal by touch action, and terminal will detect the touch action of user on touch-screen.
102, judgement detects whether the touch action obtained is to slip over the touch action of a function key according to predetermined glide direction;
Terminal, after the touch action of user on touch-screen being detected, detects by judgement whether the touch action obtained is to slip over the touch action of a function key according to predetermined glide direction.
If 103 judgment result is that it is a background task to be switched to foreground.
Terminal is, while according to predetermined glide direction, slipping over the touch action of a function key, a background task to be switched to foreground in the touch action of determining the user, and the type of the background task of this switching can set in advance.
In embodiments of the present invention, terminal detects the touch action of user on touch-screen, and judge whether this touch action detected is to slip over the touch action of a function key according to predetermined glide direction, and judgment result is that while being, a background task is switched to foreground, can effectively improve the efficiency of multitask switching, improve user's experience.
In order better to understand the technical scheme in the embodiment of the present invention, refer to Fig. 3, the embodiment for multitask changing method in the embodiment of the present invention comprises:
301, detect the touch action of user on touch-screen;
Terminal in the embodiment of the present invention has touch-screen, and at least one function key, this function key are arranged on touch-screen is touch-controlled key or virtual key.
The user can use terminal by touch action, terminal will detect the touch action of user on touch-screen, if and terminal detects the touch action of user on touch-screen, judgement is detected to whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined direction, specifically refer to step 302 and 303;
302, obtain the touch feedback information that detects the touch action obtained; Wherein, described touch feedback information comprises the direction of time that the user touches, slip and the quantity of the function key that slips over;
In embodiments of the present invention, after the user implements touch action on the touch-screen of terminal, the data that inductor on touch-screen obtains induction send to the processor of terminal, processor is processed the data of inductor feedback, can obtain the touch feedback information of user's touch action, therefore, terminal can be obtained this touch feedback information, wherein, this touch feedback information comprises the time that the user touches, the quantity of the direction of sliding and the function key slipped over, wherein, it is prior art that processor processes to the data of inductor feedback the technology that obtains touching feedback information, repeat no more herein.
303, according to touching feedback information, judgement detects whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction;
In embodiments of the present invention, after terminal detects the touch action of user on touch-screen, the touch feedback information of this touch action will be got, and judgement detects whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined direction, concrete: whether the time that terminal judges touches the user's touch in feedback information is less than or equal to this predetermined touch time, and whether the glide direction that judgement touches in feedback information is this predetermined glide direction, and whether the quantity of the function key slipped in judgement touch feedback information is 1, and terminal will be determined according to the result of judgement the mode of this touch action of response.
If 304 judgment result is that it is a background task to be switched to foreground;
In embodiments of the present invention, if judgment result is that, be, a background task be switched to foreground, realize the quick switching of multitask.
Wherein, judgment result is that and refer to that the user's touch time touched in feedback information is less than or equal to the predetermined touch time, and the glide direction touched in feedback information is predetermined glide direction, and the quantity that touches the function key slipped over of feedback information is 1.
In embodiments of the present invention, terminal is switched to foreground by a background task various ways, can be: terminal is switched to foreground according to the task type of background task by a background task; Wherein, the task type of background task comprises: opening recently of task, task or preassigned task that task, the frequency of utilization that priority is the highest is the highest, for example: if the task type set in advance is the highest task of priority, terminal is in the situation that judgment result is that and be, the highest task of priority in background task is switched to foreground, to realize the quick switching of multitask.
Perhaps, can be also:
Terminal, according to the corresponding relation between the task type of the glide direction of setting up in advance and switching, is determined task type corresponding to direction that the user slides; According to definite task type, corresponding background task is switched to foreground, and task type comprises: opening recently of task, task or preassigned task that task, the frequency of utilization that priority is the highest is the highest, wherein, corresponding relation between the glide direction of setting up in advance and the task type of switching can be that system is set up automatically, can be also that the user is arranged.For example: if the direction that the user in the touch feedback information of user's touch action slides is for sliding to the right, search in advance the corresponding relation between the task type of the glide direction set up and switching, determine that glide direction is that the slide task type of time switching is the highest task of frequency of utilization to the right, terminal is switched to foreground by the task that in background task, frequency of utilization is the highest, to realize the quick switching of multitask.It should be noted that, selected in order better to help the user, the user will point or felt pen while being placed on function key, on the display interface of terminal, can show the user slidably direction and on each direction attainable function during slip.
In embodiments of the present invention, if the result of judgement is no, terminal will, according to processing mode response user's of the prior art touch action, not done and repeat herein.
In embodiments of the present invention, terminal is after the touch action of user on touch-screen being detected, the touch feedback information of this touch action will be obtained, wherein, this touch feedback information comprises user's the touch time, the quantity of the direction of sliding and the function key slipped over, and terminal will touch feedback information according to this, whether the touch action that definite detection obtains is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction, if judgment result is that, be, a background task is switched to foreground, can realize fast and effectively the multitask switching, improve user's experience.
Referring to Fig. 4, is the embodiment of the structure of terminal in the embodiment of the present invention, and wherein this terminal has touch-screen, and has at least one function key on touch-screen, concrete, and the structure of this terminal comprises:
Detectingunit 401, the touch action for detection of the user on touch-screen;
Judgingunit 402, after at detectingunit 401, touch action being detected, judgement detects whether the touch action obtained is to slip over the touch action of a function key according to predetermined glide direction;
Switch unit 403, if for judgment result is that of judgingunit 402 be, be switched to foreground by a background task.
In embodiments of the present invention, the detectingunit 401 of terminal detects the touch action of user on touch-screen, when detectingunit 401 detects touch action, judgingunit 402 will judge whether the touch action that detection obtains is to slip over the touch action of a function key according to predetermined glide direction, when judgment result is that of judgingunit 402 is, detecting the touch action obtained is to slip over the touch action of a function key according to predetermined glide direction, andswitch unit 403 is switched to foreground by a background task.
In embodiments of the present invention, terminal detects the touch action of user on touch-screen, and judge whether this touch action detected is to slip over the touch action of a function key according to predetermined glide direction, and judgment result is that while being, a background task is switched to foreground, can effectively improve the efficiency of multitask switching, improve user's experience.
Terminal in embodiment, refer to Fig. 5 for a better understanding of the present invention, and the embodiment for the structure of the terminal in the embodiment of the present invention comprises:
The detectingunit 401 of describing in embodiment as shown in Figure 4, judgingunit 402 andswitch unit 403, and similar to the content of middle description embodiment illustrated in fig. 4, do not do and repeat herein.
Wherein, judgingunit 402 is specifically for after detectingunit 401 detects touch action, and judgement detects whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction.
Wherein, judgingunit 402 specifically comprises:
Acquiringunit 501, for after detectingunit 401 detects touch action, obtain the touch feedback information that detects the touch action obtain, wherein, touches the direction of time that feedback information comprises that the user touches, slip and the quantity of the function key that slips over;
Action judging unit 502, for obtain the touch feedback information at acquiringunit 501 after, according to touching feedback information, judgement detects whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction.
Wherein, ifswitch unit 403 is that the task type according to background task is switched to foreground by a background task specifically for judgment result is that of judgingunit 402; The task type of background task comprises: opening recently of task, task or preassigned task that task, the frequency of utilization that priority is the highest is the highest.
Alternatively,switch unit 403 specifically comprises:
Determiningunit 503, if for judgment result is that of judgingunit 402 be, according to the corresponding relation between the task type of the glide direction of setting up in advance and switching, determine task type corresponding to direction slided;
Task switch unit 504, for after determiningunit 503 sets the tasks type, be switched to foreground according to definite task type by corresponding background task.
In embodiments of the present invention, the detecting unit 401 of terminal detects the touch action of user on touch-screen, if and detecting unit 401 detects touch action, judging unit 402 judgements detect whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction, concrete: the acquiring unit 501 in judging unit 402 obtains the touch feedback information that detects the touch action obtained, wherein, touch feedback information and comprise the time that the user touches, the quantity of the direction of sliding and the function key slipped over, then the action judging unit 502 in judging unit 402 is according to touching feedback information, judgement detects whether the touch action obtained is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction.And in the situation that judgment result is that of judging unit 502 is that 403 task types according to background task of switch unit are switched to foreground by a background task; The task type of background task comprises: opening recently of task, task or preassigned task that task, the frequency of utilization that priority is the highest is the highest, concrete: the determining unit 503 in switch unit 403, according to the corresponding relation between the task type of the glide direction of setting up in advance and switching, is determined task type corresponding to direction slided; Task switch unit 504 in switch unit 403 is switched to foreground according to definite task type by corresponding background task.
In embodiments of the present invention, terminal is after the touch action of user on touch-screen being detected, the touch feedback information of this touch action will be obtained, wherein, this touch feedback information comprises user's the touch time, the quantity of the direction of sliding and the function key slipped over, and terminal will touch feedback information according to this, whether the touch action that definite detection obtains is to slip over the touch action of a function key within the predetermined touch time according to predetermined glide direction, if judgment result is that, be, a background task is switched to foreground, can realize fast and effectively the multitask switching, improve user's experience.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
Above a kind of multitask changing method provided by the present invention and terminal are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.