title: android pick images from gallery (now startActivityForResult is depreciated)
body: <p>I believe many people have asked this question long time ago. Now, startActivityForResult is depreciated and I am looking for its replacement.</p>
  <p>Previous code would be</p>
  <pre><code>        public void onClick(View v) {
          Intent intent = new Intent();
          intent.setType(&quot;image/*&quot;);
          intent.setAction(Intent.ACTION_GET_CONTENT);
          startActivityForResult(
                  Intent.createChooser(
                          intent,
                          &quot;Select Image from here...&quot;),
                  PICK_CODE);
  </code></pre>