Hi,

On Oct 23, 3:08 pm, Gyan <[email protected]> wrote:
> I'm using the setType to return me images mentioned only of the specific
> type.
>
>         Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
>         photoPickerIntent.setType("image/gif");
>         photoPickerIntent.setType("image/jpeg");
>         photoPickerIntent.setType("image/tiff");
>         photoPickerIntent.setType("image/png");
>         photoPickerIntent.setType("image/bmp");

only the last setType() is used, they don't add up.

>         startActivityForResult(photoPickerIntent, RESULT_IMAGE_RETURNED);
>
> But this piece of code returns me images of other types too... say ".wbmp"
> Is there any other way to exclude the unwanted results from the Intent.

The Camera app, which provides the Gallery, doesn't seem to support
the type from the Intent. I think this behavior isn't guaranteed.


--~--~---------~--~----~------------~-------~--~----~
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