I have a base class for my all of activities (ActivityBase) that itself derives from android.app.Activity. In onCreate I want to execute some conditio
ActivityBase
android.app.Activity
I think you want to use the instanceof operator, for example:
if(this instanceof SomeCustomActivity) { // do stuff } else if (this instanceof AnotherCustomActivity) { // do other stuff }
And that is all there is to it.