In Android programming, what exactly is a Context
class and what is it used for?
I read about it on the developer site, but I am unable to understand it
Context
represents a handle to get environment data .Context
class itself is declared as abstract, whose implementation is provided by the android OS.Context
is like remote of a TV & channel's in the television are resources, services, etc.
What can you do with it ?
Ways to get context :
getApplicationContext()
getContext()
getBaseContext()