[Q] Adding the ability to LONG press volume keys to change music track - Android Software/Hacking General [Developers Only]

I'm currently running Dronix 0.4 on my T-Mobile Comet (Ideos U8150). LOVE this ROM. Stable and smooth, and the only one for my comet that the multitouch actually works!
I've been trying desperately to figure out how to make the volume keys change music tracks when you LONG press on them. I was able to make them change tracks with a short press by simply editing the key layout .kl file in System/usr/keylayout, but then you can't actually adjust the volume with them. I know a few other ROMs do indeed let you control music tracks this way, and still have the volume functionality for short presses.
From what I've read, however, this is hard-coded in the kernel or something? Is there a way, without knowing how to make my own kernel, to simply update or replace something in the system files in order to get this working?
I've even tried using PowerAMP for my music, but still cannot use the volume keys to change tracks.
Please let me know, thanks in advance!

Related

[REQ] Change track using Vol Keys.

Hi,
Is anyone able to write a simple service or app that will hook the volume keys so that i can double tap or tap and hold the volume keys to change the track back and forward on the stock music player.
It's a bit of a pain getting the phone out every time I want to skip a track, especially since I like to drop things but also since I prefer not to take my desire or hero out and be seen with them in my local area.
Ain't too safe.
I still can't believe HTC didn't add this feature by default, I don't want to use the headset remote.
Thanks.
Well you can always modify the file bravo-keypad.kl in /system/usr/keylayout
from
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
to
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
But then you have no volume keys.
HTC headset has track change controls?
sruon said:
Well you can always modify the file bravo-keypad.kl in /system/usr/keylayout
from
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
to
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
But then you have no volume keys.
Click to expand...
Click to collapse
That's exactly why I didn't do it and requested an app/service instead
alias_neo said:
Hi,
Is anyone able to write a simple service or app that will hook the volume keys so that i can double tap or tap and hold the volume keys to change the track back and forward on the stock music player.
It's a bit of a pain getting the phone out every time I want to skip a track, especially since I like to drop things but also since I prefer not to take my desire or hero out and be seen with them in my local area.
Ain't too safe.
I still can't believe HTC didn't add this feature by default, I don't want to use the headset remote.
Thanks.
Click to expand...
Click to collapse
I use my own set of earbuds, no way I'd ever take that stock crap out of the box.
You can open the track control unit and solder your own buds onto it :/
AdamG said:
You can open the track control unit and solder your own buds onto it :/
Click to expand...
Click to collapse
I know i _can_ but it's not the solution I'm after. My buds are expensive and I use them elsewhere too, as do I also plug several other things into the phone.
Essentially, I want hte controls on the phone, and independant of the phones or wiring.
Otherwise the first thing I would have done is modify the remote control. 2 minutes work for an electronic engineer. (most of which is waiting for the iron to heat up).
I'm surprised someone hasn't already written something like this, it seemed like an obvious addition to me.
i have htc touch pro, and i mapped nearly all hw keys to do something usefull.
hold send key = toggle screen brightness. hold end key = toggle vibrate. hold home key, get the task manager. when playing music, press dpad's down = next track, hold it = fast forward. same with dpad's up but reverse. dpad's middle key = play/pause. dpad's right/left, player's volume (dedicated volume keys controll system volume.)
seeing that evo has only volume and power hw keys, assigning different functions to them besides what they currently do is essential. you got my support here =)
i'm quite familiar with modding winmo phones, but havent played with android yet. tho once i get evo, trust me, ill do everything in my power to get those hw/sw key to function as desired =D
frifox said:
i have htc touch pro, and i mapped nearly all hw keys to do something usefull.
hold send key = toggle screen brightness. hold end key = toggle vibrate. hold home key, get the task manager. when playing music, press dpad's down = next track, hold it = fast forward. same with dpad's up but reverse. dpad's middle key = play/pause. dpad's right/left, player's volume (dedicated volume keys controll system volume.)
seeing that evo has only volume and power hw keys, assigning different functions to them besides what they currently do is essential. you got my support here =)
i'm quite familiar with modding winmo phones, but havent played with android yet. tho once i get evo, trust me, ill do everything in my power to get those hw/sw key to function as desired =D
Click to expand...
Click to collapse
Yeh, this was a useful capability of WinMo. I miss that in Android, but not much else. The Desire like you said doesn't have many keys unfortunately, I'm even missing the Call and End keys I was used to on the HTC Hero, but that I can live with.
What I'd really like is the double press or press and hold for track change on volume keys just like Sony Ericsson's do.
Why moved?
Can someone please tell me why on earth this has been moved to the EVO 4G Apps and Themes Section?
The request is for an App for use on the HTC desire, which is where I posted it.
........................
My thoughts exactly.
any solution found yet, op?
Well still I want it for the Evo so if this gets moved again I am making a new one
i support this request as well... coming from BB i miss that functionality to skip tracks without having to look at or even pull out your phone
http://forum.xda-developers.com/showthread.php?t=777767

[Q] Looking for App to Remap Buttons for Long Press Only

I think this would be useful for a lot of people. I am looking for an app that will let me remap my volume up and down hard buttons BUT will also let me use long presses to keep the volume controls, or vice versa. That way you can remap the buttons while retaining the initial features.
OR, is there an app (that works in Froyo) which can give you volume controls within most apps?
i would like to know this also.
Is there such an app?

Remap Volume Key Long-Press?

