If I get a result from setResult from other activities, I need to set
the result to a textview. Do I still need to call runOnUIThread() ?

On Aug 24, 11:50 am, TreKing <[email protected]> wrote:
> On Tue, Aug 24, 2010 at 1:36 PM, cindy <[email protected]> wrote:
> > When the user clicks some button, I can directly change the UI of
> > my application, such as set the view or change layout without any problem.
>
> You can do that because you're on the main thread.
>
> > Why we need to call runOnUIThread() function?
>
> Because if you try to modify UI components from any non-UI threads, bad
> things happen (you crash, basically).
>
> -------------------------------------------------------------------------------------------------
> 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 [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