/**
  * Upon being resumed we can retrieve the current state. This allows us to update the state if it
  * was changed at any time while paused.
  */
 @Override
 protected void onResume() {
   getSharedText();
   super.onResume();
 }
 @Override
 public void onResume() {
   super.onResume();
   registerReceiver(
       uploadBroadcastReceiver, new IntentFilter(SyncServices.UPLOAD_CHECKIN_SERVICES_ACTION));
 }