app/src/main/java/org/qinshuihepan/bbs/util/update/UpdateChecker.java
/**
     * 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.
     */
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.
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 .
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);
        updateChecker.setArguments(args);
        content.add(updateChecker, null).commit();
    }
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 ) ; updateChecker . setArguments ( args ) ; content . add ( updateChecker , null ) . commit ( ) ; }
Show a Notification if an update is available for download.
Show a Notification if an update is available for download .