code: public static Toast quickToast(Context context, String message, boolean longLength) {
          final Toast toast;
          if (longLength) {
              toast = Toast.makeText(context, message, Toast.LENGTH_LONG);
          } else {
              toast = Toast.makeText(context, message, Toast.LENGTH_SHORT);
          }
          toast.show();
          return toast;
      }
docs: Display a toast with the given message.
  
  @param context    The current Context or Activity that this method is called from
  @param message    Message to display
  @param longLength if true, will use Toast.LENGTH_LONG (approx 3.5 sec) instead of
  @return Toast object that is being displayed. Note,show() has already been called on this object.