title: USB headset detection in android
body: <p>with the extinct of 3.5 audio headphone jack,How would one determine the plug-in or unplug activity of USB type C headset?</p>
  
  <p>Traditional intent.ACTION_HEADSET_PLUG state always returns '0' irrespective of USB headset state.</p>
  
  <p>This query been raised earlier as well 
  <a href="https://stackoverflow.com/questions/38498831/android-detect-headset-plugin-through-usb-port">Android detect headset plugin through USB port</a> but there is no solution mentioned.</p>
  
  <p>Could someone please guide?</p>