在我的应用中,我将图像保存到设备库中,如下所示:
MediaStore.Images.Media.insertImage(contentResolver, bitmap, "title" , "description")
这有效,并且图像在几秒钟内被保存。
是否有任何MediaStore
回调函数可以告诉我何时成功保存图像?
我发现最好的东西是How to listen new photos in android?,但我不想听Garelly中的每个新图像,我只想听可能保存的图像。