CN105791561A - Mobile terminal control method and device - Google Patents

Mobile terminal control method and device Download PDF

Info

Publication number
CN105791561A
CN105791561A CN201610109447.1A CN201610109447A CN105791561A CN 105791561 A CN105791561 A CN 105791561A CN 201610109447 A CN201610109447 A CN 201610109447A CN 105791561 A CN105791561 A CN 105791561A
Authority
CN
China
Prior art keywords
event
home key
module
reported event
reported
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
CN201610109447.1A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610109447.1A priority Critical patent/CN105791561A/en
Publication of CN105791561A publication Critical patent/CN105791561A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mobile terminal control method and device. The method comprises the following steps of: intercepting a Home key event; delaying response operation of an intercepted Home key while intercepting a UP event of the Home key event; and cancelling the response operation of the intercepted Home key event while detecting operation from the Home key to a touch area within a preset time. By means of the embodiment of the invention, application of the upward sliding gesture of the Home key is realized; the problem that the Home key is wrongly touched due to the upward sliding gesture of the Home key is avoided; and thus, the user experience is improved.

Description

A kind of control method realizing mobile terminal and device
Technical field
The present embodiments relate to but be not limited to intelligent terminal's technology, espespecially a kind of control method realizing mobile terminal and device.
Background technology
When mobile terminal is operated, in current Android system, Home key-press event report flow is as shown in Figure 1, specifically include: first, when input equipment (InputDevice) detects the generation of Home key-press event, the Home key-press event detected is reported distribution filter course (InputFlinger.so) and processes;Then, reported event is distributed to framework services layer (FrameworkService.jar) by distribution filter course, framework services layer determines whether to load desktop according to the Home key-press event reported, when the Home key-press event reported be Home key-press event short by event time, then load desktop;When the length that Home key-press event is Home key-press event reported is by event, then it is not responding to this Home key-press event.
Along with popularizing of mobile terminal, gesture operation is also popular all the more, Home key slip up gesture but cannot realize application, as shown in Figure 2, this is due to before being defined as Home key slip up gesture (detecting from Home key to the operation in touch screen district), the KeyUp event of Home key-press event will be sent to framework services layer by distribution filter course, then framework services layer will respond this Home key-press event, namely load desktop, therefore can cause the false triggering of Home key when there being Home key slip up gesture to produce.
Summary of the invention
This application provides a kind of control method realizing mobile terminal and device, it is possible to realize the application of Home key slip up gesture and avoid the problem of the Home key false touch caused because of Home key slip up gesture, promoting Consumer's Experience.
In order to reach the application purpose, this application provides a kind of mobile terminal, including:
Intercept Home key-press event;
When intercepting the UP event of Home key-press event, the response operation of the Home key-press event intercepted is carried out delay disposal;
When detecting in preset duration from Home key to the operation in touch screen district, cancel the response to the Home key-press event intercepted and operate.
Alternatively, when being not detected by preset duration from Home key to the operation in touch screen district, the method also includes: the Home key-press event intercepted described in response.
Alternatively, after the response operation of the described cancellation Home key-press event to intercepting, the method includes:
Press MOTION_DOWN event for the touch screen in described touch screen district to arrange and preset mark;
The described MOTION_DOWN event being provided with mark is reported.
Alternatively, when receiving reported event, the method also includes:
The state of the reported event received described in determining;
State according to the reported event determined determines whether described reported event is carried out delay disposal.
Alternatively, described determine described in the state of reported event that receives include:
Detect and whether described reported event has described default mark;
When detect described reported event has described default mark time, it is determined that described reported event is that to operate and record the state of described reported event be true TRUE to Home key slip up;
When detect described reported event does not have described default mark time, the state recording described reported event is non-TRUE.
Alternatively, the state of the reported event that described basis is determined determines whether that described reported event is carried out delay disposal includes:
When the state of described reported event is TRUE, respond described reported event;
When the state of described reported event is non-TRUE, described reported event is carried out delay disposal.
Alternatively, carry out delay disposal described in include: arrange a timer;When the timing duration of described timer reaches described preset duration, respond described Home key-press event.
Alternatively, described presetting is masked as FLAG_MASK_BOTTOM_KEY, and the value of described default mark is 0x80000000.
Present invention also provides a kind of control device realizing mobile terminal, including: Home key-press event blocking module, delay disposal module and detection module;Wherein,
Home key-press event blocking module, is used for intercepting Home key-press event;When intercepting the UP event of Home key-press event, notify delay disposal module;
Delay disposal module, for receiving the notice from Home key-press event blocking module, carries out delay disposal to the response operation of the Home key-press event intercepted;When receiving the notice of self-detection module, cancel the response to the Home key-press event intercepted and operate;
Detection module, for when detecting in preset duration from Home key to the operation in touch screen district, notifying delay disposal module.
Alternatively, described detection module, it is additionally operable to, when being not detected by described preset duration from Home key to the operation in touch screen district, notify described delay disposal module;Correspondingly,
Described delay disposal module, is additionally operable to receive the notice from described detection module, the Home key-press event intercepted described in response.
Alternatively, this device also includes Sign module and event interception module;Wherein,
Described Sign module, for for described from Home key to the touch screen in touch screen district press MOTION_DOWN event arrange preset mark;Described event interception module is given by the described MOTION_DOWN reporting events being provided with mark;
Described event interception module, is used for receiving reported event.
Alternatively, described event interception module, be additionally operable to when receiving reported event, it is determined that described in the state of reported event that receives;
State according to the reported event determined determines whether described reported event is carried out delay disposal.
Alternatively, described event interception module determine described in the state of reported event that receives include:
Detect and whether described reported event has described default mark;
When detect described reported event has described default mark time, it is determined that described reported event is that to operate and record the state of described reported event be true TRUE to Home key slip up;
When detect described reported event does not have described default mark time, the state recording described reported event is non-TRUE.
Alternatively, according to the state of the reported event determined, described event interception module determines whether that described reported event is carried out delay disposal includes:
When the state of described reported event is TRUE, notify that described delay disposal module responds described reported event;
When the state of described reported event is non-TRUE, notify that described reported event is carried out delay disposal by described delay disposal module.
Alternatively, described delay disposal module carries out delay disposal and includes: arrange a timer;When the timing duration of described timer reaches described preset duration, respond described Home key-press event.
Alternatively, described presetting is masked as FLAG_MASK_BOTTOM_KEY, and the value of described default mark is 0x80000000.
The embodiment of the present invention includes: intercept Home key-press event;When intercepting the UP event of Home key-press event, the response operation of the Home key-press event intercepted is carried out delay disposal;When detecting in preset duration from Home key to the operation in touch screen district, cancel the response to the Home key-press event intercepted and operate.The embodiment of the present invention achieves the application of Home key slip up gesture and avoids the problem of the Home key false touch caused because of Home key slip up gesture, improves Consumer's Experience.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, and the schematic description and description of the present invention is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of reporting events flow process in existing Android system;
Fig. 2 is the schematic diagram of existing Home key slip up operation;
Fig. 3 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 4 is the schematic diagram of the communication system communicated between support mobile terminal of the present invention;
Fig. 5 is the flow chart that the present invention realizes the control method of mobile terminal;
Fig. 6 is the structural representation controlling device that the present invention realizes mobile terminal;
Fig. 7 is the flow chart that the present invention realizes the embodiment of the control method of mobile terminal.
Detailed description of the invention
Below in conjunction with drawings and Examples, technical scheme is described in detail.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for being conducive to the explanation of the present invention, itself do not have specific meaning.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include the mobile terminal of such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as numeral TV, desk computer etc..Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for the element of mobile purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, user input unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 etc..Fig. 1 illustrates the mobile terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can include broadcast reception module 111, mobile communication module 112, wireless Internet module 113.
Broadcast reception module 111 manages server via broadcast channel from external broadcasting and receives broadcast singal and/or broadcast related information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or broadcast singal that reception is previously created and/or broadcast related information and send it to the server of terminal.Broadcast singal can include TV broadcast singal, radio signals, data broadcasting signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information can also provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the electronic program guides (EPG) of DMB (DMB), the form of the electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H).Broadcast reception module 111 can be passed through to use various types of broadcast systems to receive signal broadcast.Especially, broadcast reception module 111 can be passed through to use such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), forward link media (MediaFLO) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receive digital broadcasting.Broadcast reception module 111 may be constructed such that the various broadcast systems and above-mentioned digit broadcasting system that are adapted to provide for broadcast singal.The broadcast singal and/or the broadcast related information that receive via broadcast reception module 111 can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals at least one in base station (such as, access point, node B etc.), exterior terminal and server and/or receives from it radio signal.Such radio signal can include voice call signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internally or externally be couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc..
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electric capacity etc. the sensitive component of change), roller, rocking bar etc..Especially, when touch pad is superimposed upon on display unit 151 as a layer, it is possible to form touch screen.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, mobile terminal 100 acceleration or deceleration move and direction etc., and generate the order of operation for controlling mobile terminal 100 or signal.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense this sliding-type phone and open or close.It addition, sensing unit 140 can detect power subsystem 190 and whether provide whether electric power or interface unit 170 couple with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through.Such as, external device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port of the device with identification module, audio frequency input/output (I/O) port, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses the various information of mobile terminal 100 and can include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc..It addition, the device (hereinafter referred to " identifying device ") with identification module can take the form of smart card, therefore, identify that device can be connected with mobile terminal 100 via port or other connecting device.Interface unit 170 may be used for receiving from the input (such as, data message, electric power etc.) of external device (ED) and the one or more elements being transferred in mobile terminal 100 by the input received or may be used for transmission data between mobile terminal and external device (ED).
Additionally, when mobile terminal 100 is connected with external base, interface unit 170 can serve as and allows to provide the path of mobile terminal 100 or can serve as to allow to be transferred to the path of mobile terminal from the various command signals of base input by it from base electric power by it.May serve as whether identification mobile terminal is accurately fitted within the signal base from the various command signals of base input or electric power.Output unit 150 is configured to provide output signal (such as, audio signal, video signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can include display unit 151, dio Output Modules 152 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show the user interface (UI) relevant with call or other communicate (such as, text messaging, multimedia file download etc.) or graphic user interface (GUI).When being in video calling pattern or image capture mode when mobile terminal 100, display unit 151 can show the image of image and/or the reception caught, UI or GUI illustrating video or image and correlation function etc..
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can include at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc..Some in these display may be constructed such that transparence is to allow user to watch from outside, and this is properly termed as transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc..According to the specific embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal receive under the isotype such as pattern, call mode, logging mode, speech recognition mode, broadcast reception mode time, that wireless communication unit 110 is received or storage in memorizer 160 voice data transducing audio signal and be output as sound.And, dio Output Modules 152 can provide the audio frequency output (such as, call signal receive sound, message sink sound etc.) relevant to the specific function of mobile terminal 100 execution.Dio Output Modules 152 can include speaker, buzzer etc..
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can temporarily store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And, memorizer 160 can store the vibration about the various modes exported when touching and being applied to touch screen and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium includes flash memory, hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 100 can be connected the network storage device cooperation of the storage function performing memorizer 160 with by network.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.It addition, controller 180 can include the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can construct in controller 180, or it is so structured that separates with controller 180.Controller 180 can perform pattern recognition process, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides the suitable electric power operated needed for each element and assembly.
Various embodiment described herein can to use such as computer software, hardware or its any combination of computer-readable medium to implement.Hardware is implemented, embodiment described herein can pass through to use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, at least one that is designed to perform in the electronic unit of function described herein to implement, in some cases, such embodiment can be implemented in controller 180.Implementing for software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, by the slide type mobile terminal in the various types of mobile terminals describing such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that utilization operates via such as wired and wireless communication system and the satellite-based communication system of frame or packet transmission data.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and UMTS (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, as explained below relates to cdma communication system, but such instruction is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also structured to and the BSC275 formation interface that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by each subregion of multidirectional antenna or the antenna covering pointing to specific direction radially away from BS270.Or, each subregion can be covered by two or more antennas for diversity reception.Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver subsystem (BTS) or other equivalent terms.In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal 100 of operation by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal that reception is sent by BT295.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps to position at least one in multiple mobile terminals 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtains useful location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate the location information wanted with acquisition with satellite 300.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other technology of the position of mobile terminal can be followed the tracks of.It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminals 100.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Each reverse link signal that certain base station 270 receives is processed in specific BS270.The data obtained are forwarded to relevant BSC275.BSC provides call resource distribution and the mobile management function of the coordination of soft switching process included between BS270.The data received also are routed to MSC280 by BSC275, and it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly controls BS270 so that forward link signals to be sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, it is proposed to each embodiment of the inventive method.
Fig. 5 is the flow chart that the present invention realizes the control method of mobile terminal, as it is shown in figure 5, include:
Step 501: intercept Home key-press event.
Step 502: when intercepting the UP event of Home key-press event, carries out delay disposal to the response operation of the Home key-press event intercepted.
Wherein, the response operation of the Home key-press event intercepted is carried out delay disposal to refer to carrying out the Home key-press event intercepted postponing response.
Wherein, carry out delay disposal to include: arrange a timer;When the timing duration of timer reaches preset duration, respond Home key-press event.
Step 503: when detecting in preset duration from Home key to the operation in touch screen district, cancels the response to the Home key-press event intercepted and operates.
Wherein, preset duration can be arranged a default value by system, such as 10 milliseconds, it is also possible to be set according to self-demand by user, as could be arranged to 6 milliseconds, it is also possible to be set to 15 milliseconds.
Wherein, the response operation of the Home key-press event intercepted is referred to by cancellation loses the Home key-press event intercepted, and is namely not responding to the Home key-press event intercepted.
Alternatively, when being not detected by preset duration from Home key to the operation in touch screen district, the method also includes: the Home key-press event that response is intercepted.Wherein, respond the Home key-press event intercepted and namely carry out loading the operation of desktop.
Alternatively, after cancelling the response to the Home key-press event intercepted and operating, the method includes:
Press MOTION_DOWN event for the touch screen in touch screen district to arrange and preset mark;
The MOTION_DOWN event being provided with mark is reported.Wherein, presetting and be masked as FLAG_MASK_BOTTOM_KEY, the value presetting mark is 0x80000000.
Alternatively, when receiving reported event, the method also includes:
Determine the state of the reported event received;
State according to the reported event determined determines whether reported event is carried out delay disposal.
Wherein it is determined that the state of the reported event received includes:
Whether detection reported event has and presets mark;
When detect reported event has preset mark time, it is determined that reported event is that to operate and record the state of reported event be true TRUE to Home key slip up;
When Non-precondition mark in reported event being detected, the state of record reported event is non-TRUE.Wherein, non-TRUE can be false (FALSE).Wherein it is possible to record the state of reported event with member variable mBottomSlideUp.
Wherein, determine whether that reported event is carried out delay disposal includes according to the state of the reported event determined:
When the state of reported event is TRUE, respond reported event;
When the state of reported event is non-TRUE, reported event is carried out delay disposal.
It should be noted that when the state of reported event is TRUE, illustrate that reported event now is the operation of Home key slip up;When the state of reported event is non-TRUE, illustrate that namely reported event now is Home key-press event.
Wherein, reported event is carried out delay disposal to include: arrange a timer;When the timing duration of timer reaches preset duration, respond reported event.
In embodiment of the present invention, by when intercepting the UP event of Home key-press event, the Home key-press event intercepted is carried out delay disposal and when detecting in preset duration from Home key to the operation in touch screen district, the Home key-press event intercepted is cancelled delay disposal, it is achieved thereby that the application of Home key slip up gesture and avoid the problem of Home key false touch because Home key slip up gesture causes, improve Consumer's Experience.
Fig. 6 is the structural representation controlling device that the present invention realizes mobile terminal, as shown in Figure 6, including: Home key-press event blocking module 60, delay disposal module 61 and detection module 62.Wherein,
Home key-press event blocking module 60, is used for intercepting Home key-press event;When intercepting the UP event of Home key-press event, notify delay disposal module 61.
Delay disposal module 61, for receiving the notice from Home key-press event blocking module 60, carries out delay disposal to the response operation of the Home key-press event intercepted;When receiving the notice of self-detection module 62, cancel the response to the Home key-press event intercepted and operate.
Detection module 62, for when detecting in preset duration from Home key to the operation in touch screen district, notifying delay disposal module 61.
Alternatively, detection module 62, it is additionally operable to when being not detected by preset duration from Home key to the operation in touch screen district, notifies delay disposal module 61;Correspondingly,
Delay disposal module 61, is additionally operable to receive the notice of self-detection module 62, the Home key-press event that response is intercepted.
Alternatively, this device also includes Sign module 63 and event interception module 64;Wherein,
Sign module 63, is used for being press MOTION_DOWN event from Home key to the touch screen in touch screen district to arrange default mark;The MOTION_DOWN reporting events of mark will be provided with to event interception module 64;
Event interception module 64, is used for receiving reported event.
Wherein, presetting and be masked as FLAG_MASK_BOTTOM_KEY, the value presetting mark is 0x80000000.
Alternatively, event interception module 64, it is additionally operable to when receiving reported event, it is determined that the state of the reported event received;
State according to the reported event determined determines whether reported event is carried out delay disposal.
Wherein, event interception module 64 determines that the state of the reported event received includes:
Whether detection reported event has and presets mark;
When detect reported event has preset mark time, it is determined that reported event is that to operate and record the state of reported event be true TRUE to Home key slip up;
When Non-precondition mark in reported event being detected, the state of record reported event is non-TRUE.Wherein, non-TRUE can be false (FALSE).Wherein it is possible to record the state of reported event with member variable mBottomSlideUp.
Wherein, according to the state of the reported event determined, event interception module 64 determines whether that reported event is carried out delay disposal includes:
When the state of reported event is TRUE, notice delay disposal module 61 responds reported event;
When the state of reported event is non-TRUE, reported event is carried out delay disposal by notice delay disposal module 61.
It should be noted that when the state of reported event is TRUE, illustrate that reported event now is the operation of Home key slip up;When the state of reported event is non-TRUE, illustrate that namely reported event now is Home key-press event.
Wherein, delay disposal module 61 carries out delay disposal and includes: arrange a timer;When the timing duration of timer reaches preset duration, respond Home key-press event.
Alternatively, this control device can be arranged in the terminal.
Preferred embodiment, the control device in this preferred embodiment includes: Home key-press event blocking module 60, delay disposal module 61, detection module 62, Sign module 63 and event interception module 64.Wherein,
Home key-press event blocking module 60, is used for intercepting Home key-press event;When intercepting the UP event of Home key-press event, notify delay disposal module 61.
Delay disposal module 61, for receiving the notice from Home key-press event blocking module 60, carries out delay disposal to the response operation of the Home key-press event intercepted;When receiving the notice of self-detection module 62, cancel the response to the Home key-press event intercepted and operate.
Detection module 62, for when detecting in preset duration from Home key to the operation in touch screen district, notifying delay disposal module 61.
Alternatively, detection module 62, it is additionally operable to when being not detected by preset duration from Home key to the operation in touch screen district, notifies delay disposal module 61;Correspondingly,
Delay disposal module 61, is additionally operable to receive the notice of self-detection module 62, the Home key-press event that response is intercepted.
Wherein, delay disposal module 61 carries out delay disposal and includes: arrange a timer;When the timing duration of timer reaches preset duration, respond Home key-press event.
Sign module 63, is used for being press MOTION_DOWN event from Home key to the touch screen in touch screen district to arrange default mark;The MOTION_DOWN reporting events of mark will be provided with to event interception module 64.
Wherein, presetting and be masked as FLAG_MASK_BOTTOM_KEY, the value presetting mark is 0x80000000.
Event interception module 64, is used for receiving reported event.
Alternatively, event interception module 64, it is additionally operable to when receiving reported event, it is determined that the state of the reported event received;
State according to the reported event determined determines whether reported event is carried out delay disposal.
Wherein, event interception module 64 determines that the state of the reported event received includes:
Whether detection reported event has and presets mark;
When detect reported event has preset mark time, it is determined that reported event is that to operate and record the state of reported event be true TRUE to Home key slip up;
When Non-precondition mark in reported event being detected, the state of record reported event is non-TRUE.Wherein, non-TRUE can be false (FALSE).Wherein it is possible to record the state of reported event with member variable mBottomSlideUp.
Wherein, according to the state of the reported event determined, event interception module 64 determines whether that reported event is carried out delay disposal includes:
When the state of reported event is TRUE, notice delay disposal module 61 responds reported event;
When the state of reported event is non-TRUE, reported event is carried out delay disposal by notice delay disposal module 61.
It should be noted that when the state of reported event is TRUE, illustrate that reported event now is the operation of Home key slip up;When the state of reported event is non-TRUE, illustrate that namely reported event now is Home key-press event.
Fig. 7 is the flow chart that the present invention realizes the embodiment of the control method of mobile terminal, as it is shown in fig. 7, comprises:
Step 701: intercept Home key-press event.
Step 702: when intercepting the UP event of Home key-press event, carries out delay disposal to the response operation of the Home key-press event intercepted.
Wherein, the Home key-press event response operation intercepted is carried out delay disposal to refer to carrying out the Home key-press event intercepted postponing response.
Wherein, carry out delay disposal to include: arrange a timer;When the timing duration of timer reaches preset duration, respond Home key-press event.
Step 703: judge whether to detect in preset duration from Home key to the operation in touch screen district.When detecting in preset duration from Home key to the operation in touch screen district, proceed to step 704;Otherwise, step 705 is proceeded to.
Wherein, preset duration can be arranged a default value by system, such as 10 milliseconds, it is also possible to be set according to self-demand by user, as could be arranged to 6 milliseconds, it is also possible to be set to 15 milliseconds.
Step 704: cancel the response to the Home key-press event intercepted and operate.
Wherein, the Home key-press event cancellation delay disposal intercepted is referred to and loses the Home key-press event intercepted, be namely not responding to the Home key-press event intercepted.Proceed to step 706.
Step 705: the Home key-press event that response is intercepted.
Wherein, respond the Home key-press event intercepted and namely carry out loading the operation of desktop.
Step 706: press MOTION_DOWN event for the touch screen in touch screen district and arrange and preset mark.
Step 707: the MOTION_DOWN event being provided with mark is reported.
Wherein, presetting and be masked as FLAG_MASK_BOTTOM_KEY, the value presetting mark is 0x80000000.
Step 708: receive reported event and determine whether reported event is carried out delay disposal.
Specifically include: determine the state of the reported event received;
State according to the reported event determined determines whether reported event is carried out delay disposal.
Wherein it is determined that the state of the reported event received includes:
Whether detection reported event has and presets mark;
When detect reported event has preset mark time, it is determined that reported event is that to operate and record the state of reported event be true TRUE to Home key slip up;
When Non-precondition mark in reported event being detected, the state of record reported event is non-TRUE.Wherein, non-TRUE can be false (FALSE).Wherein it is possible to record the state of reported event with member variable mBottomSlideUp.
Wherein, determine whether that reported event is carried out delay disposal includes according to the state of the reported event determined:
When the state of reported event is TRUE, respond reported event;
When the state of reported event is non-TRUE, reported event is carried out delay disposal.
It should be noted that when the state of reported event is TRUE, illustrate that reported event now is the operation of Home key slip up;When the state of reported event is non-TRUE, illustrate that namely reported event now is Home key-press event.
Wherein, reported event is carried out delay disposal to include: arrange a timer;When the timing duration of timer reaches preset duration, respond reported event.
It should be noted that, in this article, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or device not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or device.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of this key element, method, article or device.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step in said method can be carried out instruction related hardware (such as processor) by program and complete, described program can be stored in computer-readable recording medium, such as read only memory, disk or CD etc..Alternatively, all or part of step of above-described embodiment can also use one or more integrated circuit to realize.Correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, such as realize its corresponding function by integrated circuit, the form that can also adopt software function module realizes, for instance the program/instruction performing to be stored in memorizer by processor realizes its corresponding function.The present invention is not restricted to the combination of the hardware and software of any particular form.
These are only the preferred embodiment of the application; not thereby the scope of the claims of the application is limited; every equivalent structure utilizing present specification and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the application.

Claims (16)

1. the control method realizing mobile terminal, it is characterised in that including:
Intercept Home key-press event;
When intercepting the UP event of Home key-press event, the response operation of the Home key-press event intercepted is carried out delay disposal;
When detecting in preset duration from Home key to the operation in touch screen district, cancel the response to the Home key-press event intercepted and operate.
2. control method according to claim 1, it is characterised in that when being not detected by preset duration from Home key to the operation in touch screen district, the method also includes: the Home key-press event intercepted described in response.
3. control method according to claim 1, it is characterised in that after the response operation of the described cancellation Home key-press event to intercepting, the method includes:
Press MOTION_DOWN event for the touch screen in described touch screen district to arrange and preset mark;
The described MOTION_DOWN event being provided with mark is reported.
4. control method according to claim 3, it is characterised in that when receiving reported event, the method also includes:
The state of the reported event received described in determining;
State according to the reported event determined determines whether described reported event is carried out delay disposal.
5. control method according to claim 4, it is characterised in that described determine described in the state of reported event that receives include:
Detect and whether described reported event has described default mark;
When detect described reported event has described default mark time, it is determined that described reported event is that to operate and record the state of described reported event be true TRUE to Home key slip up;
When detect described reported event does not have described default mark time, the state recording described reported event is non-TRUE.
6. control method according to claim 5, it is characterised in that the state of the reported event that described basis is determined determines whether that described reported event is carried out delay disposal includes:
When the state of described reported event is TRUE, respond described reported event;
When the state of described reported event is non-TRUE, described reported event is carried out delay disposal.
7. the control method according to claim 1 or 6, it is characterised in that described in carry out delay disposal and include: a timer is set;When the timing duration of described timer reaches described preset duration, respond described Home key-press event.
8. control method according to claim 3, it is characterised in that described presetting is masked as FLAG_MASK_BOTTOM_KEY, and the value of described default mark is 0x80000000.
9. the control device realizing mobile terminal, it is characterised in that including: Home key-press event blocking module, delay disposal module and detection module;Wherein,
Home key-press event blocking module, is used for intercepting Home key-press event;When intercepting the UP event of Home key-press event, notify delay disposal module;
Delay disposal module, for receiving the notice from Home key-press event blocking module, carries out delay disposal to the response operation of the Home key-press event intercepted;When receiving the notice of self-detection module, cancel the response to the Home key-press event intercepted and operate;
Detection module, for when detecting in preset duration from Home key to the operation in touch screen district, notifying delay disposal module.
10. control device according to claim 9, it is characterised in that described detection module, is additionally operable to, when being not detected by described preset duration from Home key to the operation in touch screen district, notify described delay disposal module;Correspondingly,
Described delay disposal module, is additionally operable to receive the notice from described detection module, the Home key-press event intercepted described in response.
11. control device according to claim 9, it is characterised in that this device also includes Sign module and event interception module;Wherein,
Described Sign module, for for described from Home key to the touch screen in touch screen district press MOTION_DOWN event arrange preset mark;Described event interception module is given by the described MOTION_DOWN reporting events being provided with mark;
Described event interception module, is used for receiving reported event.
Control device 12. according to claim 11, it is characterised in that described event interception module, be additionally operable to when receiving reported event, it is determined that described in the state of reported event that receives;
State according to the reported event determined determines whether described reported event is carried out delay disposal.
13. control device according to claim 12, it is characterised in that described event interception module determine described in the state of reported event that receives include:
Detect and whether described reported event has described default mark;
When detect described reported event has described default mark time, it is determined that described reported event is that to operate and record the state of described reported event be true TRUE to Home key slip up;
When detect described reported event does not have described default mark time, the state recording described reported event is non-TRUE.
14. control device according to claim 13, it is characterised in that according to the state of the reported event determined, described event interception module determines whether that described reported event is carried out delay disposal includes:
When the state of described reported event is TRUE, notify that described delay disposal module responds described reported event;
When the state of described reported event is non-TRUE, notify that described reported event is carried out delay disposal by described delay disposal module.
15. the control device according to claim 9 or 14, it is characterised in that described delay disposal module carries out delay disposal and includes: arrange a timer;When the timing duration of described timer reaches described preset duration, respond described Home key-press event.
16. control device according to claim 11, it is characterised in that described presetting is masked as FLAG_MASK_BOTTOM_KEY, and the value of described default mark is 0x80000000.
CN201610109447.1A 2016-02-26 2016-02-26 Mobile terminal control method and device Pending CN105791561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610109447.1A CN105791561A (en) 2016-02-26 2016-02-26 Mobile terminal control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610109447.1A CN105791561A (en) 2016-02-26 2016-02-26 Mobile terminal control method and device

Publications (1)

Publication Number Publication Date
CN105791561A true CN105791561A (en) 2016-07-20

Family

ID=56403818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610109447.1A Pending CN105791561A (en) 2016-02-26 2016-02-26 Mobile terminal control method and device

Country Status (1)

Country Link
CN (1) CN105791561A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808049A (en) * 2016-02-26 2016-07-27 努比亚技术有限公司 Control method and device for realizing mobile terminal
CN106648232A (en) * 2016-12-16 2017-05-10 广东欧珀移动通信有限公司 Method, device and terminal for preventing false triggering of touch keys
CN106708407A (en) * 2016-12-16 2017-05-24 广东欧珀移动通信有限公司 Method and device for preventing mistaken triggering of touch key and mobile terminal
CN107024984A (en) * 2017-01-12 2017-08-08 瑞声科技(新加坡)有限公司 The feedback response method and terminal of a kind of button
WO2018141182A1 (en) * 2017-02-04 2018-08-09 中兴通讯股份有限公司 Terminal control method, apparatus and terminal
EP3734435A1 (en) * 2016-10-28 2020-11-04 Samsung Electronics Co., Ltd. Electronic device having hole area and method of controlling hole area thereof
WO2023078094A1 (en) * 2021-11-03 2023-05-11 华为技术有限公司 Electronic device, interaction method thereof, and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929425A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Method and device for controlling touch keys
CN103699232A (en) * 2013-12-16 2014-04-02 深圳市云海情天文化传播有限公司 Command input method and device
CN103870007A (en) * 2014-03-10 2014-06-18 广东欧珀移动通信有限公司 Control method and control system for key combination of mobile terminal
CN104598111A (en) * 2015-01-15 2015-05-06 小米科技有限责任公司 Display mode switching method and display mode switching device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929425A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Method and device for controlling touch keys
CN103699232A (en) * 2013-12-16 2014-04-02 深圳市云海情天文化传播有限公司 Command input method and device
CN103870007A (en) * 2014-03-10 2014-06-18 广东欧珀移动通信有限公司 Control method and control system for key combination of mobile terminal
CN104598111A (en) * 2015-01-15 2015-05-06 小米科技有限责任公司 Display mode switching method and display mode switching device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808049A (en) * 2016-02-26 2016-07-27 努比亚技术有限公司 Control method and device for realizing mobile terminal
CN105808049B (en) * 2016-02-26 2019-03-19 努比亚技术有限公司 A kind of control method that realizing mobile terminal and device
EP3734435A1 (en) * 2016-10-28 2020-11-04 Samsung Electronics Co., Ltd. Electronic device having hole area and method of controlling hole area thereof
CN106648232A (en) * 2016-12-16 2017-05-10 广东欧珀移动通信有限公司 Method, device and terminal for preventing false triggering of touch keys
CN106708407A (en) * 2016-12-16 2017-05-24 广东欧珀移动通信有限公司 Method and device for preventing mistaken triggering of touch key and mobile terminal
CN106708407B (en) * 2016-12-16 2019-05-03 Oppo广东移动通信有限公司 Prevent the method, device and mobile terminal of touch key-press false triggering
US10466849B2 (en) 2016-12-16 2019-11-05 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and terminal for preventing unintentional triggering of a touch key and storage medium
US10831314B2 (en) 2016-12-16 2020-11-10 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and electronic device for preventing touch button from being false triggered
CN107024984A (en) * 2017-01-12 2017-08-08 瑞声科技(新加坡)有限公司 The feedback response method and terminal of a kind of button
WO2018141182A1 (en) * 2017-02-04 2018-08-09 中兴通讯股份有限公司 Terminal control method, apparatus and terminal
CN108401061A (en) * 2017-02-04 2018-08-14 中兴通讯股份有限公司 A kind of terminal control method and device and terminal
WO2023078094A1 (en) * 2021-11-03 2023-05-11 华为技术有限公司 Electronic device, interaction method thereof, and readable medium

Similar Documents

Publication Publication Date Title
CN105791561A (en) Mobile terminal control method and device
CN105718027A (en) Management method of background application programs and mobile terminal
CN104750420A (en) Screen capturing method and device
CN105094555A (en) Method and device for switching application program through swipe gesture
CN105760057A (en) Screenshot device and method
CN106304037A (en) The management method of virtual SIM card and device
CN105187521A (en) Service processing device and method
CN104731512A (en) Method, device and terminal for sharing pictures
CN105740008A (en) Apparatus and method for forbidding chained startup of applications
CN105739820A (en) Message prompt display method and device
CN105808049A (en) Control method and device for realizing mobile terminal
CN105763732A (en) Mobile terminal and volume control method
CN104731456A (en) Desktop widget display method and device
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN105760055A (en) Mobile terminal and control method thereof
CN104898940A (en) Picture processing method and device
CN105631370A (en) Regional screen locking method and mobile terminal
CN105224647A (en) Image display method and device
CN105760052A (en) Mobile terminal and touch method
CN105786647A (en) Data backup device and method and terminal
CN104731499A (en) Method and device for starting background applications and mobile terminal
CN105740668A (en) Terminal screen locking device and method
CN105791541A (en) Screenshot method and mobile terminal
CN105389007A (en) Application processing apparatus and method, and mobile terminal
CN104935734A (en) Mobile terminal application switching method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160720