I can insert the images in gallery by the following code -
val cr = contentResolver MediaStore.Images.Media.insertImage(cr, mBitmap, "Pro-Draw Image" ,