관리 메뉴

드럼치는 프로그래머

[안드로이드] getBaseContext()와 getApplicationContext()의 차이 본문

★─Programing/☆─Android

[안드로이드] getBaseContext()와 getApplicationContext()의 차이

드럼치는한동이 2013. 5. 21. 09:56

- getBaseContext()
: Activity와 관련되었을 때 사용

 

- getApplicationContext()
: Service와 관련되었을 때 사용

 

 

[출처] http://success206.tistory.com/16

Comments