You should use GET_CONTENT with the MIME type you want (such as image/*).

Never ever ever use explicit component names for things outside of your
app.  Those are implementation details that can't be relied upon.

Unfortunately I don't believe there is any way to use the stock gallery on a
particular directory.

On Sat, Aug 29, 2009 at 5:23 PM, Donn Felker <[email protected]> wrote:

>
> What is the proper Intent to launch the gallery or gallery picker?
>
> I'm using the following code, and a lot of users are complaining of a
> force close error. It works just fine on my stock G1, but with the new
> phones out it seems to be an issue.
>
>
> Intent intent = new Intent();
> intent.setClassName("com.android.camera",
>        "com.android.camera.GalleryPicker");
> intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> mContext.startActivity(intent);
>
> What is the proper intent?
>
> Further ...
> My app stores photos on the sd card (photos taken from the camera and
> stored using the Media Scanner) ... Is it possible to launch the
> gallery into that specific gallery instead of the gallery picker? Or
> is the gallery picker the only option?
>
> Thanks in advance.
>
>
> >
>


-- 
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, and so won't reply to such e-mails.  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