/**
  * Show a Dialog if an update is available for download. Callable in a FragmentActivity. Number of
  * checks after the dialog will be shown: default, 5
  *
  * @param fragmentActivity Required.
  */
 public static void checkForDialog(FragmentActivity fragmentActivity) {
   FragmentTransaction content = fragmentActivity.getSupportFragmentManager().beginTransaction();
   UpdateChecker updateChecker = new UpdateChecker();
   Bundle args = new Bundle();
   args.putInt(NOTICE_TYPE_KEY, NOTICE_DIALOG);
   // args.putInt(SUCCESSFUL_CHECKS_REQUIRED_KEY, 5);
   updateChecker.setArguments(args);
   content.add(updateChecker, null).commit();
 }
 /**
  * Show a Notification if an update is available for download. Callable in a FragmentActivity
  * Specify the number of checks after the notification will be shown.
  *
  * @param fragmentActivity Required.
  * @param notificationIconResId R.drawable.* resource to set to Notification Icon.
  */
 public static void checkForNotification(FragmentActivity fragmentActivity) {
   FragmentTransaction content = fragmentActivity.getSupportFragmentManager().beginTransaction();
   UpdateChecker updateChecker = new UpdateChecker();
   Bundle args = new Bundle();
   args.putInt(NOTICE_TYPE_KEY, NOTICE_NOTIFICATION);
   // args.putInt(NOTIFICATION_ICON_RES_ID_KEY, notificationIconResId);
   // args.putInt(SUCCESSFUL_CHECKS_REQUIRED_KEY, 5);
   updateChecker.setArguments(args);
   content.add(updateChecker, null).commit();
 }