title: Android: How to set the photo selected from gallery to a bitmap
body: <p>I am asking the user for the access to the gallery through the code as a listener here:</p>
  
  <pre><code>Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
  photoPickerIntent.setType("image/*");
  startActivityForResult(photoPickerIntent, SELECT_PHOTO);
  </code></pre>
  
  <p>However, I am confused as to how I would set a variable to the photo selected.</p>
  
  <p>Where would I put the code to set a variable as the photo selected?</p>
  
  <p>Thanks :)</p>