title: How to get input text from soft keyboard
body: <p>I am launching the soft keyboard like this: </p>
  
  <pre><code>InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
  
  inputMethodManager.toggleSoftInputFromWindow(buttonLayout.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0);
  </code></pre>
  
  <p><code>buttonLayout</code> is a simple button on my UI. <br>How do I extract what the user wrote (without using a <code>EditText</code> field or maybe hiding the <code>EditText</code>) so the user can't see or click on it?</p>