title: Activity with MapFragment snapshot
body: <p>I have an Activity which contains a MapFragment V2 on half of the screen, and on the other half there are some more views such as TextViews with details.</p>
  
  <p>This how the screen looks like:
  <a href="https://i.stack.imgur.com/E5eT4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E5eT4.png" alt="enter image description here"></a></p>
  
  <p>Now, I want to take a snapshot of the whole activity include the MapFragment but when I try to do that, I do get an image but the map part is blank (totally black)! </p>
  
  <p><a href="http://androidfragments.blogspot.co.il/2012/02/in-app-screenshots.html" rel="nofollow noreferrer">This is</a> the code I am using for taking the screenshot and it works great! </p>
  
  <p>I do know about the option to take a snapshot of the MapFragment but it takes only the map area without the rest of the screen.
  Something like this:</p>
  
  <pre><code>GoogleMap.SnapshotReadyCallback callback = new GoogleMap.SnapshotReadyCallback() {
  
              @Override
              public void onSnapshotReady(Bitmap snapshot) {
                  // TODO Auto-generated method stub
                  FileOutputStream out = null;
                  boolean status = true;
                  try {
                      out = new FileOutputStream(sharedImage);
                      snapshot = Bitmap.createScaledBitmap(snapshot, findViewById(R.id.trip_map).getWidth(),
                              findViewById(R.id.trip_map).getHeight(), true);
                      status = snapshot.compress(Bitmap.CompressFormat.JPEG, 100, out);
                      Toast.makeText(TripDetailsActivity.this, "save status: " + status, Toast.LENGTH_SHORT).show();
                      snapshot.recycle();
                      snapshot = null;
                      System.gc();
                  } catch (Exception e) {
                      e.printStackTrace();
                  } finally {
                      try {
                          out.flush();
                          out.close();
                      } catch (Exception e) {
                          e.printStackTrace();
                      }
  
                  }
                  openShareImageDialog(sharedImage);
              }
          };
          mMap.snapshot(callback);
  
      }
      return true;
  }
  </code></pre>
  
  <p>Does anyone have an idea how can I take the whole screen snapshot when there is a MapFragment there? </p>