How to save a bitmap image with imageview onclick [closed]
Am developing a coloring of images in android. So after applying colors to my image when i click another imageview like save, then i have to save that image to gallery. Seshu Vinay To get Bitmap from imageView : imageview.buildDrawingCache(); Bitmap bm=imageview.getDrawingCache(); To save it in a file: OutputStream fOut = null; Uri outputFileUri; try { File root = new File(Environment.getExternalStorageDirectory() + File.separator + "folder_name" + File.separator); root.mkdirs(); File sdImageMainDirectory = new File(root, "myPicName.jpg"); outputFileUri = Uri.fromFile(sdImageMainDirectory);