I want to create bluetooth android app such that when it gets disconnected from the connected device it beeps an audio. I used the following code
IntentFilter filter = new IntentFilter();
filter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED);
filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED);
filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED);
this.registerReceiver(mReceiver, filter);
But in these cases if any one of the devices(two) is taken away a 1cm it beeps i want it to beep atleast when any of the device crosses the range of bluetooth?????
Thanks in advance