본문 바로가기
728x90

Mobile/Android27

[Android] APK Push 할 때 read only 오류 메시지 대응 방법 https://android.stackexchange.com/questions/110927/how-to-mount-system-rewritable-or-read-only-rw-ro How to mount /system rewritable or read-only? (RW/RO) How can I mount the /system directory rewritable or read-only on my Android phone? android.stackexchange.com 2022. 10. 31.
[Android] 연결된 USB의 UUID 정보 구해오기 파일 Path 정보 중 USB의 루트 디렉토리 이름을 구해와야 하는 일이 생겼다. VolumeLabel 이라고 하던데, 가져오는 방법은 다음과 같은 방법으로 구해올 수 있다. public String getUsbUUIDName(Context context){ StorageManager storage = (StorageManager) context.getSystemService(STORAGE_SERVICE); List volumes = storage.getStorageVolumes(); for (StorageVolume volume : volumes) { if (albumName.equals(volume.getUuid())){ return volume.getUuid(); } } return null; } .. 2022. 10. 6.
[Android] call stack 로그 추출 방법 https://codechacha.com/ko/android-get-stack-trace/ Android - Call Stack 출력하는 방법 App(Java, Kotlin)에서 Call Stack을 출력하는 방법을 소개합니다. Log를 이용하여 다음과 같이 Call Stack을 출력할 수 있습니다. try-catch를 사용할 때, Exception이 발생하면 Call stack을 출력하여 디버깅이 필 codechacha.com 2022. 8. 30.
[Android] Popup(Dialog) 떠있는 상태에서 내부 값 변경 간단한 방법으로 바꿔줄 수 있는 방법이 있다. 팝업을 띄우는 주체(액티비티)에서 특정 조건일 때 팝업 내에 값이나 동작을 다르게 표현하고자한다면 runOnUiTread를 호출하여 Handler를 통해 값을 변경해줄 수 있다. runOnUiThread(()->{ new Handler().post(()->{ setContent(); //값 변경하는 메서드 }); }); 2022. 8. 24.
728x90