tags:

views:

176

answers:

1

How to register a new MIME type in android? I am very much new to android. I need to download a *.ics file from the browser (Email attachment).but the browser response is unsupported file format.Can anyone help me ???

A: 

http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension

http://stackoverflow.com/questions/2037551/how-to-open-email-attachment-in-my-app-on-android

http://stackoverflow.com/questions/2033818/how-to-send-open-email-attachments-from-android-app

For iCalendar, that means you will need an activity with the following <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>
CommonsWare