Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Android Jelly Bean introduced a voice search which activates with a long-press on the play/pause button of a headset. As my app requires being able to utilise these long-presses, I was wondering if there is any way to either disable the voice search or make Android play fair with the button events.

share|improve this question
    
This is more of a dev question than an Android question. However, I'd expect it to work similar to when apps were set up to read the long-press of the search button and then voice commands came along. After installing an app that also wanted to use the long-press, when I performed the long-press, I was prompted as to which app to use. I expect the same would happen with the headset button(s). –  Al E. Jul 12 '12 at 13:14
    
My apologies if this is posted in the wrong place. It might be more appropriate for StackOverflow, yes. Either way, I haven't found any option to do as you proposed. Even it was possible, it would sadly still keep a great amount of control from the apps. (E.g., setting a long-press delay or multiple actions while the button is being held down.) –  TVK Jul 12 '12 at 13:21
    
I don't think you need to do anything; I think it's baked into the OS. Someone with more knowledge of Android and Intents should be able to give you a better answer. (That's why I only left a comment.) –  Al E. Jul 12 '12 at 13:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.