Can I set the PIN for Bluetooth from my application in Android -
I wanted to make an application related to Bluetooth in Android. Is there any way by which I can set the PIN from my application in Android, which is in addition to using the system dialog box to enter the PIN. I checked for the Android-given API for Bluetooth, but I could not locate any API to set the key for Bluetooth provided in the WiFi manager Wificonfig.presharedkey = xyz.
In advance thanks
This is not possible Public API Why is it a bad idea , There are a few reasons for this: 1. Entering PIN is done with old Bluetooth devices (one or both devices with Bluetooth version 2.0 or less) 2. Using different mechanisms for pairing Bluetooth 2.1 and later The user will need to enter a PIN, this user will need to enter a PIN Show Kya / message and ask for the user's confirmation.
So if your application is to be worked in all situations then it will be better to use the system provided by the system. (Which indicates the above for PIN / confirmation etc.)
Comments
Post a Comment