Iv_photo.builddrawingcache ();
Iv_photo.setbackgroundcolor (Mcontext.getresources (). GetColor (R.color.textcolorwhite));
Iv_photo.setdrawingcacheenabled (TRUE);
Bitmap Bitmap = Iv_photo.getdrawingcache ();
SimpleDateFormat formatter = new SimpleDateFormat ("yyyy mm month DD Day HH:mm:ss");
Date curdate = new Date (System.currenttimemillis ());//Get current time
String str = Formatter.format (curdate);
MediaStore.Images.Media.insertImage (Mcontext.getcontentresolver (), Bitmap, str, "");
UpdateUserPhotoActivity.this.sendBroadcast (New Intent (Intent.action_media_scanner_scan_file, Uri.parse ("file://"
+ environment.getexternalstoragedirectory ()));
Iv_photo.setbackgroundcolor (Mcontext.getresources (). GetColor (R.color.black));
Toast.maketext (Mcontext, "Save album Success! ", Toast.length_short). Show ();
Android about screenshot save picture to album function