Code example for BluetoothAdapter

Methods: getName

0
	BluetoothAdapter mBtAdapter;
	BTListenerThread mBtListener;
	BTMessenger mMessenger;
	 
	private void initListener() { 
		Log.d(TAG, "BT adapter name:" + mBtAdapter.getName() + "\n");
		BTMessenger.setContext(this);
		mBtListener = new BTListenerThread(mBtAdapter, mBtUUID);
		mBtListener.start();
	} 
	 
	private void deInitListener() { 
		mBtListener.stopListening();
		BTMessenger.closeClients(); 
	} 
 
	private final BroadcastReceiver mIntentReceiver = new BroadcastReceiver() {
		  @Override 
		  public void onReceive(Context context, Intent intent) { 
		    // Handle reciever 
		    String mAction = intent.getAction();