WO2014101101A1 - Task switching method and terminal - Google Patents

Task switching method and terminal Download PDF

Info

Publication number
WO2014101101A1
WO2014101101A1 PCT/CN2012/087832 CN2012087832W WO2014101101A1 WO 2014101101 A1 WO2014101101 A1 WO 2014101101A1 CN 2012087832 W CN2012087832 W CN 2012087832W WO 2014101101 A1 WO2014101101 A1 WO 2014101101A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
preset
touch
icon
terminal
Prior art date
Application number
PCT/CN2012/087832
Other languages
French (fr)
Chinese (zh)
Inventor
屈飞鹏
谭磊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2012/087832 priority Critical patent/WO2014101101A1/en
Priority to CN2012800019399A priority patent/CN103229133A/en
Publication of WO2014101101A1 publication Critical patent/WO2014101101A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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

Definitions

  • the present invention relates to touch control technologies, and in particular, to a task switching method and a terminal. Background technique
  • a multi-tasking mechanism has been introduced, the multi-task switching method used by existing terminals, especially mobile terminals, is still inconvenient in operation.
  • a popular multi-tasking method is to call up a background task list by pressing a button, and then select a task to be switched in the task list. It is not difficult to see that the existing multi-task switching method is very inconvenient in the case where the terminal operation is more and more convenient. Summary of the invention
  • a terminal is provided to solve the problem of inconvenient operation of the existing terminal multitasking switching method.
  • a task switching method is provided, which is applied to a terminal, the terminal is configured with a touch screen, and at least one background task is run on the terminal, and the task is switched.
  • Methods include:
  • the background task corresponding to the task icon for which the preset drag operation is directed is switched to the foreground.
  • displaying a task bar on the current display interface of the touch screen is specifically:
  • the task bar is displayed on the current display interface.
  • a task bar is displayed on the current display interface of the touch screen, and the at least one background task is displayed in the task bar.
  • Detecting a long-time touch operation for the task bar where the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value;
  • an area to be enlarged is calculated according to the touch position corresponding to the long-time touch operation, wherein the area to be enlarged is a part of the task bar, and the touch position is located at the Within the area to be magnified;
  • the preset drag operation for detecting a task icon in the task bar is specifically: detecting a preset drag operation for a task icon in the enlarged area to be enlarged displayed in the enlarged display window.
  • the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface.
  • the preset drag operation is to display the task icon Drag and drop the preset distance.
  • the preset drag operation is dragging along a preset path The operation of the task icon.
  • the preset drag operation is along a preset path. The operation of dragging the task icon to a preset position on the current display interface.
  • the preset drag operation is along a preset path.
  • the task icon drags the operation of the preset distance.
  • a terminal including a touch screen, and at least one background task is run on the terminal, and the terminal includes:
  • a task icon display module configured to display a task bar on a current display interface of the touch screen, and display a task icon of the at least one background task in the task bar;
  • a drag detection module configured to detect a preset drag operation for a task icon displayed by the task icon display module
  • the task switching module is configured to switch the background task corresponding to the task icon for the preset drag operation to the foreground when the drag detection module detects the preset drag operation.
  • the task icon display module is specifically configured to:
  • the terminal further includes:
  • a long-time touch detection module configured to detect a long-term touch operation for the task bar displayed by the task icon display module, wherein the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value;
  • a calculation module configured to: when the long-time touch detection module detects the long-time touch operation, calculate an area to be enlarged according to the touch position corresponding to the long-time touch operation, where the area to be enlarged is the task bar And a part of the touched area is located in the area to be enlarged; an enlarged display module is configured to display an enlarged display window, and the enlarged area to be enlarged is displayed by the enlarged display window;
  • the drag detection module is specifically configured to:
  • a preset drag operation for a task icon in the area to be enlarged displayed in the enlarged display within the enlarged display window displayed by the enlarged display module is detected.
  • the preset drag operation is to drag the task icon to the current The operation of displaying the preset position on the interface.
  • the preset drag operation is to drag the task icon to a preset Distance operation.
  • the preset drag operation is to drag the task along a preset path. Icon operation.
  • the preset drag operation is along a preset The path drags the task icon to the preset position on the current display interface.
  • the preset drag operation is to set the task icon along a preset path. Drag and drop the preset distance.
  • the technical solution provided by the embodiment of the present invention is applied to a terminal, where the terminal is configured with a touch screen, and at least one background task runs on the terminal.
  • the technical solution provided by the embodiment of the present invention displays a task bar on the current display interface of the touch screen of the terminal, and displays a task icon of the at least one background task in the task bar.
  • the technical solution provided by the embodiment of the present invention detects a preset drag operation for a task icon in the task bar, and when the preset drag operation is detected, the preset drag The background task corresponding to the task icon for the operation is switched to the foreground. It can be seen that the technical solution provided by the embodiment of the present invention can effectively simplify the task switching operation on the terminal and improve the user experience.
  • FIG. 1 is a schematic diagram of an exemplary hardware structure of a terminal according to an embodiment of the present invention
  • FIG. 2 is an exemplary flowchart of a task switching method according to an embodiment of the present invention
  • FIG. 3A is a current embodiment of a mobile terminal according to an embodiment of the present invention
  • FIG. 3B is a schematic diagram showing the display effect after the enlarged display scheme is applied to the current display interface in FIG. 3A;
  • FIG. 3B is a schematic diagram showing the display effect after the enlarged display scheme is applied to the current display interface in FIG. 3A;
  • FIG. 4 is a schematic diagram showing an exemplary logical structure of a terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram showing an exemplary logical structure of a terminal according to another embodiment of the present invention.
  • FIG. 1 is a schematic diagram showing an exemplary hardware structure of a terminal 100 according to an embodiment of the present invention.
  • the terminal 100 shown in Fig. 1 may be a mobile terminal such as, but not limited to, a mobile phone (e.g., a smart phone), a tablet, a personal digital assistant (PDA), an audio player, and the like.
  • terminal 100 includes a processor 102, a memory 104, a touch screen 106, a communication interface 108, and a bus 110.
  • the processor 102, the memory 104, the touch screen 106, and the communication interface 108 are communicatively coupled by a bus 110.
  • the processor 102 can use a general-purpose central processing unit (CPU), a processor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs, The technical solution provided by the embodiment of the present invention is implemented.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 104 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • the memory 104 can store an operating system and other applications.
  • the program code for implementing the technical solution provided by the embodiment of the present invention is stored in the memory 104 and executed by the processor 102.
  • the touch screen 106 is both an input device and an output device.
  • the touch screen 106 can receive data and information that the user inputs by touch.
  • the size of the touch screen 106 configured by the terminal 100 is usually large.
  • the user can input information such as text and commands, thereby using various functions provided by the terminal 100, such as, but not limited to, making a call, sending a short message, playing a music video, playing a game, and the like.
  • the touch screen 106 can display information such as an operation result to the user.
  • the terminal 100 may further include other input and output devices not shown in Fig. 1, such as but not limited to a speaker or the like.
  • Communication interface 108 implements the terminal using transceivers such as, but not limited to, transceivers 100 Communication with other devices or communication networks such as, but not limited to, Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
  • transceivers such as, but not limited to, transceivers 100 Communication with other devices or communication networks such as, but not limited to, Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Network
  • Bus 110 may include a path for communicating information between various components of terminal 100, such as processor 102, memory 104, touch screen 106, and communication interface 108.
  • the terminal 100 can implement multitasking, ie, at the same time, on the mobile Run multiple tasks on the terminal.
  • multitasking ie, at the same time, on the mobile Run multiple tasks on the terminal.
  • a task that is being presented to the user through the current display interface of the touch screen 106 and that may need to interact with the user is referred to as a foreground task, and other tasks in a suspended state are referred to as a background task. Background tasks often do not need to interact with the user, nor do they need to present information to the user, so they are usually executed without disturbing the user's other work.
  • the back-end tasks can be switched to the foreground, and the foreground tasks before switching are switched to the background.
  • a user's terminal runs multiple tasks simultaneously, including download tasks, email tasks, and video game tasks.
  • the user is currently playing an electronic game corresponding to the electronic game task, and the game process is displayed to the user through the current display interface of the touch screen.
  • the video game task is the foreground task, and other tasks such as download tasks and email sending and receiving tasks are background tasks.
  • terminal 100 shown in FIG. 1 only shows the processor 102, the memory 104, the touch screen 106, the communication interface 108, and the bus 110, in a specific implementation process, those skilled in the art should understand that the terminal 100 also Contains other devices necessary to achieve proper operation. Meanwhile, according to specific needs, those skilled in the art should understand that the mobile terminal 100 may also include hardware devices that implement other functions.
  • Step 202 Display a task bar on a current display interface of the touch screen, and display a task icon of the at least one background task in the task bar.
  • the above task bar can be displayed on the current display interface of the terminal touch screen.
  • the operation of touching the current display interface of the touch screen can also be detected in real time, and when the operation of touching the current display interface of the touch screen is detected, the task bar is displayed on the current display interface.
  • the display timing of the above task bar can be set according to specific needs.
  • the above task bar can be displayed at any position on the current display interface of the terminal, such as the top, bottom or side of the current display interface.
  • the display position of the task bar can be set according to specific needs.
  • the current display interface can be as shown in Figure 3A.
  • the current display interface 300 shown in FIG. 3A includes a task bar 302.
  • the task bar 302 contains task icons 302, 304, and 306 corresponding to three background tasks.
  • the current display interface 300 shown in Figure 3A is for illustration only. In the specific implementation process, the number of task icons displayed may be more than three or less than three.
  • the number of task icons of the background tasks that can be displayed on the taskbar is limited.
  • a task list is popped up, and a task icon whose task icon fails to be displayed in all the background tasks in the task bar is displayed in the task list, For users to choose further.
  • an enlarged display scheme can be used, which specifically includes: Step A: detecting a long-time touch operation for the task bar, wherein the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration threshold.
  • Step B when the long-time touch operation is detected, calculating an area to be enlarged according to the touch position corresponding to the long-time touch operation, wherein the area to be enlarged is a part of the task bar, and the touch The location is within the area to be enlarged.
  • Step C displaying an enlarged display window, and displaying the area to be enlarged by the enlarged display window.
  • the above enlarged display scheme can be applied after step 202 of method 200, before step 204.
  • various methods may be used to calculate the above-mentioned area to be enlarged, for example, a circular area having a touch position as a center and a radius of a predetermined radius length as the above-mentioned area to be enlarged.
  • the preset radius length may be set according to specific needs (such as, but not limited to, a terminal touch screen size).
  • a square area centering on the above-described touch position and having a side length of the preset side length may be used as the above-mentioned area to be enlarged.
  • the preset side length may be set according to specific needs, such as but not limited to a terminal touch screen size.
  • a rectangular area centering on the above-described touch position, a long side using a preset long side length, and a short side using a preset short side length may be used as the above-mentioned area to be enlarged.
  • the preset long side length and the preset short side length may be set according to specific needs (such as, but not limited to, a terminal touch screen size). It should be noted that those skilled in the art should understand that the calculation method of the area to be enlarged provided by the embodiment of the present invention is not limited to the above method, and other methods may be used to calculate the area to be amplified i or .
  • FIG. 3B shows the current display interface 300' after the above enlarged display scheme is applied.
  • the user's touch duration for the position around the task icon 304 in the taskbar exceeds the preset touch duration threshold
  • an enlarged display window 308 is displayed.
  • the area to be enlarged calculated according to the current touch position is enlargedly displayed in the enlarged display window 308.
  • step 204 may specifically detect a preset drag operation for a task icon in the area to be enlarged displayed in the enlarged display window.
  • the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface.
  • the preset drag operation may also be an operation of dragging the task icon by a preset distance.
  • the preset drag operation may also be an operation of dragging the task icon along a preset path.
  • the preset drag operation may also be an operation of dragging the task icon along a preset path to a preset position on the current display interface.
  • the preset drag operation may also be an operation of dragging the task icon by a preset distance along a preset path.
  • the specific implementation mode of the preset drag operation can be selected according to specific needs.
  • Step 206 When the preset drag operation is detected, switch the background task corresponding to the task icon pointed by the preset drag operation to the foreground. Specifically, after the background task corresponding to the task icon for the preset drag operation is switched to the foreground, the background task corresponding to the task icon for the preset drag operation is converted into the foreground task, and the terminal touch screen is The current display interface will display the task screen of the background task corresponding to the task icon for which the preset drag operation is directed.
  • the step 204 is specifically implemented to detect a preset drag operation for a task icon in the area to be enlarged displayed in the enlarged display window, and the preset drag and drop When the operation is to drag the task icon to a preset position on the current display interface (for example, the position indicated by the dashed line 310), as shown in FIG. 3B, it is detected that the task icon 304 in the enlarged display window 308 is When dragged to the position shown by the dashed line 310, the background task corresponding to the task icon 304 will be switched to the foreground.
  • the technical solution provided by the embodiment of the present invention is applied to a terminal, where the terminal is configured with a touch screen, and at least one background task runs on the terminal.
  • the technical solution provided by the embodiment of the present invention displays a task bar on the current display interface of the touch screen of the terminal, and displays the task bar in the task bar.
  • the technical solution provided by the embodiment of the present invention detects a preset drag operation for a task icon in the task bar, and when the preset drag operation is detected, the preset drag The background task corresponding to the task icon for the operation is switched to the foreground. It can be seen that the technical solution provided by the embodiment of the present invention can effectively simplify the task switching operation on the terminal and improve the user experience.
  • FIG. 4 is a schematic diagram showing an exemplary logical structure of a terminal 400 according to an embodiment of the present invention.
  • the terminal 400 shown in Fig. 4 includes a touch screen (not shown), and the terminal 400 runs on at least one background task.
  • the terminal 400 provided by the embodiment of the present invention includes a task icon display module 402, a drag detection module 404, and a task switching module 406.
  • the task icon display module 402 is configured to display a task bar on the current display interface of the touch screen, and display the task icon of the at least one background task in the task bar.
  • the task icon display module 402 may be specifically configured to display the task bar on the current display interface of the terminal touch screen.
  • the task icon display module 402 can also be used to detect an operation of touching the current display interface of the touch screen, and display the task bar on the current display interface upon detecting an operation of touching the current display interface of the touch screen.
  • the task icon display module 402 is available to prevent the displayed task bar from obstructing the user from viewing the main content being displayed on the current display interface (such as, but not limited to, a game screen, a video screen, etc.).
  • the display timing of the above task bar can be set according to specific needs.
  • the drag detection module 404 is configured to detect a preset drag operation for a task icon displayed by the task icon display module 402.
  • the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface.
  • the preset drag operation may also be an operation of dragging the task icon by a preset distance.
  • the preset drag operation may also be along a preset The path drags the action of the task icon.
  • the preset drag operation may also be an operation of dragging the task icon along a preset path to a preset position on the current display interface.
  • the preset drag operation may also be an operation of dragging the task icon by a preset distance along a preset path.
  • the specific implementation manner of the preset drag operation may be selected according to specific needs.
  • the task switching module 406 is configured to switch the background task corresponding to the task icon for the preset drag operation to the front when the drag detection module 404 detects the preset drag operation.
  • FIG. 5 is according to the present invention.
  • the terminal 500 shown in Fig. 5 includes a touch screen (not shown), and the terminal 500 runs on at least one background task.
  • the terminal 500 provided by the embodiment of the present invention includes a task icon display module 502, a drag detection module 504, and a task switching module 506.
  • the terminal 500 further includes a long-term touch detection module 5032, a calculation module 5034, and an enlarged display module 5036.
  • the task icon display module 502 is configured to display a task bar on the current display interface of the touch screen, and display the task icon of the at least one background task in the task bar.
  • the task icon display module 502 can be specifically configured to display the task bar on the current display interface of the terminal touch screen.
  • the task icon display module 502 can also be used to detect an operation of touching the current display interface of the touch screen, and display the task bar on the current display interface upon detecting an operation of touching the current display interface of the touch screen.
  • the task icon display module 402 is available to prevent the displayed task bar from obstructing the user from viewing the main content being displayed on the current display interface (such as, but not limited to, a game screen, a video screen, etc.). After the task bar is displayed, it is continuously detected whether the operation of the terminal occurs within a preset display duration.
  • the long-time touch detection module 5032 is configured to detect a long-time touch operation for the task bar displayed by the task icon display module 502, wherein the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value.
  • the calculation module 5034 is configured to: when the long-term touch detection module 5034 detects the long-time touch operation, calculate an area to be enlarged according to the touch position corresponding to the long-time touch operation, where the area to be enlarged is the A portion of the taskbar, and the touch location is within the area to be enlarged.
  • the calculation method for the above-mentioned area to be enlarged has been described in detail above, and therefore will not be described herein.
  • the enlarged display module 5036 is configured to display an enlarged display window, and the enlarged area to be enlarged calculated by the calculation module 5032 is enlarged by the enlarged display window.
  • the specific functions of the long-term touch detection module 5032, the calculation module 5034, and the enlarged display module 5036 may be uniformly implemented by an amplification module (not shown), that is, the amplification module is used to:
  • the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value; when the long-time touch operation is detected Calculating an area to be enlarged according to the touch position corresponding to the long-time touch operation, wherein the area to be enlarged is a part of the task bar, and the touch position is located in the area to be enlarged;
  • An enlarged display window is displayed, and the area to be enlarged is enlarged by the enlarged display window.
  • the drag detection module 504 is configured to detect a preset drag operation for a task icon displayed by the task icon display module 502. Specifically, the drag detection module 504 is specifically configured to detect a preset drag operation of a task icon in the area to be enlarged displayed in the enlarged display window displayed in the enlarged display window displayed by the enlarged display module 5036. When the function of the enlarged display module 5036 is completed by the above-mentioned amplification module (not shown), the drag detection module 504 is specifically configured to detect an enlarged display within the enlarged display window displayed for the amplification module. The preset drag operation of a task icon in the area to be enlarged.
  • the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface.
  • the preset drag operation may also be an operation of dragging the task icon by a preset distance.
  • the preset drag operation may also be an operation of dragging the task icon along a preset path.
  • the preset drag operation may also be an operation of dragging the task icon along a preset path to a preset position on the current display interface.
  • the preset drag operation may also be an operation of dragging the task icon by a preset distance along a preset path.
  • the specific implementation mode of the preset drag operation can be selected according to specific needs.
  • the task switching module 506 is configured to: when the drag detecting module 504 detects the preset drag operation, corresponding to the task icon for which the preset drag operation is directed The background task switches to the foreground.

