通知系统相册收录新图片
来源:互联网 发布:河南知满天 编辑:程序博客网 时间:2024/04/29 03:50
private void galleryAddPic() { Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); File f = new File(mCurrentPhotoPath); Uri contentUri = Uri.fromFile(f); mediaScanIntent.setData(contentUri); this.sendBroadcast(mediaScanIntent);}
Note: If you saved your photo to the directory provided by getExternalFilesDir(), the media scanner cannot access the files because they are private to your app.
官网地址:http://developer.android.com/training/camera/photobasics.html
0 0
- 通知系统相册收录新图片
- 通知系统相册更新
- 通知Android系统相册更新
- Android保存图片到系统图库并通知系统相册刷新
- 图片存入系统相册
- android 保存图片到手机相册,并通知相册刷新
- 保存图片到系统相册
- 将图片导入系统相册
- 保存图片到系统相册
- 获取系统相册图片路径
- UIImagePickerController调取系统相册图片
- IOS获取系统相册图片
- 保存图片到系统相册
- 保存图片到指定相册 支持创建新相册
- 【系统相册】Android 保存图片到系统相册
- 保存图片/视频到相册 保存完成后通知事件
- 关于获取imageview上的图片,保存到相册并通知相册自动更新
- 从系统相册选择多张图片
- ios中 继承对象模型的归档实现
- 最全SpringMVC详细示例实战教程
- 单词计数程序在hadoop上的实现
- 怎样使用复合索引优化一个分析函数SQL
- hibernate使用version实现乐观锁
- 通知系统相册收录新图片
- 深入研究java.lang.ThreadLocal类
- 添加Custom debug keystore
- wp7 webbrowser+html5 打造本地应用程序
- Comparable与Comparator的区别
- UVaLive 3708 Graveyard 墓地雕塑
- 创建多个UIButton其中只有一个显示选中效果
- WinExec可能会引起消息重入
- iOS UIImageView 大小调整