Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. String getText() {
  2.     String text = "";
  3.     try {
  4.       InputConnection conn = getCurrentInputConnection();
  5.       ExtractedTextRequest req = new ExtractedTextRequest();
  6.       req.hintMaxChars = 1000000;
  7.       req.hintMaxLines = 10000;
  8.       req.flags = 0;
  9.       req.token = 1;
  10.       text = conn.getExtractedText(req, 0).text.toString();
  11.     } catch (Throwable t) {
  12.     }
  13.     return text;
  14.   }