SetPin return false on android but no exception -


when try use setpin on bluetooth device returns false. according http://developer.android.com/reference/android/bluetooth/bluetoothdevice.html if returns false should display error. ideas? code down here.

   pin = (byte[]) bluetoothdevice.class.getmethod("convertpintobytes", string.class).invoke(bluetoothdevice.class, "4711");             boolean check = currentdevice.setpin(pin);             currentdevice.setpairingconfirmation(false);             currentdevice.createbond();             currentdevice.getclass().getmethod("cancelpairinguserinput").invoke(currentdevice);             int test = currentdevice.getbondstate(); 

according http://developer.android.com/reference/android/bluetooth/bluetoothdevice.html#setpin(byte[]):

public boolean setpin(byte<> pin)  

returns: true pin has been set false error

there no mention of exception , if not getting 1 code behaving correctly.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -