从我的应用程序下载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
发布评论