Audio Media Controls From Headset - root question - Samsung Galaxy Nexus

Wondering how possible it would be to make a root app to control the audio media (play, pause) from a headset, while inside apps that don't use audio (ie calendar)?
Hate when I'm playing music and inside another app, then have to switch back to the music app to pause it.
While inside the music app, android must recognize headset controls of 4 types right? Volume up, down, play, and pause. This doesn't seem like too difficult of a task since CM seems to do very similar things.
what do ya think?
Thanks for any help!
Sent from my Galaxy Nexus using xda app-developers app

I just realized Apollo music app can do this that comes with cm 9. Wonder if its only cause its rooted with this rom or maybe it can do this by default.
Sent from my Galaxy Nexus using xda app-developers app

Related

ICS Google Music bar

For those of you who likes Google Music, the new ICS build shows the album cover, a play/pause, fast forward, and and X to exit the app all from the notification drop down bar.
Where can I get my hands on this build?
I was super happy when I saw this.
Wasn't there supposed to be lockscreen controls though?
At least it supports some headphone button controls.
Edit: Same problem as before, only play/pause and next song work. The phone ignores headset apps that allow for more features like previous track or volume controls.
Also the cm9 music app works very well too
Sent from my SPH-D710 using xda premium
mrbaker823 said:
Wasn't there supposed to be lockscreen controls though?
At least it supports some headphone button controls.
Edit: Same problem as before, only play/pause and next song work. The phone ignores headset apps that allow for more features like previous track or volume controls.
Click to expand...
Click to collapse
There are lockscreen controls too!
Yea wish had triple click to previous, but at least they got basic headset controls unlike before
Sent from my Galaxy S2
This is in 4.0.3 FB17 ROM. CM Music doesn't work for me on FB17.
Its working for me.
Sent from my SPH-D710 using xda premium
I'm on HC 3.1 and it dissappears from the tray when i press pause
Sent from my GT-P7510 using xda premium

Lock Screen Music Widget

I am looking for a way to control my music on the lockscreen. I ran CM10 on my GS3 and could control music. I am currently running Jedi Master 5. But is there an app or a download I can do that will make this happen. I am talking about something that will allow me to control spotify and google play. Just looking for FF, PLAY, RW.
Minotking said:
I am looking for a way to control my music on the lockscreen. I ran CM10 on my GS3 and could control music. I am currently running Jedi Master 5. But is there an app or a download I can do that will make this happen. I am talking about something that will allow me to control spotify and google play. Just looking for FF, PLAY, RW.
Click to expand...
Click to collapse
Nope.
SauROM allows for screen-off volume up+down long press music change. But until AOSP rolls out, there will be none of that.
Download double twist from the play store. It has an awesome lock screen music control.
Sent from my SGH-T889 using xda premium
Go Locker has music control on the lockscreen.
Sent from my SGH-T889 using xda premium

PowerAmp volume problem

Ever since android 4.2 came out poweramp hasn't worked properly on my nexus, no matter what ROM I'm using. I've always had the direct volume control option selected in the program and haven't had issues before. But on 4.2 with that enabled whenever I first open up poweramp the music plays loud but when I change the song the volume gets real low and stays that way. So I have to turn the volume real high. Problem with that is the next time I open the app and listen to music the first song is deafeningly loud and the volume goes down once I skip the track. This problem doesn't happen if I disable direct volume control in the app but when you do that the audio quality becomes terrible. Anyone have a solution?
Sent from my Nexus 7 using xda app-developers app
Any ideas
Sent from my Nexus 7 using xda app-developers app
Sounds like something the developer needs to fix
maybe I have bad ears, but volume works fine here.. latest play store version.. with headset...
flash this and turn dvc off
http://forum.xda-developers.com/showthread.php?t=1748803
rrohanjs said:
flash this and turn dvc off
http://forum.xda-developers.com/showthread.php?t=1748803
Click to expand...
Click to collapse
Thanks I'll try this
Sent from my Nexus 7 using xda app-developers app

[Q] Music pushed to external speaker

When I am listening to the stock music player through the headset and open up another app that plays any type of audio, lets say Google Navigation, the audio from Navigation disrupts the music but is played through the external speaker.
A similar situation happened when opening up a game. The music was sent to the external speaker and the music from the game was played through the headset.
Any workarounds for this?
Have u tried another media player?
Sent from my SAMSUNG-SGH-I747 using xda premium
Ive used the full version of powerplayer and the same thing happens.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app

Help with wired headset Optimus G issue in JB?

