Code example for BluetoothAdapter

Methods: getAddress

0
                    0x63, 0x72 
            }, new byte[0], mCollisionResolution);
 
            /* Handover record */ 
            StringBuilder btRequest = new StringBuilder(BT_SOCKET_SCHEMA)
                .append(mBluetoothAdapter.getAddress())
                .append("/")
                .append(mServiceUuid);
            if (mChannel != -1) {
                btRequest.append("?channel=" + mChannel);
            } 
            records[2] = new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI, NdefRecord.RTD_URI,
                    new byte[0], btRequest.toString().getBytes());
 
            records[3] = NdefFactory.createApplicationRecord(context.getPackageName());
            NdefMessage ndef = new NdefMessage(records);
            return ndef;
        } 
 
        @Override 
        public void doConnectionHandover(NdefMessage handoverRequest, int handover, int record)