What is the getApplicationContext () method?

I am studying android and I came across the getApplicationContext method. I really did not understand what it was used for and what the purpose was.

+7
source share
1 answer

The Context object is used in the application to perform many functions, such as access resources, which the Android OS allocates for you.

  • using getSystemService, you get a handle to your service, and you can do wonders.
  • pass a context object to your classes to make a Toast

It is useful and effective when used properly.

+4
source

All Articles