我查看android信息应用的源代码,manifest 文件中是这样的:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="video/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
但是在我的代码中,我是这样启动一个intent的:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("*/*");
我能在弹出的对话框中看见 Messaging app 吗?
当我使用 / mimeType 类型启动一个ACTION_SEND intent时,为什么 android Messaging 应用被启动?