Intent.resolveType() should do it for you.  Or if you have a raw Uri,
you can use ContentResolver.getType().

On Sep 16, 11:49 am, Nickname <[EMAIL PROTECTED]> wrote:
> What i meant is how to know if content type of a picked photo uri
> returned by android photo picker activity is image/jpeg, image/png, or
> image/gif??
>
> Thanks for any pointer.
>
> On Sep 15, 11:35 am, Nickname <[EMAIL PROTECTED]> wrote:
>
> > Previously, from filename of a media file we can learn what content
> > type of the media in the file.
>
> > Now, a media file is represented by a content:// uri.
>
> > So, how can i learn the content type of a photo picked with the photo
> > picker activity?
--~--~---------~--~----~------------~-------~--~----~
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