title: BroadcastReceiver when wifi or 3g network state changed
body: <p>I have an app which updates the database whenever the phone is connected to WiFi. I have implemented a <code>Service</code> and <code>BroadcastReceiver</code> which will run the <code>Service</code> (it will tell me what network is in use), but the problem is I don't know what to add in the <code>manifest</code> file to start <code>BroadcastReceiver</code> when the network state changes or when it connects to some kind of network</p>