private static void launchActivity(final Activity fromActivity, final int id) {
        if (id == MENU_CUSTOM) {
            final int item = Settings.getCustomBNitem();
            if (item != CUSTOMBNITEM_NEARBY) {
                QuickLaunchItem.launchQuickLaunchItem(fromActivity, item, false);
                return;
            }
        }
        final Intent launchIntent = getBottomNavigationIntent(fromActivity, id);
        fromActivity.startActivity(launchIntent);
    }
@return the menu item id which should be selected
main/src/main/java/cgeo/geocaching/activity/AbstractNavigationBarActivity.java