MainActivity에서 DialogFragment를 상속받은 DectionChooser라는 클래스를 만들고 DetectionChooser().show(supportFragmentManager, "") 라고 호출 했더니 IllegalStateException: Can not perform this action after onSaveInstanceState 라는 에러가 발생했다. 전에도 이와 비슷한 에러가 발생한 적이 있는데 dismiss()를 호출하니까 같은 에러가 발생했었다. 이때는 구글링 해보니 dismissAllowingStateLoss()라는 함수를 호출해주면 간단히 해결 되었다. 그래서 showAllowingStateLoss()라는 함수가 있을꺼 같아서 찾아보니 없다. 그래서 구글링을 하다가 ..