I have a broadcast receiver which is being triggered the moment it\'s registered (and subsequently retriggered with onPause / onResume), surely this is the wrong behaviour?
remove the following two lines they won't be triggered in onPause and onResume!
registerReceiver(connectivityReceiver, intentFilter); unregisterReceiver(connectivityReceiver);