Code example for BluetoothAdapter

Methods: cancelDiscovery

0
	protected void onDestroy() { 
		super.onDestroy(); 
 
		// Make sure we're not doing discovery anymore 
		if (mBtAdapter != null) {
			mBtAdapter.cancelDiscovery();
		} 
 
		// Unregister broadcast listeners 
		this.unregisterReceiver(mReceiver);
	} 
 
	/** 
	 * Start device discover with the BluetoothAdapter 
	 */ 
	private void doDiscovery() { 
		if (D)
			Log.d(TAG, "doDiscovery()");
 
		// Indicate scanning in the title 
		setProgressBarIndeterminateVisibility(true);