CN107450950B - Method and device for processing starting instruction - Google Patents

Method and device for processing starting instruction Download PDF

Info

Publication number
CN107450950B
CN107450950B CN201710641423.5A CN201710641423A CN107450950B CN 107450950 B CN107450950 B CN 107450950B CN 201710641423 A CN201710641423 A CN 201710641423A CN 107450950 B CN107450950 B CN 107450950B
Authority
CN
China
Prior art keywords
function
shortcut
interface
terminal
information
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
CN201710641423.5A
Other languages
Chinese (zh)
Other versions
CN107450950A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710641423.5A priority Critical patent/CN107450950B/en
Publication of CN107450950A publication Critical patent/CN107450950A/en
Application granted granted Critical
Publication of CN107450950B publication Critical patent/CN107450950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The disclosure provides a method and a device for processing a starting instruction, and belongs to the technical field of terminals. The method comprises the following steps: when the terminal is in a standby state or a screen locking state, receiving a starting instruction of a function, wherein the starting instruction is triggered by a shortcut operation corresponding to the function; acquiring environment information and/or historical operation information of a terminal; and when the shortcut operation is determined to be misoperation according to the environment information and/or the historical operation information, the starting instruction is not executed. According to the method and the device, when a starting instruction triggered by the shortcut operation is received, the environment information and/or the historical operation information are/is firstly obtained, whether the shortcut operation is misoperation or not is determined according to the information, if the shortcut operation is misoperation, the starting instruction is not executed, namely the function is not started, and the problem that the function is started during misoperation in the prior art and resource consumption is caused is solved.

Description

