When I first pair my bluetooth device to my tablet via my app, I get a "Accept Pairing?" popup.
No PIN is required as the device I am connecting to is in JustWorks PIN mode, so it's just a YES or NO answer.
My app is a fullscreen app, and on some devices the "Acccept Pairing" notification doesn't pop up on top of my app, so users are going to not know it's there and this spells trouble.
I found the BtAutoPair library, tried it but it uses a PIN code and pairing with my device always fails no matter what pin I use, as it doesn't need a PIN.
so 2 questions:
1: Is there any way I can force the pairing notification to go on top of my app always?
2: I found some code here: http://stackoverflow.com/a/30362554
One line is device.setPairingConfirmation(true), which looks promising for me to use. So my question here is, is there any way I can run this code in B4A, or would I have to make a library to do that? I've never made a library before and know little about java so I am hoping there might be some inline method I can use.
Thanks
No PIN is required as the device I am connecting to is in JustWorks PIN mode, so it's just a YES or NO answer.
My app is a fullscreen app, and on some devices the "Acccept Pairing" notification doesn't pop up on top of my app, so users are going to not know it's there and this spells trouble.
I found the BtAutoPair library, tried it but it uses a PIN code and pairing with my device always fails no matter what pin I use, as it doesn't need a PIN.
so 2 questions:
1: Is there any way I can force the pairing notification to go on top of my app always?
2: I found some code here: http://stackoverflow.com/a/30362554
One line is device.setPairingConfirmation(true), which looks promising for me to use. So my question here is, is there any way I can run this code in B4A, or would I have to make a library to do that? I've never made a library before and know little about java so I am hoping there might be some inline method I can use.
Thanks