CN106201548A - The control method of a kind of mobile terminal key event and system - Google Patents

The control method of a kind of mobile terminal key event and system Download PDF

Info

Publication number
CN106201548A
CN106201548A CN201610582349.XA CN201610582349A CN106201548A CN 106201548 A CN106201548 A CN 106201548A CN 201610582349 A CN201610582349 A CN 201610582349A CN 106201548 A CN106201548 A CN 106201548A
Authority
CN
China
Prior art keywords
key
intercepted
event
app
interface
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.)
Pending
Application number
CN201610582349.XA
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201610582349.XA priority Critical patent/CN106201548A/en
Publication of CN106201548A publication Critical patent/CN106201548A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses control method and the system of a kind of mobile terminal key event, wherein, the key-press event that the control method of described mobile terminal key event is current by intercepting mobile terminal;Obtain APP or the interface information being currently operating at top layer afterwards;Judge that current APP or interface whether for APP or to be intercepted interface to be intercepted, the most then continue to judge that current key-press event, whether for key-press event to be intercepted, otherwise, does not intercept current key-press event afterwards;When current key-press event is in time intercepting key-press event, then intercepting this key-press event, do not issue process, such that it is able to carry out key-press event for certain APP or interface to arrange interception protection, prevent the inconvenience that maloperation when using brings to user.

Description

