Random Music Playback [WinAmp && Cubed] I've noticed this issue on my Sprint Samsung Intercept running 2.2 Froyo (rooted, custom kernel, etc.) I swear I didn't have this issue on Android 2.1, but someone with a Motorola Droid running 2.1 did, as you can see here: http://forums.winamp.com/showthread.php?t=323590

My issue is I love the WinAmp music player. However, when I pause it and leave the app, it will randomly, unexpectedly begin music playback later (both when I am using the phone, and when it's sitting on the ground next to me.) When I navigate to the app, the controls show that it is paused, and clicking on it once will bring it to the normal state (shows as playing, and it is,) and a second time will pause it again (where it should have been to begin with.) This could be a real issue while I'm in class, etc. and I'm forced not to be able to use WinAmp, which I'd really like to be able to do.

With Cubed, the issue is similar. Instead of having it be random though, it plays when I go back to the app. This leads me to believe that it's playing onResume(), without first checking the state it should be in. I'm guessing WinAmp is staying open in the background somehow and doing the same thing.

My question is, is there any fix?
I used to have this problem a lot on my Droid.  I believe it has something to do with the headphones and how some music apps react to you plugging them in/out.

My solution?  I use tasker to make two profiles:

Not Headset Plugged


Music Stop
Media Volume 0


Headset Plugged


Music Stop 
Media Volume 5


The volume isn't necessary (just so I don't blare loud music into my ears when I put in my ear buds OR sets it 0 if I unplug my headphones and it somehow is still playing).  So in other words every time I plug in or out my headphones, it stops all music.  Since I've done this, I've had no more problems.