title: dont get image in image view after selecting image from gallery
body: <p>i dont know why it is not working in mine case and work all others one </p>
  
  <pre><code>public class MainActivity extends Activity {
      private static final int imagess = 1;
      Button uploadimage, loadimage;
      ImageView selectimage, showimage;
  
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          uploadimage = (Button) findViewById(R.id.uploadimage);
          loadimage = (Button) findViewById(R.id.loadimage);
          selectimage = (ImageView) findViewById(R.id.imageUpToLoad);
          showimage = (ImageView) findViewById(R.id.Imagedownload);
  
  
          selectimage.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent galleryintent = new Intent(Intent.ACTION_PICK , MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
                  startActivityForResult(galleryintent , imagess);
              }
          });
      }
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          if (requestCode == imagess &amp;&amp; requestCode == RESULT_OK &amp;&amp; data != null) {
              Uri imageuri = data.getData();
            selectimage.setImageURI(imageuri);
  </code></pre>
  
  <p>and this is xml code which is also perfect. this access me to gallery but when i sselect the image from gallery i does not shown in the imageview . dont know why it is not working</p>
  
  <pre><code>&lt;ImageView
          android:layout_width="150dp"
          android:layout_height="150dp"
          android:id="@+id/imageUpToLoad"
          android:layout_gravity="center_horizontal"
          /&gt;
  
      &lt;Button
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="upload image"
          android:id="@+id/uploadimage"
          android:layout_below="@+id/selectimage"
          android:layout_alignParentStart="true"
          android:layout_alignEnd="@+id/selectimage" /&gt;
  
      &lt;ImageView
          android:layout_width="150dp"
          android:layout_height="150dp"
          android:id="@+id/Imagedownload"
          android:layout_gravity="center_horizontal" /&gt;
  
      &lt;Button
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="Load image"
          android:id="@+id/loadimage"
          android:layout_below="@+id/imageView2"
          android:layout_alignParentStart="true"
          android:layout_alignEnd="@+id/imageView2" /&gt;
  </code></pre>