The control method of a kind of mobile terminal key event and system
Technical field
The present invention relates to technical field of mobile terminals, particularly to the control method of a kind of mobile terminal key event and be System.
Background technology
Along with the development of intelligent terminal is increasingly faster, more and more universal, the quantity being equipped with mobile terminal in family is the most more come The most, and child is likely to oneself take mobile terminal to entertain, such as adept machine and flat board in the case of not having adult to supervise See picture video or play game, the most do not note child the file on mobile terminal or application may be carried out overdue very To being to delete by mistake, if relating to capsule information, the biggest loss and trouble can be brought to user.
Thus prior art could be improved and improve.
Summary of the invention
In place of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of mobile terminal key event Control method and system, can carry out key-press event for certain APP or interface and arrange interception protection, prevent mistake behaviour when using Make the inconvenience brought to user.
In order to achieve the above object, this invention takes techniques below scheme
The control method of a kind of mobile terminal key event, it comprises the steps:
The key-press event that A, interception mobile terminal are current;
B, obtain and be currently operating at APP or the interface information of top layer;
C, judge that current APP or interface whether for APP or to be intercepted interface to be intercepted, the most then perform step D;Otherwise, no Intercept current key-press event;
D, continue to judge that current key-press event whether for key-press event to be intercepted, the most then intercepts this key-press event, do not does down Send out and process;Otherwise, current key-press event is not intercepted.
In the control method of described mobile terminal key event, described step B specifically includes:
Obtain bag name or the class name at interface of the APP being currently operating at top layer.
In the control method of described mobile terminal key event, before described step A, include step:
A0, pre-set APP to be intercepted, interface to be intercepted and key-press event to be intercepted.
In the control method of described mobile terminal key event, after described step B, before step C, include step:
C0, the bag name obtaining APP to be intercepted and the class name at interface to be intercepted.
In the control method of described mobile terminal key event, after described step A, before step B, include step:
Whether B0, detection currently open interception switch, the most then perform step B;Otherwise, current key-press event is not intercepted.
A kind of control system of mobile terminal key event, comprising:
Blocking module, for intercepting the key-press event that mobile terminal is current;
Acquisition module, for obtaining APP or the interface information being currently operating at top layer;
Judge module, for judging that current APP or interface are whether for APP or to be intercepted interface to be intercepted;
Described judge module is additionally operable at current APP or interface as wait intercepting APP or in time intercepting interface, continues to judge current Key-press event whether for key-press event to be intercepted, the most then intercept this key-press event, do not issue process;Otherwise, do not intercept Current key-press event.
In the control system of described mobile terminal key event, described acquisition module is currently operating at specifically for obtaining The bag name of the APP of top layer or the class name at interface.
In the control system of described mobile terminal key event, also include:
Module is set, is used for pre-setting APP to be intercepted, interface to be intercepted and key-press event to be intercepted.
In the control system of described mobile terminal key event, described acquisition module is additionally operable to obtain APP's to be intercepted Bag name and the class name at interface to be intercepted.
In the control system of described mobile terminal key event, also include:
Detection module, is used for detecting and currently whether opens interception switch.
Compared to prior art, in the control method of the mobile terminal key event that the present invention provides and system, described shifting The key-press event that the control method of dynamic terminal push event is current by intercepting mobile terminal;Obtain afterwards and be currently operating at top layer APP or interface information;Judge whether for APP or to be intercepted interface to be intercepted, the most then to continue in current APP or interface afterwards Continuous judge that current key-press event, whether for key-press event to be intercepted, otherwise, does not intercept current key-press event;When current is pressed Key events in time intercepting key-press event, then intercepting this key-press event, not issuing process, such that it is able to for certain APP or Interface carries out key-press event and arranges interception protection, prevents the inconvenience that maloperation when using brings to user.
Accompanying drawing explanation
The flow chart of the control method of the mobile terminal key event that Fig. 1 provides for the present invention.
The structured flowchart of the control system of the mobile terminal key event that Fig. 2 provides for the present invention.
Detailed description of the invention
In view of prior art causes the file on mobile terminal or application to be deleted by overdue due to maloperation the most by mistake Etc. shortcoming, it is an object of the invention to provide control method and the system of a kind of mobile terminal key event, can be for certain APP or interface carry out key-press event and arrange interception protection, prevent the inconvenience that maloperation when using brings to user.
For making the purpose of the present invention, technical scheme and effect clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention further describes.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to Limit the present invention.
Referring to Fig. 1, the control method of the mobile terminal key event that the present invention provides comprises the steps:
The key-press event that S100, interception mobile terminal are current;
S200, obtain and be currently operating at APP or the interface information of top layer;
S300, judge that current APP or interface whether for APP or to be intercepted interface to be intercepted, the most then perform step S400; Otherwise, current key-press event is not intercepted;
S400, continue to judge that current key-press event whether for key-press event to be intercepted, the most then intercepts this key-press event, no Issue process;Otherwise, current key-press event is not intercepted.
The i.e. control method of the mobile terminal key event that the present invention provides first passes through at bottom interception mobile terminal current Key-press event, key-press event includes physics or virtual key and screen taps event, and the interception to event is all carried out at bottom Intercept, if physically or a virtually button, can be similar PhoneWindowManager's InterceptKeyBeforeDispatching method intercepts, if screen taps event, then at similar ViewGroup OnInterceptTouchEvent, dispatchTouchEvent and View dispatchTouchEvent in carry out thing The interception of part;Obtain APP or the interface information operating in top layer afterwards, first judge to be currently operating at the APP of top layer or interface letter Whether breath is APP to be intercepted or interface, the most then continue to judge whether current key-press event is that band intercepts key-press event, The most then intercept this key-press event, do not issue process, to protect this application or interface not to be controlled by current key-press event.
Such as limit user can only in Gallery applies browsing pictures, can be done exercises in this interface and be restricted, only allow User slides, and does not allow other operation, i.e. in Gallery applies, except slip event, and other events such as click, length The event such as pressing, be key-press event to be intercepted, so, user just can only check picture, and can not do other and operate, the most not With worrying that these pictures are deleted, effectively protect the file security of user.Or, it is easy to imprudence when of transverse screen by arriving HOME key and return to desktop, can to certain application (as video playback apply) limit HOME key operation, i.e. HOME key is pressed Key events be band intercept key-press event, so in the use of this application, the most hand-off or slide all without worry by arriving HOME key (when that such as transverse screen seeing video), brings the biggest convenience to user.
Preferably, when intercepting key-press event, the judgement for screen touch event needs to consider to postpone.For Limit click event and be not intended to long by and this situation of slip event, can not simply find that touch event is with regard to mistake at the beginning Filter, need to do a delay, wait until to judge not trigger long by and slip event after the most formal limit this operation.With Reason, if limit long by and slip event, and do not limit click event, that needs one to prolong for click event too Judge late, wait confirmation be not the most long by and slip event, just respond this operation, the most just filter out this and operate.Due to The unit of time postponing to judge is all the millisecond magnitude of a numerical digit, so not interfering with the operating experience of user (that is User does not feels as click event response not in time), also improve the accuracy that key-press event intercepts simultaneously.
Wherein, described step S200 specifically includes: obtain bag name or the class name at interface of the APP being currently operating at top layer. When being embodied as, bag name and the class name at interface of the APP being currently operating at top layer can be obtained from the storehouse run, due to bag name A unique corresponding APP, a class name uniquely corresponding interface, therefore by the class name of the bag name or interface that obtain APP with accurately Obtain be currently operating at the APP of top layer or interface, for follow-up judge whether it provide for APP or to be intercepted interface to be intercepted can By foundation.
Further, after described step S200, also include before step S300:
S301, the bag name obtaining APP to be intercepted and the class name at interface to be intercepted.Also due to the bag name of each APP and interface Class name is all unique, the class name of bag name He interface to be intercepted by obtaining APP to be intercepted, with current APP bag name or boundary The class name in face directly contrasts and i.e. can determine whether to learn and be currently operating at the APP of top layer or interface whether for APP to be intercepted or wait to intercept Interface, improves the accuracy judged.
Further, also include before described step S100:
S101, pre-set APP to be intercepted, interface to be intercepted and key-press event to be intercepted.
I.e. user can pre-set, according to self service condition, APP, interface and the key-press event needing to intercept, specifically real Shi Shi, can be recalled by shortcut key and arrange interface, the combination setting preferably multikey of shortcut, if singly-bound, by mistake behaviour Make and the combination of two or three physics or virtual key can be preferably arranged to, example very greatly arranging the next probability of interface ejection As in volume, lower key and RecentAPP key as shortcut, by arrange interface user optional be to Interface Control or To APP control, and interface and APP can be selected, also can open or close interception function, for different APP and boundary Face arranges the key-press event to be intercepted of correspondence, to reach to carry out the effect of different customization according to different situations, reaches personalized control System, meets the multiple demand of user.The attribute of these setting options is then stored in fixed position, when bottom control according to reading Value is set to control follow-up interception action.
Further, after described step S100, also include before step S200:
Whether S201, detection currently open interception switch, the most then perform step S200;Otherwise, current button thing is not intercepted Part.
User mentioned above can select to open or close interception function arranging on interface, then intercepting current key-press event After, thinking whether detection currently opens interception switch, the most then continue follow-up acquisition and judge process, working as if the most not intercepting Front key-press event, by normal event handling process, to save system power dissipation.
The present invention also provides for the control system of a kind of mobile terminal key event accordingly, as in figure 2 it is shown, described mobile terminal The control system of key-press event includes blocking module 10, acquisition module 20 and judge module 30, described blocking module 10, acquisition mould Block 20 and judge module 30 are sequentially connected with, and described blocking module 10 is for intercepting the key-press event that mobile terminal is current;Described obtain Delivery block 20 is currently operating at APP or the interface information of top layer for obtaining;Described judge module 30 is for judging current APP Or whether interface is for APP or to be intercepted interface to be intercepted;Described judge module 30 is additionally operable at current APP or interface as waiting to block Cut APP or in time intercepting interface, continue to judge current key-press event whether for key-press event to be intercepted, the most then interception is somebody's turn to do Key-press event, does not issue process;Otherwise, current key-press event is not intercepted.Specifically refer to the enforcement that said method is corresponding Example.
Wherein, described acquisition module 20 is specifically for obtaining bag name or the class name at interface of the APP being currently operating at top layer; Described acquisition module 20 is additionally operable to the class name at bag name and the interface to be intercepted obtaining APP to be intercepted.Specifically refer to said method Corresponding embodiment.
The control system of described mobile terminal key event also includes arranging module 40 and detection module 50, described detection mould Block 50 connection arranges module 40 and blocking module 10, and the described module 40 that arranges is for pre-setting APP to be intercepted, interface to be intercepted With key-press event to be intercepted;Whether described detection module 50 is used for detecting currently opens interception switch.Specifically refer to above-mentioned side The embodiment that method is corresponding.
In sum, in the control method of the mobile terminal key event that the present invention provides and system, described mobile terminal The key-press event that the control method of key-press event is current by intercepting mobile terminal;Obtain the APP being currently operating at top layer afterwards Or interface information;Judge that current APP or interface whether for APP or to be intercepted interface to be intercepted, the most then continue to judge afterwards Current key-press event, whether for key-press event to be intercepted, otherwise, does not intercept current key-press event;When current key-press event For in time intercepting key-press event, then intercepting this key-press event, not issuing process, such that it is able to enter for certain APP or interface Row key-press event arranges interception protection, prevents the inconvenience that maloperation when using brings to user.
It is understood that for those of ordinary skills, can be according to technical scheme and send out Bright design in addition equivalent or change, and all these change or replace the guarantor that all should belong to appended claims of the invention Protect scope.

