When listening to music using a headset (tried with Apollo and Winamp) the music plays through the phones speaker when on the homescreen. It plays through the headset when in the music app but when I tap on the home button to do something else it stops playing through the headset and starts playing through the speaker until I open the app again. I am currently running HellKat ROM but was previously using Alpine's KitKat ROM and was having the same problem. I have tried with both dalvik and art runtime t see if that would make a difference but the problem continued. If anyone knows of a solution to this it would be very appreciated. I am getting frustrated!
After more messing around I managed to figure out what was causing this. It was Googles hotword detection feature. When it is enabled you can't listen to audio through a headset while on your home screen. Not sure why that is but disabling the feature fixed the problem. Hopefully they release an update fixing that because I do like my "Ok Google". Hope this helps others experiencing the same problem!
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?