this is a reference to the current object
You can use this to refer to any current instance and any instance of its superclass.
If your class extends Activity . This is a case of inheritance. your class is a subclass, and the Activity class is the parent. then you can use this keyword to get an instance of Activity beacause. Activity class is the super class of your class. This is implicit casting.
also the Activity Context class as a superclass. therefore, you can reference an instance of this class using this keyword.
thanks
source share