Android music pauses when using headphones This started happening a few days ago but my phone stopped to play music (pausing) on headphones when I:


Screen off
Notification menu is pulled down
Opening all applications on the default stock launcher


Music plays only if the music app is in foreground or if I went to the launcher and not selected anything.

I am using custom rom but it stopped working on it after using it for over a month. I tried to update the rom to a newer one but it still doesn't work.

Music plays fine when not using headphones and just using the speakers.

Phone: Note2
ROM: temasek cm11 (http://forum.xda-developers.com/showthread.php?t=2596887)

Kernel: Devil's kernel (http://forum.xda-developers.com/showthread.php?t=2239453)

App: Apollo and Google music (same thing), pretty much every music application on Android
Are your headphones defective or have a weak spot? You can try a couple of things, such as testing this on another Android device. 

It could potentially be the ROM and its ability to detect headphones properly while doing different things (Multi-tasking in a sort of sense). 

What you can do is go into Settings and turned Motion off. Sometimes it can sense movement and such and it'll pause accordingly. I'll look into this more but into l your next response, this is what I have to say. 

Update

It is probably an Android 4.2.2 issue. You can downgrade, wait for an upgrade or perhaps install the 4.3 KitKat ROM.

Other options are trying newer/older versions of the Google Play Music software.