Music stops playing when switching apps/on homescreen - Android Q&A, Help & Troubleshooting

Hi. I'm using a rom made by PecanCM. It's on 4.4.2 that could be found here.
I noticed that when I listen to music on my headphones and whenever I go into my homescreen, the music player would pause and not play the song anymore. I've tried 2 music applications (Apollo and Shuttle +) and it kept on doing the same thing on both apps. I've tried resetting the phone but the problem still persists.
I've searched and found out that a lot of people have similar issues and all they had to do was upgrade their music app. I've tried it with shuttle + but it didn't really work. I am not quite sure what's wrong with it, so can anyone please help?

AOSP - playing music only in homescreen
The same issue is for me. I have Samsung Note 2, now running on Paranoid Android 4.4.2 - the music apps (N7 player, Apollo, Google Music) play the music only on the home screen. When the notification panel is active, or the apps list, or any other app is active (including the music app itself), the music is playing, but there's no sound output to the headphones. If the headphones are disconnected, the music plays fine via the speaker or Bluetooth connection. I believe that this is a general bug for all 4.4.2 AOSP ROMs (I've tried Linaro CM11 build as well)
---------- Post added at 05:18 PM ---------- Previous post was at 05:02 PM ----------
Ok, problem solved!
The reason for this was the new Google Now Launcher and its setting of reacting to "Ok Google". I'm not a developer but I think it's conflicting with other ports/drivers/listeners of the events. So you have to disable this feature in the launcher settings - and there you go! Back to normal music flow.
Google Now --> Settings --> Voice --> Hotword Detection (disable it!) --> Reboot the device

I'm having the same issue on an HTC Rezound running 4.4.2, it cropped up with the latest update to Google Search. I was running the GEL launcher and had not updated to the Google Now version when the problem started. I had to disable hotword detection also.

If anyone is still interested, I have just solved this problem on my brother's Galaxy Note 2 running CM11 M8 by changing the CPU governor to ONDEMAND. Hope it works for others out there!

SOLVED
Had the same problem, just disabled google hotword detection and everything worked fine

Similiar Audio Issue
I have a VS985 (Verizon lg g3) running cm 13 nightly 09/01/2016 and when I am listening to music (poweramp, google music, and built in music player) or audiobooks (smartaudiobook and audible) and I open an a game, the music player just closes and stops playing. Even the icon in the notification bar disappears. If I have heave headphones with music controls hooked up I can use those to restart the music. Is there anyway to fix this? The google hotword disabling and reboot did nothing to fix this issue.

Related

[Q] Annoying problem with Music and bluetooth

Hi. I am absolutely clueless with this.
I am used to having my phone paired with my car stereo which acts both as a headset and as a multimedia playback device. Im using this for a couple of years now and been doing that with iPhones, Galaxies and now the Atrix nad this has never happened before.
This is the problem. Ever since I updated to Gingerbread when I answer a phone call with my car stereo, and end the call, the default Music player on the android pops up and starts playing whatever is on the playlist. I can try and pause the audio and it will play again in a few seconds. I can even force close the app and it will pop open back again. It happened with the old Music, with the new Music (with Google Music support), with Grooveshark, Winamp, you name it.
Figuring it was happenning because of a faulty ROM I installed every single GB based rom out there, including the leak version, the official version, Kenneth's beta 4.5, Kenneth's Alien ROM.
I have factory reset and tried installing everything manually (not restoring through CWM or Titanium). No fix.
Any clues?
Any thoughts on this? Thank you.
I've found that the music player only works when no pre-installed or Google apps are on auto end. IDK why, but it has to do with interconnectedness.
The media player is reacting to the media pairing event as if a button was pressed.
I trap this using a Tasker profile triggered by the bluetooth connection to my car kit; the entry task grabs Media Button Events and the exit task releases them. This stops the media player launching.
Monkey see, monkey do.
If thats the problem then try headset interceptor and choose the app you want the button presses to be sent to...worth a short. Free app in the market.
Sent from my MB860 using XDA App

Bluetooth Problems

I have a strange problem using A2DP with non-stock ROMs. Basically, the device will pair and the music player will start playing the track but no sound comes out. This happens with all apps except for the Apollo player that comes with the ROM. I can get audio on another ROM to temporarily play on another app if I use the search function within Apollo but it stops the audio after exactly 5 seconds (although on the app the playback continues). I think it is somehow related to BlueZ because I had this problem on my old phone (G2X) as well. If I use a ROM based on stock everything is fine.

[Q] Cyanogenmod 10.1 Play Music Bluetooth Streaming to Toyota Entune

