public static void show(@NonNull final Context context, final View view) {
        view.requestFocus();
        view.postDelayed(() -> {
            final InputMethodManager keyboard = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
            keyboard.showSoftInput(view, 0);
        }, 50);
    }
Class for hiding/showing the soft keyboard on Android.
main/src/main/java/cgeo/geocaching/activity/Keyboard.java