code: public static void showToast(String message, int duration, Integer gravity, Integer xOffset, Integer yOffset) {
  		AbstractApplication androidApplication = AbstractApplication.get();
  		if (!androidApplication.isInBackground()) {
  
  			cancelCurrentToast();
  
  			Toast toast = Toast.makeText(androidApplication, message, duration);
  			if ((gravity != null) && (xOffset != null) && (yOffset != null)) {
  				toast.setGravity(gravity, xOffset, yOffset);
  			}
  			toast.setDuration(duration);
  			toast.show();
  
  			currentToast = new WeakReference<>(toast);
  		}
  	}
docs: Show the {@link Toast} on the current Thread.
  
  @param message The text to show. Can be formatted text.
  @param duration How long to display the message. Either {@link Toast#LENGTH_SHORT} {@link Toast#LENGTH_LONG}
  @param gravity The location at which the notification should appear on the screen.
  @param xOffset The X offset in pixels to apply to the gravity's location.
  @param yOffset The Y offset in pixels to apply to the gravity's location.