Activity base class?
What is Activity base class: java.lang.Object or android.content.Context?
The class overview is not clear to me (see the image please).
Solution 1:
In Java every class has an Object
as a superclass (You can also have more information here). Context
is a Java class hence it has Object
at the root of its inheritance tree hierarchy. Context
is a class that holds information about an application environment as described in the official documentation, and Activity
has it in its inheritance tree.
Solution 2:
Context is the base class for Activity.