[(little) GUIDE] Getting your wired headset to work on Android! - Touch Cruise Android Development

Hi everyone!
So, I've been reading a lot about this issue. I love my Android Polaris, but it still lacked wired headset support. There are a lot of posts instructing how to make it work, but there was a couple missing steps. Anyway, here it is!
Turn your phone off, plug your headset on, and then power it on again.
BEFORE the "Hold D-Pad center..." message, you have to connect and disconnect your headset a couple times. If everything went fine, then after that message you'll see -anytime you plug them on- something like this:
Code:
Headset status change 1
and
Code:
Headset status change 0
when unplugged.
Everything went fine? Then disconnect the headset again and keep following this steps. It didn't? Try again from step 1.
Wait until your phone turns on completely.
DON'T start playing music, yet! Make sure your phone is not playing any sound (Notifications, alarms, music, etc.). Then power off the screen.
Plug your headset on, and now turn screen on again.
That's it! Now every sound is routed to your headset. Music, alarms, ringtones and everything.
You may note that when you unplug them, the sounds kinda "disappears", but you can fix that by stopping every sound, and turning off and on your screen.
If music is playing, and you disconnect your headset, without turning screen on again, then music will still be routed to your headset. So If you plug them on another time, the sound automatically start playing on your headphones. Note that the music player won't stop if you do this (careful!, battery draining)
Now (at least for this session) you can use your wired headset perfectly. Any time you want to use them again, just follow steps 5 and 6
If somehow your phone turns off (manually or not), headset may not work. In that case, you should follow the entire guide again.
Enjoy your music again!
Cheers.
EDIT: This worked excellent for me, but using kernel 2.6.25.

Related

My Sprint TP goes silent during mp3 playback! Anyone else had this problem?

Has anyone had issues with the audio output from the phone shutting off and not coming back without a soft reset? I have Sprint Touch Pro
Sometimes when I plug my phone into my cars audio system via the mini usb to 3.5mm audio adapter, sound output from the phone shuts off. I have tried to unplug it, stop the music playback, restart WMP but the sound doesn't come back. When I say there is no sound, I mean that the phone will not make any type of noise, not just music, it won't even ring when someone calls. If I soft reset it the sound comes back. It has done this to me about 5 times already. Any ideas?
Has this happened to anyone else?
Mine does that when I have a usb adapter connected - and I don't actually have a cable connected. Because it assumes output is going out through a 3.5 mm jack. But I've always gotten output to my headphones.
Is your phone going silent while connected to your car stereo - or only before connecting?
hi, this may be a silly response, but it happened to me, the system on the phone was on silent so no sounds play, sorry if this is obvious, but like I said I did it......doh
dkcharger said:
Has anyone had issues with the audio output from the phone shutting off and not coming back without a soft reset? I have Sprint Touch Pro
Sometimes when I plug my phone into my cars audio system via the mini usb to 3.5mm audio adapter, sound output from the phone shuts off. I have tried to unplug it, stop the music playback, restart WMP but the sound doesn't come back. When I say there is no sound, I mean that the phone will not make any type of noise, not just music, it won't even ring when someone calls. If I soft reset it the sound comes back. It has done this to me about 5 times already. Any ideas?
Has this happened to anyone else?
Click to expand...
Click to collapse
Dude this happened to me too I just got my phone yesterday and while playing music thru the headset it just suddenly went silent last time it did that but then again i've only had it 2 days
I just had the exact same thing happen. I used my TP in the car with the audio out and the phone has no sound. Soft reset fixed it but after 20 mins it happened again and I was not using the mini adapter.
Has anyone figured out why this happens?
EDIT
Ok... now since this happened the first time I can reproduce this behavior. If I send myself a test SMS I hear the alert. If I then plug the power adapter in the phone and charge it with the screen still on, I still hear the alert. As soon as the screen is powered off (still charging) and I send a test SMS I see the lights around the directional pad blinking, but get no audible alert. Then if I turn the screen on I cannot hear any sound at all. MP3's, alerts, ringers etc.

[Q] Music apk

