Capture bluetooth upon paired state
<p>I have a <code>listView</code>which will display a list of paired bluetooth devices. I wanna capture the state inorder to update the <code>paired listView</code> whenever a new request to pair with my device gets accepted.</p>

<p>So far I have tried listening to <code>BluetoothDevice.ACTION_ACL_CONNECTED</code> but to no avail.</p>

<pre><code> protected void onCreate(Bundle savedInstanceState) {
        ...
        IntentFilter filter1 = new IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED);
        this.registerReceiver(mReceiver, filter1);

    }


//The BroadcastReceiver that listens for bluetooth broadcasts
    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            String action = intent.getAction();
            BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);

            if (BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)) {
                getPairedDevices(); // get paired devices and update listView

            }
}
</code></pre>