Code for take your picture from gallery in Android.

Total Post:24

Points:170
 676  View(s)
Ratings:
Rate this:
How to take your picture from the gallery and add in your android project.
  1. Post:24

    Points:170
    Re: Code for take your picture from gallery in Android.

     /* Create object of ImageView */

    ImageView editImage = (ImageView) findViewById(R.id.edit_image);

    /* Take your picture from gallery */

            editImage.setOnClickListener(new View.OnClickListener() {

                @Override

                public void onClick(View view) {

                    Intent gallery = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);

                    startActivityForResult(gallery, PICK_IMAGE);

                }

            });

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.