Search code examples
javaandroidbluetoothscanning

Bluetooth scanning with app


I am making an app and was wondering does my app need to scan for Bluetooth devices? Because the phone itself already scans for devices.

Do I need to setup a scanner in my app to be able to use Bluetooth efficiently? Or can i utilize the "scanner" from my phone?


Solution

  • The short answer is no, you do not need to write your own. Android has it's own discovery functionality built into the BluetoothAdapter class that you can utilize.

    Check out this tutorial: http://code.tutsplus.com/tutorials/create-a-bluetooth-scanner-with-androids-bluetooth-api--cms-24084