View Single Post

Old 07-09-2010, 01:09 AM
Posts: n/a
Originally Posted by bbj View Post
In contrast Android (or more accurately Java) fails quite miserably on this front. To perform animation on say Android, you have to have a thread of execution that goes round a loop as fast as it can, permenantly, all the time, regardless of processor speed. You poll the timer every loop to determine enough time has passed you then do some work. As bad as you can get for battery life. Want to partion anything, launch another thread + let it burn as many cycles as it can.... etc.
Utter crap.

Most(All?) J2ME midlets can listen for a suspend/backgrounding event. It's up to the programmer to honor these events, otherwise (yes) the code will continue to execute. It's called multitasking.