3
我一直在试图让电子邮件或Gmail应用程序给我选择使用我的应用程序打开PDF附件无济于事。我的意图过滤器看起来像:Android:如何使用intent-filter处理PDF电子邮件附件?
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/pdf" />
</intent-filter>
当我看到在模拟器中,活动管理广播这样的:
02-04 15:45:03.626: INFO/ActivityManager(59): Starting activity: Intent { act=android.intent.action.VIEW dat=content://com.android.email.attachmentprovider/1/17/RAW flg=0x80001 }
什么,我哪里做错了?
在此先感谢...
@ user603802:请确保您发送的电子邮件包含的MIME类型。 – CommonsWare 2011-02-04 21:12:35