【发布时间】:2012-05-22 14:41:09
【问题描述】:
我有一些图像存储在getExternalFilesDir() 中,我正在尝试在 android 库 (cooliris) 中显示这些图像。
现在我一直在这样做:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(imgPath,"image/*");
startActivity(intent);
但是什么也没发生。 我已将 setDataAndType 更改为:
intent.setDataAndType(Uri.fromFile(new File(imgPath)),"image/*");
这样可以正常工作,但画廊从黑屏到显示我的图像需要 5-10 秒。
无论如何要解决这个问题或任何更好的方法?
【问题讨论】:
标签: android android-gallery cooliris