What is the difference between activity context and application context?

Nam Lê

Member
What is the difference between activity context and application context?
Answer
7 Answers. They are both instances of Context, but the application instance is tied to the lifecycle of the application, while the Activity instance is tied to the lifecycle of an Activity. Thus, they have access to different information about the application environment.
 

Tìm kiếm

Back
Top