title: Strange behaviour with bluetooth discovery
body: <p>I am implementing an app with bluetooth.Here I am facing a strange problem.I want to show all the devices available when I scan my bluetooth.But my app is only discovering the bluetooth`s of pc.The bluetooth of mobile phones or tabs are not showing.To implement bluetooth functionality I have used <a href="http://examples.javacodegeeks.com/android/core/bluetooth/bluetoothadapter/android-bluetooth-example/" rel="nofollow">this</a> tutorial.Here is the code to find bluetooth devices:</p>
  
  <pre><code>  final BroadcastReceiver bReceiver = new BroadcastReceiver() {
          public void onReceive(Context context, Intent intent) {
              String action = intent.getAction();
              // When discovery finds a device
              if (BluetoothDevice.ACTION_FOUND.equals(action)) {
                   // Get the BluetoothDevice object from the Intent
                   BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
                   // add the name and the MAC address of the object to the arrayAdapter
                   BTArrayAdapter.add(device.getName() + "\n" + device.getAddress());
                   BTArrayAdapter.notifyDataSetChanged();
              }
          }
      };
  
     public void find(View view) {
         if (myBluetoothAdapter.isDiscovering()) {
             // the button is pressed when it discovers, so cancel the discovery
             myBluetoothAdapter.cancelDiscovery();
         }
         else {
              BTArrayAdapter.clear();
              myBluetoothAdapter.startDiscovery();
  
              registerReceiver(bReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));    
          }    
     }
  </code></pre>
  
  <p>I have searched google but did not find any solution.Any help will be great.</p>