jroal / a2dpvolume

Automatically exported from code.google.com/p/a2dpvolume
http://jimroal.com/slist.htm
95 stars 33 forks source link

Stop Service button force close #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The stop service button inside the program force closes the app. The reason is 
simple: onDestroy unregisters the headsetReceiver even if it was not installed 
(because headset support disabled).

The same happens when you shutdown your phone or update the app.

Original issue reported on code.google.com by uwe.h.schindler on 13 Aug 2011 at 7:50

GoogleCodeExporter commented 9 years ago
App Version 2.1.0

Original comment by uwe.h.schindler on 13 Aug 2011 at 7:50

GoogleCodeExporter commented 9 years ago
I think I fixed this in 2.2.0.  I did some searching and found many other apps 
developers mentioning they have this issue too.  I surrounded with a try/catch 
for now.  

I have not found a good way to know if the receivers are registered or not. Any 
thoughts?  

Original comment by JimR...@gmail.com on 14 Aug 2011 at 2:20

GoogleCodeExporter commented 9 years ago

Original comment by JimR...@gmail.com on 14 Aug 2011 at 2:21

GoogleCodeExporter commented 9 years ago
I just added 1 more simple fix.  I check to see if headsetPlug is true before 
unregistering. This will be in 2.2.1

Original comment by JimR...@gmail.com on 14 Aug 2011 at 2:28

GoogleCodeExporter commented 9 years ago
Fixed in 2.2.2.

Original comment by JimR...@gmail.com on 14 Aug 2011 at 3:15