[英]How to save bitmap in new folder in DCIM to show it in gallery on cellphone (the cellphone doesn't have SDCard)?
I have an URL, I download the image in it and convert it to bitmap.我有一个 URL,我下载其中的图像并将其转换为 bitmap。 I want to download the bitmap in the internal memory of the cellphone to be in the gallery.
我想下载手机内部memory中的bitmap到图库。 I found solutions but includes SDcard and I need to save the image even if the cellphone doesn't have external memory.
我找到了解决方案,但包括 SD 卡,即使手机没有外部 memory,我也需要保存图像。 How can I achieve that?
我怎样才能做到这一点?
Well not all cam app store on DCIM but you can好吧,不是所有的 cam 应用商店都在 DCIM 上,但你可以
MediaStore.Images.Media.insertImage(
getContentResolver(), bitmap,
System.currentTimeMillis() + ".jpg", "DESCRIPTION HERE");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.