Claims (10)

1. the control method of a mobile terminal key event, it is characterised in that comprise the steps:
The key-press event that A, interception mobile terminal are current;
B, obtain and be currently operating at APP or the interface information of top layer;
C, judge that current APP or interface whether for APP or to be intercepted interface to be intercepted, the most then perform step D;Otherwise, no Intercept current key-press event;
D, continue to judge that current key-press event whether for key-press event to be intercepted, the most then intercepts this key-press event, do not does down Send out and process;Otherwise, current key-press event is not intercepted.
The control method of mobile terminal key event the most according to claim 1, it is characterised in that described step B is concrete Including:
Obtain bag name or the class name at interface of the APP being currently operating at top layer.
The control method of mobile terminal key event the most according to claim 1, it is characterised in that before described step A Including step:
A0, pre-set APP to be intercepted, interface to be intercepted and key-press event to be intercepted.
The control method of mobile terminal key event the most according to claim 1, it is characterised in that after described step B, Step is included before step C:
C0, the bag name obtaining APP to be intercepted and the class name at interface to be intercepted.
The control method of mobile terminal key event the most according to claim 1, it is characterised in that after described step A, Step is included before step B:
Whether B0, detection currently open interception switch, the most then perform step B;Otherwise, current key-press event is not intercepted.
6. the control system of a mobile terminal key event, it is characterised in that including:
Blocking module, for intercepting the key-press event that mobile terminal is current;
Acquisition module, for obtaining APP or the interface information being currently operating at top layer;
Judge module, for judging that current APP or interface are whether for APP or to be intercepted interface to be intercepted;
Described judge module is additionally operable at current APP or interface as wait intercepting APP or in time intercepting interface, continues to judge current Key-press event whether for key-press event to be intercepted, the most then intercept this key-press event, do not issue process;Otherwise, do not intercept Current key-press event.
The control system of mobile terminal key event the most according to claim 6, it is characterised in that described acquisition module has Body is for obtaining bag name or the class name at interface of the APP being currently operating at top layer.
The control system of mobile terminal key event the most according to claim 6, it is characterised in that also include:
Module is set, is used for pre-setting APP to be intercepted, interface to be intercepted and key-press event to be intercepted.
The control system of mobile terminal key event the most according to claim 6, it is characterised in that described acquisition module is also The class name of bag name He interface to be intercepted for obtaining APP to be intercepted.
The control system of mobile terminal key event the most according to claim 6, it is characterised in that also include:
Detection module, is used for detecting and currently whether opens interception switch.
CN201610582349.XA 2016-07-22 2016-07-22 The control method of a kind of mobile terminal key event and system Pending CN106201548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610582349.XA CN106201548A (en) 2016-07-22 2016-07-22 The control method of a kind of mobile terminal key event and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610582349.XA CN106201548A (en) 2016-07-22 2016-07-22 The control method of a kind of mobile terminal key event and system

