title: Android Screenshot with Virtual Keyboard (Programatically)
body: <p>I got a project which includes <strong>screenshot of android content's root view</strong>. But if someone click a <strong>edittext</strong> and open virtual keyboard i can't get this keyboard view in my picture.I mean android content's root view doesn't contain virtual keyboard. How can i add it ?
  Here is my screenshot code : </p>
  
  <pre><code>Bitmap bitmap;
      View v1 = this.findViewById(android.R.id.content).getRootView();
      v1.setDrawingCacheEnabled(true);
      bitmap = Bitmap.createBitmap(v1.getDrawingCache());
      v1.setDrawingCacheEnabled(false);
      OutputStream fout = null;
      imageFile = new File(filePath);
      try {
          fout = new FileOutputStream(imageFile);
          bitmap.compress(Bitmap.CompressFormat.JPEG, 70, fout);
          fout.flush();
          fout.close();
      }catch (Exception e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>And also i'm working on android emulator. Thanks for your replies from now.</p>