honoru88 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Request support for programmatic bluetooth pairing and unpairing #418

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
-- Objective for requested feature
To be able to pair peripheral devices with Glass via bluetooth without needing 
a paired keyboard to enter pin. Ideally an app should be able to take a 
predefined pin as input and use it to pair devices.

-- Justification  
Commodity devices such as heart rate monitors require a simple pin or passkey 
while pairing them with Glass. Currently bluetooth settings don't support 
pairing or unpairing with those devices and neither does GDK. 

Original issue reported on code.google.com by amanparn...@gmail.com on 22 Feb 2014 at 12:56

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the feature request! In the meantime, you can try some of the 
workaround that are available on Stack Overflow as they also do work on Glass:
  http://stackoverflow.com/questions/14228289/android-device-bluetooth-pairing

Best,
Alain

Original comment by ala...@google.com on 24 Feb 2014 at 6:04

GoogleCodeExporter commented 9 years ago
This has been fixed with XE16 and the move to KitKat (API Level 19).

Original comment by ala...@google.com on 16 Apr 2014 at 11:28

GoogleCodeExporter commented 9 years ago
Thanks for the update!

Could you point me to an example of how it's done? The update has broken my 
workaround.

Original comment by amanparn...@gmail.com on 24 Apr 2014 at 4:35

GoogleCodeExporter commented 9 years ago
You should be able to use the BluetoothDevice#createBond() method directly 
instead of having to use reflection to access this method:
  http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createBond()

Original comment by ala...@google.com on 24 Apr 2014 at 4:57