Method and device for processing starting instruction
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for processing a start instruction.
Background
With the development of terminal technology, the load capacity of the terminal is stronger and stronger, and a user can install a plurality of applications on the terminal according to the use requirement of the user. For some applications on the terminal, the terminal may provide a function of quickly starting the application to enhance convenience of use of the application, such as an application frequently used by a user, such as a camera, or an application used by the user in an emergency environment, such as a flashlight.
At present, a terminal can provide a function of quickly starting an application through a shortcut key, where the shortcut key may be a physical key on the terminal or a virtual key on a terminal screen. Specifically, when the terminal is in a screen locking or screen blanking state, a user can directly operate a shortcut key on the terminal without unlocking the screen to trigger a start instruction for the application, and when the terminal receives the start instruction, the application can be started. Taking a mobile phone as an example, when the mobile phone is in a black screen state, the user can double-click a volume down key of the mobile phone to trigger a start instruction of the camera, or when the mobile phone is in a screen locking state, the user can perform sliding operation on a designated option on a screen locking interface of the mobile phone to trigger a start instruction of the camera, and when the mobile phone receives the start instruction, the camera is started. The volume down key (physical key) and the designated option (virtual key) are both used as shortcut keys for quickly starting the camera on the mobile phone.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for processing a boot instruction.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for processing a boot instruction, including:
when the terminal is in a standby state or a screen locking state, receiving a starting instruction of a function, wherein the starting instruction is triggered by a shortcut operation corresponding to the function;
acquiring environmental information and/or historical operation information of the terminal;
and when the shortcut operation is determined to be misoperation according to the environment information and/or the historical operation information, the starting instruction is not executed.
According to the method provided by the embodiment of the disclosure, when a starting instruction triggered by shortcut operation is received, environment information and/or historical operation information are/is acquired first, and because the environment information and the historical operation information can reflect the shielding condition of surrounding obstacles on a terminal, whether the shortcut operation is misoperation or not can be determined according to any one of the environment information and the historical operation information or the combination of the environment information and the historical operation information, if the shortcut operation is misoperation, the starting instruction is not executed, namely the function is not started, so that the problem of resource consumption caused by starting the function in case of misoperation in the prior art is solved.
In a first implementation manner of the first aspect, the receiving an instruction to start a function includes:
when any shortcut operation is detected, determining a function corresponding to the shortcut operation according to the shortcut operation, and triggering a starting instruction of the function.
The method provided by the embodiment of the disclosure triggers the starting instruction of a certain function when the shortcut operation corresponding to the function is detected, and provides a way for triggering the starting instruction.
In a second implementation manner of the first aspect, the obtaining the environment information of the terminal includes:
acquiring the distance between the terminal and surrounding obstacles through a distance sensor, and taking the distance as the environmental information; and/or the presence of a gas in the gas,
and acquiring the light intensity around the terminal through a light sensor, and taking the light intensity as the environment information.
The method provided by the embodiment of the disclosure detects the surrounding environment of the terminal through the distance sensor and/or the light sensor to obtain the environment information of the terminal, and provides an implementation mode for obtaining the environment information.
In a third implementation form of the first aspect, the method further includes:
and if the environment information meets a preset condition, determining that the shortcut operation is misoperation, wherein the preset condition is used for indicating that obstacles exist around the terminal.
According to the method provided by the embodiment of the disclosure, when the environment information meets the preset condition, it is indicated that obstacles exist around the terminal, so that the shortcut operation is determined as the misoperation, and a determination mode of the misoperation is provided.
In a fourth implementation form of the first aspect, the method further includes:
and if the historical operation information comprises a plurality of times of trigger operations on the specified key within the specified time length before the starting instruction is received, determining that the shortcut operation is misoperation.
According to the method provided by the embodiment of the disclosure, if the trigger operation of the specified key is detected for multiple times before the starting instruction is received, the shortcut operation can be determined as the misoperation, and a determination mode of the misoperation is provided.
In a fifth implementation manner of the first aspect, the not executing the start instruction includes:
displaying a first screen locking interface, wherein the first screen locking interface is used for prompting a user to perform specified operation within a first preset time length so as to start the function;
and if the specified operation is not detected within the first preset time length, the starting instruction is not executed.
According to the method provided by the embodiment of the disclosure, when the terminal determines that the shortcut operation is the misoperation, the terminal can prompt the user to perform the specified operation through the first screen locking interface, and if the user does not perform the specified operation according to the prompt, the terminal does not respond to the starting instruction. Before the starting instruction is not executed, the user can be prompted through the first screen locking interface, whether the judgment result of the shortcut operation as the misoperation is reliable or not is further confirmed according to whether the user feeds back the prompt or not, the misjudgment probability of the terminal is reduced to a certain extent, and the problem of resource consumption caused by the starting function during the misoperation is accurately and effectively avoided.
In a sixth implementation manner of the first aspect, after the executing the start instruction, the method further includes:
and hiding the first screen locking interface and recovering to the standby state or the screen locking state.
According to the method provided by the embodiment of the disclosure, after the terminal does not execute the starting instruction, the terminal can be restored to the original standby state from the current first screen locking interface, and the electric quantity of the terminal can be saved.
In a seventh implementation manner of the first aspect, after the displaying the first lock screen interface, the method further includes:
within the first preset time, the environment information is obtained again;
and if the shortcut operation is determined to be the user operation according to the environment information, starting the function.
According to the method provided by the embodiment of the disclosure, in the process of displaying the first lock screen interface, the shortcut operation is judged again according to the real-time detection result of the surrounding environment, and the corresponding steps are executed according to the judgment result, so that the misjudgment probability of the terminal is reduced to a certain extent, and when the judgment result is the user operation, the function can be automatically started without the user specified operation, so that the function starting operation is simplified.
In an eighth implementation manner of the first aspect, after the obtaining the environment information and/or the historical operation information of the terminal, the method further includes:
if the shortcut operation is determined to be a user operation according to the environment information and/or the historical operation information, starting the function;
after the function runs for a second preset time length, if the starting instruction is received again, displaying a second screen locking interface, wherein the second screen locking interface comprises a function closing option which is used for closing the function;
and if the triggering operation of the function closing option is detected, closing the function.
According to the method provided by the embodiment of the disclosure, when the shortcut operation is determined as the user operation, the terminal can start the function, and in the running process of the function, if the start instruction is received again, the terminal can determine that the start instruction is triggered by the misoperation, the terminal can prompt the user whether to close the function through the second screen locking interface, and close the function according to the user operation, so that the problem of resource consumption caused by unnecessary function running is avoided.
In a ninth implementation manner of the first aspect, the second lock screen interface further includes a function return option, where the function return option is used to return to the interface of the function, and the interface of the function is an interface before the second lock screen interface is displayed;
after the displaying of the second lock screen interface, the method further includes:
and if the triggering operation of the function returning option is detected, returning to the interface of the function.
According to the method provided by the embodiment of the disclosure, the terminal can provide the function returning option while displaying the second screen locking interface, so that the user can operate the option when the user does not want to close the function, and then the function returning interface is returned, so that the user can conveniently continue to operate the function.
In a tenth implementation manner of the first aspect, after the displaying the second lock screen interface, the method further includes:
and if the triggering operation of the function closing option or the function returning option is not detected within a third preset time length, closing the function.
According to the method provided by the embodiment of the disclosure, the terminal can display the second screen locking interface within a certain time, and if the user does not perform relevant operations on the second screen locking interface, the terminal can automatically close the function, so as to avoid the problem of resource consumption caused by unnecessary function operation.
In an eleventh implementation form of the first aspect, the method further comprises:
when the starting instruction is received for the first time, displaying a third screen locking interface, wherein the third screen locking interface comprises a shortcut closing function option which is used for closing the function of starting the function through the shortcut operation;
and if the trigger operation of the shortcut function closing option is detected, closing the function.
According to the method provided by the embodiment of the disclosure, when the user performs the shortcut operation for the first time, the terminal can provide the function of closing the function started by the shortcut operation for the user through the third screen locking interface, and a manner of closing the shortcut function is provided.
In a twelfth implementation manner of the first aspect, before the first time the start instruction is received, the method further includes:
displaying a setting interface, wherein the setting interface is used for setting the corresponding relation between the shortcut operation and the function;
and storing the corresponding relation set on the setting interface by the user.
According to the method provided by the embodiment of the disclosure, the function of setting the shortcut operation by the user is provided through the setting interface, so that the user can freely set the shortcut operation and the corresponding relation between the shortcut operation and the function according to own habits.
According to a second aspect of the embodiments of the present disclosure, there is provided a boot instruction processing apparatus including:
the terminal comprises a receiving module, a display module and a control module, wherein the receiving module is used for receiving a starting instruction of a function when the terminal is in a standby state or a screen locking state, and the starting instruction is triggered by a shortcut operation corresponding to the function;
the acquisition module is used for acquiring environmental information and/or historical operation information of the terminal;
and the execution module is used for not executing the starting instruction when the shortcut operation is determined to be misoperation according to the environment information and/or the historical operation information.
In a first implementation manner of the second aspect, the receiving module is configured to, when any shortcut operation is detected, determine a function corresponding to the shortcut operation according to the shortcut operation, and trigger a start instruction for the function.
In a second implementation manner of the second aspect, the obtaining module is configured to obtain a distance between the terminal and a surrounding obstacle through a distance sensor, and use the distance as the environment information; and/or the presence of a gas in the gas,
and acquiring the light intensity around the terminal through a light sensor, and taking the light intensity as the environment information.
In a third implementation form of the second aspect, the apparatus further includes:
and the determining module is used for determining that the shortcut operation is misoperation if the environment information meets a preset condition, wherein the preset condition is used for indicating that obstacles exist around the terminal.
In a fourth implementation manner of the second aspect, the determining module is further configured to determine that the shortcut operation is an incorrect operation if the historical operation information includes multiple triggering operations on a specified key within a specified duration before the starting instruction is received.
In a fifth implementation manner of the second aspect, the execution module is configured to display a first screen locking interface, where the first screen locking interface is used to prompt a user to perform a specified operation within a first preset time duration to start the function; and if the specified operation is not detected within the first preset time length, the starting instruction is not executed.
In a sixth implementation form of the second aspect, the apparatus further comprises:
and the hiding module is used for hiding the first screen locking interface and recovering to the standby state or the screen locking state.
In a seventh implementation manner of the second aspect, the apparatus further includes:
the obtaining module is further configured to obtain the environmental information again within the first preset duration;
and the starting module is used for starting the function if the shortcut operation is determined to be the user operation according to the environment information.
In an eighth implementation manner of the second aspect, the apparatus further includes:
the starting module is further used for starting the function if the shortcut operation is determined to be a user operation according to the environment information and/or the historical operation information;
the display module is used for displaying a second screen locking interface if the starting instruction is received again after the function runs for a second preset time length, wherein the second screen locking interface comprises a function closing option which is used for closing the function;
and the closing module is used for closing the function if the triggering operation of the closing function option is detected.
In a ninth implementation manner of the second aspect, the second lock screen interface further includes a return function option, where the return function option is used to return to the interface of the function, and the interface of the function is an interface before the second lock screen interface is displayed;
the device further comprises:
and the return module is used for returning to the interface of the function if the triggering operation of the return function option is detected.
In a tenth implementation manner of the second aspect, the closing module is further configured to close the function if the triggering operation on the close function option or the return function option is not detected within a third preset time period.
In an eleventh implementation manner of the second aspect, the display module is further configured to display a third screen locking interface when the start instruction is received for the first time, where the third screen locking interface includes a shortcut closing function option, and the shortcut closing function option is used to close a function of starting the function through the shortcut operation;
and the closing module is further used for closing the function if the triggering operation of the shortcut closing function option is detected.
In a twelfth implementation form of the second aspect, the apparatus further comprises:
the display module is also used for displaying a setting interface, and the setting interface is used for setting the corresponding relation between the shortcut operation and the function;
and the storage module is used for storing the corresponding relation set on the setting interface by the user.
According to a third aspect of the embodiments of the present disclosure, there is provided a startup instruction processing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the terminal is in a standby state or a screen locking state, receiving a starting instruction of a function, wherein the starting instruction is triggered by a shortcut operation corresponding to the function;
acquiring environment information and/or historical operation information of a terminal;
and when the shortcut operation is determined to be misoperation according to the environment information and/or the historical operation information, the starting instruction is not executed.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of initiating instruction processing in accordance with an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a method of initiating instruction processing in accordance with an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a first lock screen interface in accordance with an exemplary embodiment.
FIG. 4 is a schematic diagram illustrating a second lock screen interface in accordance with an exemplary embodiment.
FIG. 5 is a schematic diagram illustrating a third lock screen interface in accordance with an exemplary embodiment.
Fig. 6 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment.
Fig. 7 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment.
Fig. 8 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment.
Fig. 9 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment.
Fig. 10 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment.
Fig. 11 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment.
Fig. 12 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment.
Fig. 13 is a block diagram illustrating a boot instruction processing apparatus 1300 according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure is directed to a process of how to process a start instruction triggered by shortcut operation if the start instruction is received when a terminal is in a standby state or a screen locking state. The screen locking state refers to a state that the terminal is on screen but not unlocked, and the standby state may refer to a black screen state, that is, a state that the terminal screen is locked and extinguished. The shortcut operation may be an operation based on a shortcut key (including a physical key or a virtual key), such as long pressing the shortcut key, double-clicking the shortcut key, or the like, but may also be another operation, such as an operation of sliding the screen left or right in the screen-locked state. When the terminal is in a standby state, a user can directly trigger a starting instruction of the function through quick operation without unlocking a screen, and the user can touch the terminal when putting the terminal into a pocket possibly to trigger the quick operation due to no unlocking permission, so that the starting instruction of the function is triggered. In the prior art, once a terminal receives a starting instruction, the function is started immediately, so that the function is started by misoperation easily, and unnecessary resource consumption is caused, such as heating of a mobile phone, power consumption or random photographing. In order to solve the problems in the prior art, the embodiments of the present disclosure provide a method for determining whether a shortcut operation triggering a start instruction is a wrong operation or a user operation after receiving the start instruction, where the wrong operation is an operation that a user does not want to perform but is caused by an unintended touch, and the user operation is an operation that the user wants to implement a certain function and actively performs. If the operation is a misoperation, the processing mode of the starting instruction is not executed, and the specific process refers to the embodiment shown in the following fig. 1 or fig. 2.
It should be noted that the functions include being implemented in the form of applications, and the start-up function is also called start-up application, but the present invention is not limited thereto, and as long as the specific functions can be implemented in the operating system, the present invention is within the protection scope.
Fig. 1 is a flowchart illustrating a method for processing a start instruction according to an exemplary embodiment, where the method for processing a start instruction is used in a terminal, as shown in fig. 1, and includes the following steps:
in step 101, when the terminal is in a standby state or a screen lock state, a start instruction for a function is received, and the start instruction is triggered by a shortcut operation corresponding to the function.
In step 102, environment information and/or historical operation information of the terminal is acquired.
In step 103, when the shortcut operation is determined to be an erroneous operation according to the environment information and/or the historical operation information, the start instruction is not executed.
In the embodiment of the disclosure, when a starting instruction triggered by a shortcut operation is received, environment information and/or historical operation information are acquired first, and because the environment information and the historical operation information can reflect the shielding condition of surrounding obstacles on a terminal, whether the shortcut operation is a misoperation can be determined according to any one of the environment information and the historical operation information or the combination of the environment information and the historical operation information, if the shortcut operation is a misoperation, the starting instruction is not executed, namely the function is not started, so that the problem of resource consumption caused by starting the function in the case of the misoperation in the prior art is solved.
In a possible implementation manner, when any shortcut operation is detected, according to the shortcut operation, a function corresponding to the shortcut operation is determined, and a start instruction for the function is triggered.
In one possible implementation manner, the obtaining of the environment information of the terminal includes:
acquiring the distance between the terminal and surrounding obstacles through a distance sensor, and taking the distance as the environmental information; and/or the presence of a gas in the gas,
and acquiring the light intensity around the terminal through a light sensor, and taking the light intensity as the environment information.
In one possible implementation, the method further comprises:
and if the environment information meets a preset condition, determining that the shortcut operation is misoperation, wherein the preset condition is used for indicating that obstacles exist around the terminal.
In one possible implementation, the method further comprises:
and if the historical operation information comprises a plurality of times of trigger operations on the specified key within the specified time length before the starting instruction is received, determining that the shortcut operation is misoperation.
In one possible implementation, the not executing the start instruction includes:
displaying a first screen locking interface, wherein the first screen locking interface is used for prompting a user to perform specified operation within a first preset time length so as to start the function;
and if the specified operation is not detected within the first preset time length, the starting instruction is not executed.
In one possible implementation, after the executing the start instruction, the method further includes:
and hiding the first screen locking interface and recovering to the standby or screen locking state.
In one possible implementation, after the displaying the first lock screen interface, the method further includes:
within the first preset time, the environment information is obtained again;
and if the shortcut operation is determined to be the user operation according to the environment information, starting the function.
In one possible implementation manner, after obtaining the environment information and/or the historical operation information of the terminal, the method further includes:
if the shortcut operation is determined to be the user operation according to the environment information and/or the historical operation information, starting the function;
after the function runs for a second preset time, if the starting instruction is received again, displaying a second screen locking interface, wherein the second screen locking interface comprises a function closing option which is used for closing the function;
and if the triggering operation of the function closing option is detected, closing the function.
In a possible implementation manner, the second lock screen interface further includes a return function option, where the return function option is used to return to the interface of the function, and the interface of the function is an interface before the second lock screen interface is displayed;
after the displaying the second lock screen interface, the method further includes:
and if the triggering operation of the return function option is detected, returning to the interface of the function.
In one possible implementation, after the displaying the second lock screen interface, the method further includes:
and if the triggering operation of the closing function option or the returning function option is not detected within the third preset time length, closing the function.
In one possible implementation, the method further comprises:
when the starting instruction is received for the first time, displaying a third screen locking interface, wherein the third screen locking interface comprises a shortcut closing function option which is used for closing the function of starting the function through the shortcut operation;
and if the triggering operation of the shortcut function closing option is detected, closing the function.
In a possible implementation manner, before the first time the start instruction is received, the method further includes:
displaying a setting interface, wherein the setting interface is used for setting the corresponding relation between the shortcut operation and the function;
and storing the corresponding relation set on the setting interface by the user.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart illustrating a method for processing a start instruction according to an exemplary embodiment, where, as shown in fig. 2, the method for processing a start instruction is used in a terminal, and includes the following steps:
in step 201, when the terminal is in a standby state or a screen lock state, a start instruction for a function is received, and the start instruction is triggered by a shortcut operation corresponding to the function.
In the embodiment of the disclosure, the terminal can provide a function of starting the function through shortcut operation, and different shortcut operations correspond to different functions. The terminal can determine a function corresponding to the shortcut operation according to the shortcut operation and trigger a starting instruction of the function when detecting any shortcut operation, so that the terminal receives the starting instruction. In one possible implementation manner, the determining, by the terminal according to the shortcut operation, a function corresponding to the shortcut operation may include: and the terminal inquires the corresponding relation between the shortcut operation and the function stored locally and determines the function corresponding to the shortcut operation according to the corresponding relation. The corresponding relation between the shortcut operation and the function can be a default corresponding relation of a terminal system, and can also be set by a user.
The terminal can provide a function of setting shortcut operation according to the condition set by a user, and can display a setting interface when receiving a setting request of the shortcut operation, wherein the setting interface is used for setting the shortcut operation and the corresponding relation between the shortcut operation and the function. The user can set the specific form of the shortcut operation and the corresponding relation between the shortcut operation and the function in the setting interface according to the operation habit of the user, and the terminal can store the corresponding relation set on the setting interface by the user.
As for the opportunity set by the user, the user can set before the shortcut operation is used for the first time, namely, the user sets before the terminal receives the starting instruction triggered by the shortcut operation for the first time, and also can set at any opportunity in the using process of the terminal, and after the terminal is set each time, the terminal stores the corresponding relation after the setting, so that when the user carries out the shortcut operation, the terminal can determine the function corresponding to the shortcut operation according to the corresponding relation after the setting, and further, the starting instruction of the function is triggered.
In step 202, environment information and/or historical operation information of the terminal is acquired.
The environment information of the terminal may include at least one of a distance between the terminal and a surrounding obstacle and an intensity of light around the terminal, and the environment information of the terminal may be used to indicate a blocking condition of the terminal. The historical operation information may include each operation of the user on the terminal and a corresponding operation time, which may be a time when the terminal detected the operation.
In this step 202, the terminal may acquire only any one of the environmental information and the historical operation information, or both of them, according to the current information acquisition setting. The information obtaining setting is used to instruct the terminal to obtain what kind of information to determine whether the shortcut operation is a wrong operation, and may be a default setting of the terminal or a setting changed by the user, for example, the user changes the default setting of obtaining only the environment information to obtaining only the historical operation information, or obtains the current settings of the environment information and the historical operation information at the same time, and in the subsequent steps, a corresponding wrong operation judgment is performed according to different information obtained in the step 202.
For the environment information of the terminal, the terminal may detect the environment around the terminal through a sensor to obtain the environment information, and specifically, the terminal may be configured with a distance sensor or a light sensor. The terminal acquiring the environment information of the terminal may include: acquiring the distance between the terminal and surrounding obstacles through a distance sensor, and taking the distance as the environmental information; and/or acquiring the light intensity around the terminal through a light sensor, and taking the light intensity as the environment information.
For the historical operation information of the terminal, the terminal may obtain the historical operation information from a database, for example, the terminal may maintain a database, the database stores the historical operation information of the user on the terminal, the historical operation information may be recorded in the form of data items, each data item includes one operation information and corresponding operation time, and each time the user performs an operation on the terminal, the terminal may add one data item to record the operation and the time when the operation is detected.
In the embodiment of the present disclosure, after the terminal acquires the environment information and/or the historical operation information, it may be further determined that the shortcut operation that triggers the start instruction in step 201 is an error operation or a user operation. If the shortcut operation is a false operation, i.e. the shortcut operation is not initiated by the user, the following steps 203 to 204 are performed, and if the shortcut operation is a user operation, i.e. the shortcut operation is initiated by the user, the following steps 205 to 207 are performed.
In step 203, if it is determined that the shortcut operation is an erroneous operation according to the environment information and/or the historical operation information, a first screen locking interface is displayed, where the first screen locking interface is used to prompt a user to perform a specified operation within a first preset time period to start the function.
In the embodiment of the present disclosure, the terminal may determine whether the shortcut operation is an incorrect operation in the following three ways:
in the first mode, the terminal can determine whether the shortcut operation is misoperation according to the environment information.
In this way, if the environment information meets a preset condition, the terminal may determine that the shortcut operation is an erroneous operation, otherwise, the terminal may determine that the shortcut operation is a user operation, and the preset condition is used to indicate that there is an obstacle around the terminal. Considering that the distance between the terminal and the surrounding obstacles is short and the light intensity is low when the terminal is in the bag, the preset condition may be that the distance between the terminal and the surrounding obstacles is smaller than a preset distance, where the environmental information is the distance between the terminal and the surrounding obstacles; regarding the environmental information as the light intensity around the terminal, the preset condition may be that the light intensity around the terminal is lower than a preset light intensity; the preset condition may be that the distance between the terminal and the surrounding obstacle is less than a preset distance and the light intensity around the terminal is less than a preset light intensity, where the environment information is the distance between the terminal and the surrounding obstacle and the light intensity around the terminal.
In the second mode, the terminal can determine whether the shortcut operation is misoperation according to the historical operation information.
In this way, if the historical operation information includes multiple trigger operations on the designated key within the designated time period before the start instruction is received, the terminal may determine that the shortcut operation is a false operation, otherwise, the terminal may determine that the shortcut operation is a user operation. The designated key may be a shortcut key corresponding to the shortcut operation, or may be any key that is easily touched on the terminal, such as a volume key, within a designated duration before the start instruction is received, that is, within a designated duration before the shortcut operation triggering the start instruction is detected.
Specifically, for the case that the historical operation information in step 202 may include each operation of the user on the terminal and the corresponding operation time, the terminal may count the number of times of trigger operations on the designated key within a specified duration (for example, within 10 s) before the operation time of the shortcut operation according to the operation time of the shortcut operation in the historical operation information, if the trigger operations on the designated key are multiple times (for example, more than 3 times), the terminal may determine that the historical operation information includes multiple trigger operations on the designated key within the specified duration before the start instruction is received, at this time, the terminal may determine that the shortcut operation is an erroneous operation, otherwise, the terminal may determine that the shortcut operation is a user operation.
And in a third mode, the terminal determines whether the shortcut operation is misoperation according to the environment information and the historical operation information.
In this way, if the environment information meets the preset condition and the historical operation information includes multiple triggering operations on the specified key within the specified duration before the starting instruction is received, the terminal can determine that the shortcut operation is a misoperation, otherwise, the terminal can determine that the shortcut operation is a user operation. The environmental information meets the preset condition, which has been described in detail in the first mode, and the historical operation information including multiple triggering operations on the specified key within the specified duration before the start instruction is received, which has also been described in detail in the second mode, and is not described herein again.
In step 203, if the terminal determines that the shortcut operation that triggers the instruction in step 201 is an incorrect operation according to any of the above manners, in order to verify whether the determination result of the incorrect operation is reliable, the terminal may display a first lock screen interface to obtain further confirmation of the user, and the terminal may take different processing measures according to whether the user performs a specified operation within a first preset time (e.g., 5 seconds). For example, if the user performs a specified operation within a first preset time period, the terminal may start the function when detecting the specified operation, and if the user does not perform the specified operation, the terminal may perform step 204.
It should be noted that, in the embodiment of the present disclosure, the terminal prompts the user to perform the specified operation within the first preset time period as an example, and actually, the terminal may only prompt the user to perform the specified operation without limiting the first preset time period. In addition, in order to ensure that the designated operation is performed by the user, the terminal may set the designated operation as a combination of multiple operations, for example, pressing and holding the designated icon to slide upwards, so that the user may manually perform the multiple operations according to the prompt to unlock the terminal, and then start the function. Referring to fig. 3, fig. 3 is a schematic diagram of a first lock screen interface provided by an embodiment of the present disclosure, which may provide a designated icon and prompt a user to "detect a screen occlusion and release the lock by pressing the upper slide".
In step 204, if the specified operation is not detected within the first preset time period, the start instruction is not executed, the first lock screen interface is hidden, and the standby or lock screen state is recovered.
Wherein, the step of not executing the start instruction may include two cases: one is to discard the start instruction, i.e. directly ignore the start instruction; the other is to block the start instruction, i.e. not to respond to this instruction temporarily, unless a certain condition is reached.
In the embodiment of the disclosure, if the terminal does not detect the specified operation prompted by the first screen lock interface within the first preset time period after the first screen lock interface is displayed, the terminal may consider that the user does not see the first screen lock interface, and at this time, the terminal is likely to be in a pocket or a bag, so as to confirm that the shortcut operation of the start instruction in the triggering step 201 is the misoperation, so the terminal may not execute the start instruction, and simultaneously, the terminal may cancel the display of the first screen lock interface, that is, the display state of the first screen lock interface is set to be hidden, and the standby or screen lock state before the start instruction is received is recovered, and certainly, the terminal may also directly turn off the screen after the start instruction is not executed, so as to save the electric quantity.
The above steps 203 to 204 are a process in which the terminal displays the first screen locking interface when it is determined that the shortcut operation is an erroneous operation, and does not execute the start instruction if it is not detected that the user performs the specified operation according to the prompt on the first screen locking interface. Before the starting instruction is not executed, the user can be prompted through the first screen locking interface, whether the judgment result of the shortcut operation as the misoperation is reliable or not is further confirmed according to whether the user feeds back the prompt or not, the misjudgment probability of the terminal is reduced to a certain extent, and the problem of resource consumption caused by the starting function during the misoperation is accurately and effectively avoided.
Steps 203 to 204 are optional steps, and actually, when the terminal determines that the shortcut operation is an erroneous operation according to the environment information and/or the historical operation information, the terminal may not execute the start instruction directly.
The step 204 is for the terminal not detecting the specified operation within the first preset time period, and if the terminal detects the specified operation within the first preset time period, the terminal may start the function. According to the method and the device, when the starting instruction triggered by the shortcut operation is received, the current environment information and/or the historical operation information of the terminal are/is firstly obtained, and then when the environment information and/or the historical operation information meet the preset conditions, the terminal can respond to the starting instruction to start the function after the user is required to perform the specified operation, so that the problem of resource consumption caused by the fact that the function is started by misoperation in the prior art is solved.
It should be noted that, within the first preset duration, the terminal may further perform real-time detection on the surrounding environment, obtain environment information of the terminal again, start the function if it is determined that the shortcut operation is a user operation according to the environment information, and continue to display the first lock screen interface if it is still determined that the shortcut operation is an erroneous operation, until the user performs a specified operation to start the function or the display time reaches the first preset duration, then perform step 204. In the process of displaying the first lock screen interface, judging the shortcut operation again according to the real-time detection result of the surrounding environment, executing corresponding steps according to the judgment result, reducing the misjudgment probability of the terminal to a certain extent, and automatically starting the function without the user performing specified operation when the judgment result is user operation, thereby simplifying the operation of starting the function.
In the above steps 203 to 204, for the case that the shortcut operation triggering the start instruction in step 201 is an error operation, the start instruction may also be a user operation trigger, and for the case that the shortcut operation is a user operation, see the following steps 205 to 207.
In step 205, if the shortcut operation is determined to be a user operation based on the environment information and/or the historical operation information, the function is activated.
In the embodiment of the present disclosure, the process of determining, by the terminal, that the shortcut operation is a user operation according to the environment information and/or the historical operation information is specifically described in step 203, and is not described herein again.
In step 205, if the terminal determines that the shortcut operation triggering the start instruction in step 201 is a user operation, the terminal may respond to the start instruction of the function to start the function, which ensures that the function of the function started by the shortcut operation can be normally implemented by the user.
In step 206, after the function runs for the second preset duration, if the start instruction is received again, a second screen locking interface is displayed, where the second screen locking interface includes a function closing option, and the function closing option is used to close the function.
In the embodiment of the disclosure, in the running process of the function, the user generally does not trigger the starting instruction of the function through the shortcut operation again, so that if the function runs for the second preset time period, when the terminal detects the starting instruction triggered through the shortcut operation again, it is indicated that the user is likely not to use the function currently, but the terminal is put into a package, and the starting instruction is likely to be triggered due to the fact that surrounding obstacles touch the terminal to cause the shortcut operation, so that the terminal can consider the shortcut operation as a misoperation, at this time, the terminal can display a second screen locking interface, and prompt the user whether to continue to run the function or not through the second screen locking interface. Referring to fig. 4, fig. 4 is a schematic diagram of a second screen locking interface provided in the embodiment of the present disclosure, where the second screen locking interface may prompt a user to "whether to close a function," where "exit" is a form of a function closing option.
In step 207, if the triggering operation for the closing function option in the second lock screen interface is detected, the function is closed.
In the embodiment of the disclosure, after the terminal displays the second screen locking interface, if the user sees the second screen locking interface, the user may perform a trigger operation on a function closing option in the second screen locking interface to close the function. Of course, considering that the user may not want to turn off the function, the second lock screen interface may further include a return function option for returning to an interface of the function, which is an interface before the second lock screen interface is displayed, such as a photographing interface of a camera. If the terminal detects the triggering operation of the return function option, the terminal can return to the interface of the function so as to facilitate the operation of the function by the user.
The above process is directed to the situation that the user sees the second screen locking interface, and if the user does not see the second screen locking interface, it indicates that the user does not use the function currently, and any option in the second screen locking interface is not triggered. At this time, if the terminal displays the second lock screen interface or runs the function all the time, the consumption of electric quantity may be caused, and therefore, if the terminal does not detect the trigger operation for the close function option or the return function option within the third preset time period, the function may be automatically closed, so as to avoid unnecessary resource consumption.
It should be noted that, since the start instruction in step 201 is triggered by the shortcut operation, steps 201 to 207 are performed under the condition that the terminal starts the function of starting the function by the shortcut operation, and if the terminal closes the function, the terminal does not directly respond to the start instruction when receiving the start instruction in step 201, and does not first determine the shortcut operation triggering the start instruction, and then determines whether to respond to the start instruction according to the determination result.
In one possible implementation manner, the process of turning off the function by the terminal may include: when the starting instruction is received for the first time, the terminal can display a third screen locking interface, wherein the third screen locking interface comprises a shortcut closing function option which is used for closing a function of starting the function through the shortcut operation; if the triggering operation of the shortcut function closing option is detected, the terminal can close the function. Of course, the third lock screen interface may further include a reserved shortcut function option, and the specific form of the reserved shortcut function option may be "start function", "skip", "next" and other options. Referring to fig. 5, fig. 5 is a schematic view of a third screen locking interface provided in the embodiment of the present disclosure, where the third screen locking interface may prompt a user to "detect a shortcut operation and determine whether to start a function", where the "start function" in fig. 5 is a form of the option for retaining the shortcut function. When the terminal detects the trigger operation on the option for reserving the shortcut function, the terminal may start the function based on the shortcut function, and execute the start instruction processing method provided by the embodiment of the present disclosure when receiving a start instruction for the function triggered by the shortcut operation next time, that is, steps 201 to 207.
The above steps 206 to 207 are processes in which the terminal determines that the shortcut operation is a user operation, starts the function, and after the function runs for a preset time period, if the terminal receives a start instruction for the function again, the terminal closes the function. Before the function is closed, the user is prompted through the second screen locking interface, whether the function is still used by the user is determined according to the feedback of the user, whether the starting instruction received again is triggered by misoperation is further determined, the probability of misjudgment is reduced to a certain extent, the started and operated function is closed in time under the condition that the user does not use the function, and the problem of resource consumption caused by unnecessary function operation can be avoided.
The step 206 and the step 207 are optional steps, and are an implementation manner that the terminal closes the function in time through the operation of the user in the function running process if the behavior of suspected misoperation is detected to occur. In fact, in the running process of the function, if the terminal receives the start instruction again, the function may also be directly closed, or the environment information and/or the historical operation information of the terminal are obtained again, whether the shortcut operation triggering the start instruction is a misoperation is judged according to the current information, if the shortcut operation is a misoperation, the function is closed, and if the shortcut operation is a user operation, the function is continuously run.
In the embodiment of the disclosure, when a starting instruction triggered by a shortcut operation is received, environment information and/or historical operation information are acquired first, and because the environment information and the historical operation information can reflect the shielding condition of surrounding obstacles on a terminal, whether the shortcut operation is a misoperation can be determined according to any one of the environment information and the historical operation information or the combination of the environment information and the historical operation information, if the shortcut operation is a misoperation, the starting instruction is not executed, namely the function is not started, so that the problem of resource consumption caused by starting the function in the case of the misoperation in the prior art is solved.
Fig. 6 is a block diagram illustrating a boot instruction processing apparatus according to an example embodiment. Referring to fig. 6, the apparatus includes a receiving module 601, an obtaining module 602, and an executing module 603.
The receiving module 601 is configured to receive a starting instruction for a function when the terminal is in a standby state or a screen locking state, where the starting instruction is triggered by a shortcut operation corresponding to the function;
an obtaining module 602 configured to obtain environment information and/or historical operation information of a terminal;
the execution module 603 is configured to not execute the start instruction when it is determined that the shortcut operation is an erroneous operation according to the environment information and/or the historical operation information.
In a possible implementation manner, the receiving module 601 is configured to, when any shortcut operation is detected, determine a function corresponding to the shortcut operation according to the shortcut operation, and trigger a start instruction for the function.
In one possible implementation, the obtaining module 602 is configured to obtain a distance between the terminal and a surrounding obstacle through a distance sensor, and use the distance as the environment information; and/or the presence of a gas in the gas,
and acquiring the light intensity around the terminal through a light sensor, and taking the light intensity as the environment information.
In one possible implementation, referring to fig. 7, the apparatus further includes:
a determining module 604 configured to determine that the shortcut operation is a wrong operation if the environment information meets a preset condition, the preset condition being configured to indicate that there is an obstacle around the terminal.
In a possible implementation manner, the determining module 604 is further configured to determine that the shortcut operation is a misoperation if the historical operation information includes a plurality of triggering operations on a specified key within a specified time period before the starting instruction is received.
In a possible implementation manner, the executing module 603 is configured to display a first screen-locking interface, where the first screen-locking interface is configured to prompt a user to perform a specified operation within a first preset time period to start the function; and if the specified operation is not detected within the first preset time length, the starting instruction is not executed.
In one possible implementation, referring to fig. 8, the apparatus further includes:
a hiding module 605 configured to hide the first lock screen interface and restore to the standby state.
In one possible implementation, referring to fig. 9, the apparatus further includes:
the obtaining module 602 is further configured to obtain the environmental information again within the first preset duration;
a starting module 606, configured to start the function if it is determined that the shortcut operation is a user operation according to the environment information.
In one possible implementation, referring to fig. 10, the apparatus further includes:
the starting module 606 is further configured to start the function if the shortcut operation is determined to be a user operation according to the environment information and/or the historical operation information;
a display module 607 configured to, after the function runs for a second preset time period, if the start instruction is received again, display a second screen locking interface, where the second screen locking interface includes a function closing option, and the function closing option is configured to close the function;
a shutdown module 608 configured to shutdown the function if a triggering operation for the shutdown function option is detected.
In one possible implementation, the second lock screen interface further includes a return function option configured to return to an interface of the function, the interface of the function being an interface before the second lock screen interface is displayed;
referring to fig. 11, the apparatus further includes:
a returning module 609 configured to return to the interface of the function if the triggering operation of the return function option is detected.
In one possible implementation, the closing module 608 is further configured to close the function if the triggering operation on the close function option or the return function option is not detected within the third preset time period.
In a possible implementation manner, the display module 607 is further configured to display a third screen locking interface when the start instruction is received for the first time, where the third screen locking interface includes a close shortcut function option configured to close a function of starting the function through the shortcut operation;
the close module 608 is further configured to close the function if a trigger operation to the close shortcut function option is detected.
In one possible implementation, referring to fig. 12, the apparatus further includes:
the display module 607 is further configured to display a setting interface configured to set a corresponding relationship between the shortcut operation and the function;
a saving module 610 configured to save the corresponding relationship set on the setting interface by the user.
In the embodiment of the disclosure, when a starting instruction triggered by a shortcut operation is received, environment information and/or historical operation information are acquired first, and because the environment information and the historical operation information can reflect the shielding condition of surrounding obstacles on a terminal, whether the shortcut operation is a misoperation can be determined according to any one of the environment information and the historical operation information or the combination of the environment information and the historical operation information, if the shortcut operation is a misoperation, the starting instruction is not executed, namely the function is not started, so that the problem of resource consumption caused by starting the function in the case of the misoperation in the prior art is solved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating a boot instruction processing apparatus 1300 according to an example embodiment. For example, apparatus 1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 13, the apparatus 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input/output (I/O) interface 1312, a sensor component 1314, and a communications component 1316.
The processing component 1302 generally controls overall operation of the device 1300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
The memory 1304 is configured to store various types of data to support operations at the apparatus 1300. Examples of such data include instructions for any functional program or method operating on device 1300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1304 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 1306 provides power to the various components of device 1300. Power components 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1300.
The multimedia component 1308 includes a screen that provides an output interface between the device 1300 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1310 is configured to output and/or input audio signals. For example, the audio component 1310 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.
The I/O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1314 includes one or more sensors for providing various aspects of state assessment for the device 1300. For example, the sensor assembly 1314 may detect the open/closed state of the device 1300, the relative positioning of components, such as a display and keypad of the device 1300, the sensor assembly 1314 may also detect a change in the position of the device 1300 or a component of the device 1300, the presence or absence of user contact with the device 1300, orientation or acceleration/deceleration of the device 1300, and a change in the temperature of the device 1300. The sensor assembly 1314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging functions. In some embodiments, the sensor assembly 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1316 is configured to facilitate communications between the apparatus 1300 and other devices in a wired or wireless manner. The apparatus 1300 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1316 also includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1300 may be implemented by one or more functional Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described startup instruction processing method.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1304 comprising instructions, executable by the processor 1320 of the apparatus 1300 to perform the method described above is also provided. For example, the non-transitory computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer-readable storage medium, such as a memory, in which a computer program is stored, the computer program implementing the startup instruction processing method in the above-described embodiment 1 or 2 when being executed by a processor. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (25)

