i am learning how to use Bluetooth with android, and I registered a BroadCastReceiver
for BluetoothAdapter.ACTION_STATE_CHANGED
.
in the docs, it say
Broadcast Action: The state of the local Bluetooth adapter has been changed. For example, Bluetooth has been turned on or off. Always contains the extra fields EXTRA_STATE and EXTRA_PREVIOUS_STATE
containing the new and old states respectively.
now, how can i use EXTRA_STATE and EXTRA_PREVIOUS_STATE?