Hi. I have the inspire. Its rooted and has the new 2.3.3 rom. My problem is that when i try to listen to music it skips, changes songs, opens voice dialer and then on one instance it called someone. I reinstalled the rom, restarted the phone, but it still persists. I have an idea it might have something to do with the headphones being inserted. When it was doing this i took out the headphones and plugged them back in and it played music just fine for a few minutes. any ideas?
EDIT
I just noticed right now that the icon changes from headset to headphones. Right now im listening to it and it playing just fine as long as the icon is set to headphone.
Edit 2:
Well i found this "Hey. I'm dealing with an annoying behavior, and I'm not sure if it's by design, or if there's something wrong with my phone.
When I plug in headphones... everything goes wonky. Specifically, the phone seems to take feedback from any pressure (usually accidental) I apply to the headphone cable. If I push it one way, it goes into voice command mode. If I push it another, it redials the last call I made. And other such along these lines. Why is it doing this? Is it by design, or is there something wrong with my device? How do I make it stop? Every time I jostle the phone while trying to listen to music, I have the phone annoying redialing my last call, going to voice mode, or otherwise interrupting what I'm doing.
I got the feeling, from one of the apps I was playing with, that this may be something called "headset commands," but I haven't been able to find anything else about that. "
Its a diffrent phone but same issue. I tried wiggling my headphone jack around a bit and found that the icon changed to headset. So ill leave this thread here for anyone having the same issues, as i couldnt find anything for this issue with the inspire forum.
I had the same problem on CM7, turns out the phone was recognizing my headphones as a bluetooth headset with built in controls, and it was confused thinking it was getting signals to skip around and change songs. I fixed it by installing a widget called Headset Blocker from the Android market, once I enable it everything works well.
Thanks! now my world is ok.

[Q] Slow/unresponsive media controls from smartwatch/Android Wear or lock screen

Hitting various media controls on my smartwatch (previously Pebble, now Android Wear both via built-in media functions and Music Boss), my Bluetooth car stereo, or the lock screen, including play/pause, next, and back (or even turning off my car which should automatically pause playback) is incredibly unreliable for me.
I find that at MOST, half the time these buttons work as they're supposed to. The rest of the time there's a delay ranging from a couple of seconds to over a MINUTE. And they accumulate, so I can hit next, not hear any change, hit next again, and then a minute later my music will skip two tracks. Or I hit pause, think it didn't work, hit it again, give up, go to my app directly, pause it, and 30 seconds later it plays again, then pauses.
I find pretty much the only thing that tends to clear this up is restarting my phone, which is usually not convenient to do at the times I need this to work most (like while driving).
I didn't have this problem at all with Jelly Bean on my Nexus 4, and I feel like the problem was rare, if at all, on my 5 with 4.4 through 4.4.2. It was 4.4.3 that seemed to make it a severe and constant problem, and it's held through 4.4.4. And as noted, the problem transitioned from my Pebble to my Android Wear, and since the same thing happens with lockscreen controls, I feel confident it's my phone/OS and not the watch. I'm stock, rooted, FYI.
Any thoughts? I've done a ton of Googling and gotten surprisingly nowhere.
I've noticed this too. For me it seems to have started happen after I got my Android Wear watch, and didn't happen when I just had the phone connected to my car bluetooth. I wonder if having the phone connected to multiple bluetooth controllers at once is causing the issue ?
Interesting thought. Might explain why I was also experiencing it with my Pebble.
Tested this theory by connecting my car stereo through the aux jack instead of Bluetooth and disconnected my phone from its Bluetooth connection. No improvement. At first it was responding right away, which it does sometimes, and then the next time I tried to use it it took a good 30 seconds before my actions registered.
This has been happening to me for a few months. I find that the only reliable way to immediately adjust the playback controls is from within the app. Lockscreen, Bluetooth devices, notification controls, corded play/pause via headphones are all unreliable. But the attempts to play pause are all cumulative and with the aforementioned lag, even if I successfully pause from within the app. So I think I've paused the player, but a minute later it may start playing again. Really embarrassing at times. Not rooted, and switching default players hasn't helped.
Socold said:
This has been happening to me for a few months. I find that the only reliable way to immediately adjust the playback controls is from within the app. Lockscreen, Bluetooth devices, notification controls, corded play/pause via headphones are all unreliable. But the attempts to play pause are all cumulative and with the aforementioned lag, even if I successfully pause from within the app. So I think I've paused the player, but a minute later it may start playing again. Really embarrassing at times. Not rooted, and switching default players hasn't helped.
Click to expand...
Click to collapse
Glad I'm not alone, although disappointed you don't have a solution either. And yes, it's very embarrassing to try to show off this technology and have it fail, or worse have it fail at the wrong moment. Sometimes I get out of my car, walk into a building, and THEN the commands catch up and the music starts blaring from my pocket. Good thing I don't listen to Gangsta Rap.

