@Override
    @SuppressWarnings("rawtypes")
    protected TabbedViewPagerFragment createNewFragment(final long pageId) {
        if (pageId == Page.DETAILS.id) {
            return new DetailsViewCreator();
        } else if (pageId == Page.DESCRIPTION.id) {
            return new DescriptionViewCreator();
        } else if (pageId == Page.LOGS.id) {
            return CacheLogsViewCreator.newInstance(true);
        } else if (pageId == Page.LOGSFRIENDS.id) {
            return CacheLogsViewCreator.newInstance(false);
        } else if (pageId == Page.WAYPOINTS.id) {
            return new WaypointsViewCreator();
        } else if (pageId == Page.INVENTORY.id) {
            return new InventoryViewCreator();
        } else if (pageId == Page.IMAGEGALLERY.id) {
            return new ImageGalleryCreator();
        } else if (pageId == Page.VARIABLES.id) {
            return new VariablesViewPageFragment();
        }
        throw new IllegalStateException(); // cannot happen as long as switch case is enum complete
    }
A dialog to allow the user to select reseting coordinates local/remote/both.
main/src/main/java/cgeo/geocaching/CacheDetailActivity.java