[안드로이드] android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
안녕하세요. 개발자 드리머즈입니다. AlertDialog 테스트 중에 아래와 같은 에러가 발생했습니다. android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 문제가 되었던 코드는 아래의 코드입니다.(LoginActivity.java) AlertDialog.Builder alert = new AlertDialog.Builder(getApplicationContext()); alert.setTitle("타이틀"); alert.setMessage("메세지"); alert.setPositiveButton("Ok", new DialogInterface.OnClickListene..