Android doesn't know anything about file extensions, only MIME types.

On Mon, Jul 20, 2009 at 6:37 AM, Dmitry Manayev <dmitry.mana...@gmail.com>wrote:

>
> Hi!
>
> I have problem with adding a new file type to android(the file  type
> is .comap).I need to run my application with this file from android
> browser and from file manager.
> I know that I need to write a special <intent-filter> for that,but I
> don't know how,because this format hasn't any special,registered  MIME
> type.
> I tried to write in AndroidManifest.xml to open a file test.comap:
>                   <intent-filter>
>                                <action
> android:value="android.intent.action.VIEW" />
>                                <category
> android:value="android.intent.category.DEFAULT" />
>                                <data android:scheme="file"
> android:host="*" android:path="sdcard/test.comap" />
>                    </intent-filter>
> But this doesn't work.
> How to do it right?
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to