openGL要素(vuforiaとの統合から...したがってopenGLコードは自動生成され、あまりアクセスできない)とカスタムネイティブレイアウト(ボタンなど)を含むアクティビティのスクリーンショットを撮ろうとしています。
現在、私は次の方法を使用しています。
ViewGroup v1 = (ViewGroup) activity.findViewById(id).getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap source = Bitmap.createBitmap(v1.getDrawingCache());
sCoverBitmap = Bitmap.createBitmap(source, 0, statusBarHeight,
source.getWidth(), source.getHeight() - statusBarHeight);
openGLと他のレイアウトを含むルートビューでは、openGL(ユニティ)領域は完全に黒です。