반응형
context에서 cannot resolve constructor 오류 해결법
this 대신 getApplicationContext() 사용
이러면, 작동 안될 때가 있음. 그럴 때는 외부 메서드로 변경. 왜 이러는지는 모르겠음.
반응형
'Android' 카테고리의 다른 글
androidx.appcompat.widget.toolbar vs android.support.v7.widget.toolbar (0) | 2019.10.05 |
---|---|
달력의 시작값 (0) | 2019.10.03 |
Toolbar (0) | 2019.09.30 |
error: Can't create handler inside thread that has not called Looper.prepare() (0) | 2019.09.28 |
폰의 전화번호 조회 (0) | 2019.09.26 |
댓글