How to auto-restart media playback when connecting the headphones I am looking for a way to restart media playback where it was stopped as soon as I reconnect the headphones. I know there was a media player with this feature (I cannot remember which one), but I did not like its way of managing/playing the playlists. 

I am running Android 4.0.3 on an HTC One V, using the default media player that is installed on it.
The best solution for you would be to use Smart Connect Liveware™ Mgr.



As you can see, you can set actions to start when you plug a device (headset, HDMI, charger, etc.) and actions to start when you unplug the device. I have a setting to start playing music when I connect my headphones and stop playing when I remove it. There are many things you can do with this.

The best part is that you can manage your music with your own music app! Simply create an event for actions to be done upon the connection pf a headphone and forget this app!

This was originally developed for Sony Xperia Handsets. But should work with any, which has a good hardware configuration (src) and an OS higher that ICS (which you already have).