[Request][Mod] Launch app on bluetooth key - Nexus One Android Development

So I have a bluetooth car kit in my truck that gives me the option to map either the "answer" or "hangup" bluetooth functions to a button on the steering wheel. There is no option to start a call and start the voice dialer, that's why I want this:
What I want to do is first map the "answer" function to the steering wheel and have it work like this when it's pressed:
1. When the phone is not ringing or in a call: Launch a custom app (like a voice dialer app)
2. When the phone is ringing: answer the call (Already does this)
3. When the phone is in a call: hang up
I guess the first step I need to do is figure out if the car is even sending the "answer" key to the phone when it's not in a call.
If someone knows of some docs or sample code on how to intercept these commands, it would be most helpful.
Thanks,
Master Baron

In most of the old Nokia phones, when you press and hold the button on the bluetooth headset, it opens voice dialer when not in a call. I think it has to be a way to do this.

Related

[A] SE HBHDS980 buttons all work including Voice Search

FWIW, I know many of you have a MW600 BT stereo, but I have the 980, which has the integrated headphones, no FM radio.
I have been struggling to get the unit to work with the bt on the prior releases of android on the X10, but 2.3.3 and PowerAmp has done the trick.
First it took me a while (and a read of the Android 2.3 manual) to figure out that if you long pressed the device name in the BT Settings, you would be able to see what profile options are available for each device. The default for my headset was Phone Audio and not the Media output. I wasn't getting any music or video sounds through my buds, this was easily corrected, now that I found the place to do so.
Second, my forward/back, start/stop worked sometimes, but not all the time. And the call button did the same thing as the start/stop button did. This made it impossible to initiate voice commands without using the screen. Voice command via BT is one of the most important functions when driving a car. Voice is much improved in 2.3.3, IMHO. Anyway, changing the Headset Options in PowerAmp to "Respond to Headset Buttons" appears to now let me fully control the music from the 980's dongle. It also seems to be able to distinguish from the microphone located button (which it shouldn't based on the manual and past experience) as the "Call" button. Pressing the Call button brings up the Google Voice Search App which now lets you do most everything with commands. Even the reject call function is functioning.
Third, the 980 can scroll and select via BT from your phonebook. This is fully functioning, as is the retrieval for the Call List. A popup notification for the enabling of the request was needed on the phone, with a option to 'always allow.' Once this was done the Caller ID's number (but not name) info also showed on the dongle.
Unfortunately, the 980 has two more functions which the BT stack in 2.3.3 standard still doesn't support. Display of the file name while playing music. This was enabled in ATT's version for the x10 in v1.6. The other item missing is the time from the display.
PowerAmp also has a BT priority bump option to smooth out playback when the phone is doing other things.
I was considering purchasing another BT headset or a car unit, now I can save my money for something else.

[Q] Does Google voice support A2DP headset?

Greeting:
I have an A2DP Jabra Bluetooth headset and SGS2 (Tmobile). I try to speak use google map voice command but it doesn't seem to work. It seems to work with Samsung VoiceTalk but not Voice search. Is there a way to use Google voice command via A2DP Bluetooth headset.
Your time and help is greatly appreciated.
It doesn't support it (stupidly).
See if you can select Vlingo (presumably what the Samsung VoiceTalk actually is) under Settings -> Voice Input & Output -> Voice recognizer.
You can then use Google Voice but it'll use Vlingo to do the audio gathering/processing. I think I got it working this way.
I try your instruction. However, when I hold the talk/call button on the headset; I got the voice prompt from Vlingo the 1st time but sub-sequently I have to look at the phone and hit the Taps To Speak. What is brand and model of your headset if you don't mind I am asking? Mine is Jabra BT530.

BTmono trumps "voice talk"

I've seen complaints that some bluetooth functionality has been "hijacked" by Voice-Talk. I couldm't figure out how not remap or change that (without root-??), or maybe I didn't dig deep enough to solve the problem. A long-press on the bluetooth call button launches Voice Talk, and that was all you could do with it.
I've been unhappy with the inabilty to hear navigation instructions through my BT earpiece. I have an old loud convertible (top up) and can't hear the directions through the phone's rear speaker. I downloaded the BTmono app, and no more Voice Talk on long-press! It goes into the old pairing mode just like it did before GALAXY S2 took over.
The point is that with BTmono, I now can listen to navigation or music and phone calls seamlessly through my mono BT earpiece. If I want Voice Talk, I just launch it just like any other app, or double tap on the home button. It too comes through the earpiece. If I want to go back to the "long-press to launch Voice Talk", I just uninstall BTmono. Maybe this will help someone.
alexcd2006 said:
I've seen complaints that some bluetooth functionality has been "hijacked" by Voice-Talk. I couldm't figure out how not remap or change that (without root-??), or maybe I didn't dig deep enough to solve the problem. A long-press on the bluetooth call button launches Voice Talk, and that was all you could do with it.
I've been unhappy with the inabilty to hear navigation instructions through my BT earpiece. I have an old loud convertible (top up) and can't hear the directions through the phone's rear speaker. I downloaded the BTmono app, and no more Voice Talk on long-press! It goes into the old pairing mode just like it did before GALAXY S2 took over.
The point is that with BTmono, I now can listen to navigation or music and phone calls seamlessly through my mono BT earpiece. If I want Voice Talk, I just launch it just like any other app, or double tap on the home button. It too comes through the earpiece. If I want to go back to the "long-press to launch Voice Talk", I just uninstall BTmono. Maybe this will help someone.
Click to expand...
Click to collapse
Helps me. Thanks!
Sent from my SAMSUNG-SGH-I777 using Tapatalk

[Q] How to launch and app from bluetooth?

Trying to find way to launch a custom app from my bluetooth controller, possibly using tasker or any other method with a rooted phone. I do not have access to long press actions with my bluetooth controller, and it does not have a search button.
I have a cheap $40 clarion Bluetooth unit in my car, which works decently for me. It has its quirks, but it gets the job of streaming pandora and calls from my phone to my AUX port wirelessly.
The only problem I have with this is that I can't launch any apps, or make calls with this unit. Ideally I would like to be able to launch google now or Voice Actions Plus with my bluetooth unit for voice commands.
The unit has four buttons 2 functions each. VolUp, VolDown, Next, and Previous.
Pressing (quickly) the:
the VolUp/Down buttons do not send commands to the phone, they adjust the volume going to the aux jack
The next and previous buttons send the Answer and End buttons to the phone when in call. otherwise they do nothing
Long pressing the:
Vol Up button alternates sending keycode 200(Media Play) and keycode 201 (Media Pause) to the phone.
Vol Down button sends keycode 166 (Media Stop) to the phone.
Next/Previous send the keycode for Media Next / Media Previous to the phone.
I have tried to make keycode 166 the "CAMERA" button, so that I can use a Tasker profile to launch the app, but i'm not having any luck,,, the tasker profile does not trigger, almost like its not reading that the camera button was pressed. am I overlooking something I should have changed in a .kl file somewhere? Is there a better method of doing what I'm looking todo?
Any ideas would be greatly appreciated!

wired headset button starts google voice search on short click

wired headset button starts google voice search on short click not on a long one as it does on any other phone. This overrides any other app and makes headset button useless. the only way to stop it is to disable voice search all together, but i do not want to do so. Is there any other way ?

Categories

Resources