I'm trying to access the UUID of low energy bluetooth devices in Android, ultimately to post the string to a web API.

Here's my code that works fine at toasting the local name and mac address:

private final BroadcastReceiver ActionFoundReceiver = new BroadcastReceiver(){ @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if(BluetoothDevice.ACTION_FOUND.equals(action)) { BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); String sMac = device.getAddress(); String sName = device.getName(); String sUUID = ""; //HELP! Toast toast = Toast.makeText(getApplicationContext(), "Mac: " + sMac + " - Name: " + sName + " - UUID: " + sUUID, Toast.LENGTH_SHORT); toast.show(); } } };

Can anyone help with this?