Landscapes

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

Abstract

Embodiments of the present invention provide a task switching method and terminal. The task switching method is applied to a terminal provided with a touch screen, and at least one background task runs on the terminal. The task switching method comprises: displaying a taskbar on a current display interface of a touch screen, and displaying a task icon of at least one background task in the taskbar; detecting a preset drag operation targeting at one task icon in the taskbar; and when the preset drag operation is detected, switching the background task corresponding to the task icon, at which the preset drag operation targets, to a foreground. The embodiments of the present invention also provide a terminal. The technical solution provided by the embodiment of the present invention can effectively simplify the task switching operation on a mobile terminal and improve user experience.

Description

一种任务切换方法和终端 技术领域  Task switching method and terminal technical field
本发明涉及触摸控制技术, 尤其涉及一种任务切换方法和终端。 背景技术  The present invention relates to touch control technologies, and in particular, to a task switching method and a terminal. Background technique
得益于大规模集成电路技术的飞速发展,终端产品(尤其是移动终端) 的性能得以大幅度提高。 当前的终端产品, 如移动电话、 平板电脑等, 不 仅可以承担传统的通信处理任务(例如接听、拨打电话,发送短消息等), 还可以处理以往只有在桌面电脑上才能处理的复杂任务,例如显示界面愈 发绚丽的各种单机或者联网游戏等。 更为重要的是, 以往只有在桌面电脑 上才能实现的多任务处理机制, 也开始出现在终端上。 如此一来, 终端便 可在处理当前正在显示的任务的同时, 在后台同时处理多项其他任务。  Thanks to the rapid development of large-scale integrated circuit technology, the performance of end products (especially mobile terminals) has been greatly improved. Current end products, such as mobile phones, tablets, etc., can not only undertake traditional communication processing tasks (such as answering, making calls, sending short messages, etc.), but also dealing with complex tasks that were previously only possible on desktop computers, such as Display a variety of stand-alone or online games that are more and more beautiful. More importantly, the multitasking mechanism that was only possible on desktop computers has also begun to appear on the terminal. In this way, the terminal can process multiple other tasks simultaneously in the background while processing the task currently being displayed.
尽管引入了多任务处理机制, 但是现有终端, 尤其是移动终端, 所釆 用的多任务切换方法, 在操作上仍然显得不够方便。 例如, 目前较为流行 的一种多任务切换方法是, 用户通过按键操作调出后台任务列表, 然后在 任务列表中选择需要切换的任务。 不难看出, 在终端操作愈发简便的情况 下, 现有多任务切换方法显得非常不便。 发明内容  Although a multi-tasking mechanism has been introduced, the multi-task switching method used by existing terminals, especially mobile terminals, is still inconvenient in operation. For example, a popular multi-tasking method is to call up a background task list by pressing a button, and then select a task to be switched in the task list. It is not difficult to see that the existing multi-task switching method is very inconvenient in the case where the terminal operation is more and more convenient. Summary of the invention
有鉴于此, 实有必要提供一种任务切换方法, 以解决现有终端多任务 切换方法操作不便的问题。  In view of this, it is necessary to provide a task switching method to solve the problem of inconvenient operation of the existing terminal multitasking switching method.
同时, 提供一种终端, 以解决现有终端多任务切换方法操作不便的问 题。  At the same time, a terminal is provided to solve the problem of inconvenient operation of the existing terminal multitasking switching method.
根据本发明的第一方面, 提供一种任务切换方法, 应用于终端, 该终 端配置有一触摸屏, 且该终端上运行有至少一个后台任务, 所述任务切换 方法包括: According to a first aspect of the present invention, a task switching method is provided, which is applied to a terminal, the terminal is configured with a touch screen, and at least one background task is run on the terminal, and the task is switched. Methods include:
在所述触摸屏的当前显示界面上显示一任务栏,并在该任务栏内显示 所述至少一个后台任务的任务图标;  Displaying a task bar on the current display interface of the touch screen, and displaying a task icon of the at least one background task in the task bar;
检测针对所述任务栏内一任务图标的预设拖拽操作;  Detecting a preset drag operation for a task icon in the taskbar;
在检测到所述预设拖拽操作时,将所述预设拖拽操作所针对的任务图 标所对应的后台任务切换至前台。  When the preset drag operation is detected, the background task corresponding to the task icon for which the preset drag operation is directed is switched to the foreground.
在根据本发明第一方面的任务切换方法的第一可能实现方式中,在所 述触摸屏的当前显示界面上显示一任务栏具体为:  In a first possible implementation manner of the task switching method according to the first aspect of the present invention, displaying a task bar on the current display interface of the touch screen is specifically:
检测触摸所述触摸屏的当前显示界面的操作;  Detecting an operation of touching a current display interface of the touch screen;
在检测到触摸所述触摸屏的当前显示界面的操作时,在当前显示界面 上显示所述任务栏。  When the operation of touching the current display interface of the touch screen is detected, the task bar is displayed on the current display interface.
在根据本发明第一方面的任务切换方法的第二可能实现方式中,在所 述在所述触摸屏的当前显示界面上显示一任务栏,并在该任务栏内显示所 述至少一个后台任务的任务图标之后,并且在所述检测针对所述任务栏内 一任务图标的预设拖拽操作之前, 所述方法还包括:  In a second possible implementation manner of the task switching method according to the first aspect of the present invention, a task bar is displayed on the current display interface of the touch screen, and the at least one background task is displayed in the task bar. After the task icon, and before the detecting a predetermined drag operation for a task icon in the task bar, the method further includes:
检测针对所述任务栏的长时触摸操作, 其中, 所述长时触摸操作为触 摸时长超过预设触摸时长阔值的触摸操作;  Detecting a long-time touch operation for the task bar, where the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value;
在检测到所述长时触摸操作时,根据该长时触摸操作所对应的触摸位 置计算一待放大区域, 其中, 所述待放大区域为所述任务栏的一部分, 且 所述触摸位置位于该待放大区域之内;  When the long-time touch operation is detected, an area to be enlarged is calculated according to the touch position corresponding to the long-time touch operation, wherein the area to be enlarged is a part of the task bar, and the touch position is located at the Within the area to be magnified;
显示一放大显示窗口,并通过所述放大显示窗口放大显示所述待放大 区域;  Displaying an enlarged display window, and displaying the area to be enlarged by the enlarged display window;
所述检测针对所述任务栏内一任务图标的预设拖拽操作具体为: 检测针对所述放大显示窗口内放大显示的待放大区域内一任务图标 的预设拖拽操作。  The preset drag operation for detecting a task icon in the task bar is specifically: detecting a preset drag operation for a task icon in the enlarged area to be enlarged displayed in the enlarged display window.
在根据本发明第一方面的任务切换方法或者根据本发明第一方面的 任务切换方法的前述任一可能实现方式的第三可能实现方式中,所述预设 拖拽操作为将所述任务图标拖拽至当前显示界面上的预设位置的操作。 The task switching method according to the first aspect of the present invention or the first aspect according to the present invention In a third possible implementation manner of any of the foregoing possible implementation manners of the task switching method, the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface.
在根据本发明第一方面的任务切换方法或者根据本发明第一方面的 任务切换方法的前述任一可能实现方式的第四可能实现方式中,所述预设 拖拽操作为将所述任务图标拖拽预设距离的操作。  In a fourth possible implementation manner of the task switching method according to the first aspect of the present invention, or any one of the foregoing possible implementation manners of the task switching method according to the first aspect of the present invention, the preset drag operation is to display the task icon Drag and drop the preset distance.
在根据本发明第一方面的任务切换方法或者根据本发明第一方面的 任务切换方法的前述任一可能实现方式的第五可能实现方式中,所述预设 拖拽操作为沿预设路径拖拽所述任务图标的操作。  In a fifth possible implementation manner of the foregoing any possible implementation manner of the task switching method according to the first aspect of the present invention or the task switching method according to the first aspect of the present invention, the preset drag operation is dragging along a preset path The operation of the task icon.
在根据本发明第一方面的任务切换方法或者根据本发明第一方面的 任务切换方法的前述任一可能实现方式的第六可能实现方式中,所述预设 拖拽操作为沿预设路径将所述任务图标拖拽至当前显示界面上的预设位 置的操作。  In a sixth possible implementation manner of the foregoing any possible implementation manner of the task switching method according to the first aspect of the present invention or the task switching method according to the first aspect of the present invention, the preset drag operation is along a preset path. The operation of dragging the task icon to a preset position on the current display interface.
在根据本发明第一方面的任务切换方法或者根据本发明第一方面的 任务切换方法的前述任一可能实现方式的第七可能实现方式中,所述预设 拖拽操作为沿预设路径将所述任务图标拖拽预设距离的操作。  In a seventh possible implementation manner of the foregoing any possible implementation manner of the task switching method according to the first aspect of the present invention or the task switching method according to the first aspect of the present invention, the preset drag operation is along a preset path. The task icon drags the operation of the preset distance.
根据本发明的第二方面, 提供一种终端, 包括一触摸屏, 且该终端上 运行有至少一个后台任务, 所述终端包括:  According to a second aspect of the present invention, a terminal is provided, including a touch screen, and at least one background task is run on the terminal, and the terminal includes:
任务图标显示模块,用于在所述触摸屏的当前显示界面上显示一任务 栏, 并在该任务栏内显示所述至少一个后台任务的任务图标;  a task icon display module, configured to display a task bar on a current display interface of the touch screen, and display a task icon of the at least one background task in the task bar;
拖拽检测模块,用于检测针对任务图标显示模块所显示的一任务图标 的预设拖拽操作;  a drag detection module, configured to detect a preset drag operation for a task icon displayed by the task icon display module;
任务切换模块, 用于在拖拽检测模块检测到所述预设拖拽操作时, 将 所述预设拖拽操作所针对的任务图标所对应的后台任务切换至前台。  The task switching module is configured to switch the background task corresponding to the task icon for the preset drag operation to the foreground when the drag detection module detects the preset drag operation.
在根据本发明第二方面的终端的第一可能实现方式中,所述任务图标 显示模块具体用于:  In a first possible implementation of the terminal according to the second aspect of the present invention, the task icon display module is specifically configured to:
检测触摸所述触摸屏的当前显示界面的操作; 在检测到触摸所述触摸屏的当前显示界面的操作时,在当前显示界面 上显示所述任务栏。 Detecting an operation of touching a current display interface of the touch screen; When the operation of touching the current display interface of the touch screen is detected, the task bar is displayed on the current display interface.
在根据本发明第二方面的终端的第二可能实现方式中,所述终端还包 括:  In a second possible implementation manner of the terminal according to the second aspect of the present invention, the terminal further includes:
长时触摸检测模块,用于检测针对所述任务图标显示模块所显示的任 务栏的长时触摸操作, 其中, 所述长时触摸操作为触摸时长超过预设触摸 时长阔值的触摸操作;  a long-time touch detection module, configured to detect a long-term touch operation for the task bar displayed by the task icon display module, wherein the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value;
计算模块, 用于在长时触摸检测模块检测到所述长时触摸操作时, 根 据该长时触摸操作所对应的触摸位置计算一待放大区域, 其中, 所述待放 大区域为所述任务栏的一部分, 且所述触摸位置位于该待放大区域之内; 放大显示模块, 用于显示一放大显示窗口, 并通过所述放大显示窗口 放大显示所述计算模块所算得的待放大区域;  a calculation module, configured to: when the long-time touch detection module detects the long-time touch operation, calculate an area to be enlarged according to the touch position corresponding to the long-time touch operation, where the area to be enlarged is the task bar And a part of the touched area is located in the area to be enlarged; an enlarged display module is configured to display an enlarged display window, and the enlarged area to be enlarged is displayed by the enlarged display window;
所述拖拽检测模块具体用于:  The drag detection module is specifically configured to:
检测针对所述放大显示模块所显示的放大显示窗口内的放大显示的 待放大区域内一任务图标的预设拖拽操作。  A preset drag operation for a task icon in the area to be enlarged displayed in the enlarged display within the enlarged display window displayed by the enlarged display module is detected.
在根据本发明第二方面的终端或者根据本发明第二方面的终端的前 述任一可能实现方式的第三可能实现方式中,所述预设拖拽操作为将所述 任务图标拖拽至当前显示界面上的预设位置的操作。  In a third possible implementation manner of the foregoing any possible implementation manner of the terminal according to the second aspect of the present invention or the terminal according to the second aspect of the present invention, the preset drag operation is to drag the task icon to the current The operation of displaying the preset position on the interface.
在根据本发明第二方面的终端或者根据本发明第二方面的终端的前 述任一可能实现方式的第四可能实现方式中,所述预设拖拽操作为将所述 任务图标拖拽预设距离的操作。  In a fourth possible implementation manner of the foregoing any possible implementation manner of the terminal according to the second aspect of the present invention or the terminal according to the second aspect of the present invention, the preset drag operation is to drag the task icon to a preset Distance operation.
在根据本发明第二方面的终端或者根据本发明第二方面的终端的前 述任一可能实现方式的第五可能实现方式中,所述预设拖拽操作为沿预设 路径拖拽所述任务图标的操作。  In a fifth possible implementation manner of the foregoing any possible implementation manner of the terminal according to the second aspect of the present invention or the terminal according to the second aspect of the present invention, the preset drag operation is to drag the task along a preset path. Icon operation.
在根据本发明第二方面的终端或者根据本发明第二方面的终端的前 述任一可能实现方式的第六可能实现方式中,所述预设拖拽操作为沿预设 路径将所述任务图标拖拽至当前显示界面上的预设位置的操作。 In a sixth possible implementation manner of the foregoing any possible implementation manner of the terminal according to the second aspect of the present invention or the terminal according to the second aspect of the present invention, the preset drag operation is along a preset The path drags the task icon to the preset position on the current display interface.
在根据本发明第二方面的终端或者根据本发明第二方面的终端的前 述任一可能实现方式的第七可能实现方式中,所述预设拖拽操作为沿预设 路径将所述任务图标拖拽预设距离的操作。  In a seventh possible implementation manner of the foregoing any possible implementation manner of the terminal according to the second aspect of the present invention or the terminal according to the second aspect of the present invention, the preset drag operation is to set the task icon along a preset path. Drag and drop the preset distance.
本发明实施例提供的技术方案应用于终端, 该终端配置有一触摸屏, 且该终端上运行有至少一个后台任务。本发明实施例提供的技术方案在所 述终端的触摸屏的当前显示界面上显示一任务栏,并在该任务栏内显示所 述至少一个后台任务的任务图标。 在这种情况下, 本发明实施例提供的技 术方案检测针对所述任务栏内一任务图标的预设拖拽操作,并在检测到所 述预设拖拽操作时,将所述预设拖拽操作所针对的任务图标所对应的后台 任务切换至前台。 由此可见, 本发明实施例提供的技术方案可有效简化终 端上的任务切换操作, 改善用户体验。 附图说明  The technical solution provided by the embodiment of the present invention is applied to a terminal, where the terminal is configured with a touch screen, and at least one background task runs on the terminal. The technical solution provided by the embodiment of the present invention displays a task bar on the current display interface of the touch screen of the terminal, and displays a task icon of the at least one background task in the task bar. In this case, the technical solution provided by the embodiment of the present invention detects a preset drag operation for a task icon in the task bar, and when the preset drag operation is detected, the preset drag The background task corresponding to the task icon for the operation is switched to the foreground. It can be seen that the technical solution provided by the embodiment of the present invention can effectively simplify the task switching operation on the terminal and improve the user experience. DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例 中所需要使用的附图作简单地介绍, 显而易见地, 下面所描述的附图仅仅 是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性 劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图 1是依据本发明一实施例的终端的示范性硬件结构示意图; 图 2是依据本发明一实施例的任务切换方法的示范性流程图; 图 3A是依据本发明一实施例的移动终端当前显示界面的显示效果示 意图;  1 is a schematic diagram of an exemplary hardware structure of a terminal according to an embodiment of the present invention; FIG. 2 is an exemplary flowchart of a task switching method according to an embodiment of the present invention; FIG. 3A is a current embodiment of a mobile terminal according to an embodiment of the present invention; A schematic diagram showing the display effect of the display interface;
图 3B是对图 3A中的当前显示界面应用了放大显示方案后的显示效 果示意图;  FIG. 3B is a schematic diagram showing the display effect after the enlarged display scheme is applied to the current display interface in FIG. 3A; FIG.
图 4是依据本发明一实施例的终端的示范性逻辑结构示意图; 图 5是依据本发明另一实施例的终端的示范性逻辑结构示意图。 具体实施方式 4 is a schematic diagram showing an exemplary logical structure of a terminal according to an embodiment of the present invention; and FIG. 5 is a schematic diagram showing an exemplary logical structure of a terminal according to another embodiment of the present invention. detailed description
图 1是依据本发明一实施例的终端 100的示范性硬件结构示意图。 图 1所示的终端 100可以是移动终端, 例如但不限于移动电话(例如智能电 话) 、 平板电脑、 个人数字助理 ( Personal Digital Assistant, PDA ) 、 音 视频播放器等。 如图 1所示, 终端 100包括处理器 102、 存储器 104、 触 摸屏 106、 通信接口 108和总线 110。 其中, 处理器 102、 存储器 104、 触 摸屏 106和通信接口 108通过总线 110通信连接。  FIG. 1 is a schematic diagram showing an exemplary hardware structure of a terminal 100 according to an embodiment of the present invention. The terminal 100 shown in Fig. 1 may be a mobile terminal such as, but not limited to, a mobile phone (e.g., a smart phone), a tablet, a personal digital assistant (PDA), an audio player, and the like. As shown in FIG. 1, terminal 100 includes a processor 102, a memory 104, a touch screen 106, a communication interface 108, and a bus 110. The processor 102, the memory 104, the touch screen 106, and the communication interface 108 are communicatively coupled by a bus 110.
处理器 102 可以釆用通用的中央处理器 (Central Processing Unit, CPU ) , 处理器, 应用专用集成电路 ( Application Specific Integrated Circuit, ASIC ) , 或者一个或多个集成电路, 用于执行相关程序, 以实现 本发明实施例所提供的技术方案。  The processor 102 can use a general-purpose central processing unit (CPU), a processor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs, The technical solution provided by the embodiment of the present invention is implemented.
存储器 104可以是只读存储器 (Read Only Memory, ROM ) , 静态 存储设备, 动态存储设备或者随机存取存储器 ( Random Access Memory, RAM ) 。 存储器 104 可以存储操作系统和其他应用程序。 在通过软件或 者固件来实现本发明实施例提供的技术方案时,用于实现本发明实施例提 供的技术方案的程序代码保存在存储器 104中, 并由处理器 102来执行。  The memory 104 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 104 can store an operating system and other applications. When the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the program code for implementing the technical solution provided by the embodiment of the present invention is stored in the memory 104 and executed by the processor 102.
触摸屏 106 既是输入设备, 也是输出设备。 作为输入设备, 触摸屏 106可接收用户通过触摸方式输入的数据和信息。 为便于用户输入信息, 以及显示更为丰富的内容,终端 100所配置的触摸屏 106的尺寸通常很大。 通过触摸触摸屏 106 , 用户可以实现文字和命令等信息的输入, 从而使用 终端 100所提供的各种功能, 例如但不限于拨打电话、 发送短消息、 播放 音乐视频、 玩游戏等。 作为输出设备, 触摸屏 106可向用户显示操作结果 等信息。 应注意, 在具体实现过程中, 终端 100还可包含图 1中未示出的 其他输入输出设备, 例如但不限于扬声器等。  The touch screen 106 is both an input device and an output device. As an input device, the touch screen 106 can receive data and information that the user inputs by touch. In order to facilitate user input of information and display of richer content, the size of the touch screen 106 configured by the terminal 100 is usually large. By touching the touch screen 106, the user can input information such as text and commands, thereby using various functions provided by the terminal 100, such as, but not limited to, making a call, sending a short message, playing a music video, playing a game, and the like. As an output device, the touch screen 106 can display information such as an operation result to the user. It should be noted that in a specific implementation process, the terminal 100 may further include other input and output devices not shown in Fig. 1, such as but not limited to a speaker or the like.
通信接口 108使用例如但不限于收发器一类的收发装置,来实现终端 100 与其他设备或通信网络(例如但不限于以太网, 无线接入网 (Radio Access Network, RAN ) , 无线局域网 ( Wireless Local Area Network, WLAN ) 等 )之间的通信。 Communication interface 108 implements the terminal using transceivers such as, but not limited to, transceivers 100 Communication with other devices or communication networks such as, but not limited to, Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
总线 110可包括一通路, 在终端 100各个部件 (例如处理器 102、 存 储器 104、 触摸屏 106和通信接口 108 )之间传送信息。  Bus 110 may include a path for communicating information between various components of terminal 100, such as processor 102, memory 104, touch screen 106, and communication interface 108.
通过配置性能更为强大的器件,例如但不限于性能更为强大的处理器 102、 存储器 104、 触摸屏 106、 通信接口 108和总线 110 , 终端 100可以 实现多任务处理, 即在同一时间, 在移动终端上运行多个任务。 在同时运 行的多个任务中,正在通过触摸屏 106的当前显示界面向用户展示并可能 需要与用户进行交互的任务称为前台任务,而处于挂起状态的其他任务则 称为后台任务。 后台任务往往不需要与用户进行交互, 也不需要向用户展 示信息, 因此通常在不打扰用户其它工作的时候执行。 通过任务切换, 后 台任务可以切换至前台, 而切换之前的前台任务切换至后台。 例如, 用户 的终端上同时运行有多个任务, 包括下载任务、 电子邮件收发任务和电子 游戏任务。 其中, 用户当前正在玩对应电子游戏任务的电子游戏, 游戏过 程通过触摸屏的当前显示界面显示给用户。 在这种情况下, 该电子游戏任 务即为前台任务, 其他任务如下载任务和电子邮件收发任务则为后台任 务。  By configuring more powerful devices such as, but not limited to, the more powerful processor 102, memory 104, touch screen 106, communication interface 108, and bus 110, the terminal 100 can implement multitasking, ie, at the same time, on the mobile Run multiple tasks on the terminal. Among the plurality of tasks running simultaneously, a task that is being presented to the user through the current display interface of the touch screen 106 and that may need to interact with the user is referred to as a foreground task, and other tasks in a suspended state are referred to as a background task. Background tasks often do not need to interact with the user, nor do they need to present information to the user, so they are usually executed without disturbing the user's other work. Through task switching, the back-end tasks can be switched to the foreground, and the foreground tasks before switching are switched to the background. For example, a user's terminal runs multiple tasks simultaneously, including download tasks, email tasks, and video game tasks. The user is currently playing an electronic game corresponding to the electronic game task, and the game process is displayed to the user through the current display interface of the touch screen. In this case, the video game task is the foreground task, and other tasks such as download tasks and email sending and receiving tasks are background tasks.
应注意,尽管图 1所示的终端 100仅仅示出了处理器 102、存储器 104、 触摸屏 106、 通信接口 108以及总线 110 , 但是在具体实现过程中, 本领 域的技术人员应当明白, 终端 100 还包含实现正常运行所必须的其他器 件。 同时, 根据具体需要, 本领域的技术人员应当明白, 移动终端 100还 可包含实现其他功能的硬件器件。  It should be noted that although the terminal 100 shown in FIG. 1 only shows the processor 102, the memory 104, the touch screen 106, the communication interface 108, and the bus 110, in a specific implementation process, those skilled in the art should understand that the terminal 100 also Contains other devices necessary to achieve proper operation. Meanwhile, according to specific needs, those skilled in the art should understand that the mobile terminal 100 may also include hardware devices that implement other functions.
图 2是依据本发明一实施例的任务切换方法 200的示范性流程图。图 2所示的任务切换方法 200应用于终端 (例如但不限于移动终端) , 该终 端配置有一触摸屏, 且该终端上运行有至少一个后台任务。 步骤 202 , 在所述触摸屏的当前显示界面上显示一任务栏, 并在该任 务栏内显示所述至少一个后台任务的任务图标。 2 is an exemplary flow diagram of a task switching method 200 in accordance with an embodiment of the present invention. The task switching method 200 shown in FIG. 2 is applied to a terminal (such as but not limited to a mobile terminal), the terminal is configured with a touch screen, and at least one background task runs on the terminal. Step 202: Display a task bar on a current display interface of the touch screen, and display a task icon of the at least one background task in the task bar.
在具体实现过程中,上述任务栏可以一直显示在终端触摸屏的当前显 示界面上。 此外, 也可实时检测触摸触摸屏的当前显示界面的操作, 并且 在检测到触摸所述触摸屏的当前显示界面的操作时,在当前显示界面上显 示所述任务栏。 在釆用后一种方式的情况下, 为防止显示的任务栏妨碍用 户对当前显示界面上正在显示的主要内容(例如但不限于游戏画面, 视频 画面等)的观看, 在显示上述任务栏之后, 若在一预设显示时长之内没有 检测到对终端的任何操作, 则还可取消对上述任务栏的显示。 在具体实现 过程中, 可根据具体需要来设置上述任务栏的显示时机。  In the specific implementation process, the above task bar can be displayed on the current display interface of the terminal touch screen. In addition, the operation of touching the current display interface of the touch screen can also be detected in real time, and when the operation of touching the current display interface of the touch screen is detected, the task bar is displayed on the current display interface. In the case of the latter method, in order to prevent the displayed task bar from obstructing the user from viewing the main content being displayed on the current display interface (for example, but not limited to a game screen, a video screen, etc.), after displaying the above taskbar If no operation on the terminal is detected within a preset display duration, the display of the above task bar may also be cancelled. In the specific implementation process, the display timing of the above task bar can be set according to specific needs.
此外, 上述任务栏可显示在终端当前显示界面上的任意位置, 例如当 前显示界面的顶部、 底部或者侧边等。 在具体实现过程中, 可根据具体需 要来设置任务栏的显示位置。 当任务栏设置在当前显示界面的顶部时, 当 前显示界面可如图 3A所示。 图 3A所示的当前显示界面 300中包含一任 务栏 302。 该任务栏 302 中包含 3个后台任务对应的任务图标 302、 304 和 306。 本领域的技术人员应当明白, 图 3A所显示的当前显示界面 300 仅用于举例。在具体实现过程中,所显示的任务图标的数量可以不止 3个, 也可以少于 3个。  In addition, the above task bar can be displayed at any position on the current display interface of the terminal, such as the top, bottom or side of the current display interface. In the specific implementation process, the display position of the task bar can be set according to specific needs. When the taskbar is set at the top of the current display interface, the current display interface can be as shown in Figure 3A. The current display interface 300 shown in FIG. 3A includes a task bar 302. The task bar 302 contains task icons 302, 304, and 306 corresponding to three background tasks. Those skilled in the art will appreciate that the current display interface 300 shown in Figure 3A is for illustration only. In the specific implementation process, the number of task icons displayed may be more than three or less than three.
受限于终端触摸屏的尺寸,任务栏所能显示的后台任务的任务图标的 数量是有限的。在这种情况下,还可仅仅显示一部分后台任务的任务图标, 再显示一预设的特殊图标。 在这种情况下, 可在检测到触摸该预设特殊图 标的操作时, 弹出一任务列表, 在该任务列表中显示其任务图标未能显示 在任务栏内的所有后台任务的任务图标, 以供用户进一步选择。  Due to the size of the touch screen of the terminal, the number of task icons of the background tasks that can be displayed on the taskbar is limited. In this case, it is also possible to display only a part of the task icon of the background task, and then display a preset special icon. In this case, when an operation of touching the preset special icon is detected, a task list is popped up, and a task icon whose task icon fails to be displayed in all the background tasks in the task bar is displayed in the task list, For users to choose further.
同时, 受限于终端触摸屏的尺寸, 任务栏本身的显示面积可能很小, 这使得任务栏内显示的任务图标也很小。在这种情况下,为便于用户选择, 可釆用一种放大显示方案, 具体包括: 步骤 A, 检测针对所述任务栏的长时触摸操作, 其中, 所述长时触摸 操作为触摸时长超过预设触摸时长阈值的触摸操作。 At the same time, due to the size of the touch screen of the terminal, the display area of the taskbar itself may be small, which makes the task icon displayed in the taskbar small. In this case, in order to facilitate the user's choice, an enlarged display scheme can be used, which specifically includes: Step A: detecting a long-time touch operation for the task bar, wherein the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration threshold.
步骤 B , 在检测到所述长时触摸操作时, 根据该长时触摸操作所对应 的触摸位置计算一待放大区域, 其中, 所述待放大区域为所述任务栏的一 部分, 且所述触摸位置位于该待放大区域之内。  Step B, when the long-time touch operation is detected, calculating an area to be enlarged according to the touch position corresponding to the long-time touch operation, wherein the area to be enlarged is a part of the task bar, and the touch The location is within the area to be enlarged.
步骤 C , 显示一放大显示窗口, 并通过所述放大显示窗口放大显示所 述待放大区域。  Step C, displaying an enlarged display window, and displaying the area to be enlarged by the enlarged display window.
不难理解, 在具体实现过程中, 上述放大显示方案可应用在方法 200 的步骤 202之后, 步骤 204之前。  It is not difficult to understand that, in a specific implementation process, the above enlarged display scheme can be applied after step 202 of method 200, before step 204.
此外, 可釆用各种方法来计算上述待放大区域, 例如将以触摸位置为 圓心、 半径釆用预设半径长度的圓形区域作为上述待放大区域。 在具体实 现过程中, 上述预设半径长度可根据具体需要(例如但不限于终端触摸屏 尺寸)来设置。 此外, 还可以将以上述触摸位置为中心、 边长釆用预设边 长长度的正方形区域作为上述待放大区域。 在具体实现过程中, 上述预设 边长长度可根据具体需要(例如但不限于终端触摸屏尺寸)来设置。此外, 还可以将以上述触摸位置为中心、 长边釆用预设长边长度、短边釆用预设 短边长度的长方形区域作为上述待放大区域。 在具体实现过程中, 上述预 设长边长度和预设短边长度可根据具体需要(例如但不限于终端触摸屏尺 寸)来设置。 应注意, 本领域的技术人员应当明白, 本发明实施例提供的 待放大区域的计算方法并非仅限于上述方法,还可釆用其他方法来计算待 放大区 i或。  In addition, various methods may be used to calculate the above-mentioned area to be enlarged, for example, a circular area having a touch position as a center and a radius of a predetermined radius length as the above-mentioned area to be enlarged. In a specific implementation process, the preset radius length may be set according to specific needs (such as, but not limited to, a terminal touch screen size). Further, a square area centering on the above-described touch position and having a side length of the preset side length may be used as the above-mentioned area to be enlarged. In a specific implementation process, the preset side length may be set according to specific needs, such as but not limited to a terminal touch screen size. Further, a rectangular area centering on the above-described touch position, a long side using a preset long side length, and a short side using a preset short side length may be used as the above-mentioned area to be enlarged. In a specific implementation process, the preset long side length and the preset short side length may be set according to specific needs (such as, but not limited to, a terminal touch screen size). It should be noted that those skilled in the art should understand that the calculation method of the area to be enlarged provided by the embodiment of the present invention is not limited to the above method, and other methods may be used to calculate the area to be amplified i or .
图 3B显示了应用了上述放大显示方案后的当前显示界面 300'。 如图 3B所示, 当用户对任务栏内任务图标 304周边的位置 (触摸位置在任务 栏内)的触摸时长超过预设触摸时长阔值时,将显示一放大显示窗口 308。 根据当前触摸位置计算得到的待放大区域在该放大显示窗口 308 内得到 了放大显示。 步骤 204 , 检测针对所述任务栏内一任务图标的预设拖拽操作。 FIG. 3B shows the current display interface 300' after the above enlarged display scheme is applied. As shown in FIG. 3B, when the user's touch duration for the position around the task icon 304 in the taskbar (the touch position is within the taskbar) exceeds the preset touch duration threshold, an enlarged display window 308 is displayed. The area to be enlarged calculated according to the current touch position is enlargedly displayed in the enlarged display window 308. Step 204: Detect a preset drag operation for a task icon in the taskbar.
当釆用上述放大显示方案时, 步骤 204可具体为, 检测针对所述放大 显示窗口内放大显示的待放大区域内一任务图标的预设拖拽操作。  When the above enlarged display scheme is used, step 204 may specifically detect a preset drag operation for a task icon in the area to be enlarged displayed in the enlarged display window.
在具体实现过程中,所述预设拖拽操作为将所述任务图标拖拽至当前 显示界面上的预设位置的操作。 此外, 所述预设拖拽操作还可以为将所述 任务图标拖拽预设距离的操作。 此外, 所述预设拖拽操作还可以为沿预设 路径拖拽所述任务图标的操作。 此外, 所述预设拖拽操作还可以为沿预设 路径将所述任务图标拖拽至当前显示界面上的预设位置的操作。 此外, 所 述预设拖拽操作还可以为沿预设路径将所述任务图标拖拽预设距离的操 作。 在具体实现过程中, 可根据具体需要来选择预设拖拽操作的具体实现 方式。  In a specific implementation process, the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface. In addition, the preset drag operation may also be an operation of dragging the task icon by a preset distance. In addition, the preset drag operation may also be an operation of dragging the task icon along a preset path. In addition, the preset drag operation may also be an operation of dragging the task icon along a preset path to a preset position on the current display interface. In addition, the preset drag operation may also be an operation of dragging the task icon by a preset distance along a preset path. In the specific implementation process, the specific implementation mode of the preset drag operation can be selected according to specific needs.
步骤 206 , 在检测到所述预设拖拽操作时, 将所述预设拖拽操作所针 对的任务图标所对应的后台任务切换至前台。 具体来说, 在预设拖拽操作 所针对的任务图标所对应的后台任务被切换至前台之后,预设拖拽操作所 针对的任务图标所对应的后台任务将转变为前台任务,终端触摸屏的当前 显示界面将显示预设拖拽操作所针对的任务图标所对应的后台任务的任 务画面。  Step 206: When the preset drag operation is detected, switch the background task corresponding to the task icon pointed by the preset drag operation to the foreground. Specifically, after the background task corresponding to the task icon for the preset drag operation is switched to the foreground, the background task corresponding to the task icon for the preset drag operation is converted into the foreground task, and the terminal touch screen is The current display interface will display the task screen of the background task corresponding to the task icon for which the preset drag operation is directed.
具体来说, 在釆用上述放大显示方案、 且步骤 204具体实现为检测针 对所述放大显示窗口内放大显示的待放大区域内一任务图标的预设拖拽 操作、且所述预设拖拽操作为将所述任务图标拖拽至当前显示界面上的预 设位置 (例如虚线 310所示的位置) 的操作时, 如图 3B所示, 在检测到 放大显示窗口 308内的任务图标 304被拖动至虚线 310所示的位置时,任 务图标 304所对应的后台任务将被切换至前台。  Specifically, the above-mentioned enlarged display scheme is used, and the step 204 is specifically implemented to detect a preset drag operation for a task icon in the area to be enlarged displayed in the enlarged display window, and the preset drag and drop When the operation is to drag the task icon to a preset position on the current display interface (for example, the position indicated by the dashed line 310), as shown in FIG. 3B, it is detected that the task icon 304 in the enlarged display window 308 is When dragged to the position shown by the dashed line 310, the background task corresponding to the task icon 304 will be switched to the foreground.
本发明实施例提供的技术方案应用于终端, 该终端配置有一触摸屏, 且该终端上运行有至少一个后台任务。本发明实施例提供的技术方案在所 述终端的触摸屏的当前显示界面上显示一任务栏,并在该任务栏内显示所 述至少一个后台任务的任务图标。 在这种情况下, 本发明实施例提供的技 术方案检测针对所述任务栏内一任务图标的预设拖拽操作,并在检测到所 述预设拖拽操作时,将所述预设拖拽操作所针对的任务图标所对应的后台 任务切换至前台。 由此可见, 本发明实施例提供的技术方案可有效简化终 端上的任务切换操作, 改善用户体验。 The technical solution provided by the embodiment of the present invention is applied to a terminal, where the terminal is configured with a touch screen, and at least one background task runs on the terminal. The technical solution provided by the embodiment of the present invention displays a task bar on the current display interface of the touch screen of the terminal, and displays the task bar in the task bar. A task icon for at least one background task. In this case, the technical solution provided by the embodiment of the present invention detects a preset drag operation for a task icon in the task bar, and when the preset drag operation is detected, the preset drag The background task corresponding to the task icon for the operation is switched to the foreground. It can be seen that the technical solution provided by the embodiment of the present invention can effectively simplify the task switching operation on the terminal and improve the user experience.
图 4是依据本发明一实施例的终端 400的示范性逻辑结构示意图。图 4所示的终端 400包括一触摸屏(未示出) , 且该终端 400上运行有至少 一个后台任务。 如图 4所示, 本发明实施例提供的终端 400包括任务图标 显示模块 402、 拖拽检测模块 404和任务切换模块 406。  FIG. 4 is a schematic diagram showing an exemplary logical structure of a terminal 400 according to an embodiment of the present invention. The terminal 400 shown in Fig. 4 includes a touch screen (not shown), and the terminal 400 runs on at least one background task. As shown in FIG. 4, the terminal 400 provided by the embodiment of the present invention includes a task icon display module 402, a drag detection module 404, and a task switching module 406.
任务图标显示模块 402 用于在所述触摸屏的当前显示界面上显示一 任务栏, 并在该任务栏内显示所述至少一个后台任务的任务图标。  The task icon display module 402 is configured to display a task bar on the current display interface of the touch screen, and display the task icon of the at least one background task in the task bar.
在具体实现过程中,任务图标显示模块 402可具体用于将上述任务栏 一直显示在终端触摸屏的当前显示界面上。 此外, 任务图标显示模块 402 还可用于检测触摸所述触摸屏的当前显示界面的操作,并在检测到触摸所 述触摸屏的当前显示界面的操作时, 在当前显示界面上显示所述任务栏。 在釆用后一种方式的情况下,为防止显示的任务栏妨碍用户对当前显示界 面上正在显示的主要内容(例如但不限于游戏画面,视频画面等)的观看 , 任务图标显示模块 402可用于在显示上述任务栏之后,在一预设显示时长 之内持续检测是否发生对终端的操作,若在预设显示时长之内没有检测到 对终端的任何操作, 取消对上述任务栏的显示。 在具体实现过程中, 可根 据具体需要来设置上述任务栏的显示时机。  In a specific implementation process, the task icon display module 402 may be specifically configured to display the task bar on the current display interface of the terminal touch screen. In addition, the task icon display module 402 can also be used to detect an operation of touching the current display interface of the touch screen, and display the task bar on the current display interface upon detecting an operation of touching the current display interface of the touch screen. In the case of the latter method, the task icon display module 402 is available to prevent the displayed task bar from obstructing the user from viewing the main content being displayed on the current display interface (such as, but not limited to, a game screen, a video screen, etc.). After the task bar is displayed, it is continuously detected whether the operation of the terminal occurs within a preset display duration. If any operation on the terminal is not detected within the preset display duration, the display of the task bar is cancelled. In the specific implementation process, the display timing of the above task bar can be set according to specific needs.
拖拽检测模块 404用于检测针对任务图标显示模块 402所显示的一任 务图标的预设拖拽操作。  The drag detection module 404 is configured to detect a preset drag operation for a task icon displayed by the task icon display module 402.
在具体实现过程中,所述预设拖拽操作为将所述任务图标拖拽至当前 显示界面上的预设位置的操作。 此外, 所述预设拖拽操作还可以为将所述 任务图标拖拽预设距离的操作。 此外, 所述预设拖拽操作还可以为沿预设 路径拖拽所述任务图标的操作。 此外, 所述预设拖拽操作还可以为沿预设 路径将所述任务图标拖拽至当前显示界面上的预设位置的操作。 此外, 所 述预设拖拽操作还可以为沿预设路径将所述任务图标拖拽预设距离的操 作。 在具体实现过程中, 可根据具体需要来选择预设拖拽操作的具体实现 方式。 In a specific implementation process, the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface. In addition, the preset drag operation may also be an operation of dragging the task icon by a preset distance. In addition, the preset drag operation may also be along a preset The path drags the action of the task icon. In addition, the preset drag operation may also be an operation of dragging the task icon along a preset path to a preset position on the current display interface. In addition, the preset drag operation may also be an operation of dragging the task icon by a preset distance along a preset path. In the specific implementation process, the specific implementation manner of the preset drag operation may be selected according to specific needs.
任务切换模块 406用于在拖拽检测模块 404检测到所述预设拖拽操作 时, 将所述预设拖拽操作所针对的任务图标所对应的后台任务切换至前 图 5是依据本发明一实施例的终端 500的示范性逻辑结构示意图。图 5所示的终端 500包括一触摸屏(未示出) , 且该终端 500上运行有至少 一个后台任务。 如图 5所示, 本发明实施例提供的终端 500包括任务图标 显示模块 502、 拖拽检测模块 504和任务切换模块 506。 此外, 终端 500 还包括长时触摸检测模块 5032、 计算模块 5034和放大显示模块 5036。  The task switching module 406 is configured to switch the background task corresponding to the task icon for the preset drag operation to the front when the drag detection module 404 detects the preset drag operation. FIG. 5 is according to the present invention. An exemplary logical structure diagram of a terminal 500 of an embodiment. The terminal 500 shown in Fig. 5 includes a touch screen (not shown), and the terminal 500 runs on at least one background task. As shown in FIG. 5, the terminal 500 provided by the embodiment of the present invention includes a task icon display module 502, a drag detection module 504, and a task switching module 506. In addition, the terminal 500 further includes a long-term touch detection module 5032, a calculation module 5034, and an enlarged display module 5036.
类似于图 4中的任务图标显示模块 402 , 任务图标显示模块 502用于 在所述触摸屏的当前显示界面上显示一任务栏,并在该任务栏内显示所述 至少一个后台任务的任务图标。  Similar to the task icon display module 402 in FIG. 4, the task icon display module 502 is configured to display a task bar on the current display interface of the touch screen, and display the task icon of the at least one background task in the task bar.
在具体实现过程中,任务图标显示模块 502可具体用于将上述任务栏 一直显示在终端触摸屏的当前显示界面上。 此外, 任务图标显示模块 502 还可用于检测触摸所述触摸屏的当前显示界面的操作,并在检测到触摸所 述触摸屏的当前显示界面的操作时, 在当前显示界面上显示所述任务栏。 在釆用后一种方式的情况下,为防止显示的任务栏妨碍用户对当前显示界 面上正在显示的主要内容(例如但不限于游戏画面,视频画面等)的观看 , 任务图标显示模块 402可用于在显示上述任务栏之后,在一预设显示时长 之内持续检测是否发生对终端的操作,若在预设显示时长之内没有检测到 对终端的任何操作, 取消对上述任务栏的显示。 在具体实现过程中, 可根 据具体需要来设置上述任务栏的显示时机。 长时触摸检测模块 5032 , 用于检测针对任务图标显示模块 502所显 示的任务栏的长时触摸操作, 其中, 所述长时触摸操作为触摸时长超过预 设触摸时长阔值的触摸操作。 In a specific implementation process, the task icon display module 502 can be specifically configured to display the task bar on the current display interface of the terminal touch screen. In addition, the task icon display module 502 can also be used to detect an operation of touching the current display interface of the touch screen, and display the task bar on the current display interface upon detecting an operation of touching the current display interface of the touch screen. In the case of the latter method, the task icon display module 402 is available to prevent the displayed task bar from obstructing the user from viewing the main content being displayed on the current display interface (such as, but not limited to, a game screen, a video screen, etc.). After the task bar is displayed, it is continuously detected whether the operation of the terminal occurs within a preset display duration. If any operation on the terminal is not detected within the preset display duration, the display of the task bar is cancelled. In the specific implementation process, the display timing of the above task bar can be set according to specific needs. The long-time touch detection module 5032 is configured to detect a long-time touch operation for the task bar displayed by the task icon display module 502, wherein the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value.
计算模块 5034 , 用于在长时触摸检测模块 5034检测到所述长时触摸 操作时,根据该长时触摸操作所对应的触摸位置计算一待放大区域,其中, 所述待放大区域为所述任务栏的一部分,且所述触摸位置位于该待放大区 域之内。 有关上述待放大区域的计算方法已经在上文进行了详细的描述, 因此此处不再赘述。  The calculation module 5034 is configured to: when the long-term touch detection module 5034 detects the long-time touch operation, calculate an area to be enlarged according to the touch position corresponding to the long-time touch operation, where the area to be enlarged is the A portion of the taskbar, and the touch location is within the area to be enlarged. The calculation method for the above-mentioned area to be enlarged has been described in detail above, and therefore will not be described herein.
放大显示模块 5036 , 用于显示一放大显示窗口, 并通过所述放大显 示窗口放大显示计算模块 5032所算得的待放大区域。  The enlarged display module 5036 is configured to display an enlarged display window, and the enlarged area to be enlarged calculated by the calculation module 5032 is enlarged by the enlarged display window.
应注意, 在具体实现过程中, 上述长时触摸检测模块 5032、 计算模 块 5034和放大显示模块 5036的具体功能可统一由一放大模块 (未示出) 来完成, 即该放大模块用于:  It should be noted that, in a specific implementation process, the specific functions of the long-term touch detection module 5032, the calculation module 5034, and the enlarged display module 5036 may be uniformly implemented by an amplification module (not shown), that is, the amplification module is used to:
检测针对任务图标显示模块 502所显示的任务栏的长时触摸操作,其 中, 所述长时触摸操作为触摸时长超过预设触摸时长阔值的触摸操作; 在检测到所述长时触摸操作时,根据该长时触摸操作所对应的触摸位 置计算一待放大区域, 其中, 所述待放大区域为所述任务栏的一部分, 且 所述触摸位置位于该待放大区域之内;  Detecting a long-time touch operation for the task bar displayed by the task icon display module 502, wherein the long-time touch operation is a touch operation in which the touch duration exceeds a preset touch duration value; when the long-time touch operation is detected Calculating an area to be enlarged according to the touch position corresponding to the long-time touch operation, wherein the area to be enlarged is a part of the task bar, and the touch position is located in the area to be enlarged;
显示一放大显示窗口,并通过所述放大显示窗口放大显示上述待放大 区域。  An enlarged display window is displayed, and the area to be enlarged is enlarged by the enlarged display window.
类似于图 4中的拖拽检测模块 404 , 拖拽检测模块 504用于检测针对 任务图标显示模块 502所显示的一任务图标的预设拖拽操作。 具体来说, 拖拽检测模块 504具体用于检测针对放大显示模块 5036所显示的放大显 示窗口内的放大显示的待放大区域内一任务图标的预设拖拽操作。当放大 显示模块 5036的功能由上述放大模块 (未示出) 来完成时, 拖拽检测模 块 504 具体用于检测针对放大模块所显示的放大显示窗口内的放大显示 的待放大区域内一任务图标的预设拖拽操作。 Similar to the drag detection module 404 in FIG. 4, the drag detection module 504 is configured to detect a preset drag operation for a task icon displayed by the task icon display module 502. Specifically, the drag detection module 504 is specifically configured to detect a preset drag operation of a task icon in the area to be enlarged displayed in the enlarged display window displayed in the enlarged display window displayed by the enlarged display module 5036. When the function of the enlarged display module 5036 is completed by the above-mentioned amplification module (not shown), the drag detection module 504 is specifically configured to detect an enlarged display within the enlarged display window displayed for the amplification module. The preset drag operation of a task icon in the area to be enlarged.
在具体实现过程中,所述预设拖拽操作为将所述任务图标拖拽至当前 显示界面上的预设位置的操作。 此外, 所述预设拖拽操作还可以为将所述 任务图标拖拽预设距离的操作。 此外, 所述预设拖拽操作还可以为沿预设 路径拖拽所述任务图标的操作。 此外, 所述预设拖拽操作还可以为沿预设 路径将所述任务图标拖拽至当前显示界面上的预设位置的操作。 此外, 所 述预设拖拽操作还可以为沿预设路径将所述任务图标拖拽预设距离的操 作。 在具体实现过程中, 可根据具体需要来选择预设拖拽操作的具体实现 方式。  In a specific implementation process, the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface. In addition, the preset drag operation may also be an operation of dragging the task icon by a preset distance. In addition, the preset drag operation may also be an operation of dragging the task icon along a preset path. In addition, the preset drag operation may also be an operation of dragging the task icon along a preset path to a preset position on the current display interface. In addition, the preset drag operation may also be an operation of dragging the task icon by a preset distance along a preset path. In the specific implementation process, the specific implementation mode of the preset drag operation can be selected according to specific needs.
类似于图 4中的任务切换模块 406 , 任务切换模块 506用于在拖拽检 测模块 504检测到所述预设拖拽操作时,将所述预设拖拽操作所针对的任 务图标所对应的后台任务切换至前台。  Similar to the task switching module 406 in FIG. 4, the task switching module 506 is configured to: when the drag detecting module 504 detects the preset drag operation, corresponding to the task icon for which the preset drag operation is directed The background task switches to the foreground.
本领域普通技术人员可知,上述方法中的全部或部分步骤可以通过程 序指令相关的硬件完成, 该程序可以存储于一计算机可读存储介质中, 该 计算机可读存储介质如 ROM、 RAM和光盘等。  A person skilled in the art may know that all or part of the above steps may be completed by hardware related to program instructions, and the program may be stored in a computer readable storage medium such as a ROM, a RAM, an optical disc, or the like. .
综上所述, 以上仅为本发明的较佳实施例而已, 并非用于限定本发明 的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、 改进等, 均应包含在本发明的保护范围之内。  In conclusion, the above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 claims
1、 一种任务切换方法, 应用于终端, 该终端配置有一触摸屏, 且该 终端上运行有至少一个后台任务, 其特征在于, 所述任务切换方法包括: 在所述触摸屏的当前显示界面上显示一任务栏,并在该任务栏内显示 所述至少一个后台任务的任务图标; 1. A task switching method, applied to a terminal, the terminal is configured with a touch screen, and at least one background task is running on the terminal, characterized in that the task switching method includes: displaying on the current display interface of the touch screen a taskbar, and display the task icon of the at least one background task in the taskbar;
检测针对所述任务栏内一任务图标的预设拖拽操作; Detecting a preset drag operation for a task icon in the taskbar;
在检测到所述预设拖拽操作时,将所述预设拖拽操作所针对的任务图 标所对应的后台任务切换至前台。 When the preset drag operation is detected, the background task corresponding to the task icon targeted by the preset drag operation is switched to the foreground.
2、 如权利要求 1所述的任务切换方法, 其特征在于, 所述在所述触 摸屏的当前显示界面上显示一任务栏具体为: 2. The task switching method according to claim 1, wherein the specific steps of displaying a task bar on the current display interface of the touch screen are:
检测触摸所述触摸屏的当前显示界面的操作; Detecting an operation of touching the current display interface of the touch screen;
在检测到触摸所述触摸屏的当前显示界面的操作时,在当前显示界面 上显示所述任务栏。 When an operation of touching the current display interface of the touch screen is detected, the task bar is displayed on the current display interface.
3、 如权利要求 1所述的任务切换方法, 其特征在于, 在所述在所述 触摸屏的当前显示界面上显示一任务栏,并在该任务栏内显示所述至少一 个后台任务的任务图标之后,并且在所述检测针对所述任务栏内一任务图 标的预设拖拽操作之前, 所述方法还包括: 3. The task switching method according to claim 1, wherein a task bar is displayed on the current display interface of the touch screen, and a task icon of the at least one background task is displayed in the task bar. After that, and before detecting a preset drag operation for a task icon in the task bar, the method further includes:
检测针对所述任务栏的长时触摸操作, 其中, 所述长时触摸操作为触 摸时长超过预设触摸时长阈值的触摸操作; Detect a long-term touch operation on the taskbar, wherein the long-term touch operation is a touch operation whose touch duration exceeds a preset touch duration threshold;
在检测到所述长时触摸操作时,根据该长时触摸操作所对应的触摸位 置计算一待放大区域, 其中, 所述待放大区域为所述任务栏的一部分, 且 所述触摸位置位于该待放大区域之内; When the long-term touch operation is detected, an area to be enlarged is calculated according to the touch position corresponding to the long-term touch operation, wherein the area to be enlarged is a part of the taskbar, and the touch position is located on the Within the area to be enlarged;
显示一放大显示窗口,并通过所述放大显示窗口放大显示所述待放大 区域; Display an enlarged display window, and enlarge and display the area to be enlarged through the enlarged display window;
所述检测针对所述任务栏内一任务图标的预设拖拽操作具体为: 检测针对所述放大显示窗口内放大显示的待放大区域内一任务图标 的预设拖拽操作。 The detection of a preset drag operation of a task icon in the taskbar is specifically: Detect a preset drag operation for a task icon in the area to be enlarged and displayed in the enlarged display window.
4、 如权利要求 1至 3中任一项所述的任务切换方法, 其特征在于, 所述预设拖拽操作为将所述任务图标拖拽至当前显示界面上的预设位置 的操作。 4. The task switching method according to any one of claims 1 to 3, wherein the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface.
5、 如权利要求 1至 3中任一项所述的任务切换方法, 其特征在于, 所述预设拖拽操作为将所述任务图标拖拽预设距离的操作。 5. The task switching method according to any one of claims 1 to 3, wherein the preset drag operation is an operation of dragging the task icon a preset distance.
6、 如权利要求 1至 3中任一项所述的任务切换方法, 其特征在于, 所述预设拖拽操作为沿预设路径拖拽所述任务图标的操作。 6. The task switching method according to any one of claims 1 to 3, wherein the preset drag operation is an operation of dragging the task icon along a preset path.
7、 如权利要求 1至 3中任一项所述的任务切换方法, 其特征在于, 所述预设拖拽操作为沿预设路径将所述任务图标拖拽至当前显示界面上 的预设位置的操作。 7. The task switching method according to any one of claims 1 to 3, wherein the preset drag operation is to drag the task icon along a preset path to a preset on the current display interface. location operations.
8、 如权利要求 1至 3中任一项所述的任务切换方法, 其特征在于, 所述预设拖拽操作为沿预设路径将所述任务图标拖拽预设距离的操作。 8. The task switching method according to any one of claims 1 to 3, wherein the preset drag operation is an operation of dragging the task icon along a preset path for a preset distance.
9、 一种终端, 包括一触摸屏, 且该终端上运行有至少一个后台任务, 其特征在于, 所述终端包括: 9. A terminal, including a touch screen, and at least one background task running on the terminal, characterized in that the terminal includes:
任务图标显示模块,用于在所述触摸屏的当前显示界面上显示一任务 栏, 并在该任务栏内显示所述至少一个后台任务的任务图标; A task icon display module, configured to display a task bar on the current display interface of the touch screen, and display the task icon of the at least one background task in the task bar;
拖拽检测模块,用于检测针对任务图标显示模块所显示的一任务图标 的预设拖拽操作; A drag detection module, used to detect a preset drag operation for a task icon displayed by the task icon display module;
任务切换模块, 用于在拖拽检测模块检测到所述预设拖拽操作时, 将 所述预设拖拽操作所针对的任务图标所对应的后台任务切换至前台。 The task switching module is configured to switch the background task corresponding to the task icon targeted by the preset drag operation to the foreground when the drag detection module detects the preset drag operation.
10、 如权利要求 9所述的终端, 其特征在于, 所述任务图标显示模块 具体用于: 10. The terminal according to claim 9, characterized in that the task icon display module is specifically used for:
检测触摸所述触摸屏的当前显示界面的操作; Detecting an operation of touching the current display interface of the touch screen;
在检测到触摸所述触摸屏的当前显示界面的操作时,在当前显示界面 上显示所述任务栏。 When an operation of touching the current display interface of the touch screen is detected, on the current display interface The taskbar is displayed.
11、 如权利要求 9所述的终端, 其特征在于, 所述终端还包括: 长时触摸检测模块,用于检测针对所述任务图标显示模块所显示的任 务栏的长时触摸操作, 其中, 所述长时触摸操作为触摸时长超过预设触摸 时长阔值的触摸操作; 11. The terminal according to claim 9, wherein the terminal further includes: a long-term touch detection module, configured to detect a long-term touch operation on the task bar displayed by the task icon display module, wherein, The long-term touch operation is a touch operation whose touch duration exceeds the preset touch duration threshold;
计算模块, 用于在长时触摸检测模块检测到所述长时触摸操作时, 根 据该长时触摸操作所对应的触摸位置计算一待放大区域, 其中, 所述待放 大区域为所述任务栏的一部分, 且所述触摸位置位于该待放大区域之内; 放大显示模块, 用于显示一放大显示窗口, 并通过所述放大显示窗口 放大显示所述计算模块所算得的待放大区域; The calculation module is configured to calculate an area to be enlarged based on the touch position corresponding to the long-term touch operation when the long-term touch detection module detects the long-term touch operation, wherein the area to be enlarged is the task bar. A part of the area to be amplified, and the touch position is located within the area to be amplified; an amplification display module, used to display an amplification display window, and to enlarge and display the area to be amplified calculated by the calculation module through the amplification display window;
所述拖拽检测模块具体用于: The drag detection module is specifically used for:
检测针对所述放大显示模块所显示的放大显示窗口内的放大显示的 待放大区域内一任务图标的预设拖拽操作。 Detect a preset drag operation for a task icon in the enlarged area to be enlarged in the enlarged display window displayed by the enlarged display module.
12、 如权利要求 9至 11 中任一项所述的终端, 其特征在于, 所述预 设拖拽操作为将所述任务图标拖拽至当前显示界面上的预设位置的操作。 12. The terminal according to any one of claims 9 to 11, wherein the preset drag operation is an operation of dragging the task icon to a preset position on the current display interface.
13、 如权利要求 9至 11 中任一项所述的终端, 其特征在于, 所述预 设拖拽操作为将所述任务图标拖拽预设距离的操作。 13. The terminal according to any one of claims 9 to 11, wherein the preset drag operation is an operation of dragging the task icon a preset distance.
14、 如权利要求 9至 11 中任一项所述的终端, 其特征在于, 所述预 设拖拽操作为沿预设路径拖拽所述任务图标的操作。 14. The terminal according to any one of claims 9 to 11, wherein the preset drag operation is an operation of dragging the task icon along a preset path.
15、 如权利要求 9至 11 中任一项所述的终端, 其特征在于, 所述预 设拖拽操作为沿预设路径将所述任务图标拖拽至当前显示界面上的预设 位置的操作。 15. The terminal according to any one of claims 9 to 11, wherein the preset drag operation is to drag the task icon along a preset path to a preset position on the current display interface. operate.
16、 如权利要求 9至 11 中任一项所述的终端, 其特征在于, 所述预 设拖拽操作为沿预设路径将所述任务图标拖拽预设距离的操作。 16. The terminal according to any one of claims 9 to 11, wherein the preset drag operation is an operation of dragging the task icon along a preset path for a preset distance.
PCT/CN2012/087832 2012-12-28 2012-12-28 Task switching method and terminal WO2014101101A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/087832 WO2014101101A1 (en) 2012-12-28 2012-12-28 Task switching method and terminal
CN2012800019399A CN103229133A (en) 2012-12-28 2012-12-28 Task switching method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087832 WO2014101101A1 (en) 2012-12-28 2012-12-28 Task switching method and terminal

