You can't update UI from a service, and can't perform sustained tasks from
an Activity.

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.

--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to