Hello All

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);

       //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);

       I just want to know the feasible to pick photo from built-in Gallery
and get image path and data??

       Please say Yes or No.

       I want to move towards right direction. if it's feasible, definitely
I will try to find my way.


Thanks,
Anurag

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