1
我需要在我的应用程序中临时保存一个位图并将其传递给下一个活动,但由于图像尺寸较大,捆绑不起作用,因此我决定将它保存在图像库中,然后使用此?在接下来的活动图像,但我需要这个临时图像覆盖到前一个在任何第二我只有一个临时的形象,我怎么能做到这一点谢谢如何覆盖图库中的图像
这是我在画廊可以节省代码:
frame1=(FrameLayout) findViewById(R.id.finalview);
frame1.setDrawingCacheEnabled(true);
String imgSaved = MediaStore.Images.Media.insertImage(
getContentResolver(), Bitmap.createBitmap(frame1.getDrawingCache()),
UUID.randomUUID().toString()+".png", "تصویر");