我捕捉屏幕使用波紋管代碼,然後它存儲在SD卡中,並轉到另一activity.but當我導航到另一個活動是非常slow.how我可以解決它嗎? 請任何人都可以幫我嗎?將圖像存儲到SD卡?
View v1 = view.getRootView();
v1.setDrawingCacheEnabled(true);
bitmapBcfhForm3 = v1.getDrawingCache();
File imagesFolder = new File(Environment.getExternalStorageDirectory(), "Signatures");
imagesFolder.mkdirs();
String fileName = "bitmapBcfhForm3"+AppointmentDetails.getPatientId+".png";
File out = new File(imagesFolder,fileName);
FileOutputStream mFileOutStream1 = new FileOutputStream(out);
bitmapBcfhForm3.compress(Bitmap.CompressFormat.PNG, 90, mFileOutStream1);
mFileOutStream1.flush();
mFileOutStream1.close();
}
catch (Exception e) {
// TODO: handle exception
Log.v("log_tag", e.toString());
}
startActivity(new intent(A.this.B.classs));
感謝回覆。 – suman 2013-04-22 09:32:30