안드로이드 SDK 구조 및 컴포넌트 종류

2010. 5. 26. 19:04프로그래밍일반

1. D:\Dev\Tool\android-sdk-windows 폴더 안을 살펴보자
(위 내용은 안드로이드 사이트에도 있다.)
add-ons :  확장기능이 있다. 안의 doc 를 보면 Map관련 API가 눈에 띈다.
docs : 개발에 필요한 풀 Document(자바를 하신분들이라면 얼마나 중요한 문서인지 아실껍니다.)
platforms: 안드로이드 플랫폼 버전들이 있습니다.( 3~8까지 있군요)
           안에 보면 실제 모바일 OS  에 있는 이미지들이 있는것을 볼수 있습니다.
samples : 말그대로 예제들(ex)메모장)
tools : 개발에 필요한 툴들이 있습니다.(메모리 프로파일링, 에뮬레이터 등등요)

어떤 구조로 되어있는지 파악하는건 기본이다.

2. 에뮬레이터 사용법
   (http://developer.android.com/guide/developing/tools/emulator.html)

Emulated Device Key Keyboard Key
Home HOME
Menu (left softkey) F2 or Page-up button
Star (right softkey) Shift-F2 or Page Down
Back ESC
Call/dial button F3
Hangup/end call button F4
Search F5
Power button F7
Audio volume up button KEYPAD_PLUS, Ctrl-5
Audio volume down button KEYPAD_MINUS, Ctrl-F6
Camera button Ctrl-KEYPAD_5, Ctrl-F3
Switch to previous layout orientation (for example, portrait, landscape) KEYPAD_7, Ctrl-F11
Switch to next layout orientation (for example, portrait, landscape) KEYPAD_9, Ctrl-F12
Toggle cell networking on/off F8
Toggle code profiling F9 (only with -trace startup option)
Toggle fullscreen mode Alt-Enter
Toggle trackball mode F6
Enter trackball mode temporarily (while key is pressed) Delete
DPad left/up/right/down KEYPAD_4/8/6/2
DPad center click KEYPAD_5
Onion alpha increase/decrease KEYPAD_MULTIPLY(*) / KEYPAD_DIVIDE(/)


3. 여러 에뮬레이터 옵션들
   Eclipse에서  Window/Preference/Android 에 가면 Launch에 가면 옵션을 설정할수 있다.
   예를 들어 -cpu-delay 0 -netdelay 0  같은 옵션을 줄 수 있다.

4. 컴포넌트 설명
Activities : 비주얼 GUI에 관련된 모든것(예)GUI Form)
Services : 화면에 보이지 않은채 실행(예>알림)
Content Providers : 데이터 저장소
Intents : 메시지 전달 프레임워크(원하는 대상에게 전달)
Broadcast Receivers : 인텐트 소비자, 이를 등록하면 인텐트를 통해 메세지를 수신
Notifications : 사용자 알림(소리,깜빡임,아이콘표시등)