title: android:select image from gallery then crop that and show in an imageview
body: <p>i really need this code and i searched for 3 hours on internet but i couldn't find a complete and simple code and i tested many codes but some didn't work and others wasn't good,please help me with a full and simple code,thank you
  edit:i have this code for select image but please give me a full code for all things that i said in title because i cant resemble codes.</p>
  
  <pre><code>  btn_choose.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                     Intent intent = new Intent();
                      intent.setType("image/*");
                      intent.setAction(Intent.ACTION_GET_CONTENT);
         startActivityForResult(Intent.createChooser(intent,"Select Picture"),SELECT_PICTURE);
  
  
              alertDialog1.dismiss();
  
              }
          });
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  
         if (resultCode == RESULT_OK) {
  
     if (requestCode == SELECT_PICTURE) {
                          Uri selectedImageUri = data.getData();
                          selectedImagePath = getPath(selectedImageUri);
                          selectedImagePath1=selectedImagePath;
                          System.out.println("Image Path : " + selectedImagePath);
                          image_capture1.setImageURI(selectedImageUri);
                      }
  </code></pre>