title: Saving activity into pdf file
body: <p>I need to save Activity content into .pdf file. Something like a screenshot. I can save individual views of a activity into file using this code:</p>
  
  <pre><code>PdfDocument document = new PdfDocument();
  PdfDocument.PageInfo pageInfo = new PdfDocument.PageInfo.Builder(600,300, 1).create();
  PdfDocument.Page page = document.startPage(pageInfo);
  View content = findViewById(R.id.editText1);
  content.draw(page.getCanvas());
  document.finishPage(page);
  </code></pre>
  
  <p>But how to save (printscreen) whole activity, not just a views? </p>
  
  <p>Thank you.  </p>