I would like to get the number of bluetooth devices located around an android device and then store that number in the SQLite database. Is it possible to easily get that number?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get a list of discoverable devices and simply use the size() method to determine how many there are. The process of detecting discoverable devices is described here:
Bluetooth | Android Developers