Open options menu from custom Adapter Android
<p>I have a custom adapter populating a listview.</p>

<p>Each row has a checkbox which has an OnCheckedChangeListener set in the getView() method.</p>

<p>All is working in that regard, however I want to open the options menu in my activity that is 'hosting' my listview from the event listener in the Adapter.</p>

<p>I've tried passing in an instance of my Activity to no avail and I can't access a static method with openOptionsMenu() in my Activity from the Adapter class because openOptionsMenu() is non-static.</p>

<p>Any ideas?</p>

<p>I'm assigning my adapter like so,</p>

<p><code>mAdapter = new CustomFileAdapter&lt;String&gt;(this, filenames, this);</code> (context, array, activity)</p>

<p>And the constructor in the Adapter like so,</p>

<p><code>public CustomFileAdapter(Context context, String[] images, Activity a)</code></p>
