So, do you think that it is a good idea to design the UI that it wait's for callbacks from the service?
Am 27.07.2009 um 16:44 schrieb Mark Murphy: > > 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 [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 -~----------~----~----~----~------~----~------~--~---

