Omeya / a2dpvolume

Automatically exported from code.google.com/p/a2dpvolume
0 stars 0 forks source link

Close app on disconnect? #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since you can open an app on connect, it is possible to close one on 
disconnect? For example, I'd like to start Pandora when connecting to an A2DP 
headset (it does this fine now), and shut it down when disconnecting (Pandora 
pauses itself, but I'd like to actually close the app).

Original issue reported on code.google.com by msauve...@gmail.com on 24 Jul 2011 at 2:05

GoogleCodeExporter commented 9 years ago
Unfortunately Android removed the ability to do this in 2.2 Froyo.  My app does 
try to close it but Froyo does not allow another app to force it to close.  If 
the app is not in the foreground it may close but Pandora stays active in the 
notify area so A2DP Volume can't kill it.  You can see documentation of this 
issue with App Alarm Pro as well.

Original comment by JimR...@gmail.com on 24 Jul 2011 at 3:00

GoogleCodeExporter commented 9 years ago
I am reopening this issue to investigate possible solutions 

Original comment by JimR...@gmail.com on 3 Feb 2012 at 12:39

GoogleCodeExporter commented 9 years ago

Original comment by JimR...@gmail.com on 10 Feb 2012 at 1:25

GoogleCodeExporter commented 9 years ago
Version 2.4.0 is in the downloads area ready for testing.  Please download and 
test and let me know how it works for you.

Original comment by JimR...@gmail.com on 10 Feb 2012 at 1:43

GoogleCodeExporter commented 9 years ago

Original comment by JimR...@gmail.com on 10 Feb 2012 at 1:44

GoogleCodeExporter commented 9 years ago
I got the app killer working much better in 2.5.0 and up.  However, there is 
still one case I can't seem to fix.  I tested with car dock and home dock.  
This changes the UI and for some reason that prevents the app killer from 
working.  It seems to work in all the other cases I tested.  I tried Droid 2, 
Droid 3, and the emulator running Froyo.  I also tested with Pandora, Amazon 
Mp3, Winamp, and the default music player.  It works fine except when removing 
from a dock.  Not sure how to fix that one.

Original comment by JimR...@gmail.com on 13 Feb 2012 at 1:18

GoogleCodeExporter commented 9 years ago
Hi.

Just did some testing, and I discovered WinAMP doesn't remember it's play 
position when it's terminated.

For long mixes, this means every time it starts up, it starts up at the 
beginning of the mix.

I think when WinAMP is forcibly shut down, it is not able to store it's current 
play position within a track.

Original comment by tryoung...@gmail.com on 20 Feb 2012 at 9:27

GoogleCodeExporter commented 9 years ago
Yes, that is true of most players actually.  If they are force closed, you will 
have to start your playlist from the beginning.  A2DP Volume does send the 
music pause command on disconnect now just in case the player did not respond 
to Bluetooth disconnect on its own.  When you use it to close the app (which 
was the request here) it will have to start all over when to start the app 
again.

I don't use the launch/kill app feature myself.  I just implementing this at 
the request of others.  I prefer to just use the play/pause button on my 
Bluetooth car kit.  I also voice command playlists using Bluetooth handsfree 
and that works much better for me.  I can see the start/stop app feature being 
handy for a radio streaming app but for a music player it is generally better 
to just manually play/pause using the car kit.  I still leave the phone in my 
pocket the whole time.  Voice commanding a playlist is not standard to Android. 
 In my case Motoblur adds that and I like it.  Motoblur also lets me launch 
other apps by voice command.

I am planning to close this issue now that 2.5.1 is out.  I only left it open 
to investigate Pandora a bit more but the more I look at it, the more I think 
Pandora is just a mess and there is not much more I can do for it.

Original comment by JimR...@gmail.com on 20 Feb 2012 at 12:14

GoogleCodeExporter commented 9 years ago

Original comment by JimR...@gmail.com on 25 Apr 2012 at 3:48