Save the image in the ImageView to a local album,
Private void Merge () {if (FileUtil. isSdCardExist () {BitmapDrawable bmp drawable = (BitmapDrawable) gradient. getDrawable (); Bitmap bmp = bmp drawable. getBitmap (); if (bmp! = Null) {try {ContentResolver cr = getContentResolver (); String url = MediaStore. images. media. insertImage (cr, bmp, String. valueOf (System. currentTimeMillis (), ""); Toast. makeText (this, getString (R. string. save_succ), Toast. LENGTH_SHORT ). show ();} catch (Exception e) {e. printStackTrace () ;}} else {Toast. makeText (this, getString (R. string. no_iamge_save_fail), Toast. LENGTH_SHORT ). show () ;}} else {Toast. makeText (this, getString (R. string. no_sdcard_save_fail), Toast. LENGTH_SHORT ). show ();} sendBroadcast (new Intent (Intent. ACTION_MEDIA_MOUNTED, Uri. parse ("file: //" + Environment. getExternalStorageDirectory ())));}