[SOLVED] CM 6.1 Lockscreen music widget - buttons don't work - Nexus One Android Development

I ran into this issue about a week ago and still wasn't able to find a solution. I'm running CM 6.1 stable. I listen to music from my phone at work so I use the lockscreen music widget but for some reason the buttons stopped responding. When I use Winamp they work but not with the stock music app.
Another thing I've noticed since this happened is the remote on my headset stopped working too. Like when I get a call, the answer button doesn't work on my earbuds. (don't hate but I use apple earbuds with mic cuz they're comfy)
I spent time reading through forums but doesn't seem like anyone knows of a solution or as to why this may have happened. Thanks in advance!

I had a similar problem last week. I normally use Winamp for listening and I noticed one day that the buttons weren't working with it. Then a couple days later while listening to Winamp I hit the lockscreen play button and the stock android player began playing.
Sent from my Nexus One using XDA App

Ahhh! I figured it out......
Ok after messing around with Winamp I looked into the setting and what do you know...the "Control headset" was on. After disabling it everything went back to normal.
Whats interesting is when I removed Winamp before, that setting seemed to be active and wouldn't allow me to use the controls on the lockscreen.
Hope this helps for whoever is having this issue!

Related

[Q] Headphone controls

I recently changed my ROM to Cloudy, everythings going great apart from one issue, not sure if it's ROM related or not.
Pressing buttons on the standard headset brings up WMP, even if I'm already listening to music on Sense music player, makes a bit of a mokry having to take my phone out to skip tracks.
I've searched just about every term I can think of to see if anyone else as had this problem and finally gave up to ask the experts.
Anyone able to throw any light on how to make it work again?

[Q] Bluetooth to Car Stereo Media Controls

Hi,
I'm running Comm Rom 2.0 with the MIUI music app. I can connect my music to my stereo via bluetooth with no problems, but I can't switch tracks using the stereo controls. My sister has a stock, unrooted Fascinate and the controls are responsive for hers. I've also tried using the default music player and that didn't seem to change things on my end. Other threads with different phones on the matter don't seem to have any definitive solutions either. I'd really appreciate it if someone had an idea of what's going on with my phone. Thanks.
My MIUI music lockscreen (next/previous) controls aren't working either. Pause toggle works fine though. Also tried simulating Next and Previous Media buttons with Tasker and that's unresponsive too while pause is fine.
I tried restoring nandroid to when I remember it working but it doesn't look like its changed anything. Is something conflicting with something?
My phone was overheating and locking up while using bluetooth. I plan on trying it again with my latest rom. I will check and see if I can switch tracks.
Thanks, let me know how it turns out.
I guess I should probably rephrase the question. Has anyone running Comm Rom 2.1 with or without MIUI have trouble switching tracks via universal media buttons with lockscreen or external controls?
check out this app: Media Button Router (https://play.google.com/store/apps/d...cm9pZC5tYnIiXQ..)
that should fix it
Link isn't working... but more importantly did you realize this thread is almost 2 years old now? It's more than likely he's resolved it by now...

Bluetooth AVRCP / A2DP issues on XXLPQ stock

Reguardless what i connect to with bluetooth be it my computer, my car, or my bluetooth headset the music controls (play, pause, forward, reverse, and starting the voice talk thing) no longer seem to work properly if the screen is off when i activate them.
Scenario: Listen to music via bluetooth in my car.
Press voice call button on my deck
Phone screen is off, its sitting in the glove box (not legally allowed to be within reach when driving)
What SHOULD happen: Brings up the voice control app... "What would you like to do", and i can tell it to play music or make a call or text or whatever.
What DOES happen: most of the time nothing, returns an error that the phone does not support this feature.
The same happens for when i want to change the song or play/pause the music.
Also get the same sort of problem from my bluetooth headset (Blueant T1) when starting the "voice commands" option. If the phone screen is off i get an error, if the phone screen is on it works as it should.
This only started happening after updating to ICS XXLPQ (stock). Has anyone else noticed this? Is there a different version of ICS that works better, or a custom rom thats tweaked for everything? I use bluetooth damn near every day, it has to work for me.
Thanks in advance!
Bump? Does anyone know what im talking about, have you experienced this sort of thing? Are there others with this problem or should i try reinstalling my rom as if it were an isolated event? I could really use some direction here.
Hi,
I have same problem with my autoradio sony MXBT3900U.
GS2 reboot every 15 min when I use bluetooth function (a2dp, phone, etc.)
I've read that 4.0.4 ics version resolve this issue.
I think we should wait this update or install a custom rom with 4.0.4 (hydrogenics, etc.) or install a GB version.
rgs.
I've got the same problem while playing music in my car.
What I've found MIUI ICS roms support this nicely.
and I've been using them cause of this very purpose.
Actually I kinda like MIUI.
Regards
Gaurav
FWIW, when I got the message you mention about not supporting this feature, I found it was because it was trying to ask me which app I wanted to open in response to the button press.
Try pressing the BT button when screen unlocked and check that it's not something silly like that.
Having read your post properly, it probably isn't.
Yes, it most definately is not something silly like that. Glad to hear im not the only one, now to wait another 5 months to get an update from Samsung I really with sammy was better with updates...
Yep...got the same problem too - pause/play just wont have it on ICS. I've tried a few ICS ROMs - all got the same issue, sound is clear as bell and next/prev tracks work fine - but not pause/play! But must admit, I've yet to try a MIUI Rom.....suggestions?
ICS is proving a PITA for me. I'm on Wanamlite at the mo and I need Sky Go to work (which it does fine) but on the 4.0.4 ROMs I've tried like Hydrogen, it wont work! Knowing my luck, if I try a MUIU rom and I get pause/play to work on my BT headset - Sky Go won't
Found the following post when doing a search on it:-
Fix Bluetooth headset/headphone controls in Mog for Android 4 (ICS)
I submitted this via Mog Mobile App Support but was shot down and told to submit it as a "feature request" here. The problem is that Bluetooth play and pause controls do not work in the Mog app for Android 4 (ICS). The skip and rewind buttons work just fine, but play and pause are not responsive. Specifically, on my Galaxy Nexus device, I cannot play or pause music using the Bluetooth controls on any Bluetooth headset or headphones. This worked with previous versions of Android.
I have contacted the Android development team about this, and they said that the Play/Pause specification in ICS has changed a bit. And all that is required is a short coding change on your part (and other developers with similar apps).
They even provided the proper coding:
--- DownloadServiceLifecycleSupport.java 2012-03-26 14:46:29.000000000 -0600 +++ DownloadServiceLifecycleSupport.java 2012-03-26 14:44:21.000000000 -0600 @@ -210,6 +210,12 @@
case KeyEvent.KEYCODE_MEDIA_STOP:
downloadService.reset();
break;
case KeyEvent.KEYCODE_MEDIA_PLAY:
downloadService.play();
break;
case KeyEvent.KEYCODE_MEDIA_PAUSE:
downloadService.pause();
break;
default:
break;
}
Click to expand...
Click to collapse
So it looks like there's the answer.... it's just that it may as well be written in Swahili for all the good it does me. Maybe the Devs can implement whatever that means, into the roms (or produce a flashable zip?)
EDIT: Found a temp workaround during more googling.... it's an app called Media Button Router and seems to do the job on my S2.... HTH somebody else here!
It helped me! Thanks! Now I hope they fix it for everybody. Media Button Router works for most of my audio apps. I wish it would just go back to the previously playing thing when you hit play though. That and it doesn't seem to recognize Audible for Android...
Willie_Heckerslyke said:
EDIT: Found a temp workaround during more googling.... it's an app called Media Button Router and seems to do the job on my S2.... HTH somebody else here!
Click to expand...
Click to collapse
Dude, you just made my day !!!
It works flawlessly with my Pioneer Car Radio! I couldn't use any HW buttons to control my music until you mentioned this app .
Kudos!

