본문 바로가기
[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.
Glide - Android Image Loading Open Source Library. Glide - Android Image Loading Open Source Library. https://github.com/bumptech/glide Volley 를 기반으로 Http request 를 하면서, resizing, memory, disk caching 등을 지원한다. Main 목적은 List 에서 이미지를 아주아주 스무드하게 보여주는 것. Volley 를 기반으로 했다는 것에 뭔가 신뢰가 더 간다는 점. 다음에 이미지 관련작업에 이 녀석을 써보야겠다. Android, android image loading, disk cache, glide, Glide - Android Image Loading Open Source Library., http request, list, Memory, mem.. 2014. 5. 30.
[android] Volley 를 이용한 동영상 업로드 테스트 결과. android, Volley 를 이용한 동영상 업로드 테스트 결과. 테스트 환경 국내 android major 단말들이라고 할 수 있는 Galaxy S 시리즈와 Note 1 을 대상으로 삼았다.동영상 업로드 방법은 Volley 와 MultipartRequest 를 이용한 일시 업로드이다. Galaxy S / hdpi / 2.3.4 - 12.5M 동영상 ( 30초 ) -process mem = 64MBruntime maxMemory = 64MBruntime totalMemory = 5MBruntime freeMemory = 2MBnative threshold = 26MBnative availMem = 83MB -Out of memory on a 26310336-byte allocation. java.lan.. 2014. 4. 20.
[Android] 제대로 된 REST API 를 구축해보자. [Android] 제대로 된 REST API 를 구축해보자. reference : http://mytechaddiction.blogspot.kr/2014/02/rest-interaction-in-android.html?utm_source=Android+Weekly&utm_campaign=4254f212fb-Android_Weekly_91&utm_medium=email&utm_term=0_4eb677ad19-4254f212fb-337262377 Anti-Patterns 1. UI Thread 에서 API Call. 2. Activity 나 Fragment 등에서 Thread 를 만들어 요청 3. 결과를 Memory 에만 저장하여 사용. Decouple the UI from the http call. Act.. 2014. 3. 18.
[android] volley library 에 대해 알아보자! 안드로이드, Volley Library 에 대해 알아보자! Android Volley Libary 의 장점 1. 모든 network request 를 자동으로 스케쥴링한다.2. 보이지 않게 disk, memory caching 을 한다.3. 강력한 request 취소 API 도 제공한다.4. customization 도 쉽게 할 수 있다.5. debugging 과 tracing tool 을 제공한다. 써보고 싶어! library 를 구할 수 있는 주소를 알려줘. git clone https://android.googlesource.com/platform/frameworks/volley 2개의 main class. 1. Request queuerequest 를 dispatch 할 때 사용되는 녀석.보통 s.. 2013. 12. 10.
[android] Volley URL related issue( bug ) at GingerBread. - java.io.IOException: Malformed ipv6 address: android, Volley URL related issue(bug) at GingerBread. - java.io.IOException: Malformed ipv6 address: [En] If you use Volley network library with GingerBread and the below version devices, you might encounter URLMalformedException with this kind of message. java.io.IOException: Malformed ipv6 address: It it known issue about the URL class. The problem happens when the host part contains port num.. 2013. 10. 5.
[android] Volley java.io.IOException: Received authentication challenge is null 안드로이드, Volley library java.io.IOException: Received authentication challenge is null Volley library 를 사용하는데 위와 같은 메세지가 나오는 문제가 자꾸 발생한다.그 이유를 분석해보니 Volley 에서는 200, 204 ( No Content ) 를 제외한 모든 response code 를 error 로 치부한다. 저 에러는 authentication 에 관련된 403 response code 가 왔을 때 volley 가 뿜어내는 error 이다.그러니 403 이 발생하지 않도록 하면 되는 것. 구글링 하다 보니 Timestamp 에 문제가 발생하면 서버쪽에서 403 에러코드를 return 하는 경우가 많다고 한다. 즉 req.. 2013. 8. 1.
반응형