본문 바로가기
[Kotlin] Coroutines tutorial - async code 쉽게 짜기 [Kotlin] Coroutines tutorial - async code 쉽게 짜기 https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md -Kotlin coroutines 는 async code 를 sync code 의 구조를 바꾸지 않고 짤 수 있게 도와준다. Coroutine Basics - modified내용이 바뀌어서 새로 정리하였습니다. -> Coroutine Basics ( 코루틴 기초 ) 예전 기록을 보고 싶으시면 아래 "더보기" 버튼을 눌러주세요!Hello World Coroutine -launch{ delay(1000L) println(“World!”)}println(“Hello,”)Thread.slee.. 2018. 11. 25.
[Android] Overview screen 을 꾸며보세요. [Android] Overview screen 을 꾸며보세요. http://www.bignerdranch.com/blog/polishing-your-Android-overview-screen-entry - Overview Screen( Home key long press 혹은 multi tasking button ) 을 Lollipop 부터는 꾸밀 수 있게 되었다.새로운 API 를 이용해 icon, title, top bar 색상 등을 수정할 수 있다. - 별다른 설정을 하지 않으면 android:icon, android:label, android:theme 을 통해 icon, title, top bar color 가 각각 정해진다. 이 값들은 base activity( launch, main ) 로부터.. 2017. 4. 11.
[android] Binder 와 Death Recipients 에 대한 이해 [android] Binder 와 Death Recipients 에 대한 이해 안드로이드는 기본적으로 multi-task 를 위해 만들어진 앱이다. 그래서 초창기에는 user 가 명시적으로 process 를 죽이지 못하도록 만들고, main activity 를 종료했을 때는 아주 낮은 priority 로 계속 process 를 살려둔다. 왜 그렇게 하냐? app switching 이 일어날 때 process 를 처음부터 만들려고 하면 너무 많은 시간이 들기 때문이다. 그럼 process 들을 유지함으로서 메모리가 부족하면 어떻게 하냐? 해당 process 를 최소한의 정보를 보존한 후 죽인다. 그리고 해당 process 가 다시 launch 되면 최소한의 정보를 통해 어느 정도 선까지는 상태복구를 해준다.. 2015. 12. 29.
illegal configuration launch screens may not have connections illegal configuration launch screens may not have connections 위의 에러를 마딱뜨렸다면 당신은 아마도 LaunchScreen.xib 에 뭔가를 진행했을 것이다.LaunchScreen.xib 는 다른 목적으로 설계된 녀석으로( iOS8 & Xcode 6 에서 등장 ) 이 녀석 말고,무언가를 만들고 싶다면 새롭게 xib 를 만들어서 사용해야 한다. 기존에 LaunchScreen.xib 에 연결한 무언가는 다 끊어줘야 제대로 컴파일 된다. Configuration, Illegal, illegal configuration launch screens may not have connections, ios8, launch, launchscreen.xib, screens.. 2015. 6. 20.
반응형