On Mon, May 30, 2011 at 9:32 AM, Mark Cz <[email protected]> wrote: > Hi, > I have an Android Service that does some client-server work, > E.g I am getting a file from the server, and I want to toast a message > - "Download was completed"
A service should not be updating the user interface. Please delegate that to an activity if one of yours is in the foreground, or display a Notification if there is no such activity and you feel the situation warrants a Notification. You can use an ordered broadcast to achieve this: http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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

