【发布时间】:2010-06-13 09:26:52
【问题描述】:
我尝试使用我的活动打开特定的电子邮件附件类型,附件本身是一个纯文本 windows 样式的 ini 文件,扩展名为 *.os。在电子邮件中,此文件作为“application/octet-stream”附加。我尝试了以下意图过滤器来捕获带有我的活动的附件:
<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:scheme="http" android:host="*" android:pathPattern=".*\\.os"/>
<data android:scheme="https" android:host="*" android:pathPattern=".*\\.os"/>
<data android:scheme="content" android:host="*" android:pathPattern=".*\\.os"/>
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.os"/>
</intent-filter>
电子邮件应用程序正在获取附件,但随后告诉我“无法显示附件”。我能做些什么?我该如何调试?
【问题讨论】:
-
长期未回答的问题是否有徽章?
-
不知道它是否有帮助,但有一篇关于如何使用 GMail 进行操作的博文,也许对你有用? carvingcode.blogspot.com/2009/08/…
-
@fredley 对你来说也是一样,因为我认为你需要它是因为增加了赏金;)
标签: android