Publications (1)

Publication Number Publication Date
WO2014101101A1 true WO2014101101A1 (en) 2014-07-03

Family

ID=48838327

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087832 WO2014101101A1 (en) 2012-12-28 2012-12-28 Task switching method and terminal

Country Status (2)

Country Link
CN (1) CN103229133A (en)
WO (1) WO2014101101A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385503A (en) * 2016-09-19 2017-02-08 努比亚技术有限公司 Method for switching background applications, and mobile terminal

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530037A (en) * 2013-10-22 2014-01-22 陈旺新 Method and system for enabling user to rapidly have access to browser through intelligent terminal
CN105204707A (en) * 2014-06-23 2015-12-30 联想(北京)有限公司 Display object displaying method and electronic equipment
CN104850345A (en) * 2015-04-29 2015-08-19 努比亚技术有限公司 Mobile terminal and fast task switching method therefor
CN105094534A (en) * 2015-06-30 2015-11-25 青岛海信移动通信技术股份有限公司 Method and device for window display switching of intelligent hand-held equipment
CN106933438A (en) * 2015-12-29 2017-07-07 宇龙计算机通信科技(深圳)有限公司 A kind of application display method, device and mobile terminal
CN105955808B (en) * 2016-04-21 2018-12-11 北京小米移动软件有限公司 The task management method and device of instant messaging application
CN106201165A (en) * 2016-06-23 2016-12-07 北京金山安全软件有限公司 Information display method and device and mobile terminal
WO2018018292A1 (en) * 2016-07-24 2018-02-01 张鹏华 Method for feeding back usage condition of application shortcut switching technique, and switching system
WO2018018294A1 (en) * 2016-07-24 2018-02-01 张鹏华 Application switching method for mobile phone, and switching system
CN106547446A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 Using switching device and method
CN107613110A (en) * 2017-08-31 2018-01-19 努比亚技术有限公司 Method, terminal and the computer-readable recording medium that adjustment terminal interface is shown
CN109634696A (en) 2017-10-09 2019-04-16 华为技术有限公司 A kind of method and terminal device showing multiple content cards
CN107765968A (en) * 2017-10-19 2018-03-06 广东欧珀移动通信有限公司 Target switching method, device, terminal and computer-readable recording medium
CN107765959B (en) * 2017-11-07 2020-06-30 Oppo广东移动通信有限公司 Background application program display method and terminal
CN110865743A (en) * 2019-09-02 2020-03-06 华为技术有限公司 Task management method and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110202872A1 (en) * 2010-02-12 2011-08-18 Samsung Electronics Co., Ltd. Apparatus and method for performing multi-tasking
CN102207825A (en) * 2011-05-23 2011-10-05 昆山富泰科电脑有限公司 Method for switching multiple applications in portable multifunctional device and user graphical interface
US20110314389A1 (en) * 2010-06-18 2011-12-22 Sweetlabs, Inc. Systems and methods for integration of an application runtime environment into a user computing environment
CN102541455A (en) * 2012-01-05 2012-07-04 青岛海信移动通信技术股份有限公司 Method and device for rapidly switching operations
CN102662584A (en) * 2012-04-01 2012-09-12 北京风灵创景科技有限公司 Multi-application execution method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110202872A1 (en) * 2010-02-12 2011-08-18 Samsung Electronics Co., Ltd. Apparatus and method for performing multi-tasking
US20110314389A1 (en) * 2010-06-18 2011-12-22 Sweetlabs, Inc. Systems and methods for integration of an application runtime environment into a user computing environment
CN102207825A (en) * 2011-05-23 2011-10-05 昆山富泰科电脑有限公司 Method for switching multiple applications in portable multifunctional device and user graphical interface
CN102541455A (en) * 2012-01-05 2012-07-04 青岛海信移动通信技术股份有限公司 Method and device for rapidly switching operations
CN102662584A (en) * 2012-04-01 2012-09-12 北京风灵创景科技有限公司 Multi-application execution method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385503A (en) * 2016-09-19 2017-02-08 努比亚技术有限公司 Method for switching background applications, and mobile terminal

