title: Keyboard input in android NDK using NativeActivity
body: <p>I'm looking for a way of getting input from the software keyboard from a Android NativeActivity. </p>
  
  <p>I found <a href="https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/Tk3g00wLKhk" rel="noreferrer">this</a>, that provides some sample code of how to get the software keyboard out (and it works), but lacks a few points of interest:</p>
  
  <ol>
  <li>How to get the input of the keyboard once displayed.</li>
  <li>How to avoid the app crashing when the user uses the back button to close the keyboard.</li>
  </ol>
  
  <p>If anyone has any answers to either of these questions, or better yet, a simpler way of showing the keyboard that does not require the use of JNI, please share.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Jaime</p>