Async tasks runs in the background automatically not on the ui thread. If you want to call something on the ui thread you need to use RunOnUIThread or post a message if that’s what you asking.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of water boiled Sent: Friday, December 31, 2010 12:40 AM To: Android Developers Subject: [android-developers] Re: AsyncTask why not must be created in UI thread? I mean that can i create AsycnTask instance not in UI thread? On 12月31日, 下午1时30分, water boiled <[email protected]> wrote: > I mean that can i AsycnTask instance not in UI thread? > > On 12月31日, 下午1时24分, water boiled <[email protected]> wrote: > > > > > > > > > the AsycnTask document says that:The task instance must be created > > on the UI thread. > > > why create task instance must be created in UI thread? > > > On 12月29日, 上午10时26分, Frank Weiss <[email protected]> wrote: > > > > It's difficult to understand what you are asking. What problem are > > > you having with AsyncTask. -- 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 -- 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

