Code example for ListFragment

Methods: getActivity, onStop

0
    super.onStart(); 
  } 
 
  @Override 
  public void onStop() { 
    getActivity().unregisterReceiver(mRefreshReciver);
    super.onStop(); 
  } 
   
  private BroadcastReceiver mRefreshReciver = new BroadcastReceiver() {
    @Override 
    public void onReceive(Context context, Intent intent) { 
      reloadAuditions(); 
    } 
  }; 
}