I am getting
android.os.DeadObjectException
when try to call the method BluetoothGatt.setCharacteristicNotification
.
My device is a Nexsus 4 with Android Lollipop 5.1.
I tried to handle the exception using this link:
How to solve the BluetoothGatt : android.os.DeadObjectException error happened in Android?
but I am not able to print the stacktrace.