public AlertDialog create(final Activity activity) {
            final AlertDialog.Builder builder = Dialogs.newBuilder(activity);
            builder.setTitle(R.string.trackable_title_log_without_geocode);

            final View layout = View.inflate(activity, R.layout.logtrackable_without_geocode, null);
            builder.setView(layout);

            doNotAskAgain = layout.findViewById(R.id.logtrackable_do_not_ask_me_again);

            final int showCount = Settings.getLogTrackableWithoutGeocodeShowCount();
            Settings.setLogTrackableWithoutGeocodeShowCount(showCount + 1);

            builder.setPositiveButton(string.yes, (dialog, which) -> {
                checkDoNotAskAgain();
                dialog.dismiss();
            });
            builder.setNegativeButton(string.no, (dialog, which) -> {
                checkDoNotAskAgain();
                dialog.dismiss();
                // Post the log
                postLog();
            });
            return builder.create();
        }
This will display a popup for confirming if Trackable Log should be send without a geocode.
It will be displayed only MAX_SHOWN_POPUP_TRACKABLE_WITHOUT_GEOCODE times. A "Do not ask me again"
checkbox is also added.
main/src/main/java/cgeo/geocaching/log/LogTrackableActivity.java