I am writing an android app that allows a phone to be plugged into a speaker dock, such as SonrLabs, Bose etc, but when they press a button, still be able to voice search from the phone microphone without unplugging the phone from the dock every time they want to do a speaking search.
Does anyone know how I can temporarily override the headphone controls so that the phone thinks it isn't connected to headphones, and will do a voice search normally. Or if this is even possible?
I really just need to know if I can do a normal voice search from the phone microphone while headphones are plugged into the phone.
Thanks!