Question: The stock media player on my phone has an annoying behaviour. Whenever I unplug the headphones, if the media player is paused or not running, it immediately starts running and playing my playlist. This is very annoying because everyone in the room is forced to listen to my songs until I manage to tap (twice) the Music Widget.

Has this been happening to anyone else? And what did you do to fix it?

*Note: I'm not sure if it's Android's stock player or if it's Motorola's stock player, it's just called "Music". 
Note 2: From the comments, it seems this is Android's stock music app.*

**Motorola-Milestone, firmware 2.1-update1.**

Answer: 
This is a known bug in Android (even in certain Eclair systems).

There's a widget called [Headset Blocker](https://market.android.com/details?id=com.idunnolol.headsetblocker) that when added to any of your homescreens and activated prevents the music player from playing whenever you unplug your headest. Freeware and it works. See if it helps.
I used to have this problem on my Motorola Droid 1. I used Tasker to "stop music" on certain headset events. [See my answer here.](https://android.stackexchange.com/questions/4940/random-music-playback-winamp-cubed/4962#4962)