Publications (1)

Publication Number Publication Date
CN106201548A true CN106201548A (en) 2016-12-07

Family

ID=57492146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610582349.XA Pending CN106201548A (en) 2016-07-22 2016-07-22 The control method of a kind of mobile terminal key event and system

Country Status (1)

Country Link
CN (1) CN106201548A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107347118A (en) * 2017-08-22 2017-11-14 深圳鼎智通讯股份有限公司 Button selectively masking system and its screen method
CN108693948A (en) * 2018-03-27 2018-10-23 广东欧珀移动通信有限公司 Frame per second method of adjustment, device, terminal device and storage medium
CN110865762A (en) * 2019-07-29 2020-03-06 努比亚技术有限公司 Method for preventing mistaken screen off, terminal and computer readable storage medium
CN110989957A (en) * 2019-12-12 2020-04-10 深圳市深智电科技有限公司 Multi-screen display method, terminal and storage medium
CN114629989A (en) * 2022-03-23 2022-06-14 深圳麦风科技有限公司 Android application control method and device, intelligent terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605429A (en) * 2013-11-30 2014-02-26 深圳市金立通信设备有限公司 Processing method for response key operation and mobile terminal
CN104391707A (en) * 2014-12-05 2015-03-04 上海斐讯数据通信技术有限公司 Application program starting method and starting device
CN104536666A (en) * 2014-12-29 2015-04-22 广东欧珀移动通信有限公司 Method and device for fast switching application program and interface of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605429A (en) * 2013-11-30 2014-02-26 深圳市金立通信设备有限公司 Processing method for response key operation and mobile terminal
CN104391707A (en) * 2014-12-05 2015-03-04 上海斐讯数据通信技术有限公司 Application program starting method and starting device
CN104536666A (en) * 2014-12-29 2015-04-22 广东欧珀移动通信有限公司 Method and device for fast switching application program and interface of application program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107347118A (en) * 2017-08-22 2017-11-14 深圳鼎智通讯股份有限公司 Button selectively masking system and its screen method
CN108693948A (en) * 2018-03-27 2018-10-23 广东欧珀移动通信有限公司 Frame per second method of adjustment, device, terminal device and storage medium
CN108693948B (en) * 2018-03-27 2020-12-11 Oppo广东移动通信有限公司 Frame rate adjusting method and device, terminal equipment and storage medium
CN110865762A (en) * 2019-07-29 2020-03-06 努比亚技术有限公司 Method for preventing mistaken screen off, terminal and computer readable storage medium
CN110865762B (en) * 2019-07-29 2022-04-19 努比亚技术有限公司 Method for preventing mistaken screen off, terminal and computer readable storage medium
CN110989957A (en) * 2019-12-12 2020-04-10 深圳市深智电科技有限公司 Multi-screen display method, terminal and storage medium
CN114629989A (en) * 2022-03-23 2022-06-14 深圳麦风科技有限公司 Android application control method and device, intelligent terminal and storage medium
CN114629989B (en) * 2022-03-23 2024-05-17 深圳麦风科技有限公司 Android application management and control method and device, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN106201548A (en) The control method of a kind of mobile terminal key event and system
CN107038112B (en) Application interface debugging method and device
CN106325663B (en) Mobile terminal and its screenshotss method
CN110515510A (en) Data processing method, device, equipment and storage medium
CN107402667A (en) Electronic equipment comprising display
CN103279295A (en) Method and device for terminal desktop icon switching
CN106406904A (en) Information processing method, electronic equipment and information processing device
CN104007919B (en) Electronic device and control method thereof
CN104252303A (en) Method and system for operating games based on pressure sensitive information
CN103139390A (en) Method, system of unlocking screen of mobile phone and mobile phone
CN103513869A (en) Method and device for displaying terminal lock screen interface and Widget
JP2015521775A (en) Intelligent terminal text input display method and apparatus
CN104035715B (en) Terminal control method and system based on touch-screen
CN105912263A (en) One-hand operating method and system for mobile terminal
CN107193553A (en) Key control method and device
CN106980445A (en) Manipulate the awaking method and device, electronic equipment of menu
CN110069178A (en) Interface control method and terminal device
CN109521933A (en) A kind of display control method and mobile terminal
CN105302693A (en) Time management method and system and electronic device
CN103412723A (en) Mobile terminal unlocking method and mobile terminal unlocking system
CN115023683A (en) Stylus pen, terminal, control method thereof, and computer-readable storage medium
CN109144377A (en) Operating method, smartwatch and the computer readable storage medium of smartwatch
CN103152484A (en) Method and system for turning off alarm of mobile terminal
CN107562356B (en) Fingerprint identification positioning method and device, storage medium and electronic equipment
CN108696445A (en) Flow control methods, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207