Most MIME types are defined along with their provider in its class in
android.provider.

On Thu, Feb 12, 2009 at 12:19 PM, myIP <[email protected]> wrote:

>
> I can't seem to find out how a MIME type is found.  For instance, say
> I want my application to bring up Contacts.  Where can I find the MIME
> type for that task?  I currently have the following:
>
> Intent intent = new Intent();
> intent.setAction(Intent.ACTION_GET_CONTENT);
> intent.setType("*/*");
>
> Intent newIntent = Intent.createChooser(intent, null);
> startActivityForResult( newIntent , SHOW_VERIFY_ACTIVITY );
>
>
>
> And the wildcards work.  But I would like to be more explicit.  Like
> the following:
>
> intent.setType("vnd.android.cursor.item/contacts");
>
> ...but is not valid.
>
> Thanks.
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to