adding filter to bluetooth discovery

Posted by user1643325 on Stack Overflow See other posts from Stack Overflow or by user1643325
Published on 2012-09-03T09:24:49Z Indexed on 2012/09/03 9:38 UTC
Read the original article Hit count: 184

Filed under:
|
|

I want to just discover peripheral devices when i start my Bluetooth Device discovery, my app must not discover/show other devices. is this any how possible?

this is how i am searching for devices

  IntentFilter filter = new IntentFilter("android.bluetooth.devicepicker.action.DEVICE_SELECTED");
  registerReceiver(mBtPickReceiver,filter);

  startActivity(new Intent("android.bluetooth.devicepicker.action.LAUNCH")
 .putExtra("android.bluetooth.devicepicker.action.EXTRA_NEED_AUTH",false));

© Stack Overflow or respective owner

Related posts about java

Related posts about android