[android-developers] Re: Best background practices

2010-08-28 Thread Federico Paolinelli
On 27 Ago, 23:58, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I think the consensus is that AsyncTask is the way to go if what you're trying to do affects the UI thread eventually. Using a service to compute location for instance would be over complicated. -John Coryat Maybe I

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Frank Weiss
I suppose you'd be better off with a service per service instead of one god service. The reason is that it make the code cleaner - you don't need to manage multiple alarms and network connections in one class. An exception would be a service that just does one kind of thing, but handles a queue of

[android-developers] Re: Best background practices

2010-08-28 Thread Federico Paolinelli
On 28 Ago, 18:32, Frank Weiss fewe...@gmail.com wrote: I suppose you'd be better off with a service per service instead of one god service. The reason is that it make the code cleaner - you don't need to manage multiple alarms and network connections in one class. An exception would be a

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Frank Weiss
I'm not a total expert on this... Threads are really just a way of running multiple stacks/program counters in the same address space. It's fair to assume they are time-sliced. Services and Activities are run in a single UI thread (AFAIK) and the precessing model is typical UI thread which calls

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Federico Paolinelli
On Sat, Aug 28, 2010 at 7:25 PM, Frank Weiss fewe...@gmail.com wrote: I'm not a total expert on this... Threads are really just a way of running multiple stacks/program counters in the same address space. It's fair to assume they are time-sliced. Services and Activities are run in a single UI

[android-developers] Re: Best background practices

2010-08-27 Thread Maps.Huge.Info (Maps API Guru)
I think the consensus is that AsyncTask is the way to go if what you're trying to do affects the UI thread eventually. Using a service to compute location for instance would be over complicated. -John Coryat -- You received this message because you are subscribed to the Google Groups Android