context(2)
-
Android 개념 정리 - 2 (Activity 4대 컴포넌트, 명시적 Intent & 암시적 Intent, ANR, ContentResolver & ContentProvider, dp & sp & px, Process & Thread, Context & ApplicationContext & ActivityContext)
Android 4대 컴포넌트 Activity - application의 화면 구성 컴포넌트 - 이동시 스택 구조로 쌓임 Service - application의 background로 실행되는 컴포넌트 - 화면이 없음, 네트워크 통신, DB 통신 BroadCast Receiver - application에서 특정한 이벤트를 받아 반응하는 컴포넌트 - 관심 있는 이벤트가 발생할 시 이러한 브로드 캐스트가 전송 - 정적 브로드캐스트란 매니패스트에 등록하여 사용 - 동적 브로드캐스트란 콘텍스트에 등록하여 사용 Content Provider - application내에서 사용할 수 있는 데이터를 공유하기 위한 컴포넌트 - 중앙 저장소의 역할 & 액세스 관리 - 생명주기 없음, 다른 앱의 데이터 변경 가능, 데이터..
2022.02.01 -
[Android/안드로이드/Context] ApplicationContext vs ActivityContext ?!!
갑자기 이 질문을 받았을 때 얼마나 당황했는지.. 반성의 의미로 다시 차근차근 정리해보기 먼저, Context 란? developers 사이트에 의한 개념은 이렇다 interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcastin..
2020.05.29