title: Capture entire content of EditText into a picture
body: <p>I have to print the entire text of a text field into a picture. The reason is: I have to exchange messages with unsupported UTF-8 characters between Android and other web clients. By unsupported UTF-8 characters I mean missing fonts in Android (see <a href="https://en.wikipedia.org/wiki/Help%3aMultilingual_support_for_Android" rel="nofollow">this topic here</a> ). I tried to use the direct way</p>
  
  <pre><code>Bitmap b;
  EditText editText = (EditText) findViewById(R.id.editText);
  editText.buildDrawingCache();
  b = editText.getDrawingCache();
  editText.destroyDrawingCache();
  </code></pre>
  
  <p>which works like a charm until I have multiple lines: The solution captures only the text which is visible to the user instead of the complete text inside of a long text field (scrollbars!).</p>
  
  <p>I also tried another workaround by <a href="https://stackoverflow.com/a/11100582/598802">generating a picture from a stackoverflow answer</a>. This prints the entire text but does not respect text formatting like newlines. But I don't want to handle all the stuff by myself.</p>
  
  <p>I am forced to use Android 4.3 and earlier versions.</p>
  
  <ol>
  <li>Is there smart way to capture text into pictures? If not:</li>
  <li>Is it possible to modify the code above to get it work as expected?</li>
  </ol>