全部博文(413)
分类:
2011-05-11 15:34:38
ACTION_STATE_CHANGED
broadcast Intent, which
the system will broadcast whenever the Bluetooth state has changed. This broadcast contains
the extra fields EXTRA_STATE
and EXTRA_PREVIOUS_STATE
, containing the new and old
Bluetooth states, respectively. Possible values for these extra fields are
STATE_TURNING_ON
, STATE_ON
, STATE_TURNING_OFF
, and STATE_OFF
. Listening for this
broadcast can be useful to detect changes made to the Bluetooth state while your
app is running.