title: Activity onCreate() called when connecting OTG device
body: <p>I am developping an app which uses a OTG USB device. </p>
  
  <p>The device I am using is a USB barcodescanner which is detected by android as a keyboard.</p>
  
  <p>But I detected that every time I plug or unplug the OTG device, the App is restarted by calling the Activity onCreate() method.</p>
  
  <p>This is causing me a lot of problems because I cannot detect why is the onCreate() method being called.</p>
  
  <p>Is there any Intent or anything that could be fired and to be catched when the otg device is plugged / unplugged?</p>
  
  <p>Thanks in advance.</p>