I did all my home work regarding gallery.
private static final int SELECT_PICTURE = 1;
private static final int SELECT_GALLERY_PICTURE = 2;
private String selectedImagePath;
// Browse and pick photo from SDCARD, wokring perfact
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(intent,SELECT_PICTURE);
// Browse Gallery, working perfact
Intent gIntent = new Intent();
gIntent.setClassName("com.android.camera",
"com.android.camera.GalleryPicker");
gIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(gIntent);
// try to pick , It's not working
Intent gIntent = new Intent();
gIntent.setClassName("com.android.camera", "com.android.camera.
GalleryPicker");
gIntent.setAction(Intent.ACTION_PICK);
startActivityForResult(gIntent,SELECT_GALLERY_PICTURE);
By using third method , It's open gallery to browse. I'm not bale to pick
photo and *startActivityForResult *method is not called.
Thanks for your reply.
- Anurag Singh
On Thu, Apr 22, 2010 at 3:22 PM, Kumar Bibek <[email protected]> wrote:
> Have you tried anything? What problems are you facing? That will help
> up answering your question. This question's answer will run into a
> page of lines and pics.
>
> Please be specific about your problems.
>
> Sure, you can do what you want.
>
>
> Thanks and Regards,
> Kumar Bibek
>
> On Apr 20, 9:19 pm, Anurag Singh <[email protected]> wrote:
> > Hello All
> >
> > I have some requirement to upload photo. I am able to browse gallery
> > but not able to pick any photo from main gallery.
> >
> > Android allows us to upload snaps from SDCARD, I think there
> > must be some way.
> >
> > isn't it?
> >
> > Thanks In Advance.
> > - Anurag Singh
> >
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
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