I want as my application to be structured in 2 parts: the logic code and the UI.
I've tried to implement that using a controller class(here I keep the logic code) inside of each activity. The activity send messages to controller and receive the answer in two ways:
the activity set some listeners and the controller fire this listener when the action is complete.
The problems appears when the controller have a lot of objects(each object should handle a set of actions and for each action I have to set & trigger a listener): it is hard to keep the code syncronized.
I'm asking if you know a better way to implement this mechanism.
Thank you.
Personally, I consider the Activity to be the controller. Widgets are the view. Others may disagree, and I am far from an MVC purist.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With