[Q] [brainstorming] bluetooth headset microphone stops working until magic 'call' - Java for Android App Development

I'm developing a VoIP application.
When using bluetooth headset on a Galaxy Tab 4.0.4 i've the following problem:
When there is a voice call in the middle of the VOIP call, or also when I stop application and restart my application it will not use again the bluetooth headset microphone.
When the problem occurs it will keep not using the bluetooth headset microphone even afer stopping and starting bluetooth adapter or the bluetooth device. Only adb reboot seems to fix the problem.
There is a 'dirty' fix which i don't fully understand:
When the problem occurs calling from my application:
audioManager.setMode(AudioManager.VOICE_CALL)
audioManager.setMode(AudioManager.NORMAL)
Click to expand...
Click to collapse
will reenable the microphone of the bluetooth headset.
IF this call was working always that would be enough to fix the issue,however there is a problem: sometimes (around 25%) just after calling the snippet I will start listening very annoying intereferences on the bluetooth headset each time SCO is enabled
I guess they are related to the following comment in AudioManager documentation: 'In particular, the MODE_IN_CALL mode should only be used by the telephony application when it places a phone call, as it will cause signals from the radio layer to feed the platform mixer.'
The question is: any ideas on what could cause and how to avoid the explained issue??

Related

BT tools causing audio delay????

I recently put BT tools 1.1 on my XDA II (latest O2 updated rom).
Since then, if I try to answer or make a call, then no audio is received or transmitted, and both me and the other party think the call has been dropped, due to the silence. After exactly 15 seconds the audio becomes live, and normal. This is in the absence of any headset.
I suspect that the BT tools fires up the bluetooth connection and looks for a headset. Has anyone else noticed this? I have had to remove BT tools
J
yep i'm pretty sure it's caused by bluetooth tools trying to direct the call to the non present bluetooth headset

BT Headset issue. Please help.

Hi. I have a Spring ppc-6700 running wm5 with the latest rom.
My problem is that I cannot use the BT headset to talk on Skype or to listen to music from the computer. I do not know how to switch to the headset. It's paired and i see the headset icon on the screen. Before the latest rom i used to press the action button on the headset and it would switch to it. Now when i press the button i get this annoying voice dialing feature.
OT: When i use skype it only works in speakerphone mode. Any way i can get skype to work through the earpiece so emulate talking on the phone?
Thanks.
This is normal behavior.
Skype does not support the phone functions on Pocket PC and so your (mono) Bluetooth headset does not get its sound. The same happens for ANY application that is not part of the "phone" functionality of the Pocket PC. The mono Bluetooth headsets ONLY work with applications that recognize the "HSP or HFP Bluetooth profiles".
>Any way i can get skype to work through the earpiece
There are two ways to do that:
1. Email Skype and tell them to get their sh*t together and provide a phone-friendly version of Skype that supports HSP/HFP.
2. Buy a *stereo* Bluetooth headset. This will work both for music and general pocketPC sound (in A2DP/AVRCP mode) and in HFP/HSP mode (for phone calls). With a stereo Bluetooth headset you can hear the Skype sound on your headphones, but you will still need to talk using the PocketPC's microphone (until Skype supports the HSP/HFP profile that is). For normal phone calls, you will be able to use the headphones and microphones of the BT headset directly.
It all boils down to applications support the HSP/HFP BT profile.
i've used the bluetooth headset with skype before but after this update with the stupid voice dialer app, i just can't get it to work at all. I want to get rid of voice dialer app. and have sound being routed to the headset as before.
I tried BTAudioToggle.exe with no success. Absolutely nothing happens.
FIXED.
I went to
HK_LOCAL_MACHINE\SOFTWARE\OEM\VOICECOMMAND\Path
And cleared the path. This way when i press the bluetooth button on the headset it just activates the headset profile but doesn't launch the stupid voice dialer which shuts off the headset profile.

HELP...Bluetooth Headset disconnects after ending a call

