I developed one of the most downloaded games on the Android market, but 2 years have already passed, so this solution may be outdated. I did this: - use the View object as the content view - override the draw () method of this class of View objects - at the end of the draw () method, call doLogic ()
Note that both the rendering call and doLogic () occur in the main thread. It sounds no-no, but it works for most games (and gives you automatic synchronization without the need for complication).
source
share