본문 바로가기
[android] background work(AlarmManager) 수행에 대한 이야기 [android] background work(AlarmManager) 수행에 대한 이야기 https://plus.google.com/+AndroidDevelopers/posts/GdNrQciPwqo -구버전 안드로이드에서는 background work 를 위해서 보통 AlarmManager 를 사용했다.AlarmManager 를 사용하면 앱이 foreground 가 아닌 상황에서도 미래 특정 시점에 어떤 일을 하도록 scheduling 을 할 수 있다. -60초 이내에 무언가를 수행하게 하고 싶다면 AlarmManager 는 best choice 가 아닐 수 있다.이 때는 Handler 를 이용해보도록 하자. -API 21+ (5.0 LOS) 부터는 setAlrmClock() API 를 통해서 user.. 2019. 1. 27.
[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] xml 의  tool 을 사용하자 [android] xml 의 tool 을 사용하자 https://medium.com/sebs-top-tips/tools-of-the-trade-part-1-f3c1c73de898https://developer.android.com/studio/write/tool-attributes.html -xmlns:tools="http://schemas.android.com/tools" aapt 는 tools: attribute 를 ignore 한다.그래서 실제 apk 에는 들어가지 않는다. - 위와 같이 tools: 를 사용하면 실제 xml 에서 pre draw 할 때는 tools:text 가 android:text 처럼 작동하지만,apk 는 들어가지 않는다. aapt( android asset packaging .. 2017. 5. 30.
[android] how to apply actionBarStyle and android:actionBarStyle both? android, how to apply actionBarStyle and android:actionBarStyle both? android developer reference 문서를 보면,actionbar 에 custom style 을 적용하면서 compatibility 이슈를 동시에 해결하려면android:actionBarStyle 과 actionBarStyle 을 동시에 적용할 것을 설명해준다. 하지만, Eclipse 에서 실제로 적용해보면 인식할 수 없다는 xml error 가 발생한다. 이는 다음과 같이 해결할 수 있다. 1. tools 라는 name space 를 정의해준다. xmlns:tools="http://schemas.android.com/tools" 2. android:actionBar.. 2014. 3. 5.
반응형