private void initBroadcastReciever(){
  IntentFilter intentFilter=new IntentFilter();
  intentFilter.addAction(ACTION_STOP_SELF);
  registerReceiver(mBroadcastReciever,intentFilter);
}

private void initBroadcastReciever ( ) { IntentFilter intentFilter = new IntentFilter ( ) ; intentFilter . addAction ( ACTION_STOP_SELF ) ; registerReceiver ( mBroadcastReciever , intentFilter ) ; }
this sets up the broadcast reciever .
