I am developing an application,where i am doing video call(videos are from Opentok).but when i try to take screenshot of my screen,videos are displaying black.
i used following link but dint work
Taking screenshot programmatically doesnt capture the contents of surfaceVIew
i have attached my screenshot screenshot is shown in imageview which is in black colour
i used following code to take screenshot but not working
public Bitmap getScreenShot() {
    View rootView = getWindow().getDecorView().findViewById(android.R.id.content);
    View screenView = rootView.getRootView();
    screenView.setDrawingCacheEnabled(true);
    Bitmap bitmap = Bitmap.createBitmap(screenView.getDrawingCache());
  //  bitmap=Bitmap.createScaledBitmap(bitmap,50,70,false);
    Log.e("new_bitmap","--->"+bitmap);
    screenView.setDrawingCacheEnabled(false);
    return bitmap;
}
plz help me to get solution Thanks.