// 其次把文件插入到系统图库 try { MediaStore.Images.Media.insertImage(context.getContentResolver(), result.getAbsolutePath(), result.getName(), null); } catch (FileNotFoundException e) { e.printStackTrace(); } // 最后通知图库更新 context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse("file://" + result.getPath())));
Android 把图片加到系统相册中
最新推荐文章于 2024-06-13 16:40:38 发布