본문 바로가기
[android] Pie (9) 의 Power management [android] Pie (9) 의 Power management https://developer.android.com/about/versions/pie/power -Android 9 (API 28) 에서는 전원 관리를 위한 새로운 feature 가 추가되었다.이 전원 관리 기능은 2가지 카테고리로 나뉜다. 1. App standby buckets 시스템이 단말의 CPU, 배터리 등의 리소스 사용을 유저의 사용 패턴에 의해 제한한다. 2. Battery saver 개선 Battery saver 가 켜져 있을 때 시스템이 모든 앱에 대해 제한을 건다. 이건 기존에 있던 기능인데, Pie(9) 에서 개선되었다. * App Standby Buckets -얼마나 최근에 얼마나 자주 앱이 사용되었는지에 대한 유저.. 2019. 7. 29.
[android] concurrent document에 대해 알아본다. [android] concurrent document에 대해 알아본다. https://www.youtube.com/watch?v=4Y3JMvbcxQEhttps://developer.android.com/guide/topics/manifest/activity-element#dlmode -안드로이드 LOS 부터 concurrent document 라는 새념이 생겼다.이는 런타임 시에 앱의 테스크를 몇 개라도 동적으로 생성할 수 있게 된다. -concurrent document 를 적극 활용하는 대표적 앱은 google drive 가 있겠다. -concurrent document 를 하는 방법은 두가지가 있다.첫째는 startActivity 시 Intent 의 flag 로 FLAG_ACTIVITY_NEW_DO.. 2019. 4. 25.
[android] Mockito 맛보기 ( test library ) https://www.tutorialspoint.com/mockito/mockito_overview.htm http://www.vogella.com/tutorials/Mockito/article.html https://static.javadoc.io/org.mockito/mockito-core/2.12.0/org/mockito/Mockito.html#mockito - Mockito 는 JUnit 위에서 동작하며 Mocking 과 Verification, Stubbing 을 도와주는 프레임워크이다. ( 이 자체가 testing 하는 framework 는 아니다!! ) Mockito 를 사용하면 Mock 을 만들어서 external dependency 를 제거할 수 있고, code 가 제대로 수행하는지 검증.. 2018. 12. 7.
반응형