On Android, a Context is used for many operations but mostly to load and access resources. This is why all the widgets receive a Context parameter in their constructor. In a regular Android application, you usually have two kinds of Context, Activity and Application.
Typically each Activity will have it's own Context and the Application itself will have a Context.
A context allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcasting and receiving intents, etc.
http://stackoverflow.com/questions/5454332/is-one-activity-one-context
No comments:
Post a Comment