I have an app that shows some measurement values like temperature, speed and so on.
I want to stick more or less to the MVC pattern so I got something that receives the values when they appear (from a bluetooth component) and sorts them to the special value handlers. those are supposed to calculate stuff and so on (speed from geo coordinates and so on) and pass the values to the View component, which extends activity and is supposed to print the values. Some of the value handlers will be in their own thread or maybe the whole value handler thing will be one single thread.
So first I tried "runOnUIThread" but this is not as I want it cause with many values nothing else will happen in the UI thread and it is not in the idea of the MVC pattern.
Then I thought about handlers but I got the problem that I cannot "find" the handler from the other thread so I would have to pass it on and that is a lot of header change I would have to do.
Then I thought about a private class with static methods which could be reachable from everywhere but dunno if that is clever.
What do you suggest and could you give me examples?