CN105791576A - Method and device for processing long-press physical key - Google Patents

Method and device for processing long-press physical key Download PDF

Info

Publication number
CN105791576A
CN105791576A CN201610118989.5A CN201610118989A CN105791576A CN 105791576 A CN105791576 A CN 105791576A CN 201610118989 A CN201610118989 A CN 201610118989A CN 105791576 A CN105791576 A CN 105791576A
Authority
CN
China
Prior art keywords
self
length
event
shooting bar
physical button
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.)
Granted
Application number
CN201610118989.5A
Other languages
Chinese (zh)
Other versions
CN105791576B (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610118989.5A priority Critical patent/CN105791576B/en
Publication of CN105791576A publication Critical patent/CN105791576A/en
Application granted granted Critical
Publication of CN105791576B publication Critical patent/CN105791576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality 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 embodiment of the invention discloses a method for processing a long-press physical key. The method comprises the following steps: when a plug of a selfie stick is inserted into a mobile phone audio interface, receiving a selfie stick peripheral registration signal sent from a processing chip of the selfie stick; registering a peripheral type as the selfie stick at the mobile phone audio interface according to the selfie stick peripheral registration signal; and when detecting a long-press event of the physical key, shielding the long-press event. In addition, the embodiment of the invention further discloses a device for processing the long-press physical key correspondingly. By adopting the method and the device disclosed by the invention, the error operation of a mobile terminal when the selfie stick is installed can be reduced, and the user experience is improved.

Description

A kind of length presses processing method and the device of physical button
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of length by processing method by physical button of the processing method of physical button and the length of device and a kind of self-shooting bar and device.
Background technology
Along with popularizing of self-shooting bar, increasing user selects when taking pictures or going on a tour to use self-shooting bar.The using method of general self-shooting bar is all mobile phone or other-end are specified on self-shooting bar by the shelf on self-shooting bar, then passes through the button bottom self-shooting bar or Bluetooth control button carries out taking pictures or other operations.But, the buttons such as the power key of the terminals such as mobile phone and volume key are generally arranged at the side of terminal, and be arranged on fixing on self-shooting bar be easy to the button of mobile phone end side end is carried out in mobile phone being installed or accommodates the process of mobile phone by mistake by even grow by, thus causing mobile phone terminal to be shut down because of maloperation or volume is saved by mistuning, and this time, user was likely to be not aware that mobile phone has been carried out aforesaid operations.
That is, in the installation and use procedure of existing self-shooting bar, the physical button of mobile phone terminal is easily accommodated position by the mobile phone of self-shooting bar and presses by mistake, thus causing that mobile phone terminal misuse rate in the process using self-shooting bar is relatively big, causes user's inconvenience in use.
Summary of the invention
Based on this, in the process using self-shooting bar, easily position is accommodated by mistake by the technical problem that the misuse rate existed is higher by the mobile phone of self-shooting bar because of physical button for solving the mobile phone terminal in conventional art, in a first aspect of the present invention, spy proposes a kind of length by the processing method of physical button.
A kind of length presses the processing method of physical button, including:
When the plug of self-shooting bar inserts mobile audio interface, what receive described self-shooting bar processes the self-shooting bar peripheral hardware registration signal that chip sends;
Peripheral hardware type is registered as self-shooting bar at described mobile audio interface according to described self-shooting bar peripheral hardware registration signal;
The length of detection physical button is by event;
When detecting that the length of described physical button is by event, shield described length by event.
Optionally, the length of described detection physical button also includes by after the step of event: when detecting that the length of described physical button is by event, be long pressed by vibration prompting physical button.
Optionally, described method also includes: when the plug of earphone inserts earphone handset audio, if not receiving self-shooting bar peripheral hardware registration signal, then register peripheral hardware type as earphone at described mobile audio interface.
Optionally, described acquisition described mobile audio interface also includes after the peripheral hardware type of registration:
When described peripheral hardware type is earphone, the length of detection physical button is by event, and obtains described length by the event argument of event, and described event argument at least includes identifying and/or pressing duration by the physical button that event is corresponding with described length;
Searching the length corresponding with described physical button mark and described pressing duration by event handling instruction, if finding, then performing described length by event handling instruction.
In addition, in the process using self-shooting bar, easily position is accommodated by mistake by the technical problem that the misuse rate existed is higher by the mobile phone of self-shooting bar because of physical button for solving the mobile phone terminal in conventional art, in a second aspect of the present invention, spy proposes a kind of length by the process device of physical button.
A kind of length presses the process device of physical button, including:
Registration signal receiver module, for when the plug of self-shooting bar inserts mobile audio interface, what receive described self-shooting bar processes the self-shooting bar peripheral hardware registration signal that chip sends;
Self-shooting bar Registering modules, for registering peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal at described mobile audio interface;
Long by event checking module, it is used for the length detecting physical button by event;
Long press event mask module, be used for, when detecting that the length of described physical button is by event, shielding described length by event.
Optionally, described device also includes vibration prompting module, for when detecting that the length of described physical button is by event, being long pressed by vibration prompting physical button.
Optionally, described device also includes earphone Registering modules, for when the plug of earphone inserts earphone handset audio, if not receiving self-shooting bar peripheral hardware registration signal, then registering peripheral hardware type as earphone at described mobile audio interface.
Optionally, described device also includes long by event processing module, is used for:
When described peripheral hardware type is earphone, the length of detection physical button is by event, and obtains described length by the event argument of event, and described event argument at least includes identifying and/or pressing duration by the physical button that event is corresponding with described length;
Searching the length corresponding with described physical button mark and described pressing duration by event handling instruction, if finding, then performing described length by event handling instruction.
In a third aspect of the present invention, easily by the mobile phone of self-shooting bar being accommodated position by mistake by technical problem that the misuse rate that exist higher because of physical button for solving the mobile phone terminal in conventional art in the process using self-shooting bar, spy proposes the length processing method by physical button of a kind of self-shooting bar.
The length of a kind of self-shooting bar presses the processing method of physical button, including:
Whether detection self-shooting bar plug inserts the mobile audio interface of target mobile phones;
When insertion being detected, self-shooting bar peripheral hardware registration signal is sent to the mobile audio interface of described target mobile phones by processing chip, described target mobile phones registers peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal on described mobile audio interface, described target mobile phones is when detecting that the length of physical button is by event, obtain the peripheral hardware type of registration on described mobile audio interface, when described peripheral hardware type is self-shooting bar, shield described length by event.
In a fourth aspect of the present invention, easily by the mobile phone of self-shooting bar being accommodated position by mistake by technical problem that the misuse rate that exist higher because of physical button for solving the mobile phone terminal in conventional art in the process using self-shooting bar, spy proposes the length process device by physical button of a kind of self-shooting bar.
The length of a kind of self-shooting bar presses the process device of physical button, including:
Audio interface detection module, for detecting whether self-shooting bar plug inserts the mobile audio interface of target mobile phones;
Registration signal sending module, for when the mobile audio interface that described self-shooting bar plug inserts described target mobile phones being detected, self-shooting bar peripheral hardware registration signal is sent to the mobile audio interface of described target mobile phones by processing chip, described target mobile phones registers peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal on described mobile audio interface, described target mobile phones is when detecting that the length of physical button is by event, obtain the peripheral hardware type of registration on described mobile audio interface, when described peripheral hardware type is self-shooting bar, shield described length by event.
Implement the embodiment of the present invention, will have the advantages that
Have employed above-mentioned length by the processing method of physical button and device, above-mentioned self-shooting bar length by after the processing method of physical button and device, when mobile phone terminal is connected by the audio interface of mobile phone terminal with self-shooting bar, the built-in process chip of self-shooting bar carries out self-shooting bar registration to mobile phone terminal, so that the device that mobile phone terminal knows the audio interface inserting mobile phone is self-shooting bar rather than earphone;And when mobile phone terminal is connected with self-shooting bar, the physical button of mobile phone terminal being long pressed if detecting, being maloperation by the length of this physical button by operation mark, and shielding this length by operation;Thus decreasing the maloperation of mobile phone end entity button when using self-shooting bar, reducing the misuse rate of mobile phone terminal, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Wherein:
Fig. 1 be in an embodiment a kind of length by the schematic flow sheet of the processing method of physical button;
Fig. 2 be in an embodiment length of a kind of self-shooting bar by the schematic flow sheet of the processing method of physical button;
Fig. 3 be in an embodiment a kind of length by physical button process device structural representation;
Fig. 4 be in an embodiment length of a kind of self-shooting bar by physical button process device structural representation.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
In the process using self-shooting bar, easily position is accommodated by mistake by the technical problem that the misuse rate existed is higher by the mobile phone of self-shooting bar because of physical button for solving the mobile phone terminal in conventional art, in the present embodiment, spy proposes a kind of length based on self-shooting bar by the treatment mechanism of physical button.A kind of length of running on mobile phone terminal length by the processing method of physical button and a kind of self-shooting bar running on the self-shooting bar being connected with this mobile phone terminal should be included by the treatment mechanism of physical button by the processing method of physical button based on the length of self-shooting bar.The realization of said method all can be dependent on computer program, and this computer program can run on the computer system based on von Neumann system.
It should be noted that in the present embodiment, mobile phone terminal is be connected by the audio interface of the self-shooting bar plug on self-shooting bar and mobile phone terminal with self-shooting bar.
Concrete, as it is shown in figure 1, above-mentioned length comprises the steps: by the processing method of physical button
Step S102: when the plug of self-shooting bar inserts mobile audio interface, what receive described self-shooting bar processes the self-shooting bar peripheral hardware registration signal that chip sends.
It should be noted that before this step, self-shooting bar equipment sends self-shooting bar peripheral hardware registration signal firstly the need of to mobile phone, concrete, as in figure 2 it is shown, self-shooting bar equipment needs to perform steps S202-step S204:
Step S202: whether detection self-shooting bar plug inserts the mobile audio interface of target mobile phones;
Step S204: when insertion being detected, sends self-shooting bar peripheral hardware registration signal by processing chip to the mobile audio interface of described target mobile phones.
Concrete, self-shooting bar detects whether its plug carried is connected with the foundation of other equipment, if detecting, then detects whether the equipment setting up with it connection is mobile phone or other equipment.It is to say, when the plug of self-shooting bar is inserted into mobile audio interface (i.e. the earphone interface) of certain mobile phone, communication connection set up by self-shooting bar and this mobile phone, and communication therebetween is by the audio interface of mobile phone and plug transmission.
When self-shooting bar detects the mobile audio interface that its plug carried is inserted into target mobile phones, generate self-shooting bar peripheral hardware registration signal.It should be noted that, the chip that processes that self-shooting bar peripheral hardware registration signal is by self-shooting bar sends to the mobile phone being connected with self-shooting bar foundation, further, it is send to the mobile audio interface of this mobile phone, that is, self-shooting bar, after detecting and being connected to mobile phone, generates self-shooting bar peripheral hardware registration signal according to this connection, and sends above-mentioned log-on message to the above-mentioned mobile audio interface being attached thereto.
Therefore, after self-shooting bar execution of step S202-step S204, target mobile phones can monitor, by the audio interface of mobile phone, the self-shooting bar peripheral hardware registration signal that self-shooting bar equipment sends.
Step S104: register peripheral hardware type as self-shooting bar at described mobile audio interface according to described self-shooting bar peripheral hardware registration signal.
Mobile phone is after receiving the self-shooting bar peripheral hardware registration signal that self-shooting bar sends, resolve the relevant information in this self-shooting bar peripheral hardware registration signal, and with according to this self-shooting bar peripheral hardware registration signal, mobile audio interface at mobile phone registers the external equipment that is attached thereto as self-shooting bar, that is, peripheral hardware type is registered as self-shooting bar at mobile audio interface, so that when mobile phone uses earphone or loudspeaker at needs, the audio interface that can pass through mobile phone obtains the peripheral hardware type of registration on mobile audio interface, thus learning that what insert mobile audio interface be external equipment type is self-shooting bar.
In addition, it is necessary to illustrate, if when the plug of earphone inserts described mobile audio interface, if not receiving self-shooting bar peripheral hardware registration signal, then registering peripheral hardware type as earphone at described mobile audio interface.
It is to say, to mobile phone, when its audio interface inserts external equipment, it gives tacit consent to it for earphone, if but receive the log-on message of external equipment, the type according to log-on message this external equipment of equipment.That is, when the audio interface of mobile phone inserts external equipment, if receiving the log-on message of external equipment, then according to log-on message, the peripheral hardware type of this external equipment is registered, if not receiving the log-on message of external equipment, then according to default rule, the peripheral hardware type of this external equipment is registered as earphone.
Step S106: the length of detection physical button is by event.
Physical button refers to the pressed button being arranged on mobile phone terminal, for instance power knob (Power key), volume increase and decrease button.The length of physical button refers to this physical button by event and is pressed by continual for a long time, it should be noted that, in the present embodiment, long by be the flicking for physical button, heavily by etc. moment pressing, such as, system can preset a time threshold, be then judged as when the time that physical button is pressed exceedes this time threshold long by.The physical button arranged on mobile phone terminal is pressed and during by long pressing, and mobile phone terminal can detect that the length of physical button is by event.
Step S108: when detecting that the length of described physical button is by event, shield described length by event.
Because mobile phone terminal and self-shooting bar are connected to, that is user is currently in use or installs self-shooting bar, now the length for physical button on mobile phone terminal is determined to be the maloperation of self-shooting bar clamping part or user by event, therefore this maloperation should be ignored, that is, in step S104, self-shooting bar equipment is to after mobile phone terminal registers, mobile phone terminal thinks the external equipment being connected with audio interface, in this case, the length of physical button of all mobile phone terminals detected is shielded by event.
Optionally, in the present embodiment, in step S106: the length of detection physical button also includes by after event: when detecting that the length of physical button is by event, be long pressed by vibration prompting physical button.
Step S108 shields the length of the physical button detected by event, but user is not aware that this physical button is long pressed, therefore when detecting that the length of physical button is by event, it is long pressed by vibration prompting user subject button, so that the position that user can adjust self-shooting bar in time avoids button to be long pressed;Further, further, when user uses self-shooting bar, also likely to be present user oneself and need long by the situation of certain physical button, now vibration phone can also point out user, to inform user because mobile phone terminal is connected with self-shooting bar, therefore grows and can be shielded by the operation of this button.
In the present embodiment, if insert external equipment in the audio interface of mobile phone and do not receive self-shooting bar peripheral hardware registration signal, namely giving tacit consent to this external equipment is earphone.In such cases, it is also possible to detecting that the length of physical button of mobile phone terminal is by event, this length then can not be ignored by event.
Concrete, when described peripheral hardware type is earphone, the length of detection physical button is by event, and the length detected described in acquisition is by the event argument of event, and described event argument at least includes identifying and/or pressing duration by the physical button that event is corresponding with described length;Searching the length corresponding with described physical button mark and described pressing duration by event handling instruction, if finding, then performing described length by event handling instruction.
When mobile phone terminal detects the length of physical button by event, obtain this length by event and with this length by event argument corresponding to event, for instance with the long physical button corresponding by event or physical button mark, more such as with above-mentioned length by pressing duration corresponding to event.In the present embodiment, system or user can preset the associative operation carried out when the physical button of mobile phone terminal is long pressed, for instance, long Power key of pressing represents shutdown, or long press volume "+" sound is adjusted to maximum etc. by key representative.Detect long by event time, press length that in event command data base, lookups is corresponding with above-mentioned event argument by event handling instruction in default length, and carry out associative operation according to the processing instruction found, be i.e. execution and grow the operation corresponding by event.
In addition, in the process using self-shooting bar, easily position is accommodated by mistake by the technical problem that the misuse rate existed is higher by the mobile phone of self-shooting bar because of physical button for solving the mobile phone terminal in conventional art, in one embodiment, as shown in Figure 3, spy proposes a kind of length by the process device of physical button, including registration signal receiver module 102, self-shooting bar Registering modules 104, grow by event checking module 106 and grow by event mask module 108, wherein:
Registration signal receiver module 102, for when the plug of self-shooting bar inserts mobile audio interface, what receive described self-shooting bar processes the self-shooting bar peripheral hardware registration signal that chip sends;
Self-shooting bar Registering modules 104, for registering peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal at described mobile audio interface;
Long by event checking module 106, it is used for the length detecting physical button by event;
Long press event mask module 108, be used for, when detecting that the length of described physical button is by event, shielding described length by event.
Optionally, in one embodiment, as it is shown on figure 3, above-mentioned length also includes vibration prompting module 110 by the process device of physical button, for being long pressed by vibration prompting physical button.
Optionally, in one embodiment, as shown in Figure 3, above-mentioned length also includes earphone Registering modules 112 by the process device of physical button, for when the plug of earphone inserts earphone handset audio, if not receiving self-shooting bar peripheral hardware registration signal, then register peripheral hardware type as earphone at described mobile audio interface.
Optionally, in one embodiment, as shown in Figure 3, above-mentioned length also includes long by event processing module 114 by the process device of physical button, for: when described peripheral hardware type is earphone, the length of detection physical button is by event, and obtains described length by the event argument of event, and described event argument at least includes identifying and/or pressing duration by the physical button that event is corresponding with described length;Searching the length corresponding with described physical button mark and described pressing duration by event handling instruction, if finding, then performing described length by event handling instruction.
In addition, in the process using self-shooting bar, easily position is accommodated by mistake by the technical problem that the misuse rate existed is higher by the mobile phone of self-shooting bar because of physical button for solving the mobile phone terminal in conventional art, in one embodiment, as shown in Figure 4, spy proposes the length process device by physical button of a kind of self-shooting bar, this device is the device being integrated on self-shooting bar, including audio interface detection module 202 and registration signal sending module 204, wherein:
Audio interface detection module 202, for detecting whether self-shooting bar plug inserts the mobile audio interface of target mobile phones;
Registration signal sending module 204, for when the mobile audio interface that described self-shooting bar plug inserts described target mobile phones being detected, self-shooting bar peripheral hardware registration signal is sent to the mobile audio interface of described target mobile phones by processing chip, described target mobile phones registers peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal on described mobile audio interface, described target mobile phones is when detecting that the length of physical button is by event, obtain the peripheral hardware type of registration on described mobile audio interface, when described peripheral hardware type is self-shooting bar, shield described length by event.
Implement the embodiment of the present invention, will have the advantages that
Have employed above-mentioned length by the processing method of physical button and device, above-mentioned self-shooting bar length by after the processing method of physical button and device, when mobile phone terminal is connected by the audio interface of mobile phone terminal with self-shooting bar, the built-in process chip of self-shooting bar carries out self-shooting bar registration to mobile phone terminal, so that the device that mobile phone terminal knows the audio interface inserting mobile phone is self-shooting bar rather than earphone;And when mobile phone terminal is connected with self-shooting bar, the physical button of mobile phone terminal being long pressed if detecting, being maloperation by the length of this physical button by operation mark, and shielding this length by operation;Thus decreasing the maloperation of mobile phone end entity button when using self-shooting bar, reducing the misuse rate of mobile phone terminal, improve Consumer's Experience.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
Above disclosed it is only present pre-ferred embodiments, certainly can not limit the interest field of the present invention, the equivalent variations therefore made according to the claims in the present invention with this, still belong to the scope that the present invention contains.

Claims (10)

1. one kind long by the processing method of physical button, it is characterised in that including:
When the plug of self-shooting bar inserts mobile audio interface, what receive described self-shooting bar processes the self-shooting bar peripheral hardware registration signal that chip sends;
Peripheral hardware type is registered as self-shooting bar at described mobile audio interface according to described self-shooting bar peripheral hardware registration signal;
The length of detection physical button is by event;
When detecting that the length of described physical button is by event, shield described length by event.
2. length according to claim 1 presses the processing method of physical button, it is characterised in that the length of described detection physical button also includes by after the step of event:
When detecting that the length of described physical button is by event, it is long pressed by vibration prompting physical button.
3. length according to claim 1 presses the processing method of physical button, it is characterised in that described method also includes:
When the plug of earphone inserts earphone handset audio, if not receiving self-shooting bar peripheral hardware registration signal, then register peripheral hardware type as earphone at described mobile audio interface.
4. length according to claim 3 presses the processing method of physical button, it is characterised in that also include after the peripheral hardware type of registration on the described mobile audio interface of described acquisition:
When described peripheral hardware type is earphone, the length of detection physical button is by event, and obtains described length by the event argument of event, and described event argument at least includes identifying and/or pressing duration by the physical button that event is corresponding with described length;
Searching the length corresponding with described physical button mark and described pressing duration by event handling instruction, if finding, then performing described length by event handling instruction.
5. one kind long by the process device of physical button, it is characterised in that including:
Registration signal receiver module, for when the plug of self-shooting bar inserts mobile audio interface, what receive described self-shooting bar processes the self-shooting bar peripheral hardware registration signal that chip sends;
Self-shooting bar Registering modules, for registering peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal at described mobile audio interface;
Long by event checking module, it is used for the length detecting physical button by event;
Long press event mask module, be used for, when detecting that the length of described physical button is by event, shielding described length by event.
6. length according to claim 5 presses the process device of physical button, it is characterised in that described device also includes vibration prompting module, for when detecting that the length of described physical button is by event, being long pressed by vibration prompting physical button.
7. length according to claim 5 presses the process device of physical button, it is characterized in that, described device also includes earphone Registering modules, for when the plug of earphone inserts earphone handset audio, if not receiving self-shooting bar peripheral hardware registration signal, then register peripheral hardware type as earphone at described mobile audio interface.
8. length according to claim 7 presses the process device of physical button, it is characterised in that described device also includes long by event processing module, is used for:
When described peripheral hardware type is earphone, the length of detection physical button is by event, and obtains described length by the event argument of event, and described event argument at least includes identifying and/or pressing duration by the physical button that event is corresponding with described length;
Searching the length corresponding with described physical button mark and described pressing duration by event handling instruction, if finding, then performing described length by event handling instruction.
9. the length of a self-shooting bar presses the processing method of physical button, it is characterised in that including:
Whether detection self-shooting bar plug inserts the mobile audio interface of target mobile phones;
When insertion being detected, self-shooting bar peripheral hardware registration signal is sent to the mobile audio interface of described target mobile phones by processing chip, described target mobile phones registers peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal on described mobile audio interface, described target mobile phones is when detecting that the length of physical button is by event, obtain the peripheral hardware type of registration on described mobile audio interface, when described peripheral hardware type is self-shooting bar, shield described length by event.
10. the length of a self-shooting bar presses the process device of physical button, it is characterised in that including:
Audio interface detection module, for detecting whether self-shooting bar plug inserts the mobile audio interface of target mobile phones;
Registration signal sending module, for when the mobile audio interface that described self-shooting bar plug inserts described target mobile phones being detected, self-shooting bar peripheral hardware registration signal is sent to the mobile audio interface of described target mobile phones by processing chip, described target mobile phones registers peripheral hardware type as self-shooting bar according to described self-shooting bar peripheral hardware registration signal on described mobile audio interface, described target mobile phones is when detecting that the length of physical button is by event, obtain the peripheral hardware type of registration on described mobile audio interface, when described peripheral hardware type is self-shooting bar, shield described length by event.
CN201610118989.5A 2016-03-01 2016-03-01 A kind of processing method and processing device of long-pressing physical button Active CN105791576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610118989.5A CN105791576B (en) 2016-03-01 2016-03-01 A kind of processing method and processing device of long-pressing physical button

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610118989.5A CN105791576B (en) 2016-03-01 2016-03-01 A kind of processing method and processing device of long-pressing physical button

Publications (2)

Publication Number Publication Date
CN105791576A true CN105791576A (en) 2016-07-20
CN105791576B CN105791576B (en) 2019-03-15

Family

ID=56386919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610118989.5A Active CN105791576B (en) 2016-03-01 2016-03-01 A kind of processing method and processing device of long-pressing physical button

Country Status (1)

Country Link
CN (1) CN105791576B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108445695A (en) * 2018-03-30 2018-08-24 广东电网有限责任公司 A kind of nameplate acquisition camera pole
CN108720780A (en) * 2018-04-28 2018-11-02 佛山市顺德区美的洗涤电器制造有限公司 Key control method and device, dish-washing machine
CN108803407A (en) * 2018-04-13 2018-11-13 浙江绍兴苏泊尔生活电器有限公司 Cooking appliance and key processing method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268196A (en) * 2013-04-28 2013-08-28 广东欧珀移动通信有限公司 Method and device for preventing misoperations
CN104980586A (en) * 2015-06-26 2015-10-14 努比亚技术有限公司 Control method and device of terminal physical button
CN105025560A (en) * 2015-07-28 2015-11-04 广东欧珀移动通信有限公司 Method, mobile terminal and system for using selfie stick-locking device to reduce power consumption
CN105022499A (en) * 2015-07-16 2015-11-04 广东欧珀移动通信有限公司 Physical press key response method of mobile terminal and physical press key response device of mobile terminal
CN105120388A (en) * 2015-08-12 2015-12-02 青岛海信移动通信技术股份有限公司 Identification method and device of selfie stick
US20150365125A1 (en) * 2011-05-26 2015-12-17 Johnny Rhymes With Connie, Llc Elastic securing apparatus and mounting system for electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150365125A1 (en) * 2011-05-26 2015-12-17 Johnny Rhymes With Connie, Llc Elastic securing apparatus and mounting system for electronic device
CN103268196A (en) * 2013-04-28 2013-08-28 广东欧珀移动通信有限公司 Method and device for preventing misoperations
CN104980586A (en) * 2015-06-26 2015-10-14 努比亚技术有限公司 Control method and device of terminal physical button
CN105022499A (en) * 2015-07-16 2015-11-04 广东欧珀移动通信有限公司 Physical press key response method of mobile terminal and physical press key response device of mobile terminal
CN105025560A (en) * 2015-07-28 2015-11-04 广东欧珀移动通信有限公司 Method, mobile terminal and system for using selfie stick-locking device to reduce power consumption
CN105120388A (en) * 2015-08-12 2015-12-02 青岛海信移动通信技术股份有限公司 Identification method and device of selfie stick

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108445695A (en) * 2018-03-30 2018-08-24 广东电网有限责任公司 A kind of nameplate acquisition camera pole
CN108803407A (en) * 2018-04-13 2018-11-13 浙江绍兴苏泊尔生活电器有限公司 Cooking appliance and key processing method
CN108720780A (en) * 2018-04-28 2018-11-02 佛山市顺德区美的洗涤电器制造有限公司 Key control method and device, dish-washing machine

Also Published As

Publication number Publication date
CN105791576B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
US20130347101A1 (en) Terminal Authentication Method and Device
US9917653B2 (en) Mobile terminal and controlling method thereof
CN106912048B (en) Access point information sharing method and device
EP3644172B1 (en) Application control method and terminal
KR102107132B1 (en) Access point connection method of electronic apparatus and electronic appparatus thereof
EP2079011A1 (en) Handheld electronic device and screen lock method thereof
JP2017537414A (en) Fingerprint authentication method and apparatus, program and recording medium
CN104571498A (en) Application program starting method
CN105511719A (en) Notification information display method and device
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
KR20140033916A (en) Method and apparatus for detecting of inserting external audio output device in a portable terminal
CN109450949B (en) Method for unbinding numbers of multiple applications, mobile terminal and readable storage medium
CN105163366A (en) Wireless network connection method and device
CN106227437A (en) A kind of unlocked by fingerprint method and terminal
CN105094593A (en) Electronic device and information processing method
EP3823310A1 (en) Microphone hole clogging detection method and related products
CN104509123A (en) Apparatus and method for providing n-screen service in broadcast system
CN106022058A (en) Fingerprint unlocking method and terminal
CN106203034A (en) A kind of unlocked by fingerprint method and terminal
CN105791576A (en) Method and device for processing long-press physical key
CN105426100A (en) Pressure sensor based password input method and apparatus
CN105472094A (en) Unlocking device based on pressure sensor and method thereof, and mobile terminal
KR20200141702A (en) Electronic device for displaying inquiry list of external electronic device in bluetooth network environment and method thereof
CN105630239A (en) Method and device for detecting operation
WO2020048159A1 (en) Unlocking control method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant