I just finished android beginner course from udacity and I was reading 'Starting Another Activity' from here.
http://developer.android.com/training/basics/firstapp/starting-activity.html
Developer.android says i need to pass context as the first parameter in the intent constructor.
After Reading this, What is 'Context' on Android?
I understand what is context but only in an abstract form.
TextView tv = new TextView(getContext());
ListAdapter adapter = new SimpleCursorAdapter(getApplicationContext(), ...);
In the above code, what does getContext actually do? Does the object 'tv' get some initial values? What are they? How do those values (if any) connect the object to rest of the app? What does connecting object to the rest of the app mean? I understand that it allows the object to access the resources of the app but how?
Doesn't inheritance takes care of connecting smaller app contents to the bigger app?
Also, how does 'this' keyword actually provide context?