1. A method for processing a boot instruction, the method comprising:
when the terminal is in a standby state or a screen locking state, receiving a starting instruction of a function, wherein the starting instruction is triggered by a shortcut operation corresponding to the function;
acquiring environmental information and historical operation information of the terminal;
if the shortcut operation is determined to be a user operation according to the environment information and the historical operation information, starting the function; or if the shortcut operation is determined to be a user operation according to the historical operation information, starting the function, wherein the historical operation information comprises each operation information of the user, time corresponding to the operation information, and counted triggering operation times of the appointed key within an appointed time length before the operation time corresponding to the shortcut operation;
after the function runs for a second preset time length, if the starting instruction is received again, displaying a second screen locking interface, wherein the second screen locking interface comprises a function closing option which is used for closing the function;
if the triggering operation of the function closing option is detected, closing the function;
and when the shortcut operation is determined to be misoperation according to the historical operation information or the shortcut operation is determined to be misoperation according to the environmental information and the historical operation information, the starting instruction is not executed.
2. The method of claim 1, wherein receiving an instruction to initiate a function comprises:
when any shortcut operation is detected, determining a function corresponding to the shortcut operation according to the shortcut operation, and triggering a starting instruction of the function.
3. The method of claim 1, wherein the obtaining the environment information of the terminal comprises:
acquiring the distance between the terminal and surrounding obstacles through a distance sensor, and taking the distance as the environmental information; and/or the presence of a gas in the gas,
and acquiring the light intensity around the terminal through a light sensor, and taking the light intensity as the environment information.
4. The method of claim 1, further comprising:
and if the environment information meets a preset condition, determining that the shortcut operation is misoperation, wherein the preset condition is used for indicating that obstacles exist around the terminal.
5. The method of claim 1, further comprising:
and if the historical operation information comprises a plurality of times of trigger operations on the specified key within the specified time length before the starting instruction is received, determining that the shortcut operation is misoperation.
6. The method of claim 1, wherein the not executing the boot instruction comprises:
displaying a first screen locking interface, wherein the first screen locking interface is used for prompting a user to perform specified operation within a first preset time length so as to start the function;
and if the specified operation is not detected within the first preset time, not executing the starting instruction.
7. The method of claim 6, wherein after the executing the boot instruction, the method further comprises:
and hiding the first screen locking interface and recovering to the standby state or the screen locking state.
8. The method of claim 6, wherein after displaying the first lock screen interface, the method further comprises:
within the first preset time, the environment information is obtained again;
and if the shortcut operation is determined to be the user operation according to the environment information, starting the function.
9. The method of claim 1, wherein the second lock screen interface further comprises a return function option, wherein the return function option is used for returning to the interface of the function, and the interface of the function is the interface before the second lock screen interface is displayed;
after the displaying of the second lock screen interface, the method further includes:
and if the triggering operation of the function returning option is detected, returning to the interface of the function.
10. The method of claim 1, wherein after displaying the second lock screen interface, the method further comprises:
and if the triggering operation of the function closing option or the function returning option is not detected within a third preset time length, closing the function.
11. The method of claim 1, further comprising:
when the starting instruction is received for the first time, displaying a third screen locking interface, wherein the third screen locking interface comprises a shortcut closing function option which is used for closing the function of starting the function through the shortcut operation;
and if the trigger operation of the shortcut function closing option is detected, closing the function.
12. The method of claim 11, wherein prior to the first receiving the firing instruction, the method further comprises:
displaying a setting interface, wherein the setting interface is used for setting the corresponding relation between the shortcut operation and the function;
and storing the corresponding relation set on the setting interface by the user.
13. An apparatus for processing a boot instruction, the apparatus comprising:
the terminal comprises a receiving module, a display module and a control module, wherein the receiving module is used for receiving a starting instruction of a function when the terminal is in a standby state or a screen locking state, and the starting instruction is triggered by a shortcut operation corresponding to the function;
the acquisition module is used for acquiring the environmental information and the historical operation information of the terminal;
the starting module is further used for starting the function if the shortcut operation is determined to be the user operation according to the environment information and the historical operation information; or if the shortcut operation is determined to be a user operation according to the historical operation information, starting the function, wherein the historical operation information comprises each operation information of the user, time corresponding to the operation information, and counted triggering operation times of the appointed key within an appointed time length before the operation time corresponding to the shortcut operation;
the display module is used for displaying a second screen locking interface if the starting instruction is received again after the function runs for a second preset time length, wherein the second screen locking interface comprises a function closing option which is used for closing the function;
a closing module, configured to close the function if a trigger operation on the close function option is detected;
and the execution module is used for not executing the starting instruction when the shortcut operation is determined to be the misoperation according to the historical operation information or when the shortcut operation is determined to be the misoperation according to the environment information and the historical operation information.
14. The apparatus according to claim 13, wherein the receiving module is configured to, when any shortcut operation is detected, determine a function corresponding to the shortcut operation according to the shortcut operation, and trigger a start instruction for the function.
15. The device according to claim 13, wherein the acquiring module is configured to acquire a distance between the terminal and a surrounding obstacle through a distance sensor, and use the distance as the environment information; and/or the presence of a gas in the gas,
and acquiring the light intensity around the terminal through a light sensor, and taking the light intensity as the environment information.
16. The apparatus of claim 13, further comprising:
and the determining module is used for determining that the shortcut operation is misoperation if the environment information meets a preset condition, wherein the preset condition is used for indicating that obstacles exist around the terminal.
17. The apparatus of claim 13, further comprising:
and the determination module is further used for determining that the shortcut operation is misoperation if the historical operation information comprises a plurality of times of trigger operation on the specified key within the specified duration before the starting instruction is received.
18. The device of claim 13, wherein the execution module is configured to display a first screen-locking interface, and the first screen-locking interface is configured to prompt a user to perform a specified operation within a first preset time period to start the function; and if the specified operation is not detected within the first preset time, not executing the starting instruction.
19. The apparatus of claim 18, further comprising:
and the hiding module is used for hiding the first screen locking interface and recovering to the standby state or the screen locking state.
20. The apparatus of claim 18, further comprising:
the obtaining module is further configured to obtain the environmental information again within the first preset duration;
and the starting module is used for starting the function if the shortcut operation is determined to be the user operation according to the environment information.
21. The apparatus of claim 13, wherein the second lock screen interface further comprises a return function option, wherein the return function option is used for returning to the interface of the function, and the interface of the function is an interface before the second lock screen interface is displayed;
the device further comprises:
and the return module is used for returning to the interface of the function if the triggering operation of the return function option is detected.
22. The apparatus of claim 13, wherein the closing module is further configured to close the function if the triggering operation of the close function option or the return function option is not detected within a third preset time period.
23. The device according to claim 13, wherein the display module is further configured to display a third screen locking interface when the start instruction is received for the first time, where the third screen locking interface includes a close shortcut function option, and the close shortcut function option is used to close a function of starting the function through the shortcut operation;
and the closing module is further used for closing the function if the triggering operation of the shortcut closing function option is detected.
24. The apparatus of claim 23, further comprising:
the display module is also used for displaying a setting interface, and the setting interface is used for setting the corresponding relation between the shortcut operation and the function;
and the storage module is used for storing the corresponding relation set on the setting interface by the user.
25. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1-12.
CN201710641423.5A 2017-07-31 2017-07-31 Method and device for processing starting instruction Active CN107450950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710641423.5A CN107450950B (en) 2017-07-31 2017-07-31 Method and device for processing starting instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710641423.5A CN107450950B (en) 2017-07-31 2017-07-31 Method and device for processing starting instruction

