title: onActivityResult inside a RecyclerView.Adapter not being used
body: <p>I have a button inside an Adapter which goes into gallery:</p>
  
  <pre><code>    MyAdapter extends
              RecyclerView.Adapter&lt;RecyclerView.ViewHolder&gt; {
      ...
      onClic..{
          Intent intent = new Intent(
                                      Intent.ACTION_PICK,
                                      android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
                              intent.setType("image/*");
                              ((Activity) context).startActivityForResult(
                                      Intent.createChooser(intent, "Select File"),
                                      SELECT_FILE);}
      ....
   @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          if (resultCode == RESULT_OK) {
          }
      }
  ..
      }
  </code></pre>
  
  <p>What I'm trying to do is to update an ImageView with the image selected from the gallery, but in order to do that I have to use onActivityResult and the compiler is complaining <code>method onActivityResult is never used</code> and <code>cannot resolve method onActivityResult</code>. </p>
  
  <p>How can I go about this ? </p>