I'm building my first Android application, which consists of a number of Activities and a single centralised Application.
The Application has a number of objects which are accessed by each of the activities (data handlers, variables persisted throughout the application, etc). I am looking for a way of throwing events at Application level, at specific times, which can be caught and handled differently by each Activity. Specifically, there is an object in the Application with a Date variable. When the date/time in this variable is reached, I need something to happen. This something will depend on the screen the user is currently on, so will vary depending on the current activity. I have tried achieving this with Broadcasts and Handlers, but all examples I've seen have the 'sender' and the 'receiver' in the same class - I can't find a way of separating these out. In other environments, I would achieve this by having the Application cause an Event, and have the activities listen for and handle the event. Is this an option? Any pointers much appreciated, I hope this is clear enough. -- 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