Publications (2)

Publication Number Publication Date
CN107450950A CN107450950A (en) 2017-12-08
CN107450950B true CN107450950B (en) 2021-03-23

Family

ID=60489230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710641423.5A Active CN107450950B (en) 2017-07-31 2017-07-31 Method and device for processing starting instruction

Country Status (1)

Country Link
CN (1) CN107450950B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019191413A (en) * 2018-04-26 2019-10-31 京セラドキュメントソリューションズ株式会社 Image forming apparatus
CN108762849A (en) * 2018-05-31 2018-11-06 上海爱优威软件开发有限公司 The method of adjustment and terminal of the camera triggering mode of locking screen interface
CN110297565B (en) * 2019-06-28 2023-04-28 Oppo广东移动通信有限公司 Electronic equipment and control method of touch component
CN111475043A (en) * 2020-03-30 2020-07-31 百度在线网络技术(北京)有限公司 Operation method and device of terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461233A (en) * 2014-10-14 2015-03-25 惠州Tcl移动通信有限公司 Method and mobile terminal for displaying applications through widget
CN104765559A (en) * 2015-03-24 2015-07-08 深圳市金立通信设备有限公司 Misoperation preventing method
CN105549849A (en) * 2015-12-15 2016-05-04 小米科技有限责任公司 Method and device for processing misoperation instruction
CN105912260A (en) * 2016-04-28 2016-08-31 广东欧珀移动通信有限公司 Application program starting method and mobile terminal
CN106843578A (en) * 2013-12-25 2017-06-13 华为终端有限公司 A kind of mobile terminal and the method for starting mobile terminal shooting

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7395089B1 (en) * 2001-06-11 2008-07-01 Palm, Inc Integrated personal digital assistant device
CN104158958B (en) * 2014-07-28 2016-08-17 中山大学 A kind of intelligent terminal method for preventing misoperation
CN104899056A (en) * 2015-05-11 2015-09-09 广东美晨通讯有限公司 Mobile terminal of entering and restrictedly using application in screen locked state and method
CN105278862B (en) * 2015-11-10 2019-07-19 Oppo广东移动通信有限公司 A kind of method, device and mobile terminal preventing maloperation using light sensation detection
CN105516495A (en) * 2015-12-11 2016-04-20 惠州Tcl移动通信有限公司 Method for quickly starting camera and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843578A (en) * 2013-12-25 2017-06-13 华为终端有限公司 A kind of mobile terminal and the method for starting mobile terminal shooting
CN104461233A (en) * 2014-10-14 2015-03-25 惠州Tcl移动通信有限公司 Method and mobile terminal for displaying applications through widget
CN104765559A (en) * 2015-03-24 2015-07-08 深圳市金立通信设备有限公司 Misoperation preventing method
CN105549849A (en) * 2015-12-15 2016-05-04 小米科技有限责任公司 Method and device for processing misoperation instruction
CN105912260A (en) * 2016-04-28 2016-08-31 广东欧珀移动通信有限公司 Application program starting method and mobile terminal

