For all the core application functionality, application context is central location. It is used to access resources that are shared between activity instances and is used to access settings. Use getApplicationContext() method to get the application context for current process.
You can also use this object when writing code in your Activity class because Activity class is derived from the Context class. After
Context context = getApplicationContext()