我有我的 android 应用程序 list 文件,并且我创建了一个新 Activity 。我希望此 Activity 能够像内置图像查看器一样处理图像。所以我可以在浏览器中点击一个图像,它会询问我是否要使用我的应用程序或默认 Activity 来查看图像。我可以在以下 Intent 过滤器中使用什么操作:
<intent-filter>
<action android:name="android.intent.action." />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
我假设它会列在 http://developer.android.com/reference/android/content/Intent.html但我不知道哪个是用来查看图像的。
最佳答案
您正在寻找 android.intent.action.VIEW
关于android - 如何创建处理打开照片的 Intent ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20159047/