[android-developers] Re: handling expensive operations in the UI thread - posting result from worker thread to UI thread

2009-09-16 Thread Jason Proctor
i'd do this with an AsyncTask and use the progress reporting feature to communicate state to the UI thread. AsyncTask ftw! OK I'm reading this page: http://developer.android.com/guide/appendix/faq/commontasks.html#threading The code is as in the example (see below). In my application, the

[android-developers] Re: handling expensive operations in the UI thread - posting result from worker thread to UI thread

2009-09-16 Thread rukiman
OK I should re-ask my question so its a bit more clearer. in updateResultsInUI() it is updating the results obtained from the doSomethingExpensive() which was calculated in the worker thread. Now what if doSomethingExpensive() is run in a loop continuously and each time it is executed I need to

[android-developers] Re: handling expensive operations in the UI thread - posting result from worker thread to UI thread

2009-09-16 Thread rukiman
Thanks for the tip! Reading on it now, and looks exactly like what I wanted. On Sep 17, 11:10 am, Jason Proctor jason.android.li...@gmail.com wrote: i'd do this with an AsyncTask and use the progress reporting feature to communicate state to the UI thread. AsyncTask ftw! OK I'm reading

[android-developers] Re: handling expensive operations in the UI thread - posting result from worker thread to UI thread

2009-09-16 Thread Raphael
On Wed, Sep 16, 2009 at 6:15 PM, rukiman ruksh...@optushome.com.au wrote: OK I should re-ask my question so its a bit more clearer. in updateResultsInUI() it is updating the results obtained from the doSomethingExpensive() which was calculated in the worker thread. Now what if