Android View Context Part – 2

 

In this tutorial, we learn What is the context in Android? Context defines the current state of object and application. It represents environment data. Context provides access to things like creating new Activity Instance, Access Databases, Start a Service, etc. It handles to the system. There are some methods of context such as getApplicationContext(), getContext(), getBaseContext() or this when in the activity class.


Leave a Reply

Your email address will not be published. Required fields are marked *