private AlertDialog createResetCacheCoordinatesDialog(final Waypoint wpt) {

        final AlertDialog.Builder builder = Dialogs.newBuilder(this);
        builder.setTitle(R.string.waypoint_reset_cache_coords);

        final String[] items = {res.getString(R.string.waypoint_localy_reset_cache_coords), res.getString(R.string.waypoint_reset_local_and_remote_cache_coords)};
        builder.setSingleChoiceItems(items, 0, (dialog, which) -> {
            dialog.dismiss();
            final HandlerResetCoordinates handler = new HandlerResetCoordinates(CacheDetailActivity.this, which == 1);
            handler.showProgress();
            resetCoords(cache, handler, wpt, which == 0 || which == 1, which == 1);
        });
        return builder.create();
    }
A dialog to allow the user to select reseting coordinates local/remote/both.
main/src/main/java/cgeo/geocaching/CacheDetailActivity.java