Use Threads only for long running operations. If you have only simple if/else if/else without anything that would block the UI for a long time, then using threads is an overkill.
If you need polling, then create a class that implements Runnable and google "Java Threads" for info how to do threads in Java. It's not much different in Android. http://d.android.com/resources/articles/painless-threading.html On 7 мар, 00:31, brian purgert <brianpurge...@gmail.com> wrote: > I have a main thread that controls the drawing on the canvas, but i want > another thread that is just a bunch of true or false statements that detects > if an event happened. > So can some one show me how to make a simply low priority thread. That > starts when the activity starts. It would be much appreciated if someone who > has done it before could show me because, the android doc examples are > confusing me -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en