Code example for BluetoothAdapter: Communicating over Bluetooth

Methods: cancelDiscovery, isDiscovering, startDiscovery

0
	public void onClick_Search(View view)
	{ 
		setProgressBarIndeterminateVisibility(true);
		setTitle("����ɨ��...");
 
		if (bluetoothAdapter.isDiscovering())
		{ 
			bluetoothAdapter.cancelDiscovery();
		} 
		bluetoothAdapter.startDiscovery();
	} 
 
	private final BroadcastReceiver receiver = new BroadcastReceiver()
	{ 
		@Override 
		public void onReceive(Context context, Intent intent) 
		{ 
			String action = intent.getAction(); 
 
			if (BluetoothDevice.ACTION_FOUND.equals(action)) 
			{