I just installed CyanogenMod 10.1.2 Stable (via SafeStrap 3.11), everything went perfect. A couple days later, I finally went to re-sync my phone to my PriusV's Entune system to play music via Google Play Music (with playlists stored locally on the phone).
Music plays back OK, however my issue is that no song details (Track title, artist name, disc name, playback position) will display on the Entune screen, and none of the car's control buttons (play/pause/next track/prev track) will do anything. I don't want to have to pull out my phone to change tracks or see what song just came on while i'm driving when this is what the details and controls on the car are supposed to do for me.
Anyone out there have any thoughts/ideas/suggestions/possible fixes?
neoramasay said:
I just installed CyanogenMod 10.1.2 Stable (via SafeStrap 3.11), everything went perfect. A couple days later, I finally went to re-sync my phone to my PriusV's Entune system to play music via Google Play Music (with playlists stored locally on the phone).
Music plays back OK, however my issue is that no song details (Track title, artist name, disc name, playback position) will display on the Entune screen, and none of the car's control buttons (play/pause/next track/prev track) will do anything. I don't want to have to pull out my phone to change tracks or see what song just came on while i'm driving when this is what the details and controls on the car are supposed to do for me.
Anyone out there have any thoughts/ideas/suggestions/possible fixes?
Click to expand...
Click to collapse
I have a Highlander without Entune (Stock Stereo), so it's not a direct comparison but here's what I found. Music details don't display on the stereo. I've tried countless apps/hacks but nothing has worked. They spent all their dev $$ on getting it to work on the iPhone and left Android users in the dust. So I'm not sure music details have ever worked with Android.
The steering wheel controls however work fine for me, so that's strange. In the bluetooth settings on the phone, when connected to the stereo, is 'media' connected? It should be.
I wonder if an updated bluetooth controller for android would fix this issue for everyone?
I suppose I should clarify a bit - when i mentioned this being after installing CyanogenMod 10.1, I was assuming that one would take it things were working under stock, which was the case.
So: Stock - bluetooth playback showing track/artist/disc information, position in the song, and car controls worked (though stock had an older version of Google Play Music, so this could also be a source of conflict)
CyanogenMod: bluetooth only plays music, does not display any of the other information, and controls do not work. (Cyanogen 10.1 comes pre-built with the newer version of play music, so downgrading would be.... difficult and i'd rather try and make it work without doing so)
I guess what I want to try and find out is if it is CyanogenMod or Google Play Music's new version that is next to incompatible with Entune. With Stock, I had near 100% functionality (only shuffle/repeat toggles did not work - but even those don't work right with my wife's iPod, so i'm not worried about those functions).
Since i'm essentially dual-booted through SafeStrap, I may try going back on Stock, updating Play Music, and testing - if updating Play Music causes Stock to loose functionality equally, then i guess i'll have my answer - obviously i'll post back with results.
If functionality is still present on Stock after updating play store, then that traces it back to being something with Cyanogen, and the bluetooth driver it uses.
OK - sorry for the back to back posts, but I got lucky on some digging and found my answer.
CyanogenMod does not have something called AVRCP (Audio Video Remote Control Profile) revision 1.3+ built into it's bluetooth stack. This is because that is not something that is included by default under AOSP 4.2.x. So unless you want to build your own bluetooth stack and put it into Cyanogen, you're not going to get track info/controls.
Google has announced that under AOSP 4.3, they will be building Bluetooth version 4 support into Android, and version 4 supports AVRCP 1.3+ natively, thus Cyanogenmod's next version based off of AOSP 4.3 will then contain AVRCP support.
So, the short of it is, hang in there for the next major release of Cyanogen and all will be resolved!
Most manufacturers build AVRCP support into the bluetooth stack for their devices, hence why stock worked and now CyanogenMod does not.
Huh good to know. I knew that Android 4.3 included an upgrade to BT, but I didn't realize it would fix this issue. I wouldn't even know how to build my own BT stack, but it would be useful in the long run.
+1 on this
I have a Nexus 4 with CM 10.1.2 connected to my Skoda Octavia built-in bluetooth. I play music with Apollo (Cyanogenmod's music player) and I get to hear the songs and can skip to the next/previous songs with steering wheel controls but don't get to see the song title/artist info.
My Nexus One with CM 7 however does play music fine and shows all song details and steering wheel controls work fine.
So based on 1.) the fact that my 3.5 year old Nexus One (with CM 7 - Android 2.3.7) shows song details fine and 2.) the excellence of the CyanogenMod team, I think this can be resolved with some coding rather then waiting for Android 4.3 or CM 10.2 with an updated bluetooth stack.
Unfortunately I can't say if this issue only started appearing after the 2 security updates (10.1.1 and 10.1.2) since CM 10.1.2 was the 1st ROM I flashed on my Nexus 4. Although in this post goo.gl/KQ6J7H some guy who encounters the same issue, also experienced the issue on CM 10.1 (so before the security updates 10.1.1 & 10.1.2).
Apart from the song details not showing, I also noticed that sometimes I can't enable bluetooth at all and need to reboot my phone for it to work again. When tabbing the bluetooth icon in powercontrol widget or even directly in Settings it simply won't enable bluetooth. Also experienced by the guy from post goo.gl/KQ6J7H
I'm hoping to see this annoying bluetooth issue resolved asap.

[Q] Audio Stops Working Randomly and When Mic Is Activated

Hi there! I have been having some issues with my I9300 running CM 10.2 SNAPSHOT (Via CM installer). The audio stops randomly while listening to music and when surfing the internet. I tried PlayerPro and Apollo, different browsers, disabled DSP without success. This happened when I installed CM and after making a factory wipe.
I discovered that this is also triggered when the mic is activated, for example when recording a voice message on whatsapp or searching using the voice command on google search. The audio just dies. The issue is not there when the headphones are not plugged in.
I read on another posts that this is related to the AOSP ROM but I was wondering if there was a fix. This issue is very annoying.
Thanks!

Firmware bugs (Gmail, Music Player)

Just got my Mate 10 for a week and already experiencing these problems and wondering if anyone else is experiencing it and have solutions?
1) Using 3rd party music player because the stock one doesn't allow me to reorder my playlist. Turning on the equalizer while using the earpiece just produces a sharp screeching sound. I've tried multiple players and every one is the same when I use the equalizer with the earpiece. Stock player is fine.
2) Gmail pull-down notification Delete button doesn't work all the time.
3) Some website buttons in Chrome does not work. 'Read More' button in Yahoo articles unresponsive.
First time using Huawei products and already finding so many annoying problems just after a week!

Categories

Resources