title: Android crashes on keyboard plugging
body: <p>I'm developing an Android application in which I need support a USB keyboard. I haven't developed something to explicitly support the USB keyboard because I thought that every application can use a USB keyboard. </p>
  
  <p>The problem is that when I'm trying to connect or disconnect a USB keyboard, my application crashes without an error trace from the application.</p>
  
  <p>My device is a Lenovo with Android 4.1 installed. What can I do to resolve this problem?</p>