通过Intent检索Android图库中的图片
我正在我的应用程序中构建一个自定义图库,方法是通过意图从 Android 图库中填充它。这工作正常,但现在我想过滤图像。
例如,我不需要 Android 图库中的所有图像,而只需要在特定日期拍摄的图像。我可以根据我的意图设置一些过滤器或打包一些额外的参数到Andriod gallery,以便返回所需的图像子集吗?
I am building a custom gallery in my app by populating it from Android gallery through intent. This is working fine but now I want to filter images.
For example I do not want all the images from the Android gallery but only images that were taken on a specific date. Can I set some filter or pack some extra parameters with my intent to Andriod gallery so that a subset of images that are required are returned?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须对此进行查询。
http://developer.android.com/reference/android/provider/MediaStore.Images.Media.html
http://developer.android.com/reference/android/ provider/MediaStore.Images.Thumbnails.html
您可以从此处选择的列。
http://developer.android.com/reference/android/provider/MediaStore。 MediaColumns.html
这是一篇包含可靠代码示例的博客文章。
http://androidsamples.blogspot.com/2009/ 06/如何显示图像缩略图.html
You'll have to query this.
http://developer.android.com/reference/android/provider/MediaStore.Images.Media.html
http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html
The columns you can select from being here.
http://developer.android.com/reference/android/provider/MediaStore.MediaColumns.html
Here is a blog post with solid code samples.
http://androidsamples.blogspot.com/2009/06/how-to-display-thumbnails-of-images.html