Android: Access activity from handler
<p>I have the following handler:</p>

<pre><code>public class SiteListener implements OnItemClickListener{
    @Override
    public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int position, long id) {
    }
}
</code></pre>

<p>I want to be able to call the following:</p>

<pre><code>myActivity.getSupportFragmentManager()
            .beginTransaction()
            .add(R.id.site_info, siteInfoFragment)
            .commit();
</code></pre>

<p>How do I gain access to the activity from SiteListener? Is there a way using the <code>adapterView</code>?</p>
