问题
I want to save image to a specific director in the gallery. The below code works fine but the image is storing into "Pictures" folder
val bitmap: Bitmap = (iv_full_image.getDrawable() as BitmapDrawable).getBitmap() MediaStore.Images.Media.insertImage(getContentResolver(),bitmap, "photo" , "myImg")
how do I store the image to a folder called "MyImages" in gallery.
and is there any other way to store image to the gallery because it's saying insertImage(ContentResolver!, Bitmap!, String!, String!): String!' is deprecated. Deprecated in Java... but it totally works for me.
来源:https://stackoverflow.com/questions/63429815/save-image-to-specific-directory-in-gallery-android