我在数据库中存储一个图像文件路径。现在使用它我想打开 gallery 中 SD Card 的图像。
我使用的下面的代码:
File file = new File(filename);
Uri uri = Uri.fromFile(file);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setType("image/*");
startActivity(intent); /** replace with your own uri */出现的错误:
06-05 08:42:23.516: E/AndroidRuntime(16815): android.content.ActivityNotFoundException: No Activity found to handle Intent
{ act=android.intent.action.VIEW dat=file:///mnt/sdcard/My%20App/image_umxto_1.jpg }如何处理这个问题?
潇潇雨雨
慕森王
慕运维8079593
随时随地看视频慕课网APP
相关分类