Welcome to the Treehouse Community
Looking to learn something new?
sahil shokeen1,579 Points
here when we start new activity we create object of intent class but i am not able to understand this context concept....please explain!!
One of the ways I see the Context is what is holding everything, displaying it, and tracking its state. For myself, that tends to almost always be an Activity. This works since Activity is a descendent of the Context class. Your application as a whole is another context.
One way to look at that is that all Contexts are Objects, but not all Objects are Contexts. For example, a View is a type of Object, but it is not a type of Context. In other words, the Context class is a descendent of the Object class. Since Activities are a descendent of the Context class, Activities are also a descendent of the Object class(in fact almost everything in Java is a descendent of the Object class).