Searching Bluetooth Nearby in 6.0.1
<p>I'am working with an App that search nearby bluetooth. I use the following codes, it works find in 5.0 it returns bluetooth devices nearby but when I Test in 6.0.1 <code>BluetoothDevice.ACTION_FOUND</code> is not called, Only <code>BluetoothAdapter.ACTION_DISCOVERY_STARTED</code> and <code>BluetoothAdapter.ACTION_DISCOVERY_FINISHED</code> are called. </p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
    bluetoothAdapter = bluetoothManager.getAdapter();
    Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
    discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,0);
    startActivity(discoverableIntent);
}
private final BroadcastReceiver bReciever = new BroadcastReceiver() {
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        System.out.println(action);
        if (BluetoothDevice.ACTION_FOUND.equals(action)) {
            BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
            System.out.println(device);
        }
    }
};
public void onSearch(View v){
    if (bluetoothAdapter.isDiscovering()) {
        bluetoothAdapter.cancelDiscovery();
    }
    System.out.println(bluetoothAdapter.startDiscovery());
    IntentFilter intentFilter = new IntentFilter();
    intentFilter.addAction(BluetoothDevice.ACTION_FOUND);
    intentFilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_STARTED);
    intentFilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
    registerReceiver(bReciever, intentFilter);

}
</code></pre>

<p>My Question Is why Did the BluetoothDevice.ACTION_FOUND was not called in 6.0.1? Thank you.</p>