title: ImageView not showing image selected from gallery
body: <p>So I have a button that loads the gallery, and selects an image using this code...</p>
  
  <pre><code>public void getGalleryImage(View v){
      Intent intent = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
      intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
      startActivityForResult(intent, 1);
  }
  
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      if (requestCode == RESULT_LOAD_IMAGE &amp;&amp; resultCode == RESULT_OK &amp;&amp; null != data) {
          Uri selectedImage = data.getData();
          String[] filePathColumn = { MediaStore.Images.Media.DATA };
  
          Cursor cursor = getContentResolver().query(selectedImage,
                  filePathColumn, null, null, null);
          cursor.moveToFirst();
  
          int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
          String picturePath = cursor.getString(columnIndex);
          cursor.close();
  
          galleryImage.setImageBitmap(BitmapFactory.decodeFile(picturePath));
  
      }
  
  
  }
  </code></pre>
  
  <p>But when it goes back to the original activity, the ImageView still doesn't show anything. It doesn't give me any errors, or anything like that. Here the XML for the ImageView...</p>
  
  <pre><code>&lt;ImageView
      android:id="@+id/galleryImage"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p>How can I get it to show?</p>