Posted this elsewhere and haven't found a solution...
With the Optimus V I had CM7 installed, and it had an option for long-press volume-up to skip tracks, and volume-down would go back a track.
But since I listen to mostly podcasts, I went in with root explorer and changed the physical search button to be fast-forward to get past boring parts.
Since the Triumph doesn't have much in the way of physical buttons, I was trying to use the long-press volume keys to FF and rewind the current track.
I've gone to /system/usr/keylayout (this is the directory of the Optimus's settings)
But there are a number of .kl files in that folder. Does anyone know which is the one the Triumph uses for the physical keys? I'm assuming it's the "fbx_kybd.kl" since there are only 4 keys listed in it.
Also, what would key values would I add to the file to make my FF setup work?
ex:
key ??? MEDIA_FAST_FORWARD
key ??? MEDIA_REWIND
Thanks!
Still trying...
Ok, so the phone has been out for a while now, people have started making custom ROMs and such. Does anyone have an answer to my question?
Thanks!

[REQ] Use volume rocker to skip songs?

Hello all. I was perusing the nexus s and nexus s 4g forums and was interested when I came upon their oxygen rom. It offers the ability to skip songs with the volume rocker. Is anyone willing to try and get this working for gummy? I am willing to donate to anyone willing to try. It would also be cool if we could get music controls on the lock screen. Thanks to all the hard working devs and themers.
The first one would be possible for one of the devs to do. The second would require a whole new lockscreen & lots of coding, plus all of the themes would have to be updated with the new stuff.
Sent from my GT-P1000 using XDA App
Agile Lock + PowerAMP = music controls on the lockscreen. They just updated Agile so you can now disable your lockscreen without disabling your power button menu but it's a little glitchy, the dev does promise to release a new version every week as he is still trying to fix it up.
Also, why would you want the volume rocker to skip songs? I would prefer the volume rocker to control volume and use the search/back keys to skip through songs, just me though.
blarrick said:
Also, why would you want the volume rocker to skip songs? I would prefer the volume rocker to control volume and use the search/back keys to skip through songs, just me though.
Click to expand...
Click to collapse
On the Droid 1 roms I used that had volume button music controls you had to hold the volume key to skip but a single press would still adjust volume. Both functions were available with the same buttons.
yutzybrian said:
On the Droid 1 roms I used that had volume button music controls you had to hold the volume key to skip but a single press would still adjust volume. Both functions were available with the same buttons.
Click to expand...
Click to collapse
That's pretty cool, hope it can be done! I usually have PowerAMP set to shuffle my 100+ song playlist and sometimes I get to that song I'm just not in the mood to hear and it would be nice to skip it with a simple hold of the power button.
blarrick said:
That's pretty cool, hope it can be done! I usually have PowerAMP set to shuffle my 100+ song playlist and sometimes I get to that song I'm just not in the mood to hear and it would be nice to skip it with a simple hold of the power button.
Click to expand...
Click to collapse
yutzybrian said:
On the Droid 1 roms I used that had volume button music controls you had to hold the volume key to skip but a single press would still adjust volume. Both functions were available with the same buttons.
Click to expand...
Click to collapse
Yutz-exactly what I'm hoping somebody will look into. Blarrick-I have over 2000 songs I shuffle through. I need a quick way to skip.
Masterpiece Finishes said:
Yutz-exactly what I'm hoping somebody will look into. Blarrick-I have over 2000 songs I shuffle through. I need a quick way to skip.
Click to expand...
Click to collapse
It's my understanding that this is a function of ASOP ROMs. Seeing as none have been released yet, I don't think that this is an available option yet.
hazard209 said:
It's my understanding that this is a function of ASOP ROMs. Seeing as none have been released yet, I don't think that this is an available option yet.
Click to expand...
Click to collapse
Thank you for your response. Will the charge ever get a pure ASOP rom?
There is development happening now. No ETA on releases (there never is), but it may be a while.
I realize this might not be exactly what you are looking for, but PlayerPro can partially do what you want.
It can change the volume up and down to be used to skip songs. However, that will be their only function when it is playing, as they will no longer be able to adjust volume.
Also, while it can't put music controls on an existing lockscreen, it has its own that can be configured with AOSP like sliders. It will show album art and play/next/prev controls on its lockscreen.

[Q] Porting CM10 Volume Rocker Music Control to another ROM

Morning everyone,
I've asked something like this before, but never got an answer seeing as, at the time, this device was a fledgling in the custom ROM world. Now that we've got so many different flavors and features, I'll post my query again.
With the CM10 ROM, we can now use our volume rocker as music control when the screen is off. That was a key selling point to me, seeing as its easier for me to just press my pocket than to pull the phone (with Otterbox Defender) and change the track on-screen. One thing that I dislike about it, however, is the broken wi-fi hotspot and tethering, along with a few other things that aren't functioning. I've scoured the interweb trying to find out what files I would need to pull and how to compile them into an existing non-CM ROM so that I could have the full functionality of the ROM with the added bonus of the Volume Rocker Controls.
Would someone be able to point me in the right direction so I could hop on this? I'd think that the community would like a little .zip package to make this function with all ROMs, if it's even doable.
Thanks for reading.
i had tried my hand at this before, but couldnt find a way to remap volume keys to change tracks.. yet.. but what i did was remapped my volume keys to wake the screen when its locked... and let my camera hard key to skip tracks.. its quite handy when u want to just skip to the next track..
it involves compiling and decompiling the android.policy.jar, so if youre interested i can help you out..
also before all this, theres one app which worked fine on my A2, Tactile Player, it can skip songs both ways and also play/pause the songs via the power key.
it works fine, but theres always this icon in the status bar when the app is on.. you can double press the volume keys, up key for next and down key for previous.. its definitely worth trying.. you can find the app in Playstore, i was using the free version..
Edit: The paid version lets you get rid of the status bar notification and also adds a widget to the homescreen to toggle the app on/off.

Categories

Resources