Skip to Main Content
Head First Android Development: 개념과 구조를 머릿속에 그려주는 안드로이드 개발 입문서(개정판)
book

Head First Android Development: 개념과 구조를 머릿속에 그려주는 안드로이드 개발 입문서(개정판)

by 우정은, 돈 그리피스, 데이비드 그리피스
July 2018
Beginner content levelBeginner
936 pages
26h 17m
Korean
Hanbit Media, Inc.
Content preview from Head First Android Development: 개념과 구조를 머릿속에 그려주는 안드로이드 개발 입문서(개정판)
794 Chapter 18
생명주기 메서드
서비스는 생명주기 메서드를 상속받습니다
YourStartedService
onHandleIntent(Intent)
yourMethod()
Service
onCreate()
onStartCommand()
onDestroy()
ContextWrapper
Context
Context 추상 클래스
(android.content.Context)
애플리케이션 환경의 전역 정보를 제공하는 인터페이스. 애플리케이션의
리소스, 클래스, 동작에 접근할 수 있습니다.
ContextWrapper 클래스
(android.content.ContextWrapper)
Context
의 프록시 구현.
Service 클래스
(android.app.Service)
Service
클래스는 생명주기 메서드 기본 버전을 구현합니다. 더 자세한
내용은
19
장에서 확인할 수 있습니다.
YourStartedService 클래스
(com.hfad.foo)
시작된 서비스의 대부분 동작은 우리 서비스가 상속받은 상위 클래스의
메서드에서 처리합니다. 필요한 메서드를 오버라이드하고 공개 생성자를
추가하는 것이 우리가 해야 할 일입니다.
앞서 살펴본 것처럼 시작된 서비스는
android
.
app
.
IntentService
클래스를 상속받습니다. 이 클래스 덕분에 서비스가 안드로이드 생명주기
메서드 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Head First C# (개정3판): 상상을 초월하는 객체지향 C# 학습법

Head First C# (개정3판): 상상을 초월하는 객체지향 C# 학습법

최길우, 앤드류 스텔만, 제니퍼 그린

Publisher Resources

ISBN: 9791162240953