我尝试用我的活动打开特定的电子邮件附件类型,附件本身是纯文本Windows风格的ini文件,其扩展名为* .os。在电子邮件中,这个文件被附加为“application/octet-stream”。我尝试了以下意图过滤赶上我的活动附件:在Android中打开电子邮件附件
<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>
电子邮件应用程序中获取的附件,但随后告诉我“该附件无法显示”。我能做什么?我怎样才能调试呢?
是否有长期悬而未决的问题徽章? – zehrer 2010-11-04 18:19:10
不知道它是否有帮助,但有关于如何使用GMail做博客的博客,也许有些东西在那里给你? http://carvingcode.blogspot.com/2009/08/how-to-open-gmail-attachments-with.html – DrColossos 2011-01-10 19:11:41
@fredley同样给你,因为我认为你需要它,因为增加的赏金;) – DrColossos 2011-01-10 19:12:35