본문 바로가기

Android 기법25

[Easy Politic] 개인정보 처리 방침 [개인정보처리방침] 지도 사용을 위해 위치 정보 권한을 요청합니다. 사용자의 정보를 수집하지 않습니다. [필요한 권한] android.permission.INTERNET android.permission.ACCESS_FINE_LOCATION android.permission.ACCESS_COARSE_LOCATION 2017. 12. 17.
[Android]ViewPager with bottom dots ViewPager와 하단에 . . . Indicator를 만들어 봤습니다.쉽게 만드는 ViewPager Indicator 입니다. [activity_main.xml] 123456789101112131415161718192021222324 Colored by Color Scriptercs tabIndicatorHeight는 Indicator 하단에 _ 줄이 나타나지 않게 하려고 높이를 0dp로 설정 [pager_adapter.xml] 12345678910111213 Colored by Color Scriptercs . . . 모양으로 만들어 주기 위한 리소스 [default_dot.xml] 123456789101112 Colored by Color Scriptercs [selected_dot.xml] 12.. 2017. 7. 31.
[Android]IntentService와 BroadcastReceiver를 통해 Background Thread로 처리하기 이번에 IntentService를 이용해 Background Thread에서 작업을 수행해봤습니다.샘플 예제에서는 SQLite로 약간의 DB 작업을 하고, 구글 맵을 이용해 위도 경도를 구하고이것을 이용해 Geocoder로 주소값을 구합니다. [샘플 예제]https://github.com/PuzzleLeaf/Android-MiniProject3 DB작업에서는 데이터가 몇 개 없어서 괜찮은데Geocoder에서는 Main Thread에서 작업하면 약간의 멈춤 현상이 발생합니다. 그래서 이러한 작업들을 처리하는 IntentService를 상속한 클래스를 생성합니다. 123456789101112public class DbService extends IntentService { public DbService() .. 2017. 7. 23.
[Android]Glide와 Picasso 이번에는 Glide와 Picasso에 대해서 한번 알아보자 이미지 로드 라이브러리 JAVA에서 네트워크에서 이미지를 가져오려면 네트워크 관련 소스를 이용하여 받아와야 한다. 그리고 이미지 캐싱, 로드 실패시 처리, 가져온 이미지 프로세싱 등등의 많은 작업들을 이미지 로드 라이브러리로 쉽게 처리할 수 있다. https://github.com/bumptech/glide[Glide] 12345dependencies { ... compile 'com.github.bumptech.glide:glide:4.0.0-RC1' ...}Colored by Color Scriptercs Glide의 기본 사용방법은 다음과 같다. 1 Glide.with(this).load(Image).into(ImageView);cs Gli.. 2017. 7. 19.