> When, however, I pass it into the runnable (called > PatternPlayTask) that I give to my Timer (which then calls > SwitchController.runSwitches every 300 milliseconds as it steps > through the pattern), it stops working.
Timer/TimerTask use a background thread. Thou shalt not modify the UI from a background thread, for that is the way of sin. <insert description of painful fate of sinners here> Assuming you did not modify your code to force the drawing to be done on the UI thread, you should be getting exceptions, perhaps caught by your code, from this. You will then need to use any of the following to get your UI-modifying code to run on the UI thread: -- A Handler -- View#post() -- View#postDelayed() -- AsyncTask -- Activity#runOnUiThread() -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

