CN104765466B - The key control method and device of mobile terminal - Google Patents
The key control method and device of mobile terminal Download PDFInfo
- Publication number
- CN104765466B CN104765466B CN201510223398.XA CN201510223398A CN104765466B CN 104765466 B CN104765466 B CN 104765466B CN 201510223398 A CN201510223398 A CN 201510223398A CN 104765466 B CN104765466 B CN 104765466B
- Authority
- CN
- China
- Prior art keywords
- button
- interrupt signal
- keys interrupt
- mobile terminal
- keys
- 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
Links
Landscapes
- Telephone Function (AREA)
Abstract
The present invention is applied to technical field of mobile terminals, there is provided the key control method and device of mobile terminal.Methods described includes:When detecting keys interrupt signal, the duration of the keys interrupt signal is monitored;When the duration of the keys interrupt signal being more than preset value, button corresponding to the keys interrupt signal is disabled.The present invention is by when detecting keys interrupt signal, monitor the duration of keys interrupt signal, and when the duration of keys interrupt signal being more than preset value, disable button corresponding to keys interrupt signal, it thus avoid button caused by damaging due to button to be constantly in long-press state, persistently trigger the problem of keys interrupt, so as to which mobile terminal remains to normal use after button damage.
Description
Technical field
The invention belongs to the key control method and device of technical field of mobile terminals, more particularly to mobile terminal.
Background technology
The push button longevity of each mobile terminal is all limited, and button may also cause card key because structure is bad, or
Person causes button to corrode due to penetrating into liquid, so as to which button is constantly in long-press state, persistently triggers keys interrupt, makes mobile whole
End can not normal use.For example, volume key is constantly in long-press state, cause volume progress bar currently displayed interface always,
And volume constantly regulate;Power key is constantly in long-press state, causes occur cycle power option always;Shoot button is located always
In long-press state, cause constantly to take pictures.It is, therefore, desirable to provide a new technical scheme, to solve above-mentioned technical problem.
The content of the invention
In consideration of it, the embodiments of the invention provide a kind of key control method of mobile terminal and device, it is existing to solve
In technology due to button damage cause button to be constantly in long-press state, make mobile terminal can not normal use the problem of.
On the one hand, the embodiments of the invention provide a kind of key control method of mobile terminal, including:
When detecting keys interrupt signal, the duration of the keys interrupt signal is monitored;
When the duration of the keys interrupt signal being more than preset value, disable and pressed corresponding to the keys interrupt signal
Key.
Second aspect, the embodiments of the invention provide a kind of key control device of mobile terminal, including:
Monitoring unit, for when detecting keys interrupt signal, monitoring the duration of the keys interrupt signal;
Forbidden cell, for when the duration of the keys interrupt signal being more than preset value, disabling in the button
Button corresponding to break signal.
Existing beneficial effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention by when detect by
During key interrupt signal, the duration of keys interrupt signal is monitored, and when the duration of keys interrupt signal is more than preset value
When, button corresponding to disabling keys interrupt signal, it thus avoid button caused by being damaged due to button and be constantly in long-press shape
State, the problem of keys interrupt is persistently triggered, so as to which mobile terminal remains to normal use after button damage.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process figure of the key control method of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is the implementation process figure of the key control method for the mobile terminal that another embodiment of the present invention provides;
Fig. 3 is the structured flowchart of the key control device of mobile terminal provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows the implementation process figure of the key control method of mobile terminal provided in an embodiment of the present invention, is described in detail such as
Under:
In step S101, when detecting keys interrupt signal, the duration of the keys interrupt signal is monitored.
It should be noted that mobile terminal in the embodiment of the present invention can include mobile phone (or for " honeycomb " electricity
Words) and with mobile terminal computer, for example, it may be portable, pocket, hand-held, built-in computer or car
The mobile device of load, they exchange language and/or data with wireless access network.For example, PCS (Personal
Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation
Protocol, SIP) phone, WLL (Wireless Local Loop, WLL) stand, personal digital assistant
Equipment such as (Personal Digital Assistant, PDA), is not limited thereto.
Keys interrupt signal may trigger because button is pressed by the user, it is also possible to be touched automatically because button damages
Hair.
Preferably, described when detecting keys interrupt signal, the duration for monitoring the keys interrupt signal is specific
For:
After button monitoring instruction is received, if detecting keys interrupt signal, the keys interrupt signal is monitored
Duration.
Herein, it can be to receive user to pass through pre-set button on mobile terminal or existing to receive button monitoring instruction
The button monitoring instruction that the combination of a button or multiple buttons is sent in button;Or receive user and pass through mobile terminal
The button monitoring instruction (such as sliding two circles counterclockwise) that touch-screen is sent.If receiving the button monitoring instruction of user's input,
Then show that some or multiple buttons of now mobile terminal have failure, it is necessary to be monitored.Alternatively, button is being received
After monitoring instruction, if detecting keys interrupt signal in normal boot-strap pattern, factory mode and/or fast attack mode,
Start timer, monitor the duration of keys interrupt signal.Herein, the duration of keys interrupt signal refers to button
The duration being pressed.
In step s 102, when the duration of the keys interrupt signal being more than preset value, disable in the button
Button corresponding to break signal.
For example, preset value can be 10 seconds, do not limit herein.In the case of button is unspoiled, keys interrupt signal
Duration typically not over preset value, i.e., the duration that button is pressed is typically not over preset value.Work as button
When the duration of interrupt signal is more than preset value, largely show that button corresponding to the keys interrupt signal has damaged
It is bad, therefore, disable button corresponding to keys interrupt signal.Button corresponding to disabling keys interrupt signal refers to ignoring the button
Keys interrupt signal, the keys interrupt signal of the button is not handled.
Fig. 2 shows the implementation process figure of the key control method for the mobile terminal that another embodiment of the present invention provides, ginseng
According to Fig. 2:
In step s 201, when detecting keys interrupt signal, the duration of the keys interrupt signal is monitored;
In step S202, when the duration of the keys interrupt signal being more than preset value, disable in the button
Button corresponding to break signal;
In step S203, virtual key is set on the touch-screen of the mobile terminal, the virtual key is used to hold
The function of button corresponding to the row keys interrupt signal.
As one embodiment of the present of invention, after button corresponding to disabling keys interrupt signal, in touching for mobile terminal
Touch and virtual key is set on screen, and the function of button corresponding to the keys interrupt signal is mapped on the virtual key, with logical
The function that the virtual key completes button corresponding to the keys interrupt signal is crossed, it is mobile whole in the case of being damaged in button
End also can normal use.
Alternatively, after button corresponding to the disabling keys interrupt signal, methods described also includes:
When button is power key corresponding to the keys interrupt signal, power up function is increased to specified button, with institute
After stating mobile terminal shutdown, booted up by the specified button.
Herein, specified button can be any one physical button in addition to power key.One as the present invention
Embodiment, when button corresponding to keys interrupt signal is power key, power up function is increased to specified button, with mobile terminal
After shutdown, booted up by the specified button, in the case of being damaged in power key, remain to normal boot-strap.
Alternatively, after button corresponding to the disabling keys interrupt signal, methods described also includes:
When button is power key corresponding to the keys interrupt signal, after mobile terminal shutdown, if detecting
The mobile terminal enters charged state, then directly starts shooting.
As an alternative embodiment of the invention, when button corresponding to keys interrupt signal is power key, mobile whole
After the shutdown of end, if detecting, mobile terminal enters charged state, directly starts shooting, in the case of being damaged in power key, still
Can normal boot-strap.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be determined with its function and internal logic, the implementation process structure without tackling the embodiment of the present invention
Into any restriction.
The embodiment of the present invention monitors the duration of keys interrupt signal by when detecting keys interrupt signal, and
When the duration of keys interrupt signal being more than preset value, disable keys interrupt signal corresponding to button, thus avoid by
In button damage caused by button be constantly in long-press state, persistently trigger keys interrupt the problem of, so as to button damage after
Mobile terminal remains to normal use.
Fig. 3 shows the structured flowchart of the key control device of mobile terminal provided in an embodiment of the present invention, and the device can
For the key control method of the mobile terminal shown in service chart 1 or Fig. 2.For convenience of description, illustrate only and the present invention
The related part of embodiment.
Reference picture 3, the device include:
Monitoring unit 31, for when detecting keys interrupt signal, monitoring the duration of the keys interrupt signal;
Forbidden cell 32, for when the duration of the keys interrupt signal being more than preset value, disabling the button
Button corresponding to interrupt signal.
Preferably, described device also includes:
Virtual key setting unit 33, it is described virtual for setting virtual key on the touch-screen of the mobile terminal
Button is used for the function of performing button corresponding to the keys interrupt signal.
Alternatively, described device also includes:
First start setting unit 34, for when button be power key corresponding to the keys interrupt signal, to specified
Button increases power up function, after mobile terminal shutdown, to be booted up by the specified button.
Alternatively, described device also includes:
Second start setting unit 35, for when button is power key corresponding to the keys interrupt signal, described
After mobile terminal shutdown, if detecting, the mobile terminal enters charged state, directly starts shooting.
Preferably, the monitoring unit 31 is specifically used for:
After button monitoring instruction is received, if detecting keys interrupt signal, the keys interrupt signal is monitored
Duration.
The embodiment of the present invention monitors the duration of keys interrupt signal by when detecting keys interrupt signal, and
When the duration of keys interrupt signal being more than preset value, disable keys interrupt signal corresponding to button, thus avoid by
In button damage caused by button be constantly in long-press state, persistently trigger keys interrupt the problem of, so as to button damage after
Mobile terminal remains to normal use.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication link of unit
Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (6)
- A kind of 1. key control method of mobile terminal, it is characterised in that including:When detecting keys interrupt signal, the duration of the keys interrupt signal is monitored, including:Receiving button prison After control instruction, if detecting keys interrupt signal, the duration of the keys interrupt signal is monitored;Wherein, button is received Monitoring instruction is to receive user to pass through a button in pre-set button on mobile terminal or existing button or multiple buttons Combine the button monitoring instruction sent;Or receive the button that user is sent by mobile terminal touch screen and monitor instruction;When the duration of the keys interrupt signal being more than preset value, button corresponding to the keys interrupt signal is disabled; Wherein, button corresponding to disabling keys interrupt signal refers to the keys interrupt signal for ignoring the button, the button is not pressed Key interrupt signal is handled;After button corresponding to the disabling keys interrupt signal, methods described also includes:Virtual key is set on the touch-screen of the mobile terminal, and the virtual key is used to perform the keys interrupt signal The function of corresponding button.
- 2. the method as described in claim 1, it is characterised in that button corresponding to the disabling keys interrupt signal it Afterwards, methods described also includes:When button is power key corresponding to the keys interrupt signal, power up function is increased to specified button, with the shifting After dynamic terminal closedown, booted up by the specified button.
- 3. the method as described in claim 1, it is characterised in that button corresponding to the disabling keys interrupt signal it Afterwards, methods described also includes:When button is power key corresponding to the keys interrupt signal, after mobile terminal shutdown, if detecting described Mobile terminal enters charged state, then directly starts shooting.
- A kind of 4. key control device of mobile terminal, it is characterised in that including:Monitoring unit, for when detecting keys interrupt signal, monitoring the duration of the keys interrupt signal;Forbidden cell, for when the duration of the keys interrupt signal being more than preset value, disabling the keys interrupt letter Button corresponding to number;Wherein, button corresponding to disabling keys interrupt signal refers to the keys interrupt signal for ignoring the button, no The keys interrupt signal of the button is handled;The monitoring unit is specifically used for:After button monitoring instruction is received, if detecting keys interrupt signal, continuing for the keys interrupt signal is monitored Time;Wherein, it is to receive user to pass through one in pre-set button on mobile terminal or existing button to receive button monitoring instruction The button monitoring instruction that the combination of button or multiple buttons is sent;Or receive user and sent by mobile terminal touch screen Button monitoring instruction;Described device also includes:Virtual key setting unit, for setting virtual key on the touch-screen of the mobile terminal, the virtual key is used In the function of performing button corresponding to the keys interrupt signal.
- 5. device as claimed in claim 4, it is characterised in that described device also includes:First start setting unit, for when button is power key corresponding to the keys interrupt signal, increasing to specified button Add power up function, after mobile terminal shutdown, to be booted up by the specified button.
- 6. device as claimed in claim 4, it is characterised in that described device also includes:Second start setting unit, for when button be power key corresponding to the keys interrupt signal, at the mobile end After the shutdown of end, if detecting, the mobile terminal enters charged state, directly starts shooting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510223398.XA CN104765466B (en) | 2015-05-04 | 2015-05-04 | The key control method and device of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510223398.XA CN104765466B (en) | 2015-05-04 | 2015-05-04 | The key control method and device of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104765466A CN104765466A (en) | 2015-07-08 |
CN104765466B true CN104765466B (en) | 2018-01-26 |
Family
ID=53647352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510223398.XA Active CN104765466B (en) | 2015-05-04 | 2015-05-04 | The key control method and device of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104765466B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105376377A (en) * | 2015-10-09 | 2016-03-02 | 广东欧珀移动通信有限公司 | Physical button processing method and device |
CN107168828A (en) * | 2017-04-26 | 2017-09-15 | 深圳天珑无线科技有限公司 | A kind of utilization sensor circuit realizes the method and its system of button switching |
CN107155003A (en) * | 2017-04-26 | 2017-09-12 | 深圳天珑无线科技有限公司 | The emergency processing method and its system of a kind of physical button |
CN107515754A (en) * | 2017-08-24 | 2017-12-26 | 北京小米移动软件有限公司 | System startup separator processing method, device and storage medium |
CN108337372B (en) * | 2018-01-19 | 2020-06-02 | Oppo广东移动通信有限公司 | Electronic device, physical key detection method, device and computer readable storage medium |
CN109077685B (en) * | 2018-07-17 | 2021-07-27 | 佛山市顺德区美的洗涤电器制造有限公司 | Key control method and device of dish washing machine and computer readable storage medium |
CN109040437A (en) * | 2018-07-18 | 2018-12-18 | 奇酷互联网络科技(深圳)有限公司 | The method and apparatus of mobile terminal and its test earphone exception |
CN109831567B (en) * | 2018-11-15 | 2021-01-19 | 芯海科技(深圳)股份有限公司 | Method and system for improving reliability of pressure sensing power key of mobile terminal |
CN109743449A (en) * | 2018-12-27 | 2019-05-10 | 维沃移动通信有限公司 | A kind of virtual key display methods and terminal |
CN113946226A (en) * | 2020-07-15 | 2022-01-18 | 炬芯科技股份有限公司 | Key processing method and device, readable storage medium and electronic equipment |
CN113054979A (en) * | 2021-02-26 | 2021-06-29 | 深圳前海云充科技有限公司 | Control method and device for key fool-proofing, computer equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686356A (en) * | 2013-12-10 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method and device for adjusting key values |
CN104281410A (en) * | 2009-08-18 | 2015-01-14 | 佳能株式会社 | Information processing apparatus, control method therefor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101433277B1 (en) * | 2007-08-30 | 2014-08-22 | 레이저 (아시아-퍼시픽) 피티이 엘티디 | Keys deactivation system and method |
-
2015
- 2015-05-04 CN CN201510223398.XA patent/CN104765466B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281410A (en) * | 2009-08-18 | 2015-01-14 | 佳能株式会社 | Information processing apparatus, control method therefor |
CN103686356A (en) * | 2013-12-10 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method and device for adjusting key values |
Also Published As
Publication number | Publication date |
---|---|
CN104765466A (en) | 2015-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104765466B (en) | The key control method and device of mobile terminal | |
US11886282B2 (en) | Recovery method for terminal device startup failure and terminal device | |
CN105701025B (en) | A kind of method for recovering internal storage and device | |
CN103810020B (en) | Virtual machine elastic telescopic method and device | |
CN104679336B (en) | Adjust the method and device of touch-screen parameter | |
CN107528922A (en) | A kind of information push method, terminal and computer-readable recording medium | |
CN104901805B (en) | A kind of identification authentication methods, devices and systems | |
CN103838648A (en) | Terminal and data backup method | |
CN105022955B (en) | A kind of locking means and mobile terminal of application program | |
CN105334939B (en) | Terminal power consumption control method and device | |
CN103324549A (en) | Method for realizing sleep standby and communication terminal | |
CN107193598A (en) | One kind application startup method, mobile terminal and computer-readable recording medium | |
CN102984349A (en) | Method and device for screen locking code generating and screen unlocking method and screen unlocking device and mobile terminal | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN107491300A (en) | The reminding method and its terminal of a kind of intelligent function | |
CN107590144A (en) | A kind of file memory method and terminal | |
CN108932086A (en) | Display methods, device and the storage medium of application interface | |
CN111818469B (en) | Calling method, calling device, electronic equipment and network equipment | |
CN107948411A (en) | Terminal control method and device, terminal installation and computer-readable recording medium | |
CN107257313A (en) | A kind of message synchronization method and terminal | |
CN202995614U (en) | Electronic equipment | |
CN103457741A (en) | Working method of dynamic token | |
CN104123210A (en) | Method, device and system for testing performance of browser | |
CN108170383A (en) | A kind of method and relevant apparatus that printing is realized based on terminal device | |
CN106658457A (en) | Reminding method of flow shared by hotspot and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CP03 | Change of name, title or address |