What is the getApplicationContext() method?

This question already has an answer here:

  • Difference between getContext() , getApplicationContext() , getBaseContext() and “this” 7 answers

  • The Context object is used across the application to do many things like access resources that the Android OS has allocated for you.

  • using getSystemService, you get the handle of your service and you can do wonders.
  • pass the context object to your classes to do Toast
  • It is useful and powerful if used correctly.

    链接地址: http://www.djcxy.com/p/71606.html

    上一篇: Ruby EventMachine测试

    下一篇: 什么是getApplicationContext()方法?