본문 바로가기
[android] targetSdk & compileSdk [android] targetSdk & compileSdk http://www.dummies.com/how-to/content/the-compile-sdk-minimum-sdk-and-target-sdk-version.html targetSdk 와 minSdk 와의 관계는 알았고..[android] minSdkVersion vs. targetSdkVersion targetSdk 와 compileSdk 의 관계가 명확하지 않아 한번 더 찾아보았다. 참조 링크에서는 minSdk, targetSdk, compileSdk 에 대해 예제까지 포함하여 잘 묘사했으니 디테일한 정보가 필요하면 참고하시길~ -compileSdk 는 실제 compile 할 때 쓰이는 sdk 의 version 을 명시한다.만약 2.2 를 .. 2017. 8. 27.
[Kotlin Tutorial] Kotlin 의 Type system #2 [Kotlin Tutorial] Kotlin 의 Type system #2 참조 : Kotlin in action 6.2. Primitive and other basic types 6.2.1. Primitive types: Int, Boolean, and more -Kotlin 은 primitive type 과 wrapper type 을 구분하지 않는다. -그렇다면 Int 가 object 라면 Kotlin 은 모든 primitive type 을 실제로 object 로 만드는가?당연히 그렇게 안 했다.compiler 가 대부분의 Int type 을 Java 의 primitive type 으로 변형시킨다.generic, collection 등은 원래 Java 의 Integer 형태만 담을 수 있으므로 이 경.. 2017. 8. 22.
[android] 추가된 유용한 annotations [android] 추가된 유용한 annotations http://tools.android.com/tech-docs/support-annotationshttps://developer.android.com/reference/android/support/annotation/package-summary.html -Android support library 19.1 version 에서 annotation 들을 추가했다. -이 녀석을 사용하려면 gradle 에 다음을 추가해야 한다. compile ‘com.android.support:support-annotations:20.0.0’ 여기서는 크게 3가지 형태의 annotation 을 제공한다. 1. Nullness annotattions2. Resource ty.. 2017. 8. 2.
[android] Annotation Processing 에 대한 이야기 [android] Annotation Processing 에 대한 이야기 http://hannesdorfmann.com/annotation-processing/annotationprocessing101 The Basics -annotation processing 은 compile time 에 annotation 을 확인하여 어떤 action 을 하는 것을 이야기한다. -annotation processing 은 Java 5 부터 가능하다.그러나 사용할만한 API 는 Java 6 에 release 되었다. -annotation processor 는 java code 나 byte code 를 input 으로 받아서 java 파일로 output 을 생성한다.이 생성된 output 은 compile time 에.. 2017. 7. 31.
[android] minSdkVersion vs. targetSdkVersion [android] minSdkVersion vs. targetSdkVersion http://developer.android.com/guide/topics/manifest/uses-sdk-element.html -minSdkVersion 은 해당 앱을 쓰기 위해 필요한 최소한의 API Level 을 명시한다.minSdkVersion 이 맞지 않으면 android 가 install 자체를 허용하지 않는다. 이 값은 설정되지 않으면 1 로 기본 설정된다. -targetSdkVersion 은 앱이 타겟팅하고 있는 API Level 을 말한다.targetSdkVersion 을 명시한다는 것은 minSdkVersion 이상에서 지원하는 어떤 기능을 사용하고자 위함이다.새로운 기능이 critical 하다면 minS.. 2017. 7. 29.
[android] Material Support Library [android] Material Support Library http://code.hootsuite.com/tips-and-tricks-for-android-material-support-libraryhttps://android-developers.googleblog.com/2014/10/material-design-on-android-checklist.html -material support lib 을 사용하기 위해서는 build.gradle 에 dependency 를 추가해주어야 한다. dependencies { compile 'com.android.support:appcompat-v7:21.0.+'} -App theme 도 바꿔주자. -Activity 도 ActionBarActivity 를 상속받.. 2017. 7. 8.
[Effective Java] 오버로딩(overloading)을 분별력 있게 사용하자. [Effective Java] 오버로딩(overloading)을 분별력 있게 사용하자. public class CollectionClassifier{public static String classify(Set s){return "Set";} public static String classify(List lst){return "List";} public static String classify(Collection c){return "Unknown Collection";} public static void main(String[] args){Collection[] collections = { new HashSet(), new ArrayList(), new HashMap().values() };for( Col.. 2017. 1. 16.
[android] Google Play Service 는 나쁜놈이었다. Google Play Service 는 나쁜놈이었다. Google Play Service 가 현재( 2015-09-12 기준 ) 7.x 버전까지 나왔다. 그런데 이 구글 플레이 서비스가 5.0 ~ 6.5 미만까지는 골치덩어리였다. 여러가지 기능들이 추가되어 편리하게 구글이 제공하는 기능, 서비스들을 제공받는 것은 좋았지만,dex 파일의 method 갯수 제약 측면에서 노답인 상황이었다. 한 dex 파일은 65k 개의 method 만 가질 수 있는데, Google Play Service 5.0 버전에서는 이 녀석 혼자 20k 이상의 method 를 가지고 있다. 그래서 구글 플레이 서비스 library 를 사용하면서다른 3rd party library 를 사용하면method limit 에 걸려 문제가 될 .. 2015. 9. 16.
Objective-C 고급 ( Advanced Objective-C ) Objective-C 고급 ( Advanced Objective-C ) 출처 : http://www.tutorialspoint.com/objective_c/objective_c_classes_objects.htm > - class 는 @interface 와 @implementation 의 두 파트로 나뉘어 정의된다. - 대부분이 objects 를 상속한다. - objects 는 메세지를 받기 때문에 receiver 로 불리기도 한다. - Properties 는 다른 class 에서의 access 를 접근하도록 도와준다. - ex) @interface Box:NSObject { double length; double breadth; } @property(nonatomic, readwrite) double .. 2015. 6. 18.
반응형