Q:

Difference- ApplicationContext() VS. Activity Context in ANDROID..?

Possible Duplicate:
Difference between Activity Context and Application Context 

I want to know the actual difference between Application Context and Activity Context in Android..?
These two are confusing me very time.
Please find me difference for this two.??

A:

To have a gist over the application context and activity context read below:
The application context will live as long as your application is alive and does not depend on the activities life cycle. If you plan on keeping long-lived objects that need a context, remember the application object. You can obtain it easily by calling Context.getApplicationContext() or Activity.getApplication().
In summary, to avoid context-related memory leaks, remember the following:
1.Do not keep long-lived references to a context-activity (a reference to an activity should have the same life cycle as the activity itself)
2.Try using the context-application instead of a context-activity
Reference & more Info

