Use LENGTH_LONG constant to displays toast message for a long duration of time. Use LENGTH_SHORT constant to displays toast message for a short duration of time.