Sarath Kamisetty wrote: > I was wondering if android has UNIX crond style > process that can I make use of (programatically).
AlarmService. > Also, when new task is added or existing one is deleted, the activity > needs to notify the service. I looked at AIDL but it seems to be more > for communication across processes. It works within the same process as well. > If the service and activity are in > the same process, isn't there an easier way to wakeup/notify the > service that tasklist has changed ? That depends on how you define "easier". Tying an activity and a service together via static data members or the like couples them very tightly. At best, you are more likely to leak memory. At worst, you wind up in situations where the service is trying to talk to a dead activity. The developer who was trying to update a TextView from a service ran into that problem, I suspect -- updating a TextView for an activity other than the right one. So, while it may be easier to initially write the software this way, there is a good chance you will regret it later. AIDL and Intents are two means that Android offers that better decouple the activity from the service. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---