일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- ArrayMap
- android enum
- so파일 동적로딩
- gitignore
- HashMap vs ArrayMap
- RxJava Programming
- callstack 출력
- Dagger2란
- Service 팁
- APK로딩
- mitmproxy
- gitignore작성법
- lufs
- corePoolSize
- MediaDataSource
- java callstack
- APK 동적로딩
- 오픈소스라이선스
- RxJava 스터디
- android network
- Replaygain
- 네트워크 디버깅
- Intent String 변환
- enum performance
- Service관리
- 음량표준화
- convert string to intent
- print callstack
- convert Intent to string
- BlockingQueue Capacity
- Today
- Total
목록개발/안드로이드 개발 (14)
일상&개발 로그
개발 하다보면 디버깅을 할 수 없을 때가 있습니다~ 그러면 only 로깅만으로 디버그를 해야 하는데 아주 골치가 아픔ㅠ 그럴 때 CallStack을 한눈에 볼 수 있어 아주 편리합니다. StackTraceElement[] stes = new Throwable().getStackTrace(); for( StackTraceElement ste : stes ) { Log.e(TAG, "STACKTRACE - className : " + ste.getClassName() + ", methodName : " + ste.getMethodName() + ", line : " + ste.getLineNumber()); }
arm-eabi는 어플리케이션이 설치될 때 결정된다.만약 설치될 타이밍에 so파일을 가지고 있지 않으면, 단말 OS의 bit를 따라간다.(64bit단말에 설치 시 64bit모드로, 32bit단말에 설치 시 32bit모드로 실행된다.)혹시 64bit단말에서 32bit so파일을 동적로딩 할 일이 생기면, 32bit 더미 so파일을 추가하여 어플리케이션이 32bit모드로 실행되도록 해야 한다.
예전에 TextView에 ScrollView를 덧씌워서 했었는데 이런 간편한 방법이... layout.xml파일의 TextView 항목에 android:maxLines="라인 수" android:scrollbars="vertical" 그리고 onCreate에서 textView.setMovementMethod(new ScrollingMovementMethod()); 하면 된다.
Dagger2란?Dagger is a fully static, compile-time dependency injection framework for both Java and Android. "정적으로 Compile time에 의존성주입을 해주는 framework." HistoryDagger1은 Guice에서 영감을 받아 Square사 에서 만듦. Dagger2는 구글에서 Dagger1을 이어받아 만듦. AutoValue프로젝트에 영감을 받음. 17/01/16 현재 최신버전은 2.8 Dagger1과 Dagger2의 비교Dagger1의 경우 Reflection을 이용해서 Graph를 합성하기 때문에 런타임에 비효율이 발생 & 디버깅이 어려움. Dagger2는 Reflection을 전혀 사용하지 않기 때문에 ..