Locale Headphone Button Plugin
10,000 - 50,000 downloadsAdd this app to your listsTweets por @Appszoom
This is useful because headphone buttons automatically use the current "preferred" media player on your device, which is usually the most recently used one, instead of any one specific player.
I use this to restart whatever was playing last when I plug in my headphones. It's nice that Android automatically pauses when they're unplugged, but it's annoying to have to unlock the screen, navigate through the player app, and press play again. Add a Locale situation with headphones connected as the condition and this plugin with "Play/Pause" as the setting, and voila, your music or podcast automatically restarts when you plug your headphones back in!
Warning: some media player apps don't handle headphone buttons consistently, or even at all, even built-in apps. If this plugin doesn't work with a specific app, check that it supports the headphone button you've selected, and/or try other buttons.
Tags: headphone press button, headset rewind fast forward, how to use a 5 button headphone with, headphones prew next player, rewind headphone, make an app close when headphones are unplugged, plug play headphone, locale headphone unplugged close, next previous revind player headphone, handling button on headphones.
add option to check whether something is currently playing