Also Published As

Publication number Publication date
CN107450950A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
US9860844B2 (en) Method and apparatus of temperature control
CN107391995B (en) Unlocking operation processing method and device
EP3331226B1 (en) Method and device for reading messages
CN109557999B (en) Bright screen control method and device and storage medium
EP3151117B1 (en) Method and device for delaying information broadcasting
CN105975828B (en) Unlocking method and device
EP3136216A1 (en) Method for controlling mobile terminal and mobile terminal
CN107450950B (en) Method and device for processing starting instruction
CN107390932B (en) Edge false touch prevention method and device and computer readable storage medium
CN106357934B (en) Screen locking control method and device
CN104317402B (en) Description information display method and device and electronic equipment
CN109324863B (en) Fingerprint identification method and device and computer readable storage medium
CN108073328B (en) Touch response method and device
US20180121057A1 (en) Method and device for hiding application icon
CN107197107B (en) Method and device for processing starting instruction
CN108446226B (en) Application exception processing method
CN106570381B (en) Fingerprint unlocking method and device
EP3255575B1 (en) Application triggering method and device
CN107391206B (en) Method and device for processing starting instruction
CN109521923B (en) Floating window control method and device and storage medium
CN111953842A (en) Electronic equipment, safety protection method and device
CN105868338B (en) Application processing method and device
CN111353427B (en) Fingerprint unlocking signal processing method, device and medium
CN109144587B (en) Terminal control method, device, equipment and storage medium
CN114724196A (en) False touch prevention method and device, electronic equipment and storage medium

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