PS20 intents to detect the state of the device

Article ID:

Issue / Question

PS20 intents to detect the state of the device (determine the current docking state)

Applicable To

PS20 Android Oreo

Resolution / Answer

PS20 Android Oreo running BSP 1.13.20 and higher includes the new intents to detect the state of the device (determine the current docking state):

  • com.symbol.intent.device.DOCKED – Device is in powered cradle and ready for communication
  • com.symbol.intent.device.UNDOCKED – Device is taken out of powered cradle
Note: The Cradle intents are not part of EMDK. These are normal android intents, and standard way to listen to intents would work.

On PS20, when we stop charging on an unlock, PS20 triggers ACTION_POWER_DISCONNECTED intent. On MC18, device sends ACTION_POWER_DISCONNECTED intent only when the device is taken out from cradle physically. So application from MC18 running on PS20, which was monitoring ACTION_POWER_DISCONNECTED event, started doing actions on an unlock, rather than after device was taken out. This was the problem and was fixed in by providing the cradle docked intents above.

+ Applicable Products

  • PS20