
getApplicationContext() returns the Context of the application, which is guaranteed to have the same life as the app itself. Other Contexts, like an Activity, might go away during runtime.
getApplicationContext() returns the Context of the application, which is guaranteed to have the same life as the app itself. Other Contexts, like an Activity, might go away during runtime.