title: super.onActivityResult inside adapter class? Android
body: <p>I have RecyclerView with very complex item, multiple buttons/images/texts. 
  To access each button/image I set my click Listeners inside my Adapter class.</p>
  
  <p>But now I am trying add function to set contact ringtone and I have a problem.</p>
  
  <p>I am calling the onActivityResult method like this:  </p>
  
  <pre><code>Intent contactIntent = new Intent(Intent.ACTION_PICK);
                  contactIntent.setType(ContactsContract.Contacts.CONTENT_TYPE);
                  contactIntent.putExtra("ITEM_POSITION", position);
                  ((Activity) context).startActivityForResult(contactIntent, CONTACT_CHOOSER_ACTIVITY_CODE );
  </code></pre>
  
  <p>and that works fine.
  But here is the problem:</p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
  
          switch (requestCode) {
  ....
  ...
  ...
  }
  }
  </code></pre>
  
  <p>I get this error: <code>Cannot resolve method 'onActivityResult(int, int, android.content.Intent)'</code>
  Is there any way to avoid this? or is it possible to have this method inside adapter class? If not what should I do?</p>