But i want to do it on a separate Thread, to optimize my app removing
tasks from the main thread, because the main thread have a lot of
tasks on it and it needs to use threads for such thinks

please tell me how to make a thread that only executes itself one time

On 26 sep, 15:20, TreKing <treking...@gmail.com> wrote:
> On Mon, Sep 26, 2011 at 8:03 AM, saex <elpablos...@gmail.com> wrote:
> > How can i do a thread that only executes itself one time but
> > continues alive?
>
> You don't - what you're doing makes no sense. You don't have to keep your
> thread alive to keep your listeners active. Just run the code you have in
> "run" by itself where you're currently starting this silly thread.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

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

Reply via email to