Modify bluetooth headset button action (longpress) - Android Q&A, Help & Troubleshooting

Hi,
I have recently bought a BT headset for my motorcycle (Can't post links...it's called boblov intercom on amazon...1st result ).
What it does is, as expected, plays/pauses music if I press the button on the headset. If I longpress the button, it calls the last dialed number (who ever uses this...). I would like longpress to open google now (="OK Google") and start listening to me instead so I could control my phone with voice while riding.
I've made some bluetooth logs and ran then through one of the random log analysers I found online.
My question is...is it possible to modify the command the phone receives from the headset (most apps i tried only deal with the short-press actions...and this action seems hardcoded into the headset).
I have attached a screenshot of the translated log.
Any ideas?
Thanks!

Up !
Do you find any solutions ?
Having the exact same idea, hoping you got something !
o7

Related

Customizable AVRCP Agent

Hello,
here is my new version of the avrcp-agent. It is now customizable, so you can control every application from wich you know the messages to be send as WM_COMMAND.
On startup you do not see anything from the app! When you start it a second time, you see an menu at the bottom (OK and SETTINGS) where you can configure various things like the path to the application you want to control and timings for double and triple clicks. Don´t click the OK button, because the app will exit after that! Just leave it run in background. The menu disappears after clicking somewhere else.
Here are the sample Codes for the CorePlayer:
WindowName: CorePlayer
play/pause 1102
PREV 1100
NEXT 1101
OpenFile Dialog 1105
Switch Display 1037
For the GSPlayer:
WindowName: GSPlayer
play/pause 40027
PREV 40037
NEXT 40038
FastFF 40075
FastBack 40074
OpenFile Dialog 40018
Switch Display 100
You can customize the Agent for the functions of the headset by setting the message values to the buttons you want to.
I hope you will enjoy.
Greets,
Thomas
21.09.07 - BUG!
There is a bug in the program. When you reset the device, it "forgets" the settings. I will correct this at monday!
24.09.07 - FIXED! V1.11
I have updated the file to the new version.
-the settings will "survive" a reboot now.
-the problem with the activation of the application to control is fixed
-if you want to start any other program with an AVRCP command, you can now specify a path and the .exe file in the message field!!
Remarks:
-if you change settings, you must restart the agent.
-in the "path" field of the settings you must put the COMPLETE path, including the .exe file to start!
-COREPLAYER: if you want to use the agent with the CorePlayer, you must deactivate the "WMP UI plugin support" under settings/advanced!!!
Wolfman-XP said:
Hello,
here is my new version of the avrcp-agent.
BUG!
There is a bug in the program. When you reset the device, it "forgets" the settings. I will correct this at monday!
Click to expand...
Click to collapse
BTW... great job with the first release! This is a similar to features we are adding into CorePlayer now.
Activate GSplayer
Nice to see a new version. I tried it out and had one problem. WHen Gsplayer isn't running, pressing the play button on the headset doesn't seem to start the application. If I start it normally, the buttons on the headset do what they are supposed to.
Thanks
gewin said:
Nice to see a new version. I tried it out and had one problem. WHen Gsplayer isn't running, pressing the play button on the headset doesn't seem to start the application. If I start it normally, the buttons on the headset do what they are supposed to.
Thanks
Click to expand...
Click to collapse
Fixed. See above.
Greets,
Thomas
works for me now XD
i cant really read what i input to it, but since i made no typos, i was able to configure it. (the font is TOO small).
there no chance for this app or any other to force sound of incomming calls/sms to go through the phone speacker (i dont care if its player through the headset or not ,but not having sound on the speaker makes it imposible to notice a call while driving
some time in the future, ill but a car stereo with BT, and i wont miss calls since i will hear the ringtone through it, but for now, its a problem
cocchiararo said:
works for me now XD
i cant really read what i input to it, but since i made no typos, i was able to configure it. (the font is TOO small).
there no chance for this app or any other to force sound of incomming calls/sms to go through the phone speacker (i dont care if its player through the headset or not ,but not having sound on the speaker makes it imposible to notice a call while driving
some time in the future, ill but a car stereo with BT, and i wont miss calls since i will hear the ringtone through it, but for now, its a problem
Click to expand...
Click to collapse
Perhaps you could use Voice Command to speak the number or contact of the incoming call.
In the next Version i will use a bigger font..
GREAT!
Thank you mate.
Avrcp Wm_command
Hi,
I am creating my own mp3 player for pocket pc. I would really like to be able to use AVRCP. Could you provide me with some info? I am using visual basic .net . I use Interop.WMPLib.dll for playback. How do I process an incoming WM_COMMAND?
Thanx!
any1 knows what is the "exit gsplayer" command?
__s said:
any1 knows what is the "exit gsplayer" command?
Click to expand...
Click to collapse
thanx every1, i've found it. 40004
does this work on WM5?
Hi,
I'm trying to launch AVRCP agent on my hx4700 with WM6 (Kozhura edition) and sony DR-BT50 headphones but without no luck :-(
Build-in WMP10 work, Mort Player work also bu GSPlayer with any available version of AVRCP Agent does not work.
Any idea what I'm doing wrong?
GREAT APP!!!!
Using is with GSPlayer - which is also great. and my new gear4 bluphones.
One little issue, I don't think I got the codes right to start, so I changed them, and I still couldn't get PREV to work (is the code definitely 40037?), so I put some different codes in to try & understand it. Now it's not accepting my changes - I'm stuck with the wrong settings!! I've even odne a soft reset!! where are the settings stored? in the reg I guess. HELP!!!
Also - can yo possibly make it work for QVGA - It's really hard to read!!!!
Thanks so much for this app,
James
Hi,
May or may not be a bug report - on my HTC, with gear4 Bluphones, double clicking 'back' does the same as as double clicking 'Play'. Single clicks work fine. So if the double click is done in software (I think it must be?) I think this must be a (very minor) bug...
Altogether though - FANTASTIC!!
WM_COMMAND codes for PocketMusic
I am looking for an app that will auto-launch pocketmusic when I press the play button. Can I do that with this app? How do I get the codes?
lcd message
Any info about to send title song or other messages to headset with lcd ?
Thanks!
Appelsap said:
I am looking for an app that will auto-launch pocketmusic when I press the play button. Can I do that with this app? How do I get the codes?
Click to expand...
Click to collapse
Yes, you can Launch PocketMusic by entering the path to PocketMusic in the message field for "play single click". But i don´t know the Codes to control pocketMusic
Greets,
Thomas
ciccior2003 said:
Any info about to send title song or other messages to headset with lcd ?
Thanks!
Click to expand...
Click to collapse
no idea. I dont´t have a headset with LCD to test it....
Audio Manager
Hi. Does anyone knows the HTC Audio Manager AVRCP codes?
Johny
Problem with Sony DR-BT50 headset
Hi,
as I mentioned in post #12 I have DR-BT50 headset which doesn't work with AVRCP Agent - probably my headset send different control codes than AVRCP Agent expect so there is no possibility to make right mapping between codes received from headset and WM_COMMAND codes sending to application.
It would be great if new version of AVRCP Agent could:
1. show control codes received from headset (for example in debug mode)
2. map any received control code to any sending WM_COMMAND code
Is it possible to make such AVRCP Agent version?
Thanks for help,
Irek

BT Headset Problem.

I use an, admitedly ancient, Icon BT Headset for calls while driving, and all works well with one annoying problem.
With all other phones that I have used this with, the Headset synchronises completely with the phone. By this I mean that once connected, the phone's speaker is disabled and all keypad sounds, tones and other noises come through the Headset. To answer a call I could press "answer" on the phone OR press the button on the Headset, and the same to hang-up. Lovely Jubbly.
However, with the Blackstone, I have to Slide to Answer the Phone and then press the button on the Headset to activate that. Pressing the Button on the Headset alone does not answer the phone but instead tries to activate the Voice Dialling function, whether or not there is an incoming call.
The only noises that come through the headset, except while "in a call" are the ring tones.
Now, I ask, is this a problem with the Headset or, is that just the way things are with the Blackstone and BT Headsets?
If it's just that mine is old and knackered then I will get a new one, but i do not want to shell out for something that is not going to fix the problem.
OK. How about I rephrase the question.
Most of you out there use BT Headsets of some description. Which ones work like a common or garden phone?
Any? None?
Just want some advice before shelling out on trying to fix a problem that may or not be fixable.
Before you go spending money, try this software. It is fully featured and free for 15 days. It is an alternate bluetooth stack for Windows Mobile. See if it fixes your situation.
thanks for the advice.
been away, so only just got the message.
have installed. will report back with how it goes.

[Q] BT headset microphone input (Tasker & Autovoice)

I got a pair of LG HBS-730 to input voice commands to my SG-N7100, but it doesn't seem to work. I'm on a stock CM10.1 and grab the input from Autovoice (a nifty Tasker plugin).
Depending on whether I activate Phone, Media or both in the Bluetooth settings of the headset, the input is either solely grabbed from the phone's microphone or is ignored.
I tried BTMono, BT Launch and a few other apps that claim to help with this, but it seems to be Android related. http://code.google.com/p/android/issues/detail?id=38566
I also tried disabling/renaming VoiceDialer.apk, but it only helps with the headset button presses not with the microphone issue.
Any tips are most welcome. I'll try anything at this point (including dabbling with Java and Android Intents).
Thanks in advance!
I have a similar issue. I can't get my phone to wake at all on a bluetooth press. If I am logged in and i press the bluetooth button it will then bring up my default options for voice control and any one I choose it will respond to voice. I tried BT Launch and it works well to wake up the phone but then I run into the same problem as you, which is the voice app will not respond to the voice prompts. Have you had any luck? It should not be this difficult to use a droid via bluetooth hands free.
sapienssapiens said:
I got a pair of LG HBS-730 to input voice commands to my SG-N7100, but it doesn't seem to work. I'm on a stock CM10.1 and grab the input from Autovoice (a nifty Tasker plugin).
Depending on whether I activate Phone, Media or both in the Bluetooth settings of the headset, the input is either solely grabbed from the phone's microphone or is ignored.
I tried BTMono, BT Launch and a few other apps that claim to help with this, but it seems to be Android related. http://code.google.com/p/android/issues/detail?id=38566
I also tried disabling/renaming VoiceDialer.apk, but it only helps with the headset button presses not with the microphone issue.
Any tips are most welcome. I'll try anything at this point (including dabbling with Java and Android Intents).
Thanks in advance!
Click to expand...
Click to collapse

Not Getting VZW Voice Dialer on LG BT Headset

I picked up an HBS-730. It sounds good, the Call button works fine for picking up a call or last number redial (by two short presses of Call) but when I long press it I don't get the voice dialer (or any other voice app).
Is there a file in System that I need to edit or run? I do have the LG and Google voice components installed. I've also tried unpairing and repairing the headset.
On a long press I end up with a roughly half second "beep" in the headset.
Alternately, anyone know of an app that captures a BT Call longpress, that you can then assign an app to?
(It sounds like trapping a longpress is something done in a .jar file, not a case of just touching the .kl files)
Thanks!
Hmmm....
Check your BT volume.
Volume is fine on calls, and playing music.
Headset Mic also works fine on calls and for voice commands if I manually launch voice dialer or Google search.
It just seems that a long press of the Call button isn't properly launching voice dialer, that's why I'm looking for an apk or a setting to edit.
markfm said:
Volume is fine on calls, and playing music.
Headset Mic also works fine on calls and for voice commands if I manually launch voice dialer or Google search.
It just seems that a long press of the Call button isn't properly launching voice dialer, that's why I'm looking for an apk or a setting to edit.
Click to expand...
Click to collapse
The LG voice dialer is bland, try this. I know it works.
https://play.google.com/store/apps/details?id=de.itdevcrowd.voicecommand&hl=en
I tried the VoiceCommand app from Play Store, unfortunately same problem. I don't get a voice ommand prompt, on either a single short press or a long press of the Call button on my BT headset.
A single short press does work to connect an incoming call, or disconnect, any a double short press does activate last number redial, so I believe my headset is overall working okay, but I am not hooking a voice command app at all. On a single short press nothing happens, and on a longpress I get a beep, but that is all.
Headset volume works fine, the mic works fine (if I manually launch VoiceCommand, whether the LG app or Google, it picks up fine), just that my phone isn't linking the Call button to launch any VoiceCommand app, on either a single press or a long press.
I disabled the lg voice command and use Google and it works for me
markfm said:
I picked up an HBS-730. It sounds good, the Call button works fine for picking up a call or last number redial (by two short presses of Call) but when I long press it I don't get the voice dialer (or any other voice app).
Is there a file in System that I need to edit or run? I do have the LG and Google voice components installed. I've also tried unpairing and repairing the headset.
On a long press I end up with a roughly half second "beep" in the headset.
Alternately, anyone know of an app that captures a BT Call longpress, that you can then assign an app to?
(It sounds like trapping a longpress is something done in a .jar file, not a case of just touching the .kl files)
Thanks!
Click to expand...
Click to collapse
markfm said:
I tried the VoiceCommand app from Play Store, unfortunately same problem. I don't get a voice ommand prompt, on either a single short press or a long press of the Call button on my BT headset.
A single short press does work to connect an incoming call, or disconnect, any a double short press does activate last number redial, so I believe my headset is overall working okay, but I am not hooking a voice command app at all. On a single short press nothing happens, and on a longpress I get a beep, but that is all.
Headset volume works fine, the mic works fine (if I manually launch VoiceCommand, whether the LG app or Google, it picks up fine), just that my phone isn't linking the Call button to launch any VoiceCommand app, on either a single press or a long press.
Click to expand...
Click to collapse
Did you ever get to the bottom of this as I am having the same issue. On my Xperia Z2 I can choose what I want to activate when I press the call button on my car kit but on the G3 it mutes my radio but never brings anything up on the phone.
I have also tested it with a different bluetooth kit and it still doesn't do anything so it is definitely a phone issue.
I froze some files and maybe froze something I shouldn't have, but factory resets are not doing any good for me as they seem to only partially reset my phone (Frozen apps still do not appear even after factory resetting and also flashing a totally new firmware!)
My G3 will not allow me to Voicedial and I was hoping someone with an operative G3 on their car kit could download a program called Clear Defaults or Default App Manager Lite and advise me what program they have as Default for Voice Dialing (I am not too sure what the heading is exactly as my G3 doesn't show it at all)
Clear Defaults
https://play.google.com/store/apps/details?id=com.zealdroid.cleardefaults&hl=en
Default App Manager
https://play.google.com/store/apps/details?id=com.appiator.defaultappmanager&hl=en
I am trying to get troubleshoot this issue instead of returning it as I bought mine from eBay.
Is there actually someone who has the voice-dialing in his G3 working? I'm waiting also for a solution.
Voice dialing with Google works fine on the phone for me. Via Bluetooth in my car is also fine. nothing in default apps mentions voice dialing.
Oooooo, the voice dialer in the phone.... mine does not work either.
Does there happen anything when long-pressing the button in your car/on your Bluetooth headset?
Long pressing the button does nothing in the car or not.

Voyager Legend and Edge - no access to phone Voice Commands

I am trying to use the voice command feature w/my Galaxy S4 w/4.4.2 (KitKat, NK1).
Voyager and Edge headsets have a feature where a 2 second press on the Mute button when not in a call will launch Voice Search on the phone so you can use voice commands from the headset (e.g., "Call xyx on mobile") to make calls.
While connected to my phone but not in a call I press the Mute button for two seconds. I hear a brief low tone (from the headset) and then nothing - I never hear the Google Voice search tone/prompt coming from the phone through the headset.
Everything is configured properly as far as I can tell:
1. Audio over Bluetooth and requests over Bluetooth are enabled in Google Search.
2. Bluetooth commands are enabled in S4 settings when the phone screen is locked.
3. Phone is connected via BT to headset.
4. Legend has been granted access to contacts and call history. (Not sure this even matters for this issue.)
5. Firmware has been updated on the Legend to the latest and rebooted the headset and unpaired and paired it again.
I tried disabling S Voice (I never use it, but went ahead and turned it off) and that didn't help.
FWIW, I get the same results with the Edge headset as well. (Also updated to current firmware.) Since both fail I'm thinking that this is a Samsung issue.
Help! Any known work-around to get this to work. This makes the headset useless to make calls w/the phone in my pocket - I have to take my phone out, wake it up, enter my pin, and hit Home to go to the Google voice search prompt and then talk via the headset. Not exactly convenient.
Help! (And thanks!)
Holy Buttons, Batman. Figured it out.
<gulp> Operator error.
Was hitting the wrong button. Call button for 2 secs, not mute/voice command button.
Crawling back under my rock now.

Categories

Resources