Operation method and electronic device
Technical Field
The present disclosure relates to the field of electronic devices, and particularly, to an operating method and an electronic device.
Background
With the development of science and technology, electronic devices such as mobile phones and tablet computers have become an indispensable part of people's life and work, and various application programs are usually installed on the electronic devices in order to meet the needs of people's work and life. However, if a user needs to perform a certain operation on the electronic device, for example, when a certain application is started, the user generally needs to perform a screen unlocking operation first, and then control the electronic device to perform a corresponding function through a corresponding touch operation, which makes the operation more troublesome.
Disclosure of Invention
The embodiment of the application discloses an operation method and an electronic device, corresponding operation can be executed through fingerprint identification, and the operation is simple, convenient and quick.
The operation method disclosed by the embodiment of the application is applied to an electronic device, and the electronic device comprises a fingerprint identification module; the operation method comprises the following steps:
acquiring an operation fingerprint acquired by the fingerprint identification module;
judging whether the operation fingerprint is matched with a preset fingerprint or not;
when the operation fingerprint is matched with a preset first fingerprint, controlling the electronic device to execute a first operation;
and when the operation fingerprint is matched with a preset second fingerprint, controlling the electronic device to execute a second operation.
The electronic device comprises a fingerprint identification module and a processor, wherein the processor is used for acquiring an operation fingerprint acquired by the fingerprint identification module and judging whether the operation fingerprint is matched with a preset fingerprint or not; when the operation fingerprint is matched with a preset first fingerprint, the processor controls the electronic device to execute a first operation; and when the operation fingerprint is matched with a preset second fingerprint, the processor controls the electronic device to execute a second operation.
According to the operation method and the electronic device, whether the collected operation fingerprint is matched with the preset fingerprint is judged, and when the operation fingerprint is matched with the preset first fingerprint, the electronic device is controlled to execute the first operation; when the operation fingerprint is matched with the preset second fingerprint, the electronic device is controlled to execute the second operation, and then the electronic device can be controlled to execute the corresponding operation without other operations, so that the method is simple, convenient and fast, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a block diagram of a hardware structure of an electronic device disclosed in an embodiment of the present application.
FIG. 2 is a flow chart illustrating steps of a method of operation disclosed in an embodiment of the present application.
FIG. 3 is a flow chart of steps of a method of operation disclosed in another embodiment of the present application.
FIG. 4 is a flow chart of steps of a method of operation disclosed in yet another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Please refer to fig. 1, which is a block diagram illustrating an electronic device 100 according to an embodiment of the present disclosure. The electronic device 100 may be, but not limited to, a mobile phone, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, etc., and is not limited herein. The electronic device 100 includes, but is not limited to, a touch screen 10, a memory 20, a processor 30, and a fingerprint recognition module 40. In particular, the touch screen 10, the memory 20, the processor 30 and the fingerprinting module 40 may be coupled by a communication bus 50. It should be understood by those skilled in the art that fig. 1 is only an example of the electronic apparatus 100 and does not constitute a limitation to the electronic apparatus 100, and the electronic apparatus 100 may include more or less components than those shown in fig. 1, or combine some components, or different components, for example, the electronic apparatus 100 may further include an input and output device, a network access device, and the like.
The touch screen 10 includes, but is not limited to, a resistive touch screen, a capacitive touch screen, an infrared touch screen, and a surface wave touch screen. The touch screen 10 is used for displaying a visual user interface, such as a fingerprint input interface for acquiring a user fingerprint, a screen locking interface, an application program interface, and the like.
The memory 20 may be used for storing computer programs and/or modules, wherein a module is a program segment capable of performing a specific function, and is more suitable than a program for describing the execution process of software in an electronic device. The processor 30 implements various functions of the electronic device 100 by running or executing computer programs and/or modules stored in the memory 20 and invoking data stored in the memory 20. The memory 20 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs (such as a sound playing function, an image playing function, etc.) required for a plurality of functions, and the like; the data storage area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like.
In addition, the memory 20 may include a high speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), a plurality of magnetic disk storage devices, a Flash memory device, or other volatile solid state storage devices. In the present embodiment, the memory 20 stores therein a preset fingerprint. The preset fingerprint refers to a fingerprint that is pre-entered by a user on the electronic device 100.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the electronic device 100 and various interfaces and lines connecting the various parts of the entire electronic device 100.
The fingerprint identification module 40 may be integrated with the touch screen 10, for example, as a fingerprint module under the screen, or integrated in a certain key of the electronic device 100 (for example, the fingerprint identification module 40 is integrated in the Home key). The fingerprint identification module 40 is used for identifying fingerprint information of a user. The processor 30 pre-stores the specific fingerprint information identified by the fingerprint identification module 40 in the memory 20 in response to a user's operation. That is, the memory 20 stores a fingerprint preset by the user. In this embodiment, the number of the preset fingerprints is plural.
Specifically, in one embodiment, when the fingerprint identification module 40 collects an operation fingerprint, the processor 30 acquires the operation fingerprint collected by the fingerprint identification module 40, and determines whether the operation fingerprint matches a preset fingerprint; when the operation fingerprint matches with a preset first fingerprint, the processor 30 controls the electronic device 100 to perform a first operation; when the operation fingerprint matches with a preset second fingerprint, the processor 30 controls the electronic device 100 to perform a second operation.
The electronic device 100 disclosed in the present application controls the electronic device 100 to execute the first operation by determining whether the collected operation fingerprint matches the preset fingerprint, and when the operation fingerprint matches the preset first fingerprint; when the operation fingerprint is matched with the preset second fingerprint, the electronic device 100 is controlled to execute the second operation, and then the electronic device can be controlled to execute the corresponding operation without performing other operations, so that the method is simple, convenient and fast, and the user experience is improved.
Specifically, when the operation fingerprint matches a preset first fingerprint, the processor 30 controls the electronic device 100 to perform a first operation, including: when the operation fingerprint matches with the preset first fingerprint, the processor 30 controls to run the first application program. When the operation fingerprint matches with a preset second fingerprint, the processor 30 controls the electronic device 100 to perform a second operation, including: and when the operation fingerprint is matched with a preset second fingerprint, controlling to run a second application program. The first application program and the second application program are two application programs with the highest use frequency in a preset time period.
In this embodiment, the first application and the second application include, but are not limited to, an instant messaging application (e.g., a QQ application, a wechat application, etc.), an audio/video playing application (e.g., a dog music application, an ericsson application, etc.), a financing application (e.g., a chinese bank application, a pay application), and other various life applications.
In some embodiments, the processor 30 ranks the usage times of all the applications of the electronic device 100 in a preset time period from at least, or from long to short, and determines that the two applications with the highest usage frequency ranks in the first two applications are the applications with the highest usage frequency.
Therefore, in some embodiments, the application program with the highest usage frequency in the preset time period refers to the application program with the longest usage time or the highest number of times of user activation in the preset time period. The use time refers to the accumulated time of the application program in the foreground, and does not include the time in the background, for example, the QQ application program is always running in the background, but the use time is not accumulated if the user has not used the application program. The preset time period may be a time period within 1 hour nearest to the current time or within 2 hours nearest to the current time, or may be a week before the current time; specifically, the setting may be set by the user according to the requirement, or may be defaulted by the system, which is not limited herein.
In some embodiments, the first application is an application with a first usage frequency ranking within a preset time period, and the second application is an application with a second usage frequency ranking within a preset time period.
In a specific example, for example, the processor 30 finds that the applications ranked first by the frequency of use by the user in the latest preset time period are the wechat applications and then the ericsson applications, and at this time, when the processor 30 acquires the first fingerprint (for example, the thumbprint), the processor 30 controls the electronic device 100 to start the wechat applications to enter the application interface thereof. When the processor 30 acquires the second fingerprint (for example, the index finger fingerprint), the electronic device 100 is controlled to start the arcade application program to enter the application interface thereof. The electronic device 100 provided by the embodiment can open the application program with high use frequency according to the use habit of the user, so that the interaction of the electronic device 100 is more intelligent, and the user experience is further improved. It is understood that, in other embodiments, the first application program and the second application program may also be set according to the use habits of the user.
In some embodiments, the processor 30 is further configured to, after sorting one of the usage times or usage times of all the applications of the electronic device 100 within the preset time period to obtain two applications sorted first in parallel, further sort the applications according to the other of the usage times and usage times within the preset time period, determine that the application sorted first according to the top ranking in the sorting according to the other of the usage times and usage times within the preset time period is the application sorted first in the usage frequency, and the other application sorts the application sorted second in the usage frequency within the preset time period. For example, when the processor 30 finds that the number of times of use of the WeChat application and the Aichi art application is the same according to the use frequency, the processor 30 further performs judgment according to the use time, and when the use time of the Aichi art is longer than the use time of the WeChat, the Aichi art is determined to be the first application and the WeChat is determined to be the second application.
It should be noted that, in the present embodiment, the preset fingerprints may only include the preset first fingerprint and the preset second fingerprint. It is understood that in other embodiments, the preset fingerprints may further include more fingerprints, but the electronic device 100 is controlled to perform the first operation and the second operation only when the first fingerprint and the second fingerprint are matched. For example, the preset fingerprints may also include a third fingerprint and a fourth fingerprint, and when the third fingerprint is acquired, the third fingerprint matches the preset fingerprint, but the first fingerprint and the second fingerprint do not match, and therefore the electronic device 100 does not perform the first operation and the second operation.
Further, the processor 30 controls the electronic device 100 to perform the first operation, further comprising: starting a running environment required by the first application program; the control electronics 100 perform a second operation, further comprising: and starting the running environment required by the second application program. Wherein the operating environment comprises a network environment. In particular, the network includes, but is not limited to, a mobile network, a Wi-Fi network, a Bluetooth network, and the like. For example, when the control WeChat is opened, the application program can normally communicate by controlling a mobile network or a Wi-Fi network to be in an open state.
In some embodiments, the launching of the runtime environment required for the first application or the launching of the second application may be performed simultaneously with the launching of the first application or the second application. Obviously, in other embodiments, the running environment required for starting the first application or the running environment required for starting the second application may also be performed after the first application or the second application is started.
The electronic device 100 in this embodiment also opens the network required by the application program at the same time or after the application program is started, so that the application program can communicate normally without performing additional operations, and the operation is simpler and more convenient.
Referring to fig. 1 again, the electronic device 100 further includes a prompting unit 60, and when the operation fingerprint does not match the preset fingerprint, the processor 30 further controls the prompting unit 60 to issue a prompting message to prompt the user that the fingerprint input is incorrect. In the present embodiment, the prompting unit 60 includes, but is not limited to, a buzzer for emitting sound, a speaker, a light emitting diode for emitting light of different colors, and the like. It is understood that, in other embodiments, the prompting unit 60 may be the touch screen 10, that is, when the operating fingerprint does not match the preset fingerprint, the processor 30 controls the touch screen 10 to display a prompting message. The prompt information may be characters, pictures or symbols, and is displayed on the touch screen 10.
In this embodiment, the operation fingerprint does not match with the preset fingerprint, and the operation fingerprint includes: the operation fingerprint does not match any of the preset fingerprints, and is not limited to the case of the first fingerprint and the second fingerprint. Of course, in other embodiments, it is also possible to only limit the mismatch with the first fingerprint and the second fingerprint, i.e. the judgment and the preset fingerprint do not match.
In a specific embodiment, before determining whether the operation fingerprint matches with the preset fingerprint, the processor 30 further performs the following operations: the processor 30 identifies a state of the electronic device 100, wherein the state of the electronic device 100 includes a screen locking state and an unlocking state; when the electronic device 100 is in the unlocked state, the processor 30 determines whether the operation fingerprint matches a preset fingerprint. That is, when the electronic device 100 is in the unlocked state, it is determined whether the operation fingerprint matches a preset fingerprint, and when the operation fingerprint matches a preset first fingerprint, the electronic device 100 is controlled to perform a first operation; when the operation fingerprint matches with a preset second fingerprint, the electronic device 100 is controlled to execute a second operation.
In other embodiments, the processor 30 further controls the electronic device 100 to unlock and perform the first operation or the second operation when the electronic device 100 is in the screen-locked state and the operation fingerprint matches the preset fingerprint. The controlling of the electronic device 100 to unlock and execute the first operation or the second operation may be controlling of the electronic device 100 to unlock first and then executing the first operation or the second operation; it is also possible to control the electronic device 100 to unlock while performing the first operation or the second operation.
In this embodiment, the controlling the electronic device 100 to unlock and execute the first operation or the second operation is specifically to control the electronic device 100 to unlock and run the first application program when the operation fingerprint matches a preset first fingerprint; or when the operation fingerprint is matched with a preset second fingerprint, controlling to unlock the electronic device 100 and run the second application program. So, when electronic device 100 is in the lock screen state, if operation fingerprint and first predetermined fingerprint phase-match, then can directly carry out the unblock to electronic device 100 to operation first application or second application, it is convenient, swift, improved user experience.
In another embodiment, the processor 30 further determines whether the operation fingerprint matches a preset fingerprint when the electronic device 100 is in a screen lock state; and when the operation fingerprint is matched with any preset fingerprint, controlling the electronic device 100 to unlock.
Please refer to fig. 2, which is a flowchart illustrating an operation method according to an embodiment of the present application. The operation method is applied to the electronic device 100, and the electronic device 100 comprises the fingerprint identification module 40. The operation method comprises the following steps:
step S21, acquiring the operation fingerprint collected by the fingerprint identification module 40.
And step S22, judging whether the operation fingerprint is matched with a preset fingerprint.
In step S23, when the operation fingerprint matches a preset first fingerprint, the electronic device 100 is controlled to perform a first operation.
In step S24, when the operation fingerprint matches a preset second fingerprint, the electronic device 100 is controlled to perform a second operation.
The operation method disclosed by the application controls the electronic device 100 to execute the first operation by judging whether the acquired operation fingerprint is matched with the preset fingerprint or not and when the operation fingerprint is matched with the preset first fingerprint; when the operation fingerprint is matched with the preset second fingerprint, the electronic device 100 is controlled to execute the second operation, and then the electronic device can be controlled to execute the corresponding operation without performing other operations, so that the method is simple, convenient and fast, and the user experience is improved.
Specifically, when the operation fingerprint matches a preset first fingerprint, the electronic device 100 is controlled to perform a first operation, and when the operation fingerprint matches the preset first fingerprint, the electronic device 100 is controlled to run a first application program. When the operation fingerprint is matched with the preset second fingerprint, the electronic device 100 is controlled to execute the second operation, that is, when the operation fingerprint is matched with the preset second fingerprint, the electronic device 100 is controlled to run the second application program. The first application program and the second application program are two application programs with the highest use frequency in a preset time period.
In some embodiments, the usage times of all the applications of the electronic device 100 in the preset time period are sorted from few to many or from long to short in usage time, and the two applications with the usage times sorted in the first two are determined as the applications with the highest usage frequency.
Therefore, in some embodiments, the application program with the highest usage frequency in the preset time period refers to the application program with the longest usage time or the highest number of times of user activation in the preset time period. The use time refers to the accumulated time of the application program in the foreground, and does not include the time in the background, for example, the QQ application program is always running in the background, but the use time is not accumulated if the user has not used the application program. The preset time period may be a time period within 1 hour nearest to the current time or within 2 hours nearest to the current time, or may be a week before the current time. The specific user may set the setting according to the requirement, or may be defaulted by the system, which is not limited herein.
In some embodiments, the first application is an application with a first usage frequency ranking within a preset time period, and the second application is an application with a second usage frequency ranking within a preset time period.
In a specific example, for example, according to statistical findings, the application program ranked first by the usage frequency of the user in the latest preset time period is a WeChat application program and then an Aichi art application program, and when the first fingerprint (for example, a thumb fingerprint) is acquired, the electronic device 100 is controlled to start the WeChat application program to enter the application interface. When the second fingerprint (for example, the index finger fingerprint) is acquired, the electronic device 100 is controlled to start the arcade application program to enter an application interface thereof. The electronic device 100 provided by the embodiment can open the application program with high use frequency according to the use habit of the user, so that the interaction of the electronic device 100 is more intelligent, and the user experience is further improved. It is understood that, in other embodiments, the first application program and the second application program may also be set according to the use habits of the user.
In some embodiments, after two applications are ranked in parallel first by ranking one of the number of times of use or the time of use of all the applications of the electronic device 100 within the preset time period, the applications ranked first by the application ranked further according to the other of the number of times of use and the time of use within the preset time period are further ranked according to the other of the number of times of use and the time of use within the preset time period, and the applications ranked second by the application ranked according to the frequency of use within the preset time period are determined. For example, when the use frequency indicates that the number of times of using the WeChat application and the Aichi art application is the same, the judgment is further performed according to the use time, and when the use time of the Aichi art is longer than the use time of the WeChat, the Aichi art is determined to be the first application and the WeChat is determined to be the second application.
It should be noted that, in the present embodiment, the preset fingerprints may only include the preset first fingerprint and the preset second fingerprint. It is understood that in other embodiments, the preset fingerprints may further include more fingerprints, but the electronic device 100 is controlled to perform the first operation and the second operation only when the first fingerprint and the second fingerprint are matched. For example, the preset fingerprints may also include a third fingerprint and a fourth fingerprint, and when the third fingerprint is acquired, the third fingerprint matches the preset fingerprint, but the first fingerprint and the second fingerprint do not match, and therefore the electronic device 100 does not perform the first operation and the second operation.
Further, the control electronics 100 perform the first operation, further comprising: starting a running environment required by the first application program; the control electronics 100 perform a second operation, further comprising: and starting the running environment required by the second application program. Wherein the operating environment comprises a network environment. In particular, the network includes, but is not limited to, a mobile network, a Wi-Fi network, a Bluetooth network, and the like. For example, when the control WeChat is opened, the application program can normally communicate by controlling a mobile network or a Wi-Fi network to be in an open state. The electronic device 100 in this embodiment starts the application program and opens the network required by the application program, so that the application program can communicate normally without performing additional operations, and the operation is simpler and more convenient.
In some embodiments, the launching of the runtime environment required for the first application or the launching of the second application may be performed simultaneously with the launching of the first application or the second application. Obviously, in other embodiments, the running environment required for starting the first application or the running environment required for starting the second application may also be performed after the first application or the second application is started.
Referring to fig. 3, in an example of the present embodiment, the electronic device 100 further includes a prompt unit 100, and the operation method further includes the following steps:
and step S31, when the operation fingerprint does not match the preset fingerprint, controlling the prompting unit 60 to send a prompting message.
In the present embodiment, the prompting unit 60 includes, but is not limited to, a buzzer for emitting sound, a speaker, a light emitting diode for emitting light of different colors, and the like. It is understood that, in other embodiments, the prompting unit 60 may be the touch screen 10, that is, when the operating fingerprint does not match the preset fingerprint, the processor 30 controls the touch screen 10 to display a prompting message. The prompt information may be characters, pictures or symbols, and is displayed on the touch screen 10.
Referring to fig. 4, before the step of determining whether the operation fingerprint matches the preset fingerprint (step S22), the method further includes the following steps:
in step S41, it is determined whether the electronic device 100 is in an unlocked state. If yes, go to step S22; if not, go to step S42.
Step S42, when the operation fingerprint matches a preset fingerprint, controlling the electronic device 100 to unlock and execute the first operation or the second operation.
The controlling of the electronic device 100 to unlock and execute the first operation or the second operation may be controlling of the electronic device 100 to unlock first and then executing the first operation or the second operation. It is obviously also possible to control the electronic device 100 to unlock while performing the first operation or the second operation. In this embodiment, the controlling the electronic device 100 to unlock and execute the first operation or the second operation is specifically to control the electronic device 100 to unlock and run the first application program when the operation fingerprint matches a preset first fingerprint; or when the operation fingerprint is matched with a preset second fingerprint, controlling to unlock the electronic device 100 and run the second application program. Therefore, in this embodiment, when the electronic device 100 is in the screen locking state, if the operation fingerprint matches the preset fingerprint, the electronic device 100 is unlocked and the first operation or the second operation is performed, which is more convenient and faster, and improves the user experience.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The methods of operation provided herein may be embodied in hardware, firmware, or as software or computer code that may be stored in a computer readable storage medium such as a CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code that is originally stored on a remote recording medium or a non-transitory machine readable medium, downloaded over a network, and stored in a local recording medium, such that the methods described herein may be presented in software stored on a recording medium using a general purpose computer or special purpose processor, or in programmable or special purpose hardware such as an ASIC or FPGA. As can be appreciated in the art, a computer, processor, microprocessor, controller or programmable hardware includes a memory component, e.g., RAM, ROM, flash memory, etc., which can store or receive software or computer code when the computer, processor or hardware accesses and executes the software or computer code implementing the processing methods described herein. In addition, when a general-purpose computer accesses code for implementing the processing shown herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the processing shown herein.
The computer readable storage medium may be a solid state memory, a memory card, an optical disc, etc. The computer readable storage medium stores program instructions for the computer to call and then execute the operation method.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and embodiments of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.