Android Kotlin Basics in Kotlin | Android Basics in Kotlin - Intro | Android Developers
Build your first Android apps with the Kotlin programming language.
developer.android.com
- 출력은 println으로 하되 print를 쓰면 \n없이
- val로 변수 생성하면 변경 불가. 보통은 var로
- for 대신에 repeat로 반복 가능
- 함수는 이런 식으로 사용
fun printBorder(border: String, timesToRepeat: Int) {
repeat(timesToRepeat) {
print(border)
}
println()
}
parameter는 이런 식으로 선언
- 또, 새로운 앱을 만들어보면서 minimum SDK에 대해서 알게 되었다.
간단하게 말하면 얼마나 예전 안드로이드 version까지 지원해줄 것이냐는 의미이다.
해당 블로그에서는 23또는 26을 쓰기를 권장하고 있다. 근데 내가 배우는 페이지에서는 KitKat을 권장하고 있다...ㅎㅎ
2021년 7월 현재, minSdkVersion 몇으로 해야 할까?
minSdkVersion 과연 몇으로 해야할지 정해드립니다. 다음 코드는 build.gradle의 코드 일부입니다. build.gradle의 minsdkversion은 내 앱을 설치할 수 있는 기기버전을 정하는 인자인데요, 낮으면 낮을수록 더
cliearl.github.io
- 안드로이드 스튜디오에서는 unit test와 instrumentation test를 제공한다고 한다.
unit test는 뭔지 알겠는 instrumentation test는 뭔지 감이 안온다. 여기서는 어떤 class라고 말해주기는 하는데 나중에 직접 써봐야 알 수 있을 것 같다.
Build instrumented tests | Android Developers
Build instrumented tests Instrumented tests run on Android devices, whether physical or emulated. As such, they can take advantage of the Android framework APIs. Instrumented tests therefore provide more fidelity than local tests, though they run much more
developer.android.com
'안드로이드 앱개발' 카테고리의 다른 글
[SimpleChatApp] 3일차 (0) | 2023.03.20 |
---|---|
[SimpleChatApp] 2일차 (0) | 2023.03.17 |
[SimpleChatApp] 1일차 (0) | 2023.03.16 |
[SimpleChatApp] 0일차 (0) | 2023.03.16 |
Kotlin 도전기 (0) | 2022.06.23 |