> i've used the handler approach, and it gets really, really ugly. i have
> this huge switch statement covering all the possible messages. it's so
> ugly it made me think i must be doing something wrong.

I usually use the Runnable-consuming methods on Handler (post() and
postDelayed(), also available on all subclasses of View) to get around
this. But, then again, I code in Ruby when I am not doing Android
development, so I am used to the quasi-closure structure you get with
Runnable objects.

-- 
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 Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to