This is more of a best practice / performance related question specific to Android.(I understand this could be a generic discussion but I wanted it to be narrowed down taking into account the Android environment).
Lets say I have a method (which checks for conditions and redirect the user to various activities). This method is used by a lot of classes.
I'm unable to decide whether to add this method in a utility class, make it static and call it from every activity that requires it.
Or
Create a base activity, add the method in there, and any activity that needs to use this method, inherit from the base activity. (Assuming we're Ok with single inheritance in this particular case).
Thoughts ?
EDIT These are the related SO posts I have checked related to this. Couldn't form a decision based on these
If a "Utilities" class is evil, where do I put my generic code?