Hey guys, I am over on the Sprint forums. I need help trying to see if you guys have the same problems with the wired headset controls I am. Also, if you know of a fix that would be stupendous.
The issue is the pause/play feature doesn't work with the native music app or Google Music. You also can't skip tracks or any other feature.
If music is playing and you click the button once it opens the dialer. If the screen is off it did nothing at all. I have tried various headset control apps on the market with no luck. A few of these apps have a debugging setting. The app will notify you when you click the headset button so you can try and get the app to work. As you can already guess nothing shows when you click the button.
Thanks for the help!
Sent from my LG-LS970 using xda premium
kc_exactly said:
Hey guys, I am over on the Sprint forums. I need help trying to see if you guys have the same problems with the wired headset controls I am. Also, if you know of a fix that would be stupendous.
The issue is the pause/play feature doesn't work with the native music app or Google Music. You also can't skip tracks or any other feature.
If music is playing and you click the button once it opens the dialer. If the screen is off it did nothing at all. I have tried various headset control apps on the market with no luck. A few of these apps have a debugging setting. The app will notify you when you click the headset button so you can try and get the app to work. As you can already guess nothing shows when you click the button.
Thanks for the help!
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Seems more related to keylayout. Maybe the mic button is mapped to voice dialer or something like that.
Well, it should work in two ways. When no music is playing the single button push should open the dialer. The single long press should open voice actions.
Now, I am not sure how it is suppose to work while music is playing. It seems like I have had one phone that would only control music with the screen off.
I agree there is a mapping issue. How do you think it is suppose to work while music is playing? Does the screen being off or on matter? There should be some way to pause/play and skip tracks without pulling out your phone and changing it in the music app.
Thanks for the reply.
Sent from my LG-LS970 using xda premium
kc_exactly said:
Well, it should work in two ways. When no music is playing the single button push should open the dialer. The single long press should open voice actions.
Now, I am not sure how it is suppose to work while music is playing. It seems like I have had one phone that would only control music with the screen off.
I agree there is a mapping issue. How do you think it is suppose to work while music is playing? Does the screen being off or on matter? There should be some way to pause/play and skip tracks without pulling out your phone and changing it in the music app.
Thanks for the reply.
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Hmm, if it has different option then it's not in keylayout but in the framework. Whitin the framework it's easy to tell if it's playing music or not. Where in the framework, i don't know.
I have the same problem. I posted the same post problem and nobody wrote on it. I plug it in and the button does nothing off and when it's on it goes to dialer. I've used all of the key mapping apps like sound about and headset controller and it won't fix it.
Also, on player pro there's an option to override the button and that function does not work at all
Sent from my LG-LS970 using xda app-developers app
Bump for 3 button issues.
Working perfect with stock Rom, LG Headphones and poweramp, press 2/3 times for next/previous song and 1 for play/pause
Still won't work for me.
Sent from my LG-LS970 using xda app-developers app
ThatKawaiiGuy said:
Still won't work for me.
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
I don't see any other post covering this, so I'm bumping.
Same here. using the same one, I've tried, poweramp, winamp, google music, stock music, and most of those have options to take control of the headset buttons for music. I even tried a few apps on the play store made for overriding headset controls to make music buttons. No matter what I do, It always opens the dialer when I click instead of pausing my music.
I listen to my music on my motorcycle, and I can't exactly pause my music while I'm riding, so if I'm probably gonna have to try some custom firmwares if I can't get this figured out.
AOSP seemed like the only thing that worked.
Sent from my HTCONE using xda premium
Satyriasiergaraio
kc_exactly said:
Hey guys, I am over on the Sprint forums. I need help trying to see if you guys have the same problems with the wired headset controls I am. Also, if you know of a fix that would be stupendous.
The issue is the pause/play feature doesn't work with the native music app or Google Music. You also can't skip tracks or any other feature.
If music is playing and you click the button once it opens the dialer. If the screen is off it did nothing at all. I have tried various headset control apps on the market with no luck. A few of these apps have a debugging setting. The app will notify you when you click the headset button so you can try and get the app to work. As you can already guess nothing shows when you click the button.
Thanks for the help!
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
I have had the same issue. LG says they have had no complaints and want me to send them the phone. Every LGOG I have tried at the Sprint stores have the same issue.
teknoclash said:
I have had the same issue. LG says they have had no complaints and want me to send them the phone. Every LGOG I have tried at the Sprint stores have the same issue.
Click to expand...
Click to collapse
Same here. I switched phones. It was too annoying.
Sent from my HTCONE using XDA Premium 4 mobile app
spoke with LG tech
kc_exactly said:
Same here. I switched phones. It was too annoying.
Sent from my HTCONE using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Called LG today and the tech told me that the phone was designed for Sprint to work with bluetooth headphones, not wired headphones. Would have been nice to now before I purchased the phone.
Same problem - bizarre
can't believe this. Just switched from iPhone, it was terrible not being able to run software I wanted, but at least it knew what to do with a button press.
Still nothing on this?
Still on stock rom, does CM handle this better?

Categories

Resources