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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -