본문 바로가기
[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] 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] AbstractAccountAuthenticator 에 대해 알아보자. [android] AbstractAccountAuthenticator 에 대해 알아보자. http://developer.android.com/reference/android/accounts/AbstractAccountAuthenticator.html - 계정을 생성하기 위해서는 AbstractAccountAuthenticator 를 구현한 녀석을 가지고 있어야 한다. 또한 android.accounts.AccountAuthenticator action 을 처리하는 Service 도 구현해야 한다. 해당 service 에서는 Authenticator 의 getIBinder() 를 수행한 녀석을 IBinder 로 return 해주어야 한다. - AuthenticationService 는 다음과 같은 inte.. 2017. 7. 6.
[iOS Study] 간단한 iOS 앱 만들기 [iOS Study] 간단한 iOS 앱 만들기 출처 : 아론 힐리가스의 iOS 프로그래밍 -모델과 뷰는 서로 통신하지 않는다. -XIB 은 “집” 이라고 읽는다.XML Interface Builder 를 의미한다. -Xcode 에서 좌측 section 을 [네비게이터 영역], 우측 section 을 [유틸리티 영역] 이라고 부른다.유틸리티 영역의 상단의 [인스펙터(inspector)] 와 하단의 [라이브러리(library)] 로 구성된다. -프로젝트 네비게이터의 그룹은 순전히 파일을 구성하는 데만 사용되고 실제 파일 시스템에 디렉터리 형태로 만들어지지는 않는다. -인터페이스 빌더는 편집기 영역을 두 부분으로 나눈다.왼편의 [독 (dock)]과 오른편의 [캔버스 (canvas)]이다. 독은 XIB 파일 내.. 2016. 2. 12.
[android] authenticator 관련 Tutorial [android] authenticator 관련 Tutorial 참조 : http://cranix.net/346 http://cranix.net/347 http://cranix.net/349 http://cranix.net/350 Authenticator Service - 안드로이드 설정의 Accounts & Sync 메뉴의 기능 제공을 위해서 필요하다. - @ Manifest - @ xml/authenticator.xml - @AuthenticationService.java public class AuthenticationService extends Service { @Override public void onCreate() { // TODO Auto-generated method stub } @Ove.. 2015. 12. 5.
[android] process 이야기 안드로이드, process 이야기. System 이 process 를 죽였을 경우, 2.2 ( Froyo ) 이전 버전에서는 무조건 새로 시작하였고, 그 이후로는 onCreate + Bundle 로 다시 state 를 복구해준다. Activity 들은 모두 destroy 되고 다시 재생성되는 그런 패턴이다. 메모리가 부족하거나 사용안한지 30분이 지나거나 하는 조건 하에 destroy 된다. 2.2, 30분, activity, Android, Bundle, Destroy, froyo, onCreate, process, process kill, state, state 복구, System, 메모리 부족, 안드로이드, 재생성, 프로세스 2013. 10. 3.
[android] camera take and crop ( 사진 찍으면서 crop 까지 하기 ) 안드로이드, 사진 찍으면서 crop 까지 하기 갤러리로부터 이미지 선택하며 크롭하는 방법. Camera 로 사진을 찍으면서 Crop 까지 하는 sample code. private static final int REQUEST_CODE_PROFILE_IMAGE_CAPTURE = 545;private static final int REQUEST_CODE_PROFILE_IMAGE_CROP = 2103; private static final String TYPE_IMAGE = "image/*";private static final int PROFILE_IMAGE_ASPECT_X = 3;private static final int PROFILE_IMAGE_ASPECT_Y = 1;private static fina.. 2013. 8. 5.
[android] fragment 간 통신. (Communication) 안드로이드, Fragment 간 통신. (Communication) Fragment 를 재사용가능하게 하기 위해서는 self-contained, 즉 modular 화 되어야 한다. 재사용가능한 fragment 는 그 내용의 변경을 위해서 fragment 끼리 통신(communication)을 해야할 경우가 있는데, 절대 직접적으로 해서는 안된다. 반드시 연관된 activity 를 통해 이야기해야 한다. 1. Inteface 정의 및 구현 Fragment 에서의 event 발생에 대해 activity 에 전달하기 위해서, Fragment 에서 interface 를 정의하고, 이 interface 를 activity 에서 구현해준다. 2. 다른 Fragment 에 msg 전달하기. findFragmentBy.. 2013. 7. 14.
반응형