public void onPause() {
   super.onPause();
   try {
     unregisterReceiver(fetchBroadcastReceiver);
   } catch (IllegalArgumentException e) {
   }
 }
 @Override
 public void onResume() {
   super.onResume();
   registerReceiver(
       fetchBroadcastReceiver,
       new IntentFilter(SyncServices.FETCH_CHECKIN_COMMENTS_SERVICES_ACTION));
   view.commentAdapter.refreshCheckinComment(checkinId);
   stopLocating();
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    this.userId = getIntent().getExtras().getInt("userid", 0);
    this.position = getIntent().getExtras().getInt("id", 0);

    if (userId > 0) {
      checkinModel.loadCheckinByUser(userId);
    } else {
      checkinModel.load();
    }

    // because of header view, decrease position by one
    initCheckin(this.position);
    fetchComments();
  }