Code examples for BluetoothDevice

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
28:	mAddress = device.getAddress(); 
29:	if (device.getAlias() != null) { 
30:	setTitle(device.getAlias()); 
-
32:	setTitle(device.getName()); 
Full Snippet Info
8
CodeRank
80:	if (device.getBondState() != BluetoothDevice.BOND_BONDED) { 
81:	BluetoothListDevicesActivity.this.mNewDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress()); 
Full Snippet Info
7
CodeRank
263:	tmp = mmDevice.createRfcommSocketToServiceRecord(BT_UUID); 
-
277:	+ mmDevice.getName() + " at address " + mmDevice.getAddress()); 
Full Snippet Info
7
CodeRank
395:	tmp = device.createRfcommSocketToServiceRecord(MY_UUID_SECURE); 
Full Snippet Info
6
CodeRank
350:	tmp = device.createRfcommSocketToServiceRecord(UUID_SPP); 
-
352:	tmp = device.createInsecureRfcommSocketToServiceRecord(MY_UUID_INSECURE); 
Full Snippet Info
6
CodeRank
45:	Log.i("ConnectThread 44", "connecting to " + mmDevice.getName()); 
-
48:	Log.i("ConnectThread 47", "finished connecting to " + mmDevice.getName()); 
-
51:	Method m = mmDevice.getClass().getMethod("createInsecureRfcommSocket", new Class[] {int.class}); 
-
69:	service.connectedThread(this.toString(), mmSocket, mmDevice); 
Full Snippet Info
6
CodeRank
208:	bluetoothNeighbors.add(device.getName() + ";" + device.getAddress()); 
Full Snippet Info
6
CodeRank
350:	tmp = device.createRfcommSocketToServiceRecord(UUID_SPP); 
-
352:	tmp = device.createInsecureRfcommSocketToServiceRecord(MY_UUID_INSECURE); 
Full Snippet Info
6
CodeRank
142:	return !deviceList.isEmpty() && deviceList.get(0).equals(device) 
Full Snippet Info
6
CodeRank
14:	super(device.getAddress(), device.getName()); 
Full Snippet Info
6
CodeRank
53:	mmSocket = device.createInsecureRfcommSocketToServiceRecord(mmServiceUuid); 
Full Snippet Info
6
CodeRank
54:	tmp = bluetoothDevice.createRfcommSocketToServiceRecord(SPP_UUID); 
Full Snippet Info
6
CodeRank
92:	socket = device.createRfcommSocketToServiceRecord( 
Full Snippet Info
6
CodeRank
209:	states.putString(BluetoothRunnable.KEY_DEVICE_ADDRESS, mConnectedDevice.getAddress()); 
210:	states.putString(BluetoothRunnable.KEY_DEVICE_NAME, mConnectedDevice.getName()); 
-
274:	tempSocket = mConnectedDevice.createInsecureRfcommSocketToServiceRecord(mUUID); 
Full Snippet Info
6
CodeRank
135:	boolean isPaired = device.getBondState() == BluetoothDevice.BOND_BONDED; 
136:	boolean isAudio = device.getBluetoothClass().hasService(BluetoothClass.Service.AUDIO); 
-
138:	BluetoothRow row = new BluetoothRow(device.getName(), 
139:	device.getAddress(), isPaired, isAudio); 
Full Snippet Info
6
CodeRank
78:	if (device.getBondState() != BluetoothDevice.BOND_BONDED) 
-
80:	tvDevices.append(device.getName() + "��" 
81:	+ device.getAddress() + "\n"); 
Full Snippet Info
6
CodeRank
302:	mSocket = mDevice.createRfcommSocketToServiceRecord(uuidSpp); 
-
313:	Log.i(TAG, "Connected to device " + mDevice.getName() + " [" 
314:	+ mDevice.getAddress() + "]"); 
Full Snippet Info
6
CodeRank
31:	tmp = device.createRfcommSocketToServiceRecord(UUID.fromString("00001101-0000-1000-8000-00805F9B34FB")); 
Full Snippet Info
6
CodeRank
241:	tmp = device.createRfcommSocketToServiceRecord(MY_UUID); 
Full Snippet Info
6
CodeRank
191:	tmp = device.createRfcommSocketToServiceRecord(MY_UUID); 
Full Snippet Info
6
CodeRank