Android manifest and mimetypes, register a new mime type

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Android manifest and mimetypes, register a new mime type

Postby sabueso81 » Sat Feb 14, 2009 10:52 am

Hi all,

I want my application to run when clicking on a file with the extension "gvx". But I don't know what steps are involved for that. As far as I know, I have to add in the android manifest a new intent filter containing VIEW action on the activity I want to use (can be the main activity or not).

I finally wrote this.:

</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE_SELECTED" />
<data android:mimeType="vnd.android.cursor.item/gvmfile" />
</intent-filter>

The point is I don't understand the mimeType part, how can I explicitly say that only ".gvx" corresponds to a given. What are the right steps to do?

Thanks.
sabueso81
Freshman
Freshman
 
Posts: 2
Joined: Sat Feb 14, 2009 10:44 am

Top

Re: Android manifest and mimetypes, register a new mime type

Postby arnouf » Wed Apr 29, 2009 8:48 am

sabueso81 wrote:Hi all,

I want my application to run when clicking on a file with the extension "gvx". But I don't know what steps are involved for that. As far as I know, I have to add in the android manifest a new intent filter containing VIEW action on the activity I want to use (can be the main activity or not).

I finally wrote this.:

</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE_SELECTED" />
<data android:mimeType="vnd.android.cursor.item/gvmfile" />
</intent-filter>

The point is I don't understand the mimeType part, how can I explicitly say that only ".gvx" corresponds to a given. What are the right steps to do?

Thanks.


And now, is it ok? does it run correctly. I have the same thing to do, but I don't find clear information...
Can you help me?
arnouf
Developer
Developer
 
Posts: 28
Joined: Mon Jan 21, 2008 9:07 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests