title: Can't Call activity function from adapter
body: <p>I would like to call activity function from Adapter. I am trying something like this: </p>
  
  <pre><code> ((MainActivity)mCtx).SampleVoid(); 
  </code></pre>
  
  <p>But i've got the error: <strong>java.lang.ClassCastException: android.app.Application cannot be cast to</strong></p>
  
  <pre><code>public void SampleVoid(){
  
      Toast.makeText(this,"Testowa metoda",Toast.LENGTH_LONG).show();
  }
  </code></pre>