从我的应用程序下载ics(outlook Calendar)文件?(download ics(outlook Calendar) file from my application?)

编程入门 行业动态 更新时间:2024-10-25 01:22:28
从我的应用程序下载ics(outlook Calendar)文件?(download ics(outlook Calendar) file from my application?)

嗨,我是android的新手。我需要从邮件附件下载.ics文件。 我在Manifest xml文件中使用了intent过滤器。 但它从我的应用程序下载所有文件。我只需要下载.ics文件。如何可能???

<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="*/*" /> <data android:pathPattern=".*\\.ics" /> </intent-filter>

Hi i am new to android.I need to download .ics file from mail attachment. I use intent filter in Manifest xml file. But it downloads all the files from my application.I need to download .ics file only.How it's possible???

<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="*/*" /> <data android:pathPattern=".*\\.ics" /> </intent-filter>

最满意答案

我用这个得到了答案

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

I get the answer by using this

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

更多推荐

android,ics,intent,file,电脑培训,计算机培训,IT培训"/> <meta name="descr

本文发布于:2023-08-05 08:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1430246.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   文件   outlook   Calendar   ics

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!