@Override
 public boolean onCreateOptionsMenu(Menu menu) {
   getSupportMenuInflater().inflate(R.menu.notification_list_menu, menu);
   menubarSyncButton = menu.findItem(R.id.menu_load);
   super.onCreateOptionsMenu(menu);
   return true;
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    setContentView(R.layout.activity_with_pager);
    super.onCreate(savedInstanceState);
    setTitle(NOTIFICATIONS);

    progressBarContainer = (FrameLayout) findViewById(R.id.progressbarContainer);
  }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_with_pager);
   Intent intent = getIntent();
   patient = (Patient) intent.getSerializableExtra(PatientSummaryActivity.PATIENT);
   initPager();
   initPagerIndicator();
   getSupportActionBar().setTitle(patient.getSummary());
 }
  @Override
  protected void onReceive(Context context, Intent intent) {
    super.onReceive(context, intent);

    int syncType = intent.getIntExtra(Constants.DataSyncServiceConstants.SYNC_TYPE, -1);

    if (syncType == Constants.DataSyncServiceConstants.SYNC_NOTIFICATIONS) {
      hideProgressbar();
      onNotificationDownloadFinish();
    }
  }
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   super.onActivityResult(requestCode, resultCode, data);
   notificationPagerAdapter.reloadData();
 }