I recently moved to Android from python and am stuck here.
This is my class declaration to create a common function for an Alert Dialog which accepts necessary parameter
In Java, each class you write will also have a Class
class attached to it. The Class
class will be used by the classloader etc.
As others have said you should use MakeCall.this
instead of MakeCall.class
because MakeCall.this
will point to itself which is an Activity whilst MakeCall.class
will point to MakeCall's attached Class
class.