android - 无意在蜂窝上查看 jpg?

标签 android android-3.0-honeycomb jpeg actionview

下面是一些在手机上运行良好的代码:

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(IMAGEURI, "image/jpg");
startActivity(intent);

在 Honeycomb(3.0 和 3.1)上抛出这个:

E/AndroidRuntime(25629): FATAL EXCEPTION: main
E/AndroidRuntime(25629): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=content://media/external/images/media/282 typ=image/jpg }

真的吗? hive 上没有看jpg的应用吗?真的吗?有没有人能够在平板电脑上正确执行此操作?

最佳答案

JPEG 的 MIME 类型是 image/jpeg。你有 image/jpg

关于android - 无意在蜂窝上查看 jpg?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6573541/

相关文章:

android - 如何检查edittext是否为空?

java - 取景器不翻转

android - 不同的 ActionBar.Tab 使用不同的 Color

iphone - iOS获取jpg文件的宽高

jpeg - JPEG在DICOM中无损

java - ListView 中的按钮监听器

android - android中的新菜单?

android - onClickListener 在 onLongClickListener 之后触发

android - 如何在 HoneyComb Android 中将 ActionBar 的下拉导航对齐到右侧?

imagemagick - 在 Linux 上转换 JPEG 色彩空间(Adobe RGB 到 sRGB)