전체 글(80)
-
[Android/안드로이드] Unable to add window -- token null is not valid; is your activity running?
Unable to add window -- token null is not valid; is your activity running? 에러 발생 오류 원인 Dialog 생성 시 applicationContext를 사용했기 때문에 오류 해결 방법 applicationContext 대신 activityName.this 또는 this 사용 끝!!
2020.02.12 -
[Android Studio/안드로이드 스튜디오] can not find declaration to go to 해결 방법
can not find declaration to go to 해결 방법 안드로이드 스튜디오에서 파일간 이동이 안될때 File > Invalidate Caches/Restart 끝.
2020.02.10 -
[Android/안드로이드] scrollView 꽉찬 화면 적용(match_parent)
ScrollView에 아래 속성 추가 android:fillViewport="true" 하단까지 꽉찬 화면 구성 가능
2020.02.03 -
[Android/안드로이드] Can not perform this action after onSaveInstanceState 오류 해결 방법 commitAllowingStateLoss()
Fatal Exception: java.lang.IllegalStateException Can not perform this action after onSaveInstanceState 오류 해결 원인 : activity에서 onSaveInstanceState 함수를 호출한 상태에서 commit 을 요청 했을 때 발생 해결 : commit() 대신 commitAllowingStateLoss() 사용
2020.01.28 -
[Android studio /안드로이드 스튜디오] 무선/Wifi 디버깅 사용하기
안드로이드 스튜디오 무선/Wifi 디버깅 사용하기 Android studio 실행 PC와 단말기 같은 Wifi로 연결 PC에 디바이스 USB 연결 Terminal 창에 명령어 입력 ./adb devices (연결 확인 명령어) 연결되어있을 경우 : List of devices attached 하단에 해당 device가 표시됨 ./adb tcpip {포트번호 네자리} ex : ./adb tcpip 5555 제대로 동작 할 경우 : restarting in TCP mode port: 5555 USB 연결 해제 디바이스 IP주소 확인 설정 > Wifi > Wifi 고급 설정 > IP 주소 Terminal 창에 명령어 입력 > ./adb connect {IP 주소}:{포트 번호 네자리} 제대로 연결됐을 경우 :..
2020.01.20 -
[Android/안드로이드] Firebase analytics debugView 사용하기
Firebase analytics debugView 사용하기 앱을 배포해야만 확인 가능했던 DashBoard 대신 개발 모드에서 Firebase > Analytics > DebugView 를 통해 애널리틱스 구성이 제대로 되어있나 실시간으로 이벤트를 확인할 수 있습니다. 일반적으로 앱이 기록하는 이벤트는 약 1시간 동안 취합된 후 일괄 업로드됩니다. 이렇게 하는 이유는 최종 사용자 기기의 배터리를 절약하고 네트워크 데이터 사용량을 줄이기 위함입니다. 그러나 개발 기기에서 디버그 모드를 사용 설정하여 이벤트를 업로드하는 지연 시간을 최소화하면 분석 구현을 검증하고 DebugView 보고서에서 분석 결과를 조회할 수 있습니다. 사용 방법 Android Studio > Terminal 실행 다음 명령어 실행하..
2020.01.20