What is Activity base class: java.lang.Object or android.content.Context?
The class overview is not clear to me (see the image please).
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.
Context is the base class for Activity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With