AlertDialog within PopupWindow's OnClickListener - allowed?
<p>I need to have an <code>AlertDialog</code> appear when a certain button on a <code>PopupWindow</code> is clicked. In order to call <code>AlertDialog.Builder()</code> I need a <code>context</code>. If I try using "<code>this</code>" then I get an error "<code>Type mismatch: cannot convert from new View.OnClickListener(){} to Context</code>". There are several other kinds of context I know of like <code>getBaseContext()</code> but when I try those instead the program crashes. I'm not sure which type I should use, and am worried whether fundamentally the OS is trying to tell me that having an <code>alertdialog</code> within a <code>pupupwindow</code> is a no-no.</p>
