본문 바로가기
[Android Studio] Crash 났을 때 Log 날아가지 않도록 하기 [Android Studio] Crash 났을 때 Log 날아가지 않도록 하기 -"Android Monitor” tab -> 우상단의 Dropdown 에서 “Edit Filter Configuration” 선택 -debug 하는 package name 을 설정한 custom filter 를 하나 만들어 세팅. -Done!! android monitor, android studio, Crash, crash log, custom filter, debug, Done, dropdown, edit filter configuration, log, log 날아감, log 사라짐, logcat 초기화, pacakge name, [Android Studio] Crash 났을 때 Log 날아가지 않도록 하기 2018. 3. 8.
[android] 최고의 안드로이드 개발 원칙 [android] 최고의 안드로이드 개발 원칙 https://medium.freecodecamp.com/android-development-best-practices-83c94b027fd3#.fkhdpa3m0cf) 현재 제가 잘 못 하고 있는 것을 빨간 색 마킹 했습니다. ( 결론은 test 군요.. ) -Google 이 추천하는 Android architecture 를 사용하라. -코드 퀄리티를 항상 좋게 유지하라. -Unit test 를 항상 포함하라. JVM 에서 돌 수 있는 Java 코드들은 단말 위에서 테스트하는 것보다 훨씬 빠르다. Android dependency 가 있는 코드들은 Robolectric 을 사용하는 것을 추천한다. Mockito 도 좋다. -Functional UI test .. 2018. 3. 7.
[android] Resource Merging 에 대한 이야기.. [android] Resource Merging 에 대한 이야기.. http://tools.android.com/tech-docs/new-build-system/resource-merging-Gradle build 에서는 resource merge 에 대해 새로운 규칙이 적용된다. 기존의 build system 에서는 resource folder list 를 aapt(Android Asset Packaging Tool) 에 전달하며,나중에 전달된 것이 overlay 로 작동한다. ( 옵션을 통해서 override 가 아닌 새로운 추가로 작동할 수도 있었다. )overlay 로 작동한다는 것은 새로운 resource 에 대해서 추가되는 방식이다. Gradle 에서는 aapt 에 전달하기 전에 single,.. 2018. 3. 6.
[android] ArrayMap 과 SparseArray 를 이용한 최적화 [android] ArrayMap 과 SparseArray 를 이용한 최적화 https://medium.freecodecamp.com/android-app-optimization-using-arraymap-and-sparsearray-f2b4e2e3dc47#.pg0eea2cx ArrayMap vs. HashMap -ArrayMap 은 android.util.ArrayMap 과 android.support.v4.util.ArrayMap 두 가지 형태가 있다.뒤의 녀석은 compat 이슈를 위한 것. -ArrayMap 은 HashMap 보다 더 memory 최적화된 데이터 구조를 가진다.ArrayMap 은 array 를 이용해 mapping 을 관리한다.Hash integer 를 가지고 있는 array 와,.. 2018. 3. 5.
[android] Visual Voicemail [android] Visual Voicemail http://source.android.com/devices/tech/config/voicemail.html -Android 6.0 (MOS) 부터 VVM (Visual Voice Mail) 가 Dialer 에 통합되어 나왔다.VVM 은 user 가 voicemail 을 phone call 없이 확인할 수 있게 만든다.User 는 message list 를 볼 수 있고, 어떤 순서로든 들을 수 있고, 원한다면 삭제도 가능하다. -Android 7.0 (NOS) 부터는 다음과 같은 config param 이 추가되었다. Prefetching voicemail : KEY_VVM_PREFETCH_BOOLEANCelluar data connection : KEY_.. 2018. 3. 4.
[android] ConstraintLayout Tutorial [android] ConstraintLayout Tutorial https://developer.android.com/training/constraint-layout/index.html -ConstraintLayout 은 RelativeLayout 과 매우 비슷하게 Flat 한 view hierarchy 를 만들 수 있으면서도. 조금 더 유연하게 사용할 수 있다.그리고 Android Studio Layout Editor 를 통해 쉽게 설정할 수도 있어 편리하다. ( 이것을 key 로 미는 듯 ) -여기서 궁금한 거 하나 더!!Flat view hierarchy 는 알겠는데 그만큼 성능도 좋을까?결론은 성능도 좋다. ( 다른 layout 에 비해 약 10% 이상 빠르다 )https://medium.com/.. 2018. 3. 3.
[android] Bundled Notification Tutorial -Bundled Notification 은 Android Wear 의 Stacking Notification 과 비슷한 맥락이다.Notification 이 하나의 Title 밑에 List 형태로 붙어서 나온다.그리고 이 녀석을 클릭하면, Notification 이 확장되서 개개별 Notification 으로 나뉘어 나온다. -Bundled Notification 은 Nougat 부터 사용 가능하다.Nougat 이전 버전에서는 아래와 같이 나온다. -Bundled Notification 의 핵심은 “Group” 이라는 녀석과 “GroupSummary” 이란 녀석이다.private Notification buildNotification(Message message, String groupKey){ retur.. 2018. 3. 2.
[android] Messaging Style Notification Tutorial https://blog.stylingandroid.com/nougat-messaging-style-notifications/ -Bundled Notification 이란 녀석은 Notification 들을 각각 만들고, Notification framework 를 사용하여 grouping 을 하는 개념이라면,Messaging Style Notification 은 Notification 하나에 여러 Message 를 담는 것을 의미한다. -Messaging Style Notification 은 Nougat 부터 사용 가능하다. -NotificationCompay.MessagingStyle messagingStyle = buildMessageList(messages);Notification notificat.. 2018. 3. 1.
[android] Direct Reply Tutorial https://blog.stylingandroid.com/nougat-direct-reply/ -Direct Reply 는 Notification 으로부터 App Launch 없이 바로 답장을 보내는 기능이다.Message App 에 한정되지 않고 모든 앱이 사용 가능하다. -Direct Reply 는 Android N Nougat 버전에 한해 사용 가능하다. -Direct Reply 의 키는, Notification 을 만들 때 remoteInput 을 추가하는 것이다.// notification 생성private static final String REPLY_KEY = “reply”;private static final String REPLY_LABEL = “Input reply”; // Action.. 2018. 2. 28.
반응형