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

Method and device for processing starting instruction Download PDF

Info

Publication number
CN107391206B
CN107391206B CN201710643898.8A CN201710643898A CN107391206B CN 107391206 B CN107391206 B CN 107391206B CN 201710643898 A CN201710643898 A CN 201710643898A CN 107391206 B CN107391206 B CN 107391206B
Authority
CN
China
Prior art keywords
function
terminal
shortcut
interface
closing
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
CN201710643898.8A
Other languages
Chinese (zh)
Other versions
CN107391206A (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 CN201710643898.8A priority Critical patent/CN107391206B/en
Publication of CN107391206A publication Critical patent/CN107391206A/en
Application granted granted Critical
Publication of CN107391206B publication Critical patent/CN107391206B/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
    • 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/44594Unloading

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, if a starting instruction for the function is received, starting the 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, closing the function. According to the method and the device, when a starting instruction triggered by the shortcut operation is received, the function is started firstly to guarantee the higher starting speed, then the environment information and/or the historical operation information are obtained, whether the shortcut operation is misoperation or not is determined according to the environment information, if the shortcut operation is misoperation, the started and operated function is closed in time, and the problem of resource consumption caused by continuous operation of the function which is not started by the intention of a user is avoided.

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, if a starting instruction for a function is received, starting the 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, closing the function.
According to the method provided by the embodiment of the disclosure, when a starting instruction triggered by a shortcut operation is received, a function is started first to ensure a faster starting speed, and then environment information and/or historical operation information are obtained.
In a first implementation manner of the first aspect, the receiving a start instruction for 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, after the turning off the function, the method further 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 restart the function;
and if the specified operation is not detected within the first preset time, hiding the first screen locking interface and recovering to the standby state.
According to the method provided by the embodiment of the disclosure, after the terminal is turned off, the user can be prompted to perform the designated operation through the first screen locking interface so as to restart the function, if the user does not perform the designated operation according to the prompt, the shortcut operation can be further confirmed as the misoperation, and at the moment, the terminal is restored to the original standby state, so that the electric quantity of the terminal can be saved.
In a sixth 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 restarting the function if the shortcut operation is determined to be the user operation according to the environment information.
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 step is executed according to the judgment result, so that the reliability of the execution result is improved 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 restarting operation is simplified.
In a seventh implementation manner of the first aspect, after the obtaining the environmental 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, continuing to run 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 continue to operate the function, in the operation process of the function, if the starting instruction is received again, the terminal can determine that the starting instruction is triggered by the misoperation, the terminal can prompt the user whether to close the function or not through the second screen locking interface, and the function is closed according to the user operation, so that the problem of resource consumption caused by unnecessary function operation is avoided.
In an eighth implementation manner of the first aspect, the second lock screen interface further includes a function returning option, where the function returning option is used to return to the function interface, and the function interface 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 ninth 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 a tenth implementation form of the first aspect, the method further includes:
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 an eleventh 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 starting module, a display module and a control module, wherein the starting module is used for starting a function if a starting instruction for the function is received 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 closing module is used for closing the function 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 starting 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 starting 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 apparatus further includes:
the display module is used for displaying a first screen locking interface, and the first screen locking interface is used for prompting a user to perform specified operation within a first preset time length so as to restart the function;
and the hiding module is used for hiding the first screen locking interface and restoring to the standby state if the specified operation is not detected within the first preset time.
In a sixth implementation manner of the second aspect, the obtaining module is further configured to obtain the environmental information again within the first preset duration;
the starting module is further configured to restart the function if it is determined that the shortcut operation is a user operation according to the environment information.
In a seventh implementation manner of the second aspect, the apparatus further includes:
the running module is used for continuing running the function when the shortcut operation is determined to be the user operation according to the environment information and/or the historical operation information;
the display module is further configured to display a second screen locking interface if the start instruction is received again after the function runs for a second preset duration, where the second screen locking interface includes a function closing option, and the function closing option is used to close the function;
the closing module is further configured to close the function if the triggering operation for closing the function option is detected.
In an eighth implementation manner of the second 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;
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 ninth 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 a tenth 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 an eleventh implementation manner of the second aspect, the apparatus further includes:
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, if a starting instruction for a function is received, starting the 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, closing the function.
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 1200 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 be 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, a function is started and is operated all the time, so that the function is operated all the time after misoperation is easily caused, and unnecessary resource consumption is caused, such as the problems of mobile phone heating, electric quantity consumption or random photographing and the like. In order to solve the problems in the prior art, the embodiments of the present disclosure provide a method and a device for starting a function first after receiving a start instruction, and then determining whether a shortcut operation triggering the start instruction is a wrong operation or a user operation, where the wrong operation is an operation that a user does not want to perform but is caused by an unintentional touch, and the user operation is an operation that the user wants to implement a certain function and actively performs. If the operation is wrong, the processing mode of the function started to run is closed in time, 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, if a start instruction for a function is received, the function is started, 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 function is turned off.
In the embodiment of the disclosure, when a start instruction triggered by a shortcut operation is received, a function is started first to ensure a faster start speed, and then environment information and/or historical operation information are obtained, 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 or not can be determined according to any one of the information or the combination of the information and the historical operation information, if the shortcut operation is the misoperation, the started function is closed in time, and the problem of resource consumption caused by continuous operation of the function which is not started by a user will is avoided.
In one possible implementation, the receiving of the start instruction for the 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.
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, after the shutting down the function, the method further 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 restart the function;
and if the specified operation is not detected within the first preset time, hiding the first screen locking interface and recovering to the standby 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, restarting 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:
when the shortcut operation is determined to be the user operation according to the environment information and/or the historical operation information, the function is continuously operated;
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, if a start instruction for a function is received, the function is started, and the start instruction is triggered by a shortcut operation corresponding to the function.
In the embodiment of the disclosure, the terminal may provide a function of starting a function through a shortcut operation, and different shortcut operations correspond to different functions, where the function includes a system function and a function installed on the terminal. The user can carry out shortcut operation on the terminal, when the terminal detects any shortcut operation, the terminal can determine a function corresponding to the shortcut operation according to the shortcut operation and trigger a starting instruction of the function, so that the terminal receives the starting instruction and then responds to the starting instruction to start the function. 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.
When a starting instruction triggered by the shortcut operation is received, the terminal can start the function in time, so that when the user really starts the function by the shortcut operation, the terminal can guarantee the starting speed of the function to be fast, and the user is prevented from waiting for too long time.
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 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 205 are performed, and if the shortcut operation is a user operation, i.e. the shortcut operation is initiated by the user, the following steps 206 to 208 are performed.
In step 203, when the shortcut operation is determined to be an erroneous operation according to the environment information and/or the historical operation information, the function is turned off.
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 start instruction in step 201 is an incorrect operation according to any of the above manners, the terminal may close the function that has been started in time, so as to avoid the problem of resource consumption caused by the continuous operation of the function that is not intended to be started by the user.
The steps 201 to 203 are processes of starting the function first when the terminal receives the start instruction triggered by the shortcut operation, then determining whether the shortcut operation is a wrong operation, and if the shortcut operation is a wrong operation, closing the function in time, so as to avoid the problem of resource consumption caused by starting the function by the wrong operation and running the function all the time in the prior art.
It should be noted that, in the embodiment of the present disclosure, after the terminal receives the start instruction and starts the function, if it is determined that the shortcut operation that triggers the start instruction is an incorrect operation, the function is directly closed. If the triggering operation of the closing confirmation option in the prompt interface is detected, or the triggering operation of the closing cancellation option or the closing confirmation option is not detected within a certain time, the terminal can close the function in time, and if the triggering operation of the closing cancellation option is detected, the function can be continuously operated. Before the function is closed, the user is prompted through the prompting interface, whether the shortcut operation is misoperation or not can be further confirmed according to the feedback condition of the user, whether the user uses the function or not is known, and whether the function is closed or not is further determined, so that the misjudgment probability of the terminal can be reduced to a certain extent, and the problem that the function is closed by mistake due to misjudgment of the terminal is avoided.
In step 204, a first screen-locking interface is displayed, where the first screen-locking interface is used to prompt the user to perform a specified operation within a first preset time period to restart the function.
The above steps 201 to 203 are processes of, after the function of the terminal is started, if it is determined that the shortcut operation is an erroneous operation according to the environment information and/or the historical operation information of the terminal, immediately closing the function. For the situation that the misoperation is determined according to the environment information, the environment information is obtained by detecting the surrounding environment through the sensor, and in some situations, if the sensor fails, or the palm of the user blocks the sensor when holding the terminal, the environment information may meet the preset condition, so that the condition that the quick operation is the misoperation is judged. In this case, the user is actually still using the terminal, the terminal is not put in a package, and if the function is turned off at this time, it is obvious that the user will be against the intention, so that the execution result is unreliable. Therefore, in the embodiment of the disclosure, after the terminal closes the function, or when the terminal closes the function, the first lock screen interface may be displayed to prompt the user, and the user is provided with a simple way to restart the function, so that the function is erroneously closed due to misjudgment, and the user may restart the function according to the prompt of the first lock screen interface, thereby providing a way to quickly restart the function.
The terminal can take different processing measures according to whether the user performs specified operation within a first preset time (such as 5 seconds). For example, if the user performs the specified operation within the first preset time period, the terminal may restart 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 the function may be restarted. 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 205, if the specified operation is not detected within the first preset time period, the first lock screen interface is hidden and the standby state is recovered.
In the embodiment of the disclosure, if the terminal does not detect the specified operation prompted by the first screen interface within the first preset time period after the first screen interface is displayed, the terminal may consider that the user does not see the first screen interface, and at this time, the terminal is likely to be in a pocket or a bag, so as to further confirm that the shortcut operation of the start instruction in the triggering step 201 is a false operation, the user does not use the terminal currently, at this time, the terminal may cancel the display of the first screen interface, that is, the display state of the first screen interface is set to be hidden, and the standby state before the start instruction is received is recovered, and of course, the terminal may also directly turn off the screen, so as to save electric quantity.
The above steps 203 to 205 are processes of, after the function is started, if it is determined that the shortcut operation for triggering the function start is an erroneous operation, closing the function and displaying the first screen locking interface, and if it is not detected that the user performs the specified operation according to the prompt on the first screen locking interface, returning from the current first screen locking interface to the original standby state. After the function is closed, prompting is carried out on a user through the first screen locking interface, whether the judgment result of the shortcut operation as misoperation is reliable or not is further confirmed according to whether the user feeds back the prompt or not, whether the step of executing the function is accurate or not is carried out, if not, a mode of rapidly restarting the function is provided, and if not, the current first screen locking interface is recovered to the original standby state.
Steps 204 to 205 are optional steps, that is, after the terminal turns off the function, the terminal may also directly turn off the screen, or directly return to the original standby state without displaying other interfaces, thereby avoiding extra resource waste.
This step 205 is for the case that the terminal does not detect 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 restart the function. When a starting instruction triggered by shortcut operation is received, the function is started first, then the current environment information and/or historical operation information of the terminal is obtained, and then when the environment information and/or the historical operation information accord with preset conditions, the function is closed, and after a user is required to perform specified operation, the terminal restarts the function.
It should be noted that, within the first preset duration, the terminal may further perform real-time detection on the surrounding environment, re-acquire environment information of the terminal, restart 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 restart the function or the display time reaches the first preset duration, perform the step of hiding the first lock screen interface. 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, improving the reliability of the execution result to a certain extent, automatically restarting the function without the user performing specified operation when the judgment result is user operation, and simplifying the operation of restarting the function.
In steps 203 to 205, 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 206 to 208.
In step 206, when the shortcut operation is determined to be a user operation according to the environment information and/or the historical operation information, the function is continuously executed.
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, and the function is already started to operate at this time, the terminal may continue to operate the function, so that it is ensured that the terminal can provide a faster start speed and normally operate the function when the user starts the function through the shortcut operation.
In step 207, 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 208, if a triggering operation for the close function option 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 208 are performed when the terminal turns on the function of starting the function by the shortcut operation, and if the terminal turns off the function, the terminal does not directly respond to the start instruction and does not start the function when receiving the start instruction in step 201.
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 208.
The above steps 206 to 208 are processes in which the terminal determines that the shortcut operation is a user operation, continues to run the function, and if the terminal receives the start instruction for the function again after the function runs for the preset time period, 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 207 and the step 208 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 operation 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 start instruction triggered by a shortcut operation is received, a function is started first to ensure a faster start speed, and then environment information and/or historical operation information are obtained, 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 or not can be determined according to any one of the information or the combination of the information and the historical operation information, if the shortcut operation is the misoperation, the started function is closed in time, and the problem of resource consumption caused by continuous operation of the function which is not started by a user will is avoided.
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 start module 601, an acquisition module 602, and a shutdown module 603.
The starting module 601 is configured to start a function if a starting instruction for the function is received when the terminal is in a standby state or a screen locking state, wherein 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;
a closing module 603 configured to close the function 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 starting 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 starting instruction for the function.
In one possible implementation manner, 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, where the preset condition is 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 one possible implementation, referring to fig. 8, the apparatus further includes:
a display module 605 configured to display a first screen-locking interface configured to prompt a user to perform a specified operation within a first preset time period to restart the function;
a hiding module 606 configured to hide the first screen locking interface and restore to the standby state if the specified operation is not detected within the first preset time period.
In a possible implementation manner, the obtaining module 602 is further configured to obtain the environmental information again within the first preset time duration;
the starting module 601 is further configured to restart the function when it is determined that the shortcut operation is a user operation according to the environment information.
In one possible implementation, referring to fig. 9, the apparatus further includes:
an execution module 607 configured to continue to execute the function if it is determined that the shortcut operation is a user operation according to the environment information and/or the historical operation information;
the display module 605 is further configured to, after the function runs for a second preset duration, if the start instruction is received again, display a second screen locking interface, where the second screen locking interface includes a function closing option configured to close the function;
the shutdown module 603 is further configured to shutdown the function if a trigger operation to the shutdown function option is detected.
In one possible implementation manner, the second lock screen interface further includes a return function option, the return function option is configured to return to an interface of the function, and the interface of the function is an interface before the second lock screen interface is displayed;
referring to fig. 10, the apparatus further comprises:
a return module 608 configured to return to the interface of the function if a triggering operation for the return function option is detected.
In a possible implementation manner, the closing module 603 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 a possible implementation manner, the display module 605 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 closing module 603 is further configured to close the function if a trigger operation for the close shortcut function option is detected.
In one possible implementation, referring to fig. 11, the apparatus further includes:
the display module 605 is further configured to display a setting interface configured to set a corresponding relationship between the shortcut operation and the function;
the saving module 609 is configured to save the corresponding relationship set on the setting interface by the user.
In the embodiment of the disclosure, when a start instruction triggered by a shortcut operation is received, a function is started first to ensure a faster start speed, and then environment information and/or historical operation information are obtained, 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 or not can be determined according to any one of the information or the combination of the information and the historical operation information, if the shortcut operation is the misoperation, the started function is closed in time, and the problem of resource consumption caused by continuous operation of the function which is not started by a user will is avoided.
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. 12 is a block diagram illustrating a boot instruction processing apparatus 1200 according to an example embodiment. For example, the apparatus 1200 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 the like.
Referring to fig. 12, the apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the apparatus 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 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.
A power supply component 1206 provides power to the various components of the device 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 1200.
The multimedia component 1208 includes a screen that provides an output interface between the device 1200 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 1208 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 1200 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.
Audio component 1210 is configured to output and/or input audio signals. For example, audio component 1210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1200 is in an operational 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 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 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 1214 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, the sensor assembly 1214 may detect an open/closed state of the apparatus 1200, the relative positioning of the components, such as a display and keypad of the apparatus 1200, the sensor assembly 1214 may also detect a change in the position of the apparatus 1200 or a component of the apparatus 1200, the presence or absence of user contact with the apparatus 1200, an orientation or acceleration/deceleration of the apparatus 1200, and a change in the temperature of the apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1216 is configured to facilitate communications between the apparatus 1200 and other devices in a wired or wireless manner. The apparatus 1200 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 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (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 1200 may be implemented by one or more 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 memory 1204 comprising instructions, executable by processor 1220 of apparatus 1200 to perform the above-described method 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 (26)

1. A method for processing a boot instruction, the method comprising:
when the terminal is in a standby state or a screen locking state, if a starting instruction for a function is received, starting the function, wherein the starting instruction is triggered by a shortcut operation corresponding to the function;
acquiring environment information and historical operation information of a terminal, wherein the historical operation information comprises each operation of a user on the terminal, operation time corresponding to each operation and the number of times of triggering operation on an appointed key within an appointed time before the operation time of the shortcut operation counted by the terminal; when the shortcut operation is determined to be misoperation according to the environment information and the historical operation information, the function is closed; alternatively, the first and second electrodes may be,
acquiring the historical operation information, and closing the function when the shortcut operation is determined to be misoperation according to the historical operation information;
the acquiring of the environment information of the terminal includes:
and acquiring the distance between the terminal and surrounding obstacles through a distance sensor, and taking the distance as the environmental information.
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 further comprises:
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 after the shutting down the function, the method further 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 restart the function;
and if the specified operation is not detected within the first preset time, hiding the first screen locking interface and recovering to the standby state.
7. 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 restarting the function if the shortcut operation is determined to be the user operation according to the environment information.
8. The method of claim 1, further comprising:
when the shortcut operation is determined to be the user operation, continuing to run 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.
9. The method of claim 8, 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 9, 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 starting module, a display module and a control module, wherein the starting module is used for starting a function if a starting instruction for the function is received 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 terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring environment information and historical operation information of the terminal, and the historical operation information comprises each operation of a user on the terminal, operation time corresponding to each operation and the number of times of triggering operation on an appointed key within an appointed time before the operation time of the shortcut operation counted by the terminal; or acquiring the historical operation information;
the closing module is used for closing the function when the shortcut operation is determined to be misoperation according to the environment information and the historical operation information; or when the shortcut operation is determined to be misoperation according to the historical operation information, the function is closed;
the acquisition module is used for acquiring the distance between the terminal and surrounding obstacles through a distance sensor, and taking the distance as the environmental information.
14. The device according to claim 13, wherein the starting 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 starting instruction for the function.
15. The apparatus of claim 13, wherein the obtaining module is further configured to obtain the data from the database
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 according to claim 13, wherein the determining module is further configured to determine that the shortcut operation is an erroneous operation if the historical operation information includes a plurality of trigger operations on a specified key within a specified duration before the start instruction is received.
18. The apparatus of claim 13, further comprising:
the display module is used for displaying a first screen locking interface, and the first screen locking interface is used for prompting a user to perform specified operation within a first preset time length so as to restart the function;
and the hiding module is used for hiding the first screen locking interface and restoring to the standby state if the specified operation is not detected within the first preset time.
19. The apparatus according to claim 18, wherein the obtaining module is further configured to obtain the environmental information again within the first preset duration;
the starting module is further configured to restart the function if it is determined that the shortcut operation is a user operation according to the environment information.
20. The apparatus of claim 13, further comprising:
the operation module is used for continuing to operate the function when the shortcut operation is determined to be the user operation;
the display module is further configured to display a second screen locking interface if the start instruction is received again after the function runs for a second preset time period, where the second screen locking interface includes a function closing option, and the function closing option is used to close the function;
the closing module is further configured to close the function if the triggering operation for closing the function option is detected.
21. The apparatus of claim 20, 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 21, wherein the shutdown module is further configured to shutdown the function if the triggering operation for the shutdown function option or the return function option is not detected within a third preset time period.
23. The apparatus of claim 13, further comprising: the display module is further used for displaying a third screen locking interface when the starting instruction is received for the first time, 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 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. An apparatus for processing a boot instruction, the apparatus comprising:
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, if a starting instruction for a function is received, starting the function, wherein the starting instruction is triggered by a shortcut operation corresponding to the function;
acquiring environment information and historical operation information of a terminal, wherein the historical operation information comprises each operation of a user on the terminal, operation time corresponding to each operation and the number of times of triggering operation on an appointed key within an appointed time before the operation time of the shortcut operation counted by the terminal;
when the shortcut operation is determined to be misoperation according to the environment information and the historical operation information, the function is closed; alternatively, the first and second electrodes may be,
acquiring the historical operation information, and closing the function when the shortcut operation is determined to be misoperation according to the historical operation information;
the acquiring of the environment information of the terminal includes:
and acquiring the distance between the terminal and surrounding obstacles through a distance sensor, and taking the distance as the environmental information.
26. 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.
CN201710643898.8A 2017-07-31 2017-07-31 Method and device for processing starting instruction Active CN107391206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710643898.8A CN107391206B (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
CN201710643898.8A CN107391206B (en) 2017-07-31 2017-07-31 Method and device for processing starting instruction

Publications (2)

Publication Number Publication Date
CN107391206A CN107391206A (en) 2017-11-24
CN107391206B true CN107391206B (en) 2021-01-29

Family

ID=60344381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710643898.8A Active CN107391206B (en) 2017-07-31 2017-07-31 Method and device for processing starting instruction

Country Status (1)

Country Link
CN (1) CN107391206B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114724314B (en) * 2022-05-20 2022-09-30 北京三快在线科技有限公司 Pickup method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917130A (en) * 2012-10-17 2013-02-06 广东欧珀移动通信有限公司 Method and system for preventing mis-operation of touch-screen intelligent mobile phone
CN104158958A (en) * 2014-07-28 2014-11-19 中山大学 Anti-misoperation method for intelligent terminal equipment
CN104423544A (en) * 2013-08-27 2015-03-18 深圳富泰宏精密工业有限公司 Electronic device misoperation prevention system and method
CN104850443A (en) * 2015-05-29 2015-08-19 努比亚技术有限公司 Method for shutting down false start-up application program and mobile terminal
CN105549849A (en) * 2015-12-15 2016-05-04 小米科技有限责任公司 Method and device for processing misoperation instruction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917130A (en) * 2012-10-17 2013-02-06 广东欧珀移动通信有限公司 Method and system for preventing mis-operation of touch-screen intelligent mobile phone
CN104423544A (en) * 2013-08-27 2015-03-18 深圳富泰宏精密工业有限公司 Electronic device misoperation prevention system and method
CN104158958A (en) * 2014-07-28 2014-11-19 中山大学 Anti-misoperation method for intelligent terminal equipment
CN104850443A (en) * 2015-05-29 2015-08-19 努比亚技术有限公司 Method for shutting down false start-up application program and mobile terminal
CN105549849A (en) * 2015-12-15 2016-05-04 小米科技有限责任公司 Method and device for processing misoperation instruction

Also Published As

Publication number Publication date
CN107391206A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US9860844B2 (en) Method and apparatus of temperature control
CN107391995B (en) Unlocking operation processing method and device
WO2019157804A1 (en) Method and apparatus for fingerprint unlocking
CN105975828B (en) Unlocking method and device
CN109557999B (en) Bright screen control method and device and storage medium
US20160210034A1 (en) Method and apparatus for switching display mode
EP3136216A1 (en) Method for controlling mobile terminal and mobile terminal
CN107390932B (en) Edge false touch prevention method and device and computer readable storage medium
US20170143252A1 (en) Sleep state detection method, apparatus and system
CN107450950B (en) Method and device for processing starting instruction
CN104317402B (en) Description information display method and device and electronic equipment
EP3531240A1 (en) Fingerprint acquisition method, apparatus and computer-readable storage medium
CN110413148B (en) False touch prevention detection method, device, equipment and storage medium
CN108073328B (en) Touch response method and device
CN107197107B (en) Method and device for processing starting instruction
CN108446226B (en) Application exception processing method
EP3255575B1 (en) Application triggering method and device
CN106570381B (en) Fingerprint unlocking method and device
CN107391206B (en) Method and device for processing starting instruction
CN109521923B (en) Floating window control method and device and storage medium
CN107562350B (en) Method and device for reporting key event
CN109144587B (en) Terminal control method, device, equipment and storage medium
CN109976563B (en) Misoperation determining method and device and touch operation response method and device
CN114724196A (en) False touch prevention method and device, electronic equipment and storage medium
CN112241654A (en) Fingerprint acquisition method and device

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