I'm confused about the concept of the Context
class. I see that it's a base class of Activity
, but the Android docs also mentions the Context storing global information about the app environment. So in my app which has 3 activities, does that mean I have 3 distinct Context objects, or do they actually refer to 1 entity?
Also, what is the lifetime of a Context object- does it live until the last component of this activity's process is garbage collected?