Page 1 of 1

Feature: Add pause-play feature to physical button in Androi

New postPosted: Mon Aug 30, 2010 6:03 pm
by Feature Bot
User tramsek submitted the following feature request:

Add pause-play feature to physical button in Android

Vote for your favorite features

Add pause-play feature to physical button in Android

New postPosted: Mon Aug 30, 2010 6:03 pm
by tramsek
I moved from a Blackberry Storm2 to a Droid X and I miss the physical button on BB that pauses the audio (it was the 'mute' button). On the Droid X, the physical button that would work best would be the camera button. By default a 'long' hold of the camera button brings up the camera app, but a short click of the camera button doesn't do anything. Would be wonderful if this would be a pause/play button. Thanks!

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Mon Aug 30, 2010 6:11 pm
by hunberry
YES!!!
ANY BUTTON!
PLEASE!

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Tue Aug 31, 2010 1:34 am
by Steve_S_T
This would be great but with so many differences between the many Android phones it would surely have to be a button that you could self assign. Even then, with all of the different brands, I imagine this could be very difficult no matter how desirable. If it is do-able though I'd find this feature an invaluable addition.

Steve.

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Fri Sep 03, 2010 3:05 pm
by marwatk
I added a setting on the 'Keyboard Settings' screen to allow the camera button to work. Wanna try it out?

-Marcus

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Fri Sep 03, 2010 4:47 pm
by hunberry
Very nice, but on my Cliq XT it only seems to work when the screen is not locked.
I wonder if this is one of the many bugs of my phone.

Does it work for others with locked screen?

My bluetooth headset's play/pause button works most of the time (not always)
even with locked screen, but it looks funny as I keep touching my ear to pause/play the podcasts.

Andras

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Sat Sep 04, 2010 6:38 am
by Petri
Confirmed on droid x. Does not work when screen locked

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Sat Sep 04, 2010 3:01 pm
by marwatk
Ok, so I confirmed that it doesn't work while locked on my Droid (original) running Froyo as well.

Back to the drawing board, I guess. Does anyone know of any other apps that are able to do anything while the screen is locked?

-Marcus

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Sat Sep 04, 2010 3:18 pm
by hunberry
I know only one such obvious application: answering the phone works with locked screen. ;)
Otherwise I am noob.

Volume adjustment works with locked screen,
but it does not work if the screen saver is also on. (Cliq XT)

Andras

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Sun Sep 05, 2010 5:26 pm
by marwatk
I think I have an idea. I can detect when the screen turns on/off, which is directly controlled by the power button (which I can't detect). What I'm thinking is that I could indirectly detect a double-press of the power button by detecting a rapid screen on/off cycle. (Either on->off->on or off->on->off). My concern is that this would be inadvertently triggered in some cases, but I'm not familiar enough with general android use to know. (Though that concern may be mitigated by auto-stop)

Thoughts?

-Marcus

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Sun Sep 05, 2010 6:23 pm
by hunberry
This sounds like a good idea.

My only concern was that I will turn off the phone inadvertently,
but I tried, and I was able to cycle the button with no problem.


Andras

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Sun Sep 05, 2010 9:05 pm
by FreydNot
Sounds like a good solution for my Vibrant that only has power, volume up and volume down buttons. I'd be happy to try it out :-)

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Mon Sep 06, 2010 3:50 am
by goliatham
Don't volume buttons work while locked?
Would it be possible to assign long press of those to ff rew or pause/play?

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Mon Sep 06, 2010 11:28 am
by marwatk
goliatham wrote:Don't volume buttons work while locked?
Would it be possible to assign long press of those to ff rew or pause/play?


Unfortunately I can only see the secondary effects (the volume going up and down), and that's only if I poll for the changes which is battery intensive. It's not possible for PodTrapper to see the volume key presses themselves.

-Marcus

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Mon Sep 06, 2010 3:30 pm
by marwatk
Ok, so the power thing seems to work ok on my droid. Try it out in 2.9.18 and let me know what you think.

http://ota.versatilemonkey.com/beta/

-Marcus

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Mon Sep 06, 2010 5:05 pm
by hunberry
The double click with the power button to pause/play works perfectly on my Cliq XT,
and I'm loving it.

Thank you, Marcus.

Andras

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Tue Sep 07, 2010 9:05 am
by Petri
Confirmed works great on Droid X

Re: Feature: Add pause-play feature to physical button in Androi

New postPosted: Wed Sep 08, 2010 2:14 pm
by Steve_S_T
Double tapping the power button to play and pause also works beautifully on my HTC Desire running FroYo too. Thanks.

Steve.