take a look at broadcast sender/receiver example, I think that is exactly what you need.