Pause/Play using a button while the screen is locked - Android Software Development

I am looking for a way to detect when a button is pressed while the Android screen is locked. I would like to be able to pause and resume audio playback when the button is pressed, without making the user unlock the screen.
Does anyone know how to detect when a button is pressed while the Android screen is locked?

Fly screen is a lock screen replacement that will let you do this.

Does fly screen let you put the audio controls for the default audio player as a widget? I believe it only does for TunesWiki (which i believe is a really good player).
If you want to put the default player controls on lock screen, try Lock 2.0.

Related

Power save with Windows media player

Does anyone know if it is possible to somehow turn off the screen while playing an mp3?
The power off button also powers off the sound and is therefore not an option.
Just listening to a song I find it a but stupid to drain the battery due to the screen not turning off.
Maybe another player is an option?
In the media player options, u can assign the display poweroff to a hardware button, take a look :wink:

IS there a music player..

...which also works when the device is on standby? The standard media player still plays music on standby, but the buttons don't work anymore! But i need a good player so that i can use my ppc as a mp3 player in my pockets.
thx in advance!
gsplayer + button configuration + SRS wow(if your device can use it).
nothin more.
freeware/legal software.
u can use WMP..just make sure u have S2U2 or Pshut XP
coreplayer will blank the screen
WMP can also blank the screen on use...
WMP can also blank the screen while playing
yeah but it will wake up at a touch of a feather
Depends on the rom you use. For my Prophet, most of the roms work this way: you press the power button and the screen goes blank, music keeps playing and all other buttons don't respond (except power button). Some of the roms stop playback when you suspend.
Hunh?
If I press the power button while music is playing, WMP keeps playing with the screen off. I thought this was normal.
I also have my bluetooth Stereo headset going when I do this.
Weird.
I'm running a Schaps 4.3 ROM if that matters.
littld said:
Depends on the rom you use. For my Prophet, most of the roms work this way: you press the power button and the screen goes blank, music keeps playing and all other buttons don't respond (except power button). Some of the roms stop playback when you suspend.
Click to expand...
Click to collapse
The Sprint Touch stops playback when you hit the power button using WMP.
The muzic stop if i press the power button on my hima so i set S2U2 to turn of llight after 30 seconds and after that it lock the screen so no key press

Screen lock unusable?

With all that screen to touch, having this thing wake up in your pocket (or holster in my case) it bad - it registers keypresses all over the place, and so far it's deleted appointments and other fun stuff for me.
There is the screen lock (hold down right-most softkey a few seconds) but for me at least if an alert wakes the phone, the screen activates and looks normal, but all hardkeys are disabled. Can't even shut the phone down, have to hit the soft reset button, so conveniently located under the battery cover (argh, talk about dumb design choices...)
So anyone have any ideas on the screen lock? I'd even be willing to dedicate the left-most soft-key long-press to a third party lock, as long as it works properly.
u can use s2u2 IPHONE like screen lock
Hold the hang up button to lock, to unlock press the word unlock and a screen will apear saying To unlock device Tap unlock.
Yeah I did that, the hold hang up button thing... that's what's partly unlocking itself, which is a pain to say the least.
Gonna try Throttlelock. Haven't found any really Manila-lookalike skin yet but it seems to do what I want - lock the device - and even adds a little security.
And what about just clicking once on the power button after locking the device using the hold hang up thing?
Doesn't it does what you need? Press again to wake up the mobile?
- Bya -
No, what happen is: I hold down end call to get the device to lock. Then I tap the power button to close down the screen too.
However, a reminder kicks in and that brings the screen back online AND live, so touching it can do stuff. But, the device is still somehow "locked"... except the only thing that is well and truly locked are all the buttons. Power button, volume buttons, even the softkeys on the front, none of them do anything, but the screen works only too well.
There is now way I found to recover from that state except a soft reset. That boots the device - in locked mode, so I have to hit Unlock and then tap the button on the middle of the screen.
I need a lock that is lock, ie it doesn't activate the screen or buttons no matter what, until I unlock it myself. Looks like Throttlelock may be the answer though.

[Q] Music controls from volume rocker on CM7

hello,
on CM7, there is an option to make the song skip next/previous when holding the volume controls whenever the screen is off.
so my question is, is it possible to have this option when the screen is on? it would be quite useful when you're in an app and if you wish to change tracks, no need to turn off the screen or exit from the app itself
i tried searching but unfortunately i didn't find anything. so yeah, any help/suggestions will do. thanks!

Lock screen while playing video

Ever accidentally touch the capacitive buttons or the screen while watching a video causing the UI to show up? Want to stop that from happening? Just press the power button and volume button at the same time and it will lock out the capacitive buttons and the screen so you can watch your videos without interruptions. :good:

Categories

Resources