try { MediaStore.Images.Media.insertImage(context.getContentResolver(), file.getAbsolutePath(), fileName, null); } catch (FileNotFoundException e) { e.printStackTrace(); } // 最后通知图库更新 Log.e("xxxxx", "saveImageToGallery: " + file.getAbsolutePath()); context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse("file://" + file.getAbsolutePath())));
android图片写到系统Picture
最新推荐文章于 2022-12-27 15:57:41 发布