This pull request adds a method setPairingType to ConnectableDevice and to DeviceService and it can be used for example in this way in the Sampler method setupPicker:
mTV = (ConnectableDevice)arg0.getItemAtPosition(arg2);
mTV.addListener(deviceListener);
mTV.setPairingType(PairingType.PIN_CODE);
mTV.connect();
This pull request adds a method setPairingType to ConnectableDevice and to DeviceService and it can be used for example in this way in the Sampler method setupPicker: