Connect activity instead of AlertDialog.