2011년 3월 10일 목요일

Android Screen Capture

View root = view.getRootView();
root.setDrawingCacheEnabled(true);
bm = root.getDrawingCache();

File path = new File("/sdcard/samplecapture");

FileOutputStream out = new FileOutputStream("/sdcard/screen.jpg");
bm.compress(Bitmap.CompressFormat.JPEG, 100, out);

댓글 없음:

댓글 쓰기