Possible Duplicate:
ViewPager Activity to notify a Fragment of a specific event
I am experimenting with using fragments and I ran into this problem. I have a service running in the background which I want to update a listview in a fragment. First I just wanted to have the fragment listen for a broadcast, but it seems like registerReceiver is not allowed in a fragment? How do I do this. Do I need to listen for a broadcast in the main activity and then somhow send it to the fragment?