Broadcast Receiver within a Service
问题 I am trying to start up a BroadcastReceiver within a Service . What I am trying to do is have a background running service going that collects incoming text messages, and logs incoming phone calls. I figured the best way to go about this is to have a service running that incorporates a broadcast receiver that can catalog either. How do i go about doing this? I already have my service up and running. 回答1: as your service is already setup, simply add a broadcast receiver in your service: