All about Context: How to Use context?

This question already has an answer here:

  • What is 'Context' on Android? 29 answers

  • Couldnt explain it better:

    "Context allows access to application-specific resources and classes, as well as calls for application-level operations such as launching activities, broadcasting and receiving intents, etc. Context in Android is an interface to global information about an application environment." - From one of the thread in stack overflow".

    "Context is context of current state of the application/object.Its an entity that represents various environment data . Context helps the current activity to interact with out side android environment like local files, databases, class loaders associated to the environment, services including system-level services, and more. A Context is a handle to the system . It provides services like resolving resources, obtaining access to databases and preferences, and so on. An android app has activities. It's like a handle to the environment your application is currently running in. The activity object inherits the Context object."

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

    上一篇: 试图理解Context及其在Android中的使用

    下一篇: 所有关于上下文:如何使用上下文?