code: @SuppressWarnings("UnusedReturnValue")
  	private boolean initialize() {
  		// For API level 18 and above, get a reference to BluetoothAdapter through
  		// BluetoothManager.
  		final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
  		if (bluetoothManager == null) {
  			loge("Unable to initialize BluetoothManager.");
  			return false;
  		}
  
  		mBluetoothAdapter = bluetoothManager.getAdapter();
  		if (mBluetoothAdapter == null) {
  			loge("Unable to obtain a BluetoothAdapter.");
  			return false;
  		}
  
  		return true;
  	}
docs: Initializes bluetooth adapter.
  
  @return <code>True</code> if initialization was successful.