Hi everyone
I have Eten M700 with WM6 ..
I tryed couple of bluetooth headsets (regular, not stereo) and i was able to pair all OK & make and recieve calls
I was even able to divert all sounds to headset to listen to my music (using either btIO or Blue Music)
I also have MS voice commander 1.6 US & it works through bluetooth without problems
I still have one problem:
when i end a phone call (touching red screen dialpad button or by hardware button) or even by waiting for the person on the other line to hang up..then my headset disconnects (i do not see the headset icon on top right of dialpad) and on the next phone call i have to restart pairing by pressing the headst button (it should start automatically & not disconnect)
i do not have to enter pairing code but it is still one extra step that i did not have to do with other phones..also, i miss some calls because when it disconnects i may not hear my phone speaker ringing as i will be away or driving
Does anyone else have the same problem?
Any fix (software, cab or reg tweak) out there to keep the bluetooth headset connected and paired inbetween calls (not disengaging after a call ends)
Thanks
I have the same problem, though i use my DS-220 as a wireless stereo also , i have no problem using it as one or another (handsfree/stereo headset) but as soon as i'm listening to something and i answer a call, sometimes, the headset disconnects itself after a call and i also have to push the button on the headset to connect it again - but not every time, best solution to resolve this problem for 70% of occasions was to uninstall Microsoft Voice Command 1.6 which was messing up with the BT on my phone, since it uses the handsfree's talk/end button as it's own "engage" button, but still, sometimes, this error occurs
I was wondering, if someone of u has working BT Widcomm or any other better BT stack (better than the microsoft bull*hit) and would mind PMing me the link, I could try it out and see, if that's the solution
BT new fix needed
This dsconnection has been happening with me even before MS voice command installation
i did not notice difference with it installed, i am alble to make commands without bluetooth droping & i give my commands through the BT headset without any registry hacks (read something about people having to give commands through phone speaker not headset) i do not have that problem
my only issue is the dropped connection after finishing a phone conversation (by ending a call or other side ending it)
I need a good developer to fix that & also, maybe work on dr.Yar BT software that shows sender/reciepient ID and file progress. that software shows blank white pop-up window when recieving files from some devices.. maybe also add a clickable line to make BT discoverable or hidden to the menu list there
i use BT only for regular mono headset & file transfer, i route music to my mono headset with BlueMusic v2 sometimes too.
If these 2 issues are fixed im all set (droped with calls & ID/progress blank window in Dr.Yar)
Thanks for looking
nothing
no one has solution for this???

Note 4 Exynos Bluetooth Voice Call Problem

Hello everyone, I run into a really weird problem on my Note 4 when receiving voice calls while using a bluetooth headset.
Summary:
If BT headset is not already connected before initiating or receiving a voice call, you have to press bluetooth button during the call to direct sound to phone and then back to the BT in order to get the mic on the headset to work.
More Details :
1. Incoming Voice call
2. While phone is ringing i turn on the bluetooth headset.
3. I answer the call(Either from phone or the headset)
4. I can hear the other party, but he doesn't hear me.
5. The bluetooth headset mic is not working, neither the phone's mic.
6. If i press the bluetooth icon on the phone(while in a voice call) to direct audio to phone, everything works fine.
7. If i press again to direct audio back to bluetooth headset, everything works fine.
8. If the headset is already connected to the phone before i receive the voice call everything works fine.
9. If i make a voice call (maybe cause headset is already connected?) everything works fine.
10. Problem doesn't occur if it's a VOIP call through skype viber etc.
10. Using plantronics Marque M165 & M55, I have unpaired both repaired, cleared bluetooth cache etc problem still there. Lollipop 5.0.1.
For me it's a big issue since if i have the phone in my bag/pocket i have to take it out in order to be able to use the headset, which kind of defeats the purpose.
Anyone facing this ? Any suggestions?
Sorry for the long post & thanks in advance !
Anyone?
Anyone with similar problems ? Any ideas or suggestions ???
Yes, I have a similar problem, but with my car's bluetooth (the only hands free I use). This problem started after I upgraded to Lollipop, and it worked fine in KitKat.
With te device connected to the car's bluetooth, I have to make the call in the phone's Speaker mode until the other party answers. Only then I can switch to bluetooth.
If I make the call in bluetooth mode, I won't hear the ringing through the car's speakers and even after the other party answers, we cannot communicate.
This is a serious bug. It is my 4th Samsung Galaxy phone, and the only one that doesn't work properly. My previous S4 worked perfectly and I regret profoundly having bought the Note 4.
Ironically i don't face the problem you have. Mine works fine with my car's BT but i suppose this happens because in my case the car's BT is already connected to the phone.
I suppose you have tried to repair the bluetooth/ cleared BT cache etc right ?
I've just tried the phone with a Samsung bluetooth and problem solved !....So it doesn't play well with the plantronic's BT , warning for potential buyers !

Bluetooth call problems

Hello.
I've a problem with Bluetooth call on my phone (stock rom) . All works great but since a couple of days I can't receive or make some calls with any Bluetooth device ( headset handfree, car audio etc). Media like music or icoyote (set in a2dp notification o media) works great.
I've reset all, car audio, phone. Nothing changed. I've installed spectrum mm rom, I've the same problem.
When I open Bluetooth device properties I can't activate the option for call and notification.
Do you have any idea for solve this problem?
Hello and up! Anyone have an idea to solve my problem? I've reset the phone 2 time and it works great for 2 week and now it don't work. I can't made a call with the Bluetooth
bluetooth doesnt open?can u send-receive files?
Hello. Bluetooth works. I can play audio like mp3 on hands-free and car audio. I can make phone calls on car audio but sounds of call don't go on car audio. On the phone I can't check made call on Bluetooth
I've tested the last spetrum's modem. All works great after each reboot but just one time.
When I enable the bt for the first time after rebooting it connect and call phone option was activated. When I enable it the second time it connect but call phone options was disable and if I tried to check it I can't.
the only issue that I have from the bigining..is that many times although b.t connects,it doesnt transfer sound to my plantronics M55 b.t headset.then I just turn off-on my headset,it reconnects automatically and sound is being transmited normally..
I solved the same problem with this thread
https://forums.lenovo.com/t5/Moto-X...less-bluetooth-headset-for-phone/td-p/3652038

Categories

Resources