My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if I use:
AlertDialog.Builder builder = new Al
For future readers, this should help:
public void show() { if(mContext instanceof Activity) { Activity activity = (Activity) mContext; if (!activity.isFinishing() && !activity.isDestroyed()) { dialog.show(); } } }