Android Question Bluetooth pairing confirmation dialog is hidden

Arf

Well-Known Member
Licensed User
Longtime User
Hi,
I was using BT autopair to work around this problem before, but autopair doesn't work in android7 so I need to address it.

In one of my activities, when connecting to a new bluetooth device, Android's system 'bluetooth pairing confirmation' dialog is presented, but somehow hidden underneath my app. I hear the OS sound indicating confirmation is needed but no dialog box appears, as it does in my other activity.

I (desperately) need to ensure this box is always visible, as if the user is unaware of it and can't click it, my product cannot connect to my app and the very first customer impression of my product is that it doesn't work.

Any ideas as to what I can try?
 

techknight

Well-Known Member
Licensed User
Longtime User
I have been trying to figure that one out for awhile and never did.

So I ended up adding a piece of code to take me to bluetooth paring settings, scan and pair it from there, go back to the app and then list the paired devices, and only accept the MAC address that is of my product.

Kludgy, Yes. Works? yep.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…