[Reasonable REQ] Mapping of Hardware buttons - Galaxy S I9000 Android Development

Guys, is it possible to map the hardware buttons of SGS to perform other functions than it was intended to?
Like mapping the long press/double tap of 'home' key button to pause (while music is playing), long press of volume keys for next and previous track?
Cause, one of the main reasons for me going for this phone is its 16gb internal memory which will be suitable for my music play. If only it had hardware buttons, there is no need for me to take the phone everytime i want to change a track or pause the music.
Please tell me if its possible
P.S: Of course, even if this doesn't work, i might still go on for this phone and stick on to sony 4gb walkman for music playback.

emmarbee said:
Guys, is it possible to map the hardware buttons of SGS to perform other functions than it was intended to?
Like mapping the long press/double tap of 'home' key button to pause (while music is playing), long press of volume keys for next and previous track?
Cause, one of the main reasons for me going for this phone is its 16gb internal memory which will be suitable for my music play. If only it had hardware buttons, there is no need for me to take the phone everytime i want to change a track or pause the music.
Please tell me if its possible
P.S: Of course, even if this doesn't work, i might still go on for this phone and stick on to sony 4gb walkman for music playback.
Click to expand...
Click to collapse
Doesn't the headset have these features?

I thought the supplied headphones are of low quality and I must plug-in my Creative EP-630 to get the whooze i'm used to

I absolutely agree with that, i own some high-end headphones and i'd very much like to be able to switch tracks without taking out the phone. Anyway this is possible (with the stock music player and others like bTunes for instant)???

Related

Music Player with easy way to use in town!

