liebus
4일차 본문
중심내용 intent 에 대하여 - intent의 개념 절때 중요
intent / bundle / activity 의 관계
kandroid book 5장 내용 intent에 대하여 필독 하길
intent object
startActivity
broadcastIntent
startService(Intent)
bindService(Intent, ServiceConnection, flasgs)
bundle 의 개념
Action중 아래로 구분해서
Broadcast - 시스템에서 전송되는 message가 기본
Activity
starting activities and getting results
바인더, 비동기쉐어드메로리, 포직스메세지큐
커널 - ppt4
동기화 - ppt5
18장 - 멀티 쓰레드
Handler class, message queue
http://developer.android.com/reference/android/os/Handler.html MultiThreading 곤련 그림 참조
Handle's MessageQueu
obtainMessage() sendMessage() handleMessage()
19~26은 차후에 진행
27장 Location Services -
http://www.mygeoposition.com 에 가면 나의 GPS 좌표를 알려줌
28장 - Map View
Google Maps External Lib includ
com.google.android.maps package 추가
com.google.android.maps.MapView use...
Maps API Key 를 받아야 사용이 가능하다
key 받는 방법
http://developer.android.com/guide/tutorials/views/hello-mapview.html 참고
1. Eclipse windows-proference-Android-Build 에서 debug.keystore 파일의 위치를 확인
예) C:\Documents and Settings\userId\.android\debug.keystore
2. 콘솔에
keytool -list -keystore debug.keystore 실행
-> keytool 은 java/bin에 위치 해 있음 path 잡아 주고 실행
예)C:\> keytool -list -keystore "C:\Documents and ettings\userId\.android\debug.keystore"
이를 실행 해서 MD5 지문을 득 함
예) XX:CC:DD:EE:11:AA:BB:22:33:44:55:AB:BA:AC:CA:AD
만약 위의 keytool 을 실행 하는대 keystore값을 처 넣으라는 지랄 같은 메세지가 나오면
뒤에 -storepass android 옵션을 붙여 준다.
3. http://code.google.com/intl/ko/android/maps-api-signup.html 가서
2에서 득한 키 값을 처 넣으면 API Key 값이 나옴
예) 0jRCUmdxAiYaOZhaXJDFwtwG-atp2hLV_2o9Oxw
4. 득한 값을 main.xml 에 아래 값을 넣으면 됨
예)
<com.google.android.maps.MapView
android:id="@+id/myMap"
android:apiKey="0jRCUmdxAiYaOZhaXJDFwtwG-atp2hLV_2o9Oxw"
android:layout_width="fill_parent"
android:layout_height="310px"
android:clickable="true"
android:layout_margin="3px"
/>
위에 API Key 값이 콘솔에서 쌩지랄 해서 얻은 값임
maps-overview.pdf 참조
Comments