Standard
Activity Context VS getApplicationContext(): When to use ?
- Lucas
- January 16, 2017
Any Android developer has encountered the problem of having to use the Activity’s own reference instead of using getApplicationContext(). Both Activity and getApplicationContext() are instances of Context, but the difference is that Activity has the context of the Activity itself, and getApplicationContext() is the Context of the Application. An Android application has several types of