【发布时间】:2013-06-06 16:03:23
【问题描述】:
我的应用程序有 12 张图片保存在 drawable 中,我在 12 个项目的列表中制作,所以如果按下任何项目,它应该打开相应的图像。 我想通过默认图库应用程序打开这些图像。 我试过这个
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("android.resource://com.app.mid/" + R.drawable.pic10), "image/png");
startActivity(intent);
但它给了我错误:ActivityNotFoundException,没有找到处理意图的活动。
我该怎么办?在此先感谢:)
【问题讨论】:
标签: android android-intent android-activity android-imageview android-gallery