@RequiresApi(api = Build.VERSION_CODES.M)
    public static void startInAppTranslationPopup(final Activity activity, final String text) {
        if (!supportsInAppTranslationPopup()) {
            return;
        }

        final Intent intent = new Intent();
        intent.setType("text/plain");
        intent.setAction(Intent.ACTION_PROCESS_TEXT);
        intent.putExtra(Intent.EXTRA_PROCESS_TEXT, text);
        intent.putExtra(Intent.EXTRA_PROCESS_TEXT_READONLY, true);
        intent.setPackage(TRANSLATION_APP);
        activity.startActivity(intent);
    }
Send Intent for Google Translate. Should only be used if InAppTranslationPopup is not available.

@param activity The activity starting the process
@param toLang   The two-letter lowercase ISO language codes as defined by ISO 639-1
@param text     The text to be translated
main/src/main/java/cgeo/geocaching/utils/TranslationUtils.java