[Q] Headset control button not pausing music in ICS?

With the upgrade to ICS I am no longer able to make the button on my wired headset pause/unpause music. I've tried freezing the Voice Commands app using Titanium, I've tried using the Jays Headset Control app, I've tried other music playing apps like Rocketplayer. I can always make the button pause music successfully while the screen is on, but if the screen is off it simply doesn't work. My primary music player is the standard "Play Music" app that comes with ICS.
Are others having this problem? Have you found a way around it?
I am having the same issue too, once the screen locks I cant pause, rewind, or fast foward
I'm having the exact same issue using DoggCatcher. I have a brand new set of phillips headphones for android that worked great before the update. If anyone can figure this out, it would be great.
Try Poweramp, it has a setting that gives Poweramp a higher priority for this case (Haven't tested it with ICS yet, but on GB this worked).
Other than that, it's a nice and beautiful music player btw.
Thanks for the poweramp suggestion. I gave it a try this morning but it behaves exactly the same as the other music apps. Headset controls work fine when the screen is on but don't work at all when the screen is off. I suppose it's good to hear that others are having problems too, which means it's not a problem with just my phone. I'd love to hear a solution!
Sent from my DROID RAZR using xda app-developers app
keej said:
Thanks for the poweramp suggestion. I gave it a try this morning but it behaves exactly the same as the other music apps. Headset controls work fine when the screen is on but don't work at all when the screen is off. I suppose it's good to hear that others are having problems too, which means it's not a problem with just my phone. I'd love to hear a solution!
Sent from my DROID RAZR using xda app-developers app
Click to expand...
Click to collapse
Tryied using some custom lockescreen? (ex. widget loacker etc)
I tried winamp earlier today and it worked...but didn't work with google play or doggcatcher
Sent from my DROID RAZR using xda app-developers app
Same problem here after upgrading to ICS. Headset controls work perfectly with the screen on but don't work at all with the screen off. I have tried using JAYS Headset Control, Headset Button Controller, Headset Droid, and the built-in headset control functions of Winamp and Poweramp all to no avail. Perhaps it has something to do with the fact that the lock screen music controls disappear after installing headset control apps due to some sort of conflict between the app and the Android system.
Anyone find a solution to this? Your ugly red head step child the Droid Bionic seems to have the same problem. So I was hoping there'd be some app or setting to flick to make the controls work when the screen is off.
Also eager to find the best solution on Android, it is pretty easy on iOS!!!
As a music fan, this feature means a lot for us. But seems Android doesn't like music as iOS.
For me, I have upgraded to JB 4.1 and my current solution is create a smart action like launch Google Play Music when plug in headset. The control works for pause and play when screen is off. Actually it also works for skipping by double clicking very quickly, but it seems a little bit hard to achieve, or you can say it doesn't work. But it DOES work sometimes. Good luck!
1800collect said:
Anyone find a solution to this? Your ugly red head step child the Droid Bionic seems to have the same problem. So I was hoping there'd be some app or setting to flick to make the controls work when the screen is off.
Click to expand...
Click to collapse
fingerella said:
Also eager to find the best solution on Android, it is pretty easy on iOS!!!
As a music fan, this feature means a lot for us. But seems Android doesn't like music as iOS.
For me, I have upgraded to JB 4.1 and my current solution is create a smart action like launch Google Play Music when plug in headset. The control works for pause and play when screen is off. Actually it also works for skipping by double clicking very quickly, but it seems a little bit hard to achieve, or you can say it doesn't work. But it DOES work sometimes. Good luck!
Click to expand...
Click to collapse
This doesn't work for me. I think i could use the headset controlls before installing headset controller.
jDawg21 said:
I'm having the exact same issue using DoggCatcher. I have a brand new set of phillips headphones for android that worked great before the update. If anyone can figure this out, it would be great.
Click to expand...
Click to collapse
ive been using poweramp, and this may just be my choice in headphones, but ive never gotten those buttons to work on CM10...again this may just be me, but ive never gotten headphone buttons to work on my RAZR
Install Headset button controller, tap on the Advanced label, scroll until you find the 'Advanced settins' entry (it's the last on the list), check 'Prevent sleep mode' option. It works fine, but it's a shame we have to pay for an app in order to fix a os's bug.
For me the problem was MotoCast. After I disabled in the settings everything worked great.

[Q] Music Stops Playing When Turning Off Screen or Entering APPS

Hi,
Can someone please help me out here? Whenever I listen to music, my sound will shut down when i turn off my screen or try to access apps and it will go back to normal once I turn my screen back on or go back to my home screen.
This whole time I've been running JellyBeans Rom build 21 with no problems, but decided to switch to PACMAN Rom because I was sick of 4.1. I installed Viper4Android and followed every directions correctly, but the problems came up after this. It's so bad to the point where if I want to listen to music, I have to trick my phone by unplugging my headphones, play music through my phone speakers initially, then plug the my headphones back in to make it work somewhat normally. This solves the music pausing problem when I turn off my screen, but to do this every single time is ghetto and whack. I still can't access my apps without my music pausing when resorting to this method.
So today, I said, "Screw it" and went through the trouble of restoring my phone back to the factory settings and rooting again so if the problem was Viper4Android or some system issue within the phone, it would go back to normal. Sadly, no luck and the issue still exists. I even thought that I messed up on something when changing the coding in build prop manager, but I reverted back to factory settings so there shouldn't be an issue.
I've heard people had issues where their music would skip on them when they turn off their screen, but I think my problem is different.
So my question to you is: Anyone experiencing similar problems or do you think that this a hardware issue? If this is a hardware issue, I have no problems taking apart my phone and replace the earphone jack.
Well, I think I figured out the problem. My phone is rejecting Google launcher when it comes to music for some weird reason. I switched to NOVA launcher and my music works perfectly now. *sigh* I guess losing the "OK Google" command is a small price to pay for music... So my next question is, how do I make my music work with the Google launcher? It seems like I'm only experiencing this problem haha
jlee562 said:
Well, I think I figured out the problem. My phone is rejecting Google launcher when it comes to music for some weird reason. I switched to NOVA launcher and my music works perfectly now. *sigh* I guess losing the "OK Google" command is a small price to pay for music... So my next question is, how do I make my music work with the Google launcher? It seems like I'm only experiencing this problem haha
Click to expand...
Click to collapse
I believe it has something to do with the voice activation. I am using Nova Launcher but am able to reproduce the bug using the Voice Search within Dolphin browser. When I have headphones plugged in and playing music, as soon as I use the voice search option, the music mutes and doesn't come back til I unplug my headphones.
EDIT: Just to try it, I used my gf's Razr M phone. Had headphones plugged in, played music. Did Google Voice Search, the music stopped also BUT after finding whatever I Voice Searched, the music resumed on its own. Maybe there is a code missing to resume the audio?

Categories

Resources