Getting the context inside onClick(View view), the callback for a button's onClickListener(), is easy:
view.getContext()
But I can't figure out how to get the context inside onClick(DialogInterface v, int buttonId), the callback for a dialog's onClickListener
public class MainActivity extends Activity implements android.content.DialogInterface.OnClickListener
Is this possible?
 
     
     
     
     
    