【问题标题】:How to download *.ics file from the browser in android?如何从 android 的浏览器下载 *.ics 文件?
【发布时间】:2010-05-29 12:17:41
【问题描述】:

如何在android中注册一个新的MIME类型?我对android非常陌生。我需要从浏览器下载一个 *.ics 文件(电子邮件附件)。但浏览器响应是不受支持的文件格式。谁能帮帮我???

【问题讨论】:

    标签: android


    【解决方案1】:

    Android intent filter for a particular file extension?

    How to open email attachment in my app on android?

    How to send/open email attachments from android app?

    对于iCalendar,这意味着您将需要具有以下<intent-filter> 的活动:

        <intent-filter>
            <category android:name="android.intent.category.DEFAULT" />
            <action android:name="android.intent.action.VIEW" />
            <data android:mimeType="text/calendar" />
        </intent-filter>
    

    【讨论】:

      猜你喜欢
      • 2019-08-24
      • 2012-08-26
      • 2016-12-22
      • 2011-12-19
      • 1970-01-01
      • 2014-09-09
      • 2011-03-07
      • 2018-07-20
      • 2012-04-30
      相关资源
      最近更新 更多