CN108563380B - Function starting method and terminal - Google Patents

Function starting method and terminal Download PDF

Info

Publication number
CN108563380B
CN108563380B CN201810286598.3A CN201810286598A CN108563380B CN 108563380 B CN108563380 B CN 108563380B CN 201810286598 A CN201810286598 A CN 201810286598A CN 108563380 B CN108563380 B CN 108563380B
Authority
CN
China
Prior art keywords
mode
preset
function
starting
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810286598.3A
Other languages
Chinese (zh)
Other versions
CN108563380A (en
Inventor
王东生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810286598.3A priority Critical patent/CN108563380B/en
Publication of CN108563380A publication Critical patent/CN108563380A/en
Application granted granted Critical
Publication of CN108563380B publication Critical patent/CN108563380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0482Interaction with lists of selectable items, e.g. menus
    • 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

Abstract

The embodiment of the invention provides a method and a terminal for starting a function, which are applied to the technical field of terminals and are used for solving the problems that the process of executing the function corresponding to a virtual key by the terminal is complex and time-consuming. The method comprises the following steps: when the working mode of the target function is the second mode, if the first operation triggered on the first area is detected to be the first preset operation, the target function is started, the first preset operation is the starting operation of the target function in the first mode, and the target function is the function corresponding to the function trigger point in the first area.

Description

Function starting method and terminal
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a method for starting a function and a terminal.
Background
With the development of terminal technology, the frequency of using the terminal by the user is higher and higher, and the requirement of the user on the speed of responding to the user operation by the terminal is higher and higher.
Currently, a user may select to display a virtual key (e.g., a home key, a menu key, a return key, etc.) on a display screen of a terminal, or may select not to display a virtual key (e.g., hide a virtual key) on a display screen of a terminal. When the terminal is in a mode of displaying the virtual keys, the terminal can execute the functions corresponding to the virtual keys by detecting the clicking operation of a user on the displayed virtual keys; when the terminal is in a mode of hiding the virtual key, the terminal can respond to the function corresponding to the virtual key by detecting the upward sliding operation of the user in the area corresponding to the virtual key.
After the user switches the mode of hiding the virtual key to the mode of displaying the virtual key, the user may habitually slide the virtual key when wanting to use the function of the virtual key, at this time, the terminal may display a new interface, and the user needs to close the new interface displayed by the terminal first and then click the virtual key to trigger the function of the virtual key. The terminal needs to respond to the user's sliding operation, closing operation, and clicking operation to execute the function corresponding to the virtual key, so that the process of executing the function corresponding to the virtual key by the terminal is complex and time-consuming.
Disclosure of Invention
The embodiment of the invention provides a method for starting a function and a terminal, and aims to solve the problems that the process of executing the function corresponding to a virtual key by the terminal is complex and time-consuming.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for starting a function, where the method includes: when the working mode of the target function is a second mode, if the first operation triggered on the first area is detected to be a first preset operation, starting the target function; the first preset operation is a starting operation of the target function in a first mode, and the target function is a function corresponding to the function trigger point in the first area.
In a second aspect, an embodiment of the present invention further provides a terminal, where the terminal includes a starting module; the starting module is used for starting the target function if a first operation triggered on the first area is detected as a first preset operation when the working mode of the target function is a second mode; the first preset operation is a starting operation of the target function in the first mode, and the target function is a function corresponding to the function trigger point in the first area.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a memory, and a computer program stored in the memory and being executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for starting functions according to the first aspect.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for starting functions as described in the first aspect.
In the embodiment of the present invention, when the working mode of the target function is the second mode, if it is detected that the first operation triggered on the first area is the first preset operation, the terminal starts the target function. The terminal starts the target function according to the first operation, the first preset operation is the starting operation of the target function in the first mode, and the user can start the target function in the second mode without triggering the preset operation in the second mode, so that the process of starting the target function by the terminal is simple and efficient, and the problems that the process of executing the function corresponding to the virtual key by the terminal is complex and time-consuming are solved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for starting a function according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for starting a function according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for starting a function according to another embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an operation of a display interface according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a possible structure of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a possible structure of another terminal according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a possible structure of another terminal according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a possible structure of another terminal according to an embodiment of the present invention;
fig. 11 is a schematic hardware structure diagram of a terminal according to various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the method for starting a function according to the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for starting a function provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for starting a function may run based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the method for starting the function provided by the embodiment of the invention by running the software program in the android operating system.
It should be noted that, in the embodiment of the present invention, the starting mode of the target function may include at least two modes, and the working mode of the target function includes a first mode and a second mode, for example, the starting operation of the target function in the first mode defaults to a first preset operation, the starting operation of the target function in the second mode defaults to a second preset operation, and the default starting operation of the target function in the first mode is different from the default starting operation of the target function in the second mode. With reference to fig. 2, a method for starting a function according to an embodiment of the present invention is described below, where fig. 2 is a schematic flow chart of the method for starting a function according to the embodiment of the present invention, and includes S201:
s201, when the working mode of the target function is a second mode, if the terminal detects that a first operation triggered on a first area is a first preset operation, starting the target function by the terminal; the first preset operation is starting operation of a target function in the first mode, and the target function is a function corresponding to the function trigger point in the first area.
Optionally, the first preset operation may be sliding, clicking, pressing, or the like; the first area can be any one area in the terminal; the target function may be a system function of the terminal, or may be a function of a third-party application installed by the user through the terminal.
Fig. 3 is a schematic interface diagram according to an embodiment of the present invention, where the function trigger point is a trigger point of a virtual key of the terminal, the virtual key of the terminal includes 3 keys, and the current display interface is a game interface opened by a user. As shown in fig. 3 (a), when the terminal is vertically displayed, the area of the virtual key of the terminal is located in the lower area of the terminal, and the menu key (typewritten), the home key (circle) and the return key (triangle) are arranged from left to right in sequence, and when the virtual key of the terminal is hidden, the virtual key shown in fig. 3 (a) is not displayed in the terminal, and the interface shown in fig. 3 (b) is displayed. When the terminal is landscape, as shown in (c) of fig. 3, the area of the virtual key of the terminal may be located in the lower area of the screen when the terminal is landscape displayed. When the terminal hides the horizontal virtual key, as shown in (d) of fig. 3, the virtual key shown in (c) of fig. 3 is not displayed in the terminal.
It should be noted that, when the terminal is in a landscape mode, the area of the virtual key of the terminal may be the same as or different from the area of the virtual key when the terminal is in a portrait mode, for example, the area is located in a left side area, a lower area, or an upper area of the screen in the landscape mode.
Of course, the virtual key may also include other keys, such as a key for pulling down a notification, and a key for switching an application running in the background, the starting operations of different virtual keys in the same state may be the same or different, and the starting operation for starting the virtual key by the same virtual key in different states is different, which is not specifically limited in the embodiment of the present invention.
It can be understood that the virtual key in the terminal may be one virtual key or a plurality of virtual keys, and an arrangement sequence of the virtual keys in the terminal may be any one sequence, which is not specifically limited in this embodiment of the present invention.
For example, assuming that the target function is a function of a home key in the terminal virtual keys, the virtual key is hidden (i.e., the working mode of the home key is the first mode), and the user can use the function of the home key by sliding on the hidden position of the home key (i.e., the first preset operation). The method includes the steps that a user sets virtual key display (namely, the working mode of a home key is a second mode) within a period of time, when the virtual key display is carried out, the user can use the function of the home key by clicking (namely, second preset operation) the home key of the virtual key, when the user sets the virtual key of the terminal to be hidden, the terminal responds to the clicking operation when the triggered operation is the clicking operation carried out at the position corresponding to the home key, and when the virtual key is hidden, the function corresponding to the home key is started.
It is understood that, in the above example, the first mode may also be a working mode when the home key is displayed, the first preset operation corresponding to the function of starting the home key is clicking, the second mode may also be a working mode when the home key is hidden, and the second preset operation corresponding to the function of starting the home key is sliding upwards. In this case, when the home key is displayed, when the terminal detects an operation of clicking at the position of the home key by the user, the terminal may also start a function corresponding to the home key.
It should be noted that, when the virtual keys are hidden, each virtual key in the terminal may be hidden or may be partially hidden.
Optionally, in the embodiment of the present invention, the operation modes of the functions of the virtual key corresponding to the states in which the display and the hiding of the virtual key are used as the function trigger points are respectively described as the first mode and the second mode, which may of course also be described as different states of the function trigger points of other functions, and this is not specifically limited in the embodiment of the present invention.
In the method for starting a function provided by the embodiment of the present invention, when the working mode of the target function is the second mode, if the terminal detects that the first operation triggered in the first area is the first preset operation, the terminal starts the target function. The terminal starts the target function according to the first operation, the first preset operation is the starting operation of the target function in the first mode, and the user can start the target function in the second mode without triggering the preset operation in the second mode, so that the process of starting the target function by the terminal is simple and efficient, and the problems that the process of executing the function corresponding to the virtual key by the terminal is complex and time-consuming are solved.
In a possible implementation manner, the operation mode is the second mode, and as shown in fig. 4, before S201, the method for starting the function further includes S202:
s202, if the terminal detects that the triggered third operation is the second preset operation within the first preset duration after the second operation triggered on the first area is detected as the first preset operation, adding the first preset operation as the starting operation of the target function in the second mode.
The second preset operation is a starting operation of the target function in the second mode.
It should be noted that, in this embodiment, when the operation mode is the second mode, when the terminal detects that the second operation triggered by the user on the first area is the first preset operation, the terminal does not have a corresponding response. When the user finds that the terminal does not respond after performing the second operation, the user may perform a third operation. Since the third operation is a starting operation of the target function in the second mode, the terminal may start the target function after the terminal detects the third operation triggered by the user.
It can be understood that, after the terminal adds the first preset operation as the starting operation of the target function in the second mode, if the terminal detects that the operation of the user is the first preset operation again in the second mode, the terminal may start the target function.
It should be noted that, the terminal adds the first preset operation as the starting operation of the target function in the second mode, and may start the target function in response to the third operation after the terminal detects the third operation, or may start the target function in response to the third operation, which is not specifically limited in this embodiment of the present invention.
Based on the scheme, within a first preset time length after detecting that the second operation triggered on the first area is the first preset operation, if the terminal detects that the third operation triggered again is the second preset operation, the terminal may determine that the previous second operation is actually the user for starting the target function in the second mode, and therefore, after detecting that the third operation triggered by the user is the second preset operation, the terminal adds the first preset operation as the starting operation of the target function in the second mode, so that when the terminal detects that the working mode is the second mode after adding, the terminal may detect that the second operation or the third operation triggered by the user may start the target function.
In a possible implementation manner, when the operation mode is the second mode, as shown in fig. 5, the method for starting the function further includes, before S201, S203-S205:
s203, if the terminal detects that the second operation triggered on the first area is the first preset operation, the terminal displays a first display interface corresponding to the second operation.
It should be noted that the first display interface may be a display interface that is triggered by the second operation in error, or may also be a preset display interface corresponding to the second operation, which is not specifically limited in this embodiment of the present invention.
It should be noted that the first display interface may be a dialog box partially covered in the second display interface before operation, or may be a new display interface completely covering the second display interface before operation, which is not limited in this embodiment of the present invention.
And S204, if the terminal detects that the closing operation is triggered within a second preset time after the first display interface is displayed, the terminal cancels the display of the first display interface.
And the closing operation is used for triggering the terminal to cancel the display of the first display interface.
Optionally, the closing operation may be an operation of the user on the first display interface, or may also be an operation of the user at another location, which is not specifically limited in this embodiment of the present invention.
It can be understood that, in the second mode, when the terminal detects that the second operation on the first area is the first preset operation, the terminal displays the first display interface corresponding to the second operation in the second mode to the user, and when the terminal detects the closing operation triggered by the user within the second preset time period, it indicates that the user may not want the second operation to open the first display interface.
It should be noted that the second preset time length is a shorter time length, which indicates that the user may not need the terminal to display the first display interface, and after the terminal displays the first display interface, the user wants to start the target function, and the user closes the first display interface in a shorter time to continue to execute the operation of starting the target function.
S205, if the triggered third operation is detected to be the second preset operation within the third preset time after the terminal cancels the display of the first display interface, the terminal adds the first preset operation as the starting operation of the target function in the second mode.
The second preset operation is a starting operation of the target function in the second mode.
It should be noted that the third preset time period is a shorter time period, for example, within 3 seconds or within 5 seconds, and the specific value is not limited in the embodiment of the present invention.
It can be understood that, when the terminal detects that the triggered third operation is the second preset operation within the third preset time period after the first display interface is cancelled to be displayed, it indicates that the user actually wishes to start the target function in the second mode through the second operation. That is, the user wants to implement the response of the terminal corresponding to the third operation through the second operation.
Based on the scheme, after the terminal detects that the second operation triggered on the first area is the first preset operation, if the terminal detects the triggered closing operation within a second preset time after the first display interface corresponding to the second operation is displayed, the closing operation is used for triggering the terminal to cancel the display of the first display interface, and the terminal detects that the third operation triggered by the user is the second preset operation within a third preset time after the terminal cancels the display of the first display interface, the terminal indicates that the user actually wants to start the target function in the second mode through the second operation. That is, the user wants to implement the response of the terminal corresponding to the third operation through the second operation. After detecting that the third operation triggered by the user is the second preset operation, the terminal adds the first preset operation as the starting operation of the target function in the second mode, so that the terminal can start the target function when the working mode is the second mode after the first preset operation is added.
In a possible implementation manner, after S202 or S205, the method for starting the function further includes S206:
and S206, if the terminal detects that the operation triggered on the first area each time is the second preset operation within the fourth preset time, deleting the first preset operation in the second mode.
Optionally, the fourth preset duration may be different durations selected according to different user habits. If the terminal detects that the user is easy to adapt to new operation, the fourth preset time period may be set to a shorter time, such as several hours, half a day, or a day; if the terminal detects that the user is hard to adapt to a new operation, the fourth preset time period may be set to a longer time, for example, two days, three days, seven days, or the like.
It should be noted that the example of the fourth preset time period is only an exemplary illustration, and the specific time period of the fourth preset time period may be flexibly adjusted according to needs, which is not specifically limited in the embodiment of the present invention.
Optionally, in this embodiment of the present invention, the "deleting the first preset operation in the second mode" may be deleting the data of the added first preset operation, or hiding the data of the added first preset operation, or moving the data of the added first preset operation to another storage location, or the like. If the added first preset operation data is not deleted in the "delete first preset operation in the second mode", when the terminal detects that the terminal adds the first preset operation as the starting operation of the target function in the second mode again, the hidden added first preset operation data can be displayed, and the added first preset data moved to other storage positions can also be moved to the corresponding storage positions.
It can be understood that, after "deleting the first preset operation in the second mode", when the terminal detects that the operation triggered by the user on the first area in the second mode is the first preset operation, the terminal does not start the target function any more, and the terminal may respond to other functions corresponding to the first preset operation or may not respond to the first preset operation, which is not specifically limited in the embodiment of the present invention.
For example, assuming that the first mode is an operation mode of the virtual key function when the virtual key is hidden, the sliding operation at the position corresponding to the virtual key is a first preset operation, and the second mode is an operation mode of the virtual key function when the virtual key is displayed, both the clicking operation on the displayed virtual key and the sliding operation at the position corresponding to the virtual key (i.e., the position where the virtual key is displayed) are operations for starting the function corresponding to the virtual key. When the user's operations on the displayed virtual keys within 24 hours (i.e., the fourth preset time period) are all click operations, the sliding operation when the virtual key display is deleted (i.e., the second mode) is an operation of starting the corresponding function of the virtual key.
Based on the scheme, when the terminal adds the first preset operation as the starting operation of the target function in the second mode, and the working mode is the second mode, if the terminal detects that the operations triggered on the first area each time are the second preset operations within the fourth preset time length, it indicates that the user is used to start the target function by using the second preset operation in the second mode, the user does not start the target function by using the first preset operation any more, and the first preset operation may have other corresponding functions in the second mode.
In a possible implementation manner, after S202 or S205, the method for starting the function further includes S207:
and S207, if the number of times that the target operation is detected to be the second preset operation is larger than or equal to the preset threshold value, deleting the first preset operation in the second mode by the terminal, wherein the target operation is the operation continuously triggered on the first area.
It is to be understood that the operation triggered in "the target operation is an operation triggered continuously on the first area" refers to an operation for starting the target function, and between respective ones of the target operations, the user may trigger other operations on the non-first area.
It should be noted that the preset threshold of the number of the second preset operations may be a default number of times in the terminal, or may also be a number of times determined by the terminal through learning the behavior habit of the user, for example, the preset threshold of the number of times of the second preset operations is determined according to the behavior habit of the user if it is determined that the user is used to start the target function through the second preset operations after a certain number of consecutive operations are performed through previous historical data of the user, which is not specifically limited in the embodiment of the present invention.
For example, if the first mode is an operation mode of the function of the virtual key when the virtual key is displayed, the clicking operation at the position corresponding to the virtual key is a first preset operation, and the second mode is an operation mode of the function of the virtual key when the virtual key is hidden, and both the clicking operation and the sliding operation at the position corresponding to the hidden virtual key are operations for starting the function corresponding to the virtual key. When the user performs sliding operation at the position corresponding to the hidden virtual key for 20 times, the clicking operation is the operation of starting the function corresponding to the virtual key when the hiding of the virtual key is deleted (i.e. the second mode).
Based on the scheme, after the terminal adds the first preset operation as the starting operation of the target function in the second mode, when the working mode is the second mode, if the terminal detects that the number of times that the target operation is the second preset operation is greater than or equal to the preset threshold, the terminal indicates that the user is already used to start the target function by using the second preset operation in the second mode, the user does not start the target function by using the first preset operation any more, and the first preset operation may have other corresponding functions in the second mode.
Exemplarily, it is assumed that the target function is a function of a virtual key return key, the first mode is a working mode corresponding to a state in which the return key is hidden, the first preset operation is an upward-sliding operation, the second mode is a working mode corresponding to a state in which the return key is displayed, the second preset operation is a clicking operation, and the first area is a lower area of the terminal screen. Assuming that the user uses the terminal for half a year in a state where the return key in the terminal is hidden, the user sets the mode in which the virtual key of the terminal is displayed one week ago, that is, the return key operation mode is the second mode. Due to the habit of the user, after the user sets the virtual key of the terminal to the display mode, the user often slides up the position corresponding to the return key (i.e., slides up the displayed return key) when the user wants to use the return key. Fig. 6 is an operation schematic diagram of a display interface according to an embodiment of the present invention, as shown in (a) of fig. 6, a current display interface of a user is an interface that displays information of three pages in an address book, when a virtual key of a terminal is displayed, the terminal detects a slide-up operation of the user at a position corresponding to a return key, and in response to the detected slide-up operation, as shown in (b) of fig. 6, the terminal displays an interface 1 to the user, the user finds, after seeing the displayed interface 1, that the terminal responds to a return function of the return key that is not desired to be used by the user, the user triggers to cancel a closing operation of the display interface 1 after displaying the interface 1 for 2 seconds (i.e., within a second preset time duration), the terminal continues to display the interface shown in (a) of fig. 6 after detecting the closing operation triggered by the user, the user sees the displayed return key after closing the interface 1, the user determines that the user should click the return key in this mode to use the function of the return key, and therefore, as shown in (c) of fig. 6, the user clicks the return key 3 seconds after seeing that the interface 1 is cancelled (i.e., within the third preset time period), and the terminal displays the display interface shown in (d) of fig. 6 in response to the user's clicking operation. After the user clicks the return key, the terminal may determine that the previous slide-up operation triggered by the user is actually a function that the terminal is expected to correspond to the click operation, and therefore, the terminal adds the slide-up operation as a start operation of the return function while the return key is in the displayed state, and after the user again uses the slide-up operation as shown in (a) of fig. 6, the terminal displays a list interface displaying 10 contacts after the return key performs the return operation as shown in (d) of fig. 6 to the user. When the terminal detects that the user has performed the return function of the start return key by the click operation 20 times in succession (including the return function of the start return key using the click operation in any of the other interfaces), the terminal deletes the slide-up operation in the start operation of the return function with the return key in the displayed state. When the terminal detects a user-triggered slide-up operation while the return key is in the displayed state after the terminal deletes the slide-up operation, the terminal may display the interface 1 as shown in (b) in fig. 6.
In the method for starting a function provided in the embodiment of the present invention, after the terminal first detects that the second operation triggered on the first area is the first preset operation, if the terminal detects the closing operation triggered by the user within the second preset duration after the first display interface corresponding to the second operation is displayed, the closing operation is used to trigger the terminal to cancel the display of the first display interface, and if the terminal detects that the third operation triggered by the user is the second preset operation within the third preset duration after the terminal cancels the display of the first display interface, it indicates that the user actually wishes to start the target function in the second mode through the second operation. That is, the user wants to implement the response of the terminal corresponding to the third operation through the second operation. After detecting that the third operation triggered by the user is the second preset operation, the terminal adds the first preset operation as the starting operation of the target function in the second mode, so that the terminal can start the target function when detecting that the second operation or the third operation triggered by the user is both the second operation and the third operation after adding when the function trigger point is in the second mode. The terminal deletes the first preset operation in the second mode, so that the terminal can respond to the corresponding function of the first preset operation in the second mode when detecting that the operation of the user is the first preset operation after deletion.
Fig. 7 is a schematic diagram of a possible structure of a terminal according to an embodiment of the present invention, as shown in fig. 7, a terminal 700 includes a starting module 701; a starting module 701, configured to start the target function if a first operation triggered on the first area is detected as a first preset operation when the working mode of the target function is the second mode; the first preset operation is starting operation of a target function in the first mode, and the target function is a function corresponding to the function trigger point in the first area.
Optionally, the working mode is a second mode; referring to fig. 7, as shown in fig. 8, the terminal 700 further includes an adding module 702; an adding module 702, configured to, before detecting that a first operation triggered on a first region is a first preset operation, within a first preset duration after detecting that a second operation triggered on the first region is the first preset operation, if detecting that a third operation triggered is a second preset operation, add the first preset operation as a starting operation of a target function in a second mode, where the second preset operation is a starting operation of the target function in the second mode.
Optionally, the working mode is a second mode; referring to fig. 7, as shown in fig. 9, the terminal 700 further includes a display module 703 and an adding module 702; the display module 703 is configured to, before detecting that a first operation triggered on the first area is a first preset operation, if detecting that a second operation triggered on the first area is the first preset operation, display a first display interface corresponding to the second operation; if a closing operation triggered within a second preset time after the first display interface is displayed is detected, canceling the display of the first display interface, wherein the closing operation is used for triggering the terminal to cancel the display of the first display interface; the adding module 702 is configured to, within a third preset duration after the display module 703 cancels the display of the first display interface, add the first preset operation as a starting operation of the target function in the second mode if it is detected that the triggered third operation is the second preset operation, where the second preset operation is the starting operation of the target function in the second mode.
Optionally, with reference to fig. 8, as shown in fig. 10, the terminal 700 further includes a deletion module 704; a deleting module 704, configured to delete the first preset operation in the second mode if, within a fourth preset time period, it is detected that the operations triggered in the first area each time are the second preset operations after the adding module 702 adds the first preset operation as the starting operation of the target function in the second mode.
Optionally, with reference to fig. 8, as shown in fig. 10, the terminal 700 further includes a deletion module 704; a deleting module 704, configured to delete the first preset operation in the second mode if it is detected that the number of times that the target operation is the second preset operation is greater than or equal to a preset threshold after the adding module 702 adds the first preset operation as the starting operation of the target function in the second mode, where the target operation is an operation that is continuously triggered on the first area by the user.
Optionally, the terminal 700 may further include a detection module 705; the detection module 705 may be configured to perform the detection actions performed by the terminal in the above method embodiments and apparatus embodiments.
The terminal 700 provided in the embodiment of the present invention can implement each process implemented by the terminal in the foregoing method embodiments, and is not described here again to avoid repetition.
Fig. 11 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, and as shown in fig. 11, the terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal structure shown in fig. 11 does not constitute a limitation of the terminal, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to, when the working mode of the target function is the second mode, start the target function if it is detected that the first operation triggered on the first area is the first preset operation, where the first preset operation is a start operation of the target function in the first mode, and the target function is a function corresponding to the function trigger point in the first area.
According to the terminal provided by the embodiment of the invention, when the working mode of the terminal is the second mode, if the terminal detects that the first operation triggered in the first area is the first preset operation, the terminal can start the target function. The terminal starts the target function according to the first operation, the first preset operation is the starting operation of the target function in the first mode, and the user can start the target function in the second mode without triggering the preset operation in the second mode, so that the process of starting the target function by the terminal is simple and efficient, and the problems that the process of executing the function corresponding to the virtual key by the terminal is complex and time-consuming are solved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 11, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Optionally, an embodiment of the present invention further provides a terminal, including the processor 110 in fig. 11, the memory 109, and a computer program that is stored in the memory 109 and is executable on the processor 110, where the computer program, when executed by the processor 110, implements each process of the method embodiment of the foregoing starting function, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the method embodiment of the above-mentioned start function, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A method for initiating a function, the method comprising:
when the working mode of the target function is a second mode, if the first operation triggered on the first area is detected to be a first preset operation, starting the target function; the first preset operation is starting operation of the target function in a first mode, the first preset operation is different from a second preset operation, the second preset operation is starting operation of the target function in the second mode, and the target function is a function corresponding to a function trigger point in the first area; the first mode is a working mode for triggering and starting the function of the virtual key when the virtual key is displayed or a working mode for triggering and starting the function of the virtual key when the virtual key is hidden; the second mode is a working mode for triggering and starting the function of the virtual key when the virtual key is displayed or triggering and starting the function of the virtual key when the virtual key is hidden, and the first mode is different from the second mode.
2. The method of claim 1, wherein the operating mode is the second mode;
before detecting that the first operation triggered on the first area is the first preset operation, the method further comprises:
and if a third operation triggered is detected to be a second preset operation within a first preset duration after the second operation triggered on the first area is detected to be the first preset operation, adding the first preset operation as a starting operation of the target function in the second mode.
3. The method of claim 1, wherein the operating mode is the second mode;
before detecting that the first operation triggered on the first area is the first preset operation, the method further comprises:
if the second operation triggered on the first area is detected to be the first preset operation, displaying a first display interface corresponding to the second operation;
if a closing operation triggered within a second preset time after the first display interface is displayed is detected, canceling the display of the first display interface, wherein the closing operation is used for triggering the terminal to cancel the display of the first display interface;
and within a third preset time after the first display interface is cancelled to be displayed, if a triggered third operation is detected as a second preset operation, adding the first preset operation as a starting operation of the target function in the second mode.
4. The method according to claim 2 or 3, wherein after the adding the first preset operation as the starting operation of the target function in the second mode, the method further comprises:
and if the operation triggered on the first area each time is detected to be the second preset operation within a fourth preset time, deleting the first preset operation in the second mode.
5. The method according to claim 2 or 3, wherein after the adding the first preset operation as the starting operation of the target function in the second mode, the method further comprises:
and if the number of times that the target operation is the second preset operation is detected to be larger than or equal to a preset threshold value, deleting the first preset operation in the second mode, wherein the target operation is an operation which is continuously triggered on the first area.
6. An apparatus for implementing a boot function, the apparatus comprising a boot module;
the starting module is used for starting the target function if a first operation triggered on the first area is detected as a first preset operation when the working mode of the target function is a second mode; the first preset operation is starting operation of the target function in a first mode, the first preset operation is different from a second preset operation, the second preset operation is starting operation of the target function in the second mode, and the target function is a function corresponding to a function trigger point in the first area; the first mode is a working mode for triggering and starting the function of the virtual key when the virtual key is displayed or a working mode for triggering and starting the function of the virtual key when the virtual key is hidden; the second mode is a working mode for triggering and starting the function of the virtual key when the virtual key is displayed or triggering and starting the function of the virtual key when the virtual key is hidden, and the first mode is different from the second mode.
7. The apparatus of claim 6, wherein the operational mode is the second mode; the apparatus also includes an add module;
the adding module is configured to, before detecting that a first operation triggered on a first region is a first preset operation, within a first preset duration after detecting that a second operation triggered on the first region is the first preset operation, add the first preset operation as a starting operation of the target function in the second mode if detecting that a third operation triggered is a second preset operation.
8. The apparatus of claim 6, wherein the operational mode is the second mode; the device also comprises a display module and an adding module;
the display module is used for displaying a first display interface corresponding to a second operation if the second operation triggered on the first area is detected to be the first preset operation before the first operation triggered on the first area is detected to be the first preset operation; if a closing operation triggered within a second preset time after the first display interface is displayed is detected, canceling the display of the first display interface, wherein the closing operation is used for triggering the device to cancel the display of the first display interface;
the adding module is configured to add the first preset operation as a starting operation of the target function in the second mode if a triggered third operation is detected as a second preset operation within a third preset duration after the display module cancels the display of the first display interface.
9. The apparatus of claim 7 or 8, further comprising a deletion module;
the deleting module is configured to delete the first preset operation in the second mode if, within a fourth preset duration, it is detected that the operation triggered in the first area each time is the second preset operation after the adding module adds the first preset operation as the starting operation of the target function in the second mode.
10. The apparatus of claim 7 or 8, further comprising a deletion module;
the deleting module is configured to delete the first preset operation in the second mode if it is detected that the number of times that the target operation is the second preset operation is greater than or equal to a preset threshold after the adding module adds the first preset operation as the starting operation of the target function in the second mode, where the target operation is an operation that is continuously triggered on the first area.
11. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of initiating a function according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for starting functions of any one of claims 1-5.
CN201810286598.3A 2018-03-30 2018-03-30 Function starting method and terminal Active CN108563380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810286598.3A CN108563380B (en) 2018-03-30 2018-03-30 Function starting method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810286598.3A CN108563380B (en) 2018-03-30 2018-03-30 Function starting method and terminal

Publications (2)

Publication Number Publication Date
CN108563380A CN108563380A (en) 2018-09-21
CN108563380B true CN108563380B (en) 2020-06-30

Family

ID=63533870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810286598.3A Active CN108563380B (en) 2018-03-30 2018-03-30 Function starting method and terminal

Country Status (1)

Country Link
CN (1) CN108563380B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045566B (en) * 2019-12-11 2022-02-08 上海传英信息技术有限公司 Stylus pen, terminal, control method thereof, and computer-readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834436A (en) * 2015-05-10 2015-08-12 汪念鸿 Method for realizing terminal functional key of touch screen
CN107402676A (en) * 2017-07-31 2017-11-28 北京小米移动软件有限公司 Trigger action processing method, device and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150339004A1 (en) * 2014-05-23 2015-11-26 Apple Inc. Dynamic interface generation using command and user levels
CN105893800A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Application program icon hiding method, device and mobile phone
KR102607564B1 (en) * 2016-09-13 2023-11-30 삼성전자주식회사 Method for displying soft key and electronic device thereof
CN107678666A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of virtual key display methods, mobile terminal and computer-readable recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834436A (en) * 2015-05-10 2015-08-12 汪念鸿 Method for realizing terminal functional key of touch screen
CN107402676A (en) * 2017-07-31 2017-11-28 北京小米移动软件有限公司 Trigger action processing method, device and computer-readable recording medium

Also Published As

Publication number Publication date
CN108563380A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN110995923B (en) Screen projection control method and electronic equipment
CN110752980B (en) Message sending method and electronic equipment
CN108845853B (en) Application program starting method and mobile terminal
CN108491133B (en) Application program control method and terminal
CN111027030B (en) Permission setting method and terminal device
CN111142723B (en) Icon moving method and electronic equipment
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN109976611B (en) Terminal device control method and terminal device
CN108345425B (en) Application management method and mobile terminal
CN111163224B (en) Voice message playing method and electronic equipment
CN109408072B (en) Application program deleting method and terminal equipment
CN108681427B (en) Access right control method and terminal equipment
CN110825295B (en) Application program control method and electronic equipment
CN110225180B (en) Content input method and terminal equipment
CN110049486B (en) SIM card selection method and terminal equipment
CN110752981A (en) Information control method and electronic equipment
CN111190517B (en) Split screen display method and electronic equipment
CN109933267B (en) Method for controlling terminal equipment and terminal equipment
CN109521920B (en) Application icon control method and terminal equipment
CN110012151B (en) Information display method and terminal equipment
CN109284146B (en) Light application starting method and mobile terminal
CN110647506B (en) Picture deleting method and terminal equipment
CN110909180B (en) Media file processing method and electronic equipment
CN109857292B (en) Object display method and terminal equipment

Legal Events

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