On May 25, 5:17 pm, redmapleleaf <[email protected]> wrote:
> Thread t = new Thread(r);
> t.start();
>
> then a new thread should be created off of the parent process. Is this
> not true?

A new thread is created that executes Thread.run().  If you do exactly
what you have typed above, you will create a new Thread whose run()
does nothing, and the thread will exit immediately.

You should either be subclassing Thread and overriding run(), or
creating a class that is an instance of Runnable and passing that to
the Thread constructor.

-- 
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

Reply via email to