jroal / a2dpvolume

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

Does not detect which device is currently connected #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I can't figure out how to determine which device is currently connected.  I 
tried the obvious getRemoteDevice(mac address) but it just returns the info on 
the bonded device every time, connected or not.  I ave searched the web but 
can't find anyone else who has been able to determine the connected device 
either, except when using serial port type communications (which I am not 
here). 

Original issue reported on code.google.com by JimR...@gmail.com on 10 Oct 2010 at 3:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I finally figure out how to determine what device connected.  It is returned in 
the intent from ACL_CONNECTED.  Still working through the issues with getting 
the service to get the btDevice returned from the database to apply the device 
specific settings on connect.

Original comment by JimR...@gmail.com on 15 Oct 2010 at 12:54

GoogleCodeExporter commented 9 years ago
Finally fixed this.  Both the service and the main recognize the device when it 
connects.  Both can query the database and get the details.  The service 
applies the configurations on connect.

Original comment by JimR...@gmail.com on 15 Oct 2010 at 1:07