I am stuck at bluetooth pairing issue. When I call bluetoothDevice.createBond() a pairing notification is generate in background. But sometimes shows pairing dialog(In some device), sometimes nothing will be happen. I need to show pairing dialog always.
Note :
- The application is in foreground when generating pairing notification.
- The createBond() method is called inside ConnectionThread Which is start from a connection Service.