Speaker and mic weird issues

i ordered the new moto g 2015, a waterproof phone.
i got my phone a few days ago, unlocked the bootloader, rooted flashed xposed- the works. everything was working 100%.
i tested the waterproofing, works 100% as well, no problems at all. I had read somewhere that water still gets in under the back cover and that i should dry it after it gets wet. So i opened the back cover and there was some water, i dried it carefully and thoroughly.
The next day, everything was still working fine. I played music on speaker for a little bit, then someone put the phone in a few inches of water. (Yes the back cover was 100% sealed properly!) it was only underwater for 3 seconds or so, i took it out, dried it off, opened the back, dried that off as well, then tried to put my music back on.
It wouldnt work. i went to the youtube app, tried there with the same result. it was as if the volume was turned all the way down. naturally i tried turning it back up, but it was already at the top.
i rebooted, thinking it was just a little bug, but on powering on it still wouldnt work. at this point i'm starting to get worried, i test every app that i have that can play media:
Poweramp, youtube, quickpic, my video editor, stock gallery.
Nothing, its as if my speakers are physically broken. Then, the phone rings. rings, with sound. i pick up, but i cant hear the other person. I put the phone on speaker, and then i can hear them, but it quickly becomes apparent that he isnt hearing me. i toggle speaker a couple times, when its on i can hear him but he cant here me. when its off neither of us hears the other. i try speaking into google now- its as if i havent spoken.
By this time i get home, i try putting in earphones- music comes blasting out the earphones. i take em out- silence. i connect to a bluetooth speaker- works for music no problem.
I plug in my phone, it plays the sound i set it to play on charger connect/disconnect with gravity box. i unplug, it plays it again. I sent messages to a few people on various social media, and few moments later, whatsapp plays it's notification sound, facebook messenger vibrates but dosent play a sound, facebook plays a little sound, sms app plays its sound.
now i unplug my phone, no sound. i plug it in, still no sound. i just got a whatsapp message, with no sound.
As a last resort i test my alarm clock app. it plays its alarm, but very quietly. i try the stock alarm clock, same result: it plays out loud but much quieter than normal.
so to sum up:
notifications play, sometimes.
media does not play at all.
the phone ringer works.
i can only hear the other end when on speaker phone.
the other end cant hear me at all.
alarms play very quietly.
rebooting, disabling all xposed modules, wiping cache and dalvik from twrp have no effect.
Factory reset also has no effect.
What the actual hell is going on with my phone???
Ok im reporting back, it seems that doing a hard reboot (by pressing and holding the power.button for 15 seconds) did what a factory reset didnt.
Problem solved, Thank god ?

Latest T-Mobile update break bluetooth?

No, I'm not using the Oreo beta.
Yesterday I had the strangest issue happen. While I was driving (Ford Sync 3), I was streaming Spotify via bluetooth and all of a sudden the sound quit coming through my car and started playing through the phone speaker. I checked, bluetooth was still connected. I could still pause/play, skip songs, etc through my car, so I have absolutely no idea why it quit playing. I skipped a few more songs and eventually it decided to start coming through my head unit again. It's happening literally every time I get in the car now.
No issues with the gfs iPhone 7+. I did notice that while all of that was happening (I went to go record the issue) that my video record button in the camera app was greyed out and wouldn't allow me to take video. After the sound resumed through my car, it would let me record again.
Any ideas?
Just wanted to bump this to figure out if anyone had any input. I noticed that after I get out of the car, if I try to adjust ringer volume, it is changing "in call volume" rather than notification volume. This ONLY happens after the bluetooth issue happens. I'm not sure what's going on here.

Categories

Resources