code: public static void showOnUiThread(Context applicationContext, int stringResId, int duration) {
          Handler handler = HandlerUtils.getMainHandler();
          showOnUiThread(applicationContext, stringResId, duration, handler);
      }
docs: Show toast on the UI thread.
  @param applicationContext the application context.
  @param stringResId to show.
  @param duration the display duration.