Main activity class?

What is an activity class: java.lang.Object or android.content.Context?

The class overview is not clear to me (see image).

+3
source share
2 answers

In Java, each class has Objecta superclass (you can also get more information here ). Contextis a Java class, therefore it has Objectthe root of its inheritance tree in its hierarchy. Context- This is a class that contains information about the application environment described in the official documentation and Activityhas it in its inheritance tree.

+10
source

Context is the base class for Activity.

0
source

All Articles