public static Fragment newInstance(final String geocode, final int waypointId) {

        final Bundle args = new Bundle();
        args.putInt(WAYPOINT_ARG, waypointId);
        args.putString(GEOCODE_ARG, geocode);

        final Fragment f = new WaypointPopupFragment();
        f.setArguments(args);
        // f.setStyle(DialogFragment.STYLE_NO_TITLE, 0);

        return f;
    }
Tries to navigate to the {@link Geocache} of this activity.
main/src/main/java/cgeo/geocaching/WaypointPopupFragment.java