You could do it in View.draw() but I don't know it it's every 'frame' called. Another way is to make a thread and have it loop, do not forget a wait() of some sorts otherwise you'd burn trough battery power
, unless you need real-time processing.
Do you mean I need to make a thread inside the view class? or at activity class?
If I want to create an image and have some touch key control. should these also do in the view class?
Beside when I override the onDraw method in the view class, nothing can be seen, even the log message inside the onDraw method.
More I want to ask:
If I create a Main activity to control the switching between sub-activities, can the Main activity without any view?
Thanks a lot