Fonctions membres publiques | |
ReceveurBluetooth () | |
void | onReceive (Context context, Intent intent) |
void com.ttpa.iris.ttpamobile.ReceveurBluetooth.onReceive | ( | Context | context, |
Intent | intent | ||
) |
{ String action = intent.getAction(); if (BluetoothDevice.ACTION_FOUND.equals(action)) { BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); Toast.makeText(context, "Nouveau périphérique : " + device.getName(), Toast.LENGTH_SHORT).show(); } }