Menu

December 2014

Android Get Application Context

If we code inside an Activity and we need the application context we can use getApplicationContext().

Inside an Activity we can use getApplicationContext() if we need the application context. But what if we are not inside an Activity and we need that? I will explain how you can get the context of the application outside an Activity with simple coding.

Continue reading