How to periodically scan for bluetooth devices on android
I guess this was so simple but didnt strike me before. Here is the answer, private BluetoothAdapter mBtAdapter; mBtAdapter.startDiscovery(); private final BroadcastReceiver mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); // When discovery finds a device if (BluetoothDevice.ACTION_FOUND.equals(action)) { //do something } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) { … Read more