]

위에 있는 이미지는 일반 디바이스로 직접(전원+홈) 스크린샷 찍은거고
아래 이미지는 소스로 화면을 캡쳐했습니다.
일반적으로 사용하는 아래 소스로요
public void screenshot(View view) throws Exception {
View v1 = view.getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap screenshot = getbit(v1);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
Log.e("connect", "error = " + e.toString());
}
String FileName = "temp_" + String.valueOf(System.currentTimeMillis()) + ".jpg";
try {
File f = new File(rootDir + dirName, FileName);
f.createNewFile();
OutputStream outStream = new FileOutputStream(f);
screenshot.compress(Bitmap.CompressFormat.JPEG, 100, outStream);
outStream.close();
Uri uri = Uri.parse("file://" + rootDir + dirName + "/" + FileName);
Intent i = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
i.setData(uri);
sendBroadcast(i);
} catch (IOException e) {
e.printStackTrace();
}
//view.setDrawingCacheEnabled(false);
}
이걸로 스크린샷을 찍으니 원안에 이미지가 이상하게 나오네요
원 이미지는 커스텀한 이미지뷰 이구요 onDraw로 그리는....
이거 캡쳐 할 수 있는 방법 없을까요??? 답변부탁드립니다...