Code example for BluetoothAdapter

Methods: getBondedDevices

0
@SuppressWarnings("unchecked") 
public Set getPairedDevices()
{ 
	//@SuppressWarnings("rawtypes") 
	///ArrayAdapter array =new ArrayAdapter(); 
	Set<BluetoothDevice> pairedDevices = adapter.getBondedDevices();
	return pairedDevices;
	//for (BluetoothDevice device: pairedDevices) 
	//{ 
	//	array.add(device.getName()+device.getAddress()); 
	//} 
} 
 
public void BluetoothDiscovery() 
{ 
BroadcastReceiver receiver=new BroadcastReceiver()
{ 
	public void onReceive(Context context, Intent intent)
	{ 
		String action=intent.getAction();
		if(action.equals(BluetoothDevice.ACTION_FOUND))