My question is regarding in creating a method to be used in my android app. This method is a blackbox that accepts string as a parameter then converts the string object into something.
I want to call this method everytime a certain button is clicked (from a fragment and activity) and I'm wondering if static is the better approach for this since i dont need to instantiate.
I read the answer in Difference between Static methods and Instance methods and says that static is better but i found a blog that one should avoid static as possible.
So what's better approach to implement for my blackbox method?