I am trying to understand how to call a method in my activity after a process has been completed in another class?
Please see my illustrated example. In MyActivity I want to call a method in MyClass called doSomething. When doSomething is completed, I want MyClass to (notify?, interface?, delegate?, observable?, insert "I don't know here") my finished method back in Activity.
I have looked at Interfaces. But I don't understand the point. (You basically promise to implement a method? but... why? You can just implement the method without the interface.)
I tried Observable on MyActivity but i can't extend multiple classes...
Delegates look like interfaces.
I don't know. I am still very much learning and hope someone will help me understand. Most of the tutorials I have seen are generally copied and pasted from each other. I recognize I failing to understand a basic function of Java.