prevent app from automatically closing by task manager in kitkat - T-Mobile Samsung Galaxy S 4

I listen to music via Bluetooth streaming in my car using the factory MUSIC app. I'd like to be able to get into the car, turn on the BT streaming mode on my car audio and automatically begin playing music. However, the factory task manager automatically closes the MUSIC app after I get out of the car and I have to load it manually each time.
Being that everyone recommends that with KitKat one shouldn't install a task killer/manager other than what's from the factory....how can this be done?
Is there any way to put the music on an exclusion list?
Thanks in advance.

If understand correctly, you want the music to continue playing on your phone's speaker when disconnected from your car audio?

serio22 said:
If understand correctly, you want the music to continue playing on your phone's speaker when disconnected from your car audio?
Click to expand...
Click to collapse
negative, the music will pause automatically when the music app detects a break in bluetooth connection when I turn off the car. What I need is for the MUSIC app itself to continue running in the background (it's not a big resource or battery hog) for when I get into my car for a seamless transition back to playing music.... because once the phone shuts down the app I need to load it again...a PITA.
Thanks.

KEVIN88GT said:
negative, the music will pause automatically when the music app detects a break in bluetooth connection when I turn off the car. What I need is for the MUSIC app itself to continue running in the background (it's not a big resource or battery hog) for when I get into my car for a seamless transition back to playing music.... because once the phone shuts down the app I need to load it again...a PITA.
Thanks.
Click to expand...
Click to collapse
It will continue running in the background, this isn't really a task killer problem but more of an app thing.. For example, I use play music and it resumes playing once I connect to Bluetooth again even if I kill it myself.. I would check the settings if you haven't already and see if there's is a setting for it, I've seen other apps with settings like that, but don't know about the stock music app

it is not in fact running in the background. No such option in setting either. Anyone know of any app that could make it be ignored by the default task manager?

You can do it with xposed if interested

The head unit in your car may have something to do with it.
Factory? Aftermarket?
I have a Kenwood w/7in touch screen and if my BT on phone is enabled as soon as the Kenwood starts up whatever app was running before will start playing automatically, Samsung music app, Amazon music app..
If Milk music or Pandora I have to launch app.
Pp.

there are a few apps on the market with that name.... also do I need root access? As far as the head unit it's a factory stereo Infiniti q50

KEVIN88GT said:
there are a few apps on the market with that name....
Click to expand...
Click to collapse
It's not on the market and you need root access.. If you are interested do a quick search for xposed on Google and go to the one here on XDA, read about it on the thread and how to use it, install it, open it, and search for a module called app settings, in there you have an option to always keep in memory for whatever app you want so just select stock player. Keeping the music player running may not even be the solution, but it is a possibility.. As the previous poster stated, there are apps that just lack autoplay feature.. It is also possible that some other music app or app that uses Bluetooth may conflict with it, preventing it from auto playing

Related

[Q] Stopping bluetooth music auto play

So there I am, getting in my car in the morning, ready to drive to work, I turn it on, get ready to pull out
OH MY GOODNESS SOME TECHNO I HAD ON THE NIGHT BEFORE IS AUTO BLASTING OVER BLUETOOTH
Yeah, that's the "feature" of having bluetooth media autoplay. Besides turning off all bluetooth media features is there a way to prevent Winamp or whatever other stock media player is on the phone from blasting away as soon as it connects?
(Rooted, Cyanogen 7)
Did you try clearing defaults for the applications in the applications menu?
Sent from my PC36100 using XDA App
No defaults set for Winamp or any other music application that I can find.
It's just when the Bluetooth connects it starts to play. Mine does it with Cyanogen, wife's phone does it with the stock Sprint Sense rom.
So I guess this is just one of those feature/bugs of Android that has no fix?
My dual BT headset turns on the stock HTC player whilst playing threw Winamp. It does this when I press play after a paused interruption. I'm using misfits speedy Rom and it happens to me. I can't set a default player either. Well i tried.
Sent from my PC36100 using XDA App
Has anyone solved this problem. It is rather annoying. I don't want to have to remove all the mp3's from my phone just to stop it from doing this.
I like to use Pandora for my radio, but everytime I turn on my car I have to take the time to tell the music player to knock it off...
pgriff46 said:
Has anyone solved this problem. It is rather annoying. I don't want to have to remove all the mp3's from my phone just to stop it from doing this.
I like to use Pandora for my radio, but everytime I turn on my car I have to take the time to tell the music player to knock it off...
Click to expand...
Click to collapse
Install this: https://market.android.com/details?id=com.harleensahni.android.mbr

[Q] AVRCP priority

Not sure the best place to ask this...when you've got your epic connected to a AVRCP-capable device (like a bluetooth headset with a play/pause button), the play button is capable of having the epic launch an app in order to play something is nothing is open.
My question is, what, in the Epic's software, determines the priority of which app gets launched, out of all the various playback apps you might have?
Some background: I mostly use my BT headphones for podcast listening on the go. I set up Tasker to launch Google Listen on phone startup (and then immediately go back to desktop) so that the app is in recent apps list. Then, if I put the play button on my headphones, Listen will launch and my podcast will start playing. If I want to switch over to pandora, I manually close Listen (using the back button) and launch pandora. Now my headphones control the play/pause on Pandora without trying to launch listen instead, which is what they might do if I had both apps open.
The problem comes in that I installed the Google Music beta app (this is different from the Music app that comes with the Epic, for clarity) so that I could access my music from the cloud. This app seems to take priority over all others. If I launch it, even once, it will always bypass Listen from then on, even if I manually close, it, kill the service, and dump the phone's ram. The only way I can switch the phone back to Listen app mode is to manually freeze Music with Titanium backup.
This is really annoying.
So, yeah, my question is, what on the phone makes it determine that launching the Music app is preferable to resuming the Listen app?
I find this extremely annoying too (because I have to pull over to fix it) so I only have miui player installed, not quite the answer but this sounds interesting would like t know as well
Sent from my SPH-D700 using XDA Premium App

[Q] Preventing Music Beta from automatically starting

Music beta, the Google Android app that supports Google Music Beta, autostarts whenever it detects a BT audio connection that isn't being used. So, for instance, if I shut off Poweramp or another streaming player before I disconnect BT, it will instantly pop up and start playing, sometimes even before the other app has shut down.
There is no settings menu to prevent it from "reacting" to headset commands in the app, and I'd like to be able to control whether it autostarts or not from another application. I downloaded Autostarts, but it doesn't even recognize the event as a trigger for the application.
Any other suggestions? I'd uninstall the damn program, but it's the only app out there now that will play music stored in Google Music beta.
interesting. Have never had it auto-play on bt connect. Are you using the widget as-well?
vassskk said:
interesting. Have never had it auto-play on bt connect. Are you using the widget as-well?
Click to expand...
Click to collapse
Nope. I only run the app when I want to play music on Google Music Beta. Otherwise I run Poweramp. What's annoying is that I'll have Pocketcasts up and running and even playing, and suddenly Music will decide it wants to play, too. I had this problem with Winamp and I had it with the stock Music app.
I froze the stock Music app in Titanium, and I could always remove this one, but then there aren't any other apps that play music stored in Google Music.
haven't tried it (trashed google music) but something called 'phantom' (appbrain) claims to play google music in the pro version. I THOUGHT I saw another one that did it but can't find it now. Look around; keep eye out.

[Q] Google music fighting poweramp

Hi,
First things first. I'm running JB touchwiz and rooted.
here's my system info if you need it. http://imgur.com/YQ2rILN.png
So, here's my problem. I am using two different players (technically 3 if you count pandora which I don't use very much) - PowerAmp (paid) and Google Play Music. The reason I have 2 players is because I have way more music than I can store on my phone which is where google play is nice, but I also like listening to FLAC files -google play only plays up to 320 - I also like having music on the device in case I lose 4g signal, and I like poweramp's interface much better. Because I'm using two players, they often compete for which one plays. I use my phone to stream music to my car stereo and alarm clock via bluetooth, and when I connect it to either device OR to my headphones via wired connection, poweramp overrides google play and starts playing whatever I listened to last, even if I killed the program previously or was listening to google music last. Basically, when I connect anything, it defaults to poweramp and not Google play regardless of which I was listening to. I want this the other way around, since I use google play much more often since I have so much more music on it. It's endlessly frustrating.
Now for the question - Is there a way to reverse this, so that when I connect my headphones or stereo it will default to playing from google music and not poweramp? Or, even better, is there a way to integrate google music's streaming ability in to poweramp somehow?
Oh, one last thing. I am wondering if there is a way to make PowerAmp and Google Music show on the touchwiz lock screen, with controls? Currently neither do, even though I have the option enabled in PowerAmp.
Thanks! :laugh:
I haven't used TouchWiz in a long time, but I know with AOSP, there is an option regarding what the phone does when a headset is connected. It's at System settings > Sound > Launch music app for AOSP users.
Seems like you could fix it there. Before this option became available, I was using Tasker to accomplish the same thing.
Aerowinder said:
I haven't used TouchWiz in a long time, but I know with AOSP, there is an option regarding what the phone does when a headset is connected. It's at System settings > Sound > Launch music app for AOSP users.
Seems like you could fix it there. Before this option became available, I was using Tasker to accomplish the same thing.
Click to expand...
Click to collapse
There doesn't seem to be any such option in that area. I did just think of something, Is there a way to replace the lock screen that doesn't suck? i like stock aosp lock screen better than touchwiz, I just like touchwiz for the guestures and shortcuts and such.
Use tasker
In power amp there is a setting to turn off the auto play when connected.
Sent from my SGH-T999 using XDA Premium HD app
xneolithicspx said:
In power amp there is a setting to turn off the auto play when connected.
Sent from my SGH-T999 using XDA Premium HD app
Click to expand...
Click to collapse
I can't help with your priority question, but I can tell you that with TW, you lose lockscreen music control ability. I know it's dumb, but it is what it is.
scottx . said:
Use tasker
Click to expand...
Click to collapse
Hey that sounds like a very good idea. I just need to learn to use Tasker. Please feel free to elaborate.
I'm having this same problem. I have a Verizon S3, and have a tasker profile set up so that when I connect my phone to a power source it will automatically turn on bluetooth, connect to my car, launch google play, and start playing the last played song.
The problem is it launches Play Music, but starts playing Poweramp. Play music is what's on my screen, but when I swipe the notifications down PowerAmp is playing the music. I've checked everything and it should be set up correctly, but this still happens.
Any Ideas?
Halorl said:
I'm having this same problem. I have a Verizon S3, and have a tasker profile set up so that when I connect my phone to a power source it will automatically turn on bluetooth, connect to my car, launch google play, and start playing the last played song.
The problem is it launches Play Music, but starts playing Poweramp. Play music is what's on my screen, but when I swipe the notifications down PowerAmp is playing the music. I've checked everything and it should be set up correctly, but this still happens.
Any Ideas?
Click to expand...
Click to collapse
Have you checked the headset settings in poweramp to make sure no auto resumes are selected?
Sent from my SGH-T999 using xda premium
serio22 said:
Have you checked the headset settings in poweramp to make sure no auto resumes are selected?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Yeah, Checked and removed the selections for that. And nothing in the Tasker profile is connected to Poweramp, yet it continually plays music from it...
Halorl said:
Yeah, Checked and removed the selections for that. And nothing in the Tasker profile is connected to Poweramp, yet it continually plays music from it...
Click to expand...
Click to collapse
What about respond to headset controls? Poweramp resumes playing on my car when I connect it to Bluetooth if I have that option enabled too
Sent from my SGH-T999 using xda premium
serio22 said:
What about respond to headset controls? Poweramp resumes playing on my car when I connect it to Bluetooth if I have that option enabled too
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
That was it. It works flawlessly now. Thanks for the help!
Halorl said:
That was it. It works flawlessly now. Thanks for the help!
Click to expand...
Click to collapse
No problem bud
Sent from my SGH-T999 using xda premium

Google Music on Bluetooth in car

Whenever I get in my car and my bluetooth connects, google play music just starts playing whatever was last on on Google Music App. I'm a spotify user and would like to change the default from Google to Spotify. I can't seem to find a way to stop Google music from playing by default. It's very annoying. Works great if you use Google music, but otherwise, annoying.
Anyone having this issue? Anyone have a fix?
AFAIK there isn't a way to prevent media autoplay when connecting to (certain?) car stereos.
Interestingly enough, I don't think that the behavior is actually specific to GPM. I usually listen to podcasts in the car rather than music, and as long as the phone hasn't rebooted or GPM hasn't been used since Pocket Casts was playing, my podcast resumes when I get back in the car usually even if the notification has been closed. It may be the the Spotify app is missing some hook that allows it to take advantage of this feature, but I don't believe we have any way of affecting it directly.
BRO. This **** happened to me for like a week straight and I was getting pretty angry. I made the mistake of asking Google Assistant to play a song for me ONCE and every time I connected to a bluetooth device (usually my car) it started playing the song from where it left off. I don't know what I did to make it stop to be honest, so I'm not much of a help but I can confirm this is a very annoying issue.
I did NOT, however, uninstall Google Music, Disable it, or touch the app in any capacity. There's no option to prevent it from autoplaying, either. I might've let the song play out, but I'm afraid to open the app again to take a look.

Categories

Resources