Lutz Schönemann wrote:
> How should I design a method that needs a few seconds to return a  
> result? Even if I put the call to that method inside a separate thread  
> it will not return faster.

That is difficult for me to answer in the abstract.

The goal behind the separate thread is so you can release the UI thread
back to Android, so it can render your GUI and such. It may not take any
less time, but time on background threads is more flexible than time on
the UI thread.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

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