Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- @provides @binds 차이
- dispatchTouchEvent
- Python
- isFinishing()
- 안드로이드 다이얼로그 오류
- 도형생성
- onIntercepterTouchEvent
- 원생성
- android.view.WindowManager.BadTokenException
- [databinding]
- 지오코더
- 원이동
- 듀얼시크바
- {"msg":"cannot find method
- databinding error
- 터치순서
- rangeslider
- android compose
- 터치이벤트 순서
- Android
- 안드로이드
- WindowManager$BadTokenException
- dualthumbseekbar
- multiseekbar
- databinding xml
- Could not find method
- 힐트
- material3
- 레트로핏
- Java
Archives
- Today
- Total
목록안드로이드 다이얼로그 오류 (1)
개발관련일지

WindowManager$BadTokenException 처음 보는 오류여서 검색해보았는데 대부분 유저들의 내용으론 화면에 보여질 컨테스트와 다이얼로그의 문제였다 내 경우는 죽은 액티비티에 서브스레드에서 다이얼로그를 요청하는 상황에서 에러가 나온다 생각했다. 위와 같은 상황이었고 서브스레드를 돌려놓고 엑티비티를 종료하니 에러를 만날 수 있었다. 해결방법으론 엑티비티의 종료여부를 보고 다이얼로그를 안띄우는 방식이 있엇다 isFinishing()을 사용해서 아래 코드처럼 해결이 될것이다 1 2 3 4 5 6 7 8 9 10 11 12 13 14 if(! 액티비티.this.isFinishing()){ new MaterialAlertDialogBuilder(액티비티.this) .setTitle("제목") .se..
개발기록/안드로이드
2021. 7. 8. 04:35