I have a question regarding the term "context" in Android. I see that the context provides information about the environment in which the application is running, however, what is the difference between the application context and the activity context?
And why am I doing such things:
AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
Why am I passing context to constructor? Can someone provide, please help me understand what context is, and what is the context object?
I don't want to copy / paste with android Reference since I already read it ..... too many times without understanding.
source
share