You will definitely need at least one thread in the service for networking.

A separate service for data collection might be easier to implement and
debug, but having one service do both would avoid excessive data shuffling,
as it would be available within the same service.

Both ways can work, though, or at least it seems that way without knowing
the specifics.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

25.08.2010 0:09 пользователь "tarek attia" <[email protected]>
написал:



2010/8/24 Kostya Vasilyev <[email protected]>


>
> You can't update UI from a service, and can't perform sustained tasks from
an Activity.
I didn't say directly I will update the GUI from a service but by using
broadcast receivers I can do what I want



>
> So, by way of excluding the impossible, you should end up with a sort of
canonical design.
>
...
That's what I have done but I was asking is this better or worse than two
services each of which have threads ??


>
> >
> > --
> > Kostya Vasilyev -- http://kmansoft.wordpress.com
> >>
> >> 24.08.2010 23:55 пользователь "TreK...
>
>
> >
> > --
> > You received this message because you are subscribed to the Google
>
> > Groups "Android Developers" group.
> > To post to this group, send email to android-develop...@googl...
>



-- 
tarek


-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to android-develop...@googlegro...

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