tags:

views:

2054

answers:

1

How do I have a new file type launch my app?

For example if I have a new file type 'file.mjl' and I receive this file as an email, I want Android to associate this file type with my app and allow me to open / save it.

A: 

You need to add an intent-filter to the activity you want to launch to work with that file. Here is a link to a great primer on that subject:

http://developer.android.com/intl/de/guide/topics/intents/intents-filters.html

CaseyB
And if I am just a user, that wants to restore some file associations?
DataGreed
You can go to Menu -> Settings -> Applications -> Manage Applications and choose the one that is the default now and click the Clear Defaults button.
CaseyB