Hi all... I am seeking for a good Media Music Player (i got Pocket Player, which is very nice), but i am looking for something..
I don't like to get out my phone in metro, bus, and so... I would like to be able to program touch like vol up (long) to put the next song), vol down (long) previous, and an intelligent way to do play/pause... does anyone have a good idea how do this?
Also, sonyercisson did something very nice... By shaking in different ways the mobile, it change the volume, the song, play and stop it... Mobile costs about 150 € and it's very useful and this wonderfull fonction.. If a programmer would like to work on it, many donations would probably follow...
Thx answering me, and sorry for my bad english...
do i smell ?
Zepiii said:
Hi all... I am seeking for a good Media Music Player (i got Pocket Player, which is very nice), but i am looking for something..
I don't like to get out my phone in metro, bus, and so... I would like to be able to program touch like vol up (long) to put the next song), vol down (long) previous, and an intelligent way to do play/pause... does anyone have a good idea how do this?
Also, sonyercisson did something very nice... By shaking in different ways the mobile, it change the volume, the song, play and stop it... Mobile costs about 150 € and it's very useful and this wonderfull fonction.. If a programmer would like to work on it, many donations would probably follow...
Thx answering me, and sorry for my bad english...
Click to expand...
Click to collapse
You don't want to have to take your device out while on the bus, but want to be able to shake the device to control volume / change songs? You will still need to take the device out of your pocket to shake it.
Just get bluetooth Headphones that support A2DP and control your music on your device right from your bluetooth headphones. Many of the music player software support A2DP. Just make sure the bluetooth headphones you buy have the controls and are A2DP capable. You will not have to take the deivce out of your pocket or it's case at all to control the music - Change songs, volume right from bluetooth headphones.
I don't want to buy a bluetooth headphone...
I meant when i said, i can't get it out, it's that i don't want to get it out, put it on, unlock it, make next song...
I would like a intelligent way to change song easily, like using sound volume or shaking it...
Someone got an idea?
Use S2U2, every option can be the default, but you must change the volume button from off to on.
You can change radio station as well as skip/repeat songs in TF3D, provided the respective program is the foreground program.
To work, you must have S2L2 running but not locked AND you must have the unit in blanked screen (by switching off the power button).
Once the unit is locked (which unfortunately will happen if the device is idle for too long), then the volume rocker will no longer be able to change station or repeat/skip songs.
Hope this helps
ty for the answer !!
See you !
hotrod101 said:
You will still need to take the device out of your pocket to shake it.
Click to expand...
Click to collapse
In some cities you could get arrested for NOT taking it out when you shake it.
lol !!!!!!!!!
Just like that
i also brought this idea up in another thread.
i used a sony ericsson w850i walkman phone and used it to listen to music all day long and it was great. i dont use my ipod coz i simply dont like it, so the music player in my phone is also really important to me coz i want my phone to be all-in-1.
anyways.. the w850i hat this smart control on the volume buttons
short up: volume up
short down: volume down
long up: previous track
long down: next track
and trust me - once u have this u never wanna miss it
phone in the pocket is just way more convenient.. i often ride my bike and theres no damn time to take the phone out and change the song ^^
i also highly prefer the built-in players due to many reasons
N!ghty said:
short up: volume up
short down: volume down
long up: previous track
long down: next track
Click to expand...
Click to collapse
no one got an issue about this? .. would be so cool..
thx
Try TCPMP. I know that you can map any buttons to any comand - See if you can do what you want with this. TCPMP is also free
doesnt work on my phone for any reason...
The included windows media player can acutally do this, I've mapped vol up down single press to volume, and holding will change track prev or next. BUT.... this only works if you somehow get the normal volume application unmapped, else when pressing the volume, the volume application will grab the volume push before windows media player receives it..
When I in TCMP mapped volume buttons they "unhooked" from the volume application then afterwards I could use buttons in windows media player. I couldn't get TCMP to support "hold" key else I could just use that.. Now I only use TCMP to ruin the volume application stealing volume key.. Also this means that you can't really use volume application afterwards so not a very good solution but it works for now.
I'd mostly like a program that can just unhook/rehook volume buttons from/to volume application so I can use these for single press/hold for windows media player.
Tried AEBPlus button but couldn't get the wanted result.
Finally, i found what i wanted...
S2P is perfect for it... There is the shake option... and combined with S2U you can easily change music..
I recommand it to everyone !!
This http://forum.xda-developers.com/showthread.php?t=237507 (unmap_volume.zip) will release the volume buttons on Touch HD (and others), so it for example can be mapped in windows media player to single press adjust volume and hold will change track. Just like on my old Sony Ericsson phone it's convinient to be able to both change track and adjust volume without looking/turning on the screen (just remember to map the buttons also in WMP10 settings).
Anybody know if Coreplayer supports hotkeys by "holding a key" (don't want to buy to find out). Only player I actually seen this in is WMP10 and I tried alot of others (mort, tcmp, pocketmusic5, pocketplayer, gsplayer).
Try AEB Plus:
http://ae.inc.ru - the shareware version has virtually all the functions of the registered version.
It does not do the shake but multiple presses on the volume and long presses.
I think Mobile Magic (on this forum) does find some types of shake but I have not tried it.
Cheesy Dave said:
Try AEB Plus:
http://ae.inc.ru - the shareware version has virtually all the functions of the registered version.
It does not do the shake but multiple presses on the volume and long presses.
I think Mobile Magic (on this forum) does find some types of shake but I have not tried it.
Click to expand...
Click to collapse
My mistake - it's not mobile magic but Gcontroller:
http://forum.xda-developers.com/showthread.php?t=429569
Cheesy Dave said:
Try AEB Plus:
http://ae.inc.ru - the shareware version has virtually all the functions of the registered version.
It does not do the shake but multiple presses on the volume and long presses.
I think Mobile Magic (on this forum) does find some types of shake but I have not tried it.
Click to expand...
Click to collapse
Yes I toyed around with AEB Plus, just seems to overkill, having a big footprint with a lot of features I have other programs for. Some programs should stick to the main focus (mapping stuff) and not try to evolve into an all purpose swiss army knife (taskmanager, memory/battery monitor etc).
this is what I use with my wired earphone
1. using AEB Plus, map the side volume up key as "Press Up Arrow key" , map the side volume down key as "Press Down Arrow key"
2. go to the registry HKEY_CURRENT_USER\ControlPanel\Keybd , set defaultkeylock from 1 to 0 . This will enable the volume button when your touch hd went to stand by mode
Using the TouchFLO music player, I can now press the side button Up (previous track) and Down (next track). Best thing is the touch hd's screen remain off ..
Note that I have done tons of other modification so I am not sure if the 1, 2 enough to achieve this. good luck
How on Earth did you get the music to keep playing with the screen turned off? With the screen off are all the other buttons locked too? So that the things don't get pressed when it gets back into your pocket?

[Q] Control Music using Hardware Buttons when Screen is off + Locked

Anyone have any suggestions for controlling music/pandora/etc when the screen is off? Ideally I would like to be able to double or long tap on volume to next/prev songs, and use the camera button to pause. I know CyanogenMod's music player apparently offers this ability, but I am using a different firmware.
Ideally I'd like to be able to map buttons functionality myself, but basic controls would be adequate. "Just Shake" in the market has the functionality to change songs by double tapping volume buttons when the screen is off, but is a paid app, or limited in the trial version. Ideally I'd like a free solution, but if anyone know of a paid option, I'd be interested also.
I am not looking for an app to control music from the lockscreen, but from the hardware buttons available on my phone.
Thanks for the help.
http://forum.xda-developers.com/showthread.php?t=1048287 read that someone using tasker too do that not sure If it'll work for epic
On the market there's a program called music control lite. The camera button play pause skip songs

[Q] Supplied Headphones - Track skip?

Hi, i've searching for this for a while, but to no avail.
I love my new Galaxy S2, but there is one issue that bothers me, and that is that I have to take it out of my pocket to skip tracks.
I heard from one person stating you could skip the track by long pressing the button on the supplied head phones, however I cannot get this to work. Does this work for any body else?
If the headphones can't skip track, does anyone know of any that do (volume control is not important)? Or an app/trick to skip track without needing to take the phone out of my pocket? (such as long press volume rocker)
I have an old bluetooth stereo headset, and even this won't allow track skipping, only play/pause, despite working fine with my nexus one. All help would be greatly appreciated.
You skip tracks by double pressing the mic button. It's a pain to get the timing right, but it does work with the stock music player.
You can download PowerAMP Music Player from the android market.
It's a better music player and you can longpress the button to change the track
Trail version is 15 days, you gotta buy the full app after that
padlad said:
You skip tracks by double pressing the mic button. It's a pain to get the timing right, but it does work with the stock music player.
Click to expand...
Click to collapse
So If my headphones can't even play/pause the stock music app , I might have an some other underlying issue?
Strangely I play/pause with the headset if I install Fedes music app alpha v4, and possibly others. Will try uninstalling all music apps again and see if they were interferring somehow.
Confused!
To follow up, the double click to skip works in Fedes Music app (you're right about the timing) but still won't work in either the stock music app or the music hub.
Really fustrating.
The double clicking works on stock but you have to get the timing right, which is near impossible. The whole Samsung s2 stock music app is a load of crap compared to the original S, the sound, the music contol, the whole thing is much worse! I don't know what they have done, but they have definitely gone backwards with the music app!
You can use a remote from an HTC headphone for skipping tracks.
padlad said:
The double clicking works on stock but you have to get the timing right, which is near impossible. The whole Samsung s2 stock music app is a load of crap compared to the original S, the sound, the music contol, the whole thing is much worse! I don't know what they have done, but they have definitely gone backwards with the music app!
Click to expand...
Click to collapse
Sorry if I wasn't clear, but the button does not work at all when using the stock app. No play/pause, no track skip, nothing.
All other music apps seem to work as intended. So surely this must be an issue with my stock music app? As if there is a hidden setting I turned off, but can't find to turn back on.
padlad said:
You skip tracks by double pressing the mic button. It's a pain to get the timing right, but it does work with the stock music player.
Click to expand...
Click to collapse
About 2.5 years too late but I think I've nailed it. I can get a consistently successful double click skip by holding the first click a little longer. Using a pair of cheap Sony earphones on the S2.

My headset remote buttons are no longer working

Nothing happens when I press the play/pause button, or the skip to next track, or the skip to previous track button. I tried this with Winamp playing in the foreground. I'm not sure if this is possible with Winamp. So I also tried it with MortPlayer Music which is what I have used previously and I know it supports this feature. But still nothing. Usually Mort will start playing as soon as I press the play button on the remote, even when it's not in the foreground or not even launched. But now... just silence.
I have SuperNova ROM with Data2SD and Android 2.3.3. I have S-OFF, root, and stock HBOOT.
Is there some service or process missing? Or not running in the background? What else could it be?
Just for clarification, the headset is working, I mean I can hear the music, it's just that there is no way to use the buttons to control it (except through the app).
Edit:
Also, is there something like a menu option or control panel, some means of controlling which app gets to use the headset buttons? Or a way of setting which app is the default music player? Or which one is the default browser for instance? Is this possible in Android? Some centralized place where you can set all of these things, a little bit like Windows style?
not tried it myself, but does this app work? it's a trial, so you can see if it works, and have to pay later. or might be other apps which are free and work, have a browse
(as an aside some roms allow long pressing of volume buttons to skip tracks, but i believe this has to be the stock music app, and probably has to be on the system partition)
Jack is the culprit!
I have found the culprit. It's my headset jack! You can check out the picture below.
I think some leads have broken inside the sleeve at the jack. That's why it bulges out like that, you can see that it's a little thick at that point. If I press and hold the cable at this point the remote control buttons work again, more or less, it glitches sometimes. If I let go it stops working, or it works sometimes if I move the cable around like when having the phone in a pocket.
For the record, this is the original HTC headset, I think it's RC-E160. The earbuds are still working though. So it's pretty much just a headphone right now. I haven't used it very much because, almost nothing at all, because of the poor sound quality. I started using it only like three months ago as as a temporary replacement when my Sony got broken. Now these are broken too. My Sony lasted much longer.
I still wonder how you can control which app gets priority and things like that, when you have like two or three different apps that respond to headset buttons. Is there no option in Android from where you can control this? Is your only option to uninstall the apps you don't want to be interfering? This doesn't seem well thought through.

Poweramp doesn't stop radio, mode cycling etc

Dont know if the title makes sense!
Trying to set this up for everyday use now, using Malaysk rom.
Installed poweramp, but noticed that if i am playing the radio, then open poweramp & play something, the radio does not stop.
I have to go back to radio app, then press back button.
Is that normal/correct or is there a way to configure this sort of thing.
Also, when pressing mode button (as configured on SWC), can you choose which apps are cycled through?
It currently goes through things like AVIN, and Video which i do not use.
Another thing (!), i've hads a couple of times when its gone to black screen and i cannot do anything about it, pressing power button just beeps, there is still power as there is illuminated buttons, but just a black screen and only a complete power down using ignition reboots and restores screen.
Think its like when the power button in the top right status bar is pressed (which i also need to disable!)
Thanks, and sorry for all the questions, keen to get this set up nicely now
Took me a bit to find this. You have to use the My Music shortcut not the power amp shortcut. Then setup PowerAmp as your default music player.
JoeWilcox said:
Took me a bit to find this. You have to use the My Music shortcut not the power amp shortcut. Then setup PowerAmp as your default music player.
Click to expand...
Click to collapse
Thanks for that
Where do you set the defaults?
Could just find it in MTCmusic I think it was. Playing around with that at the moment, still not quite got things how I want then though, taking me ages this is!
Been playing around with the settings.
Come across another problem
When using Nokia here maps, I can use SWC to skip tracks playing in Poweramp, but when I skip, the Poweramp audio doesn't return until I press a volume up or down button.
Any suggestions?
Thanks!
actually, its not related to navigation
Noticed it does the same even when in Poweramp app
Skipped forward a track using SWC, then no audio until volume pressed...
anyone?

Categories

Resources