Code example for BluetoothAdapter

Methods: getName

0
	public String getAddress() throws RemoteException {
		return BtAdapter.getAddress();
	} 
 
	public String getName() throws RemoteException {
		return BtAdapter.getName();
	} 
 
	public BluetoothAdapter getBluetoothAdapter() {
		return BtAdapter;
	} 
 
	/* 
	 *  
	 */ 
	public HashMap<String, String> getConnectableDevices() {
 
		Set<BluetoothDevice> devices = BtAdapter.getBondedDevices();
		for (BluetoothDevice device : devices) {
			BtBondedDevices.put(device.getAddress(), device.getName());
		}