Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Akhter Rasool
Akhter Rasool
8,597 Points

Context class in android

What is context class in android please explain

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

Context is essentially a hook or gateway to the Android OS that allows you to obtain resources from the system and information about the current environment you're running in. Because of that function, it serves as the base class for a number of Android components such as Activity, Service, and Application, and allows them to interact with the OS.