Also Published As

Publication number Publication date
CN103229133A (en) 2013-07-31

Similar Documents

Publication Publication Date Title
WO2014101101A1 (en) Task switching method and terminal
US20200241746A1 (en) Multi-task management method and terminal device
US10419823B2 (en) Method for controlling multimedia playing, apparatus thereof and storage medium
US11054988B2 (en) Graphical user interface display method and electronic device
US8839129B2 (en) User interface for a communication device
US8286106B2 (en) System and method for interacting with status information on a touch screen device
WO2022048633A1 (en) Display method and apparatus and electronic device
CN104142779B (en) user interface control method, device and terminal
EP3499353A1 (en) Apparatus and method for displaying notification in electronic device
CN107181858B (en) Method and terminal for displaying notification message
JP5902556B2 (en) Electronic device, control method, and control program
CN102830906B (en) Method and the terminal unit of file process is carried out based on user interface
CN108170342B (en) Application program interface display method and device, terminal and readable storage medium
EP2821909A1 (en) Electronic device and method for displaying status notification information
JP2013084233A (en) Device, method, and program
WO2017113821A1 (en) Method and apparatus for operating smart phone and smart phone
WO2017063443A1 (en) Message display method and apparatus
WO2019201140A1 (en) Application display method and apparatus, storage medium, and electronic device
WO2022156668A1 (en) Information processing method and electronic device
WO2016095386A1 (en) Short message processing method and short message processing terminal
WO2017032066A1 (en) Contact management method and mobile terminal
WO2015196976A1 (en) Method and system for optimization of sliding performance of asynchronously loaded data, and mobile terminal
KR20130011905A (en) Apparatus and method for character input through a scroll bar in a mobile device
WO2016106934A1 (en) Method, device and terminal for switching operating system
WO2018018685A1 (en) Screen control method, and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12891288

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12891288

Country of ref document: EP

Kind code of ref document: A1