【发布时间】:2014-09-19 09:50:48
【问题描述】:
我想从图库中挑选一张图片,但我希望图库只显示图片。我这样创建了我的意图,但我仍然在某些设备上看到视频
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setType("image/*");
编辑:
对于 kitkat 设备,我构建了这样的意图。
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
【问题讨论】:
-
此链接是关于将位图从文件加载到网格视图中
标签: android android-intent android-image android-gallery