Android Question Insert passkey programmatically with BroadcastReceiver

jemajuca

Member
Licensed User
Hi all.
When pairing with a Bluetooth device, and a window or notification appears, I need to catch it, write programmatically the passkey and accept it.
BtAutoPair makes use of BroadcastReceiver in one Activity.
How can it be made in a service?
Has anyone been able to do that?
 
Top