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.
>
> An Activity for the UI, a service with a worker thread to perform lengthy
> network-related tasks, working together to form what is hopefully a great
> application.
>
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 пользователь "TreKing" <[email protected]> написал:
>
>
> On Tue, Aug 24, 2010 at 2:34 PM, tarek attia <[email protected]>wrote:
>
>> so which is better
>
>
> This will be highly dependent on your implementation of either option,
> neither of which I think you've explained clearly enough for anyone to
> really make an educated guess on.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers"...
>
>  --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
tarek

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