Speed up response time of media button broadcast receiver android
===

So i had a post on here a week or so ago. I ended up answering it for myself but the answer ended up bringing in more problems.

I have an app that takes input from the headset into an android device. I have been using the broadcast receiver and the media buttons. The problem I am now encountering is that on some motorola devices (originally noted in the RAZR but found somewhat in the others) the response time of the button was actually slower than the button could register, i.e. My samsung galaxy s3 can get response time < 150 milliseconds and the timeout for the gestures was set to 600 milliseconds. What I am finding is though that you can't register 3 button click on the razr any faster than 616 milliseconds (for myself). So the app was simply timing out instead of registering the commands. So the quick fix was for the timeout to be lengthened to 1 second but this still leaves razr users with a very lagging interaction with the app.

I can press the button however many times I want but when I am debugging and watching the button clicks I can tell with the razr there is a major problem, and in some other motorola phones there was some lag but not too much. It doesn't register the clicks at all if I go to fast. Would anyone know possibly what might cause this from a software perspective/any tips on how I might go about solving this. I have come to understand that the razr has documented problems with the headphone jack and I figured this could be a hardware error of some kind for the phone, or something of that nature.

Any help is appreciated.