3

I occasionally have a toast notification that is too long to read in the given amount of time that it is displayed. Is there any way to change the length of time these notifications display?

Also, is there any way to view these notifications after they are gone? This would be ideal, like an app or a folder that logs all the toast notifications where I can review them later.

6

Simple Answer: No, this isn't possible.

Long Answer:

Toasts are built into apps, and are low level. There is no way for 3rd party apps to catch toasts, and there is no way to view them longer.

This could be possible if you made your own custom ROM however.

4

The values of LENGTH_SHORT and LENGTH_LONG are 0 and 1. This means they are treated as flags rather than actual durations so I don't think it will be possible to set the duration to anything other than these values.

If you want to display a message to the user for longer, consider a Status Bar Notification. Status Bar Notifications can be programmatically cancelled when they are no longer relevant.

1

No, however some apps lets you set a time that a toast message stays on screen.

(...I think.)

  • What apps? I find this hard to believe, since the code used to show toasts has only two constants for the duration, Toast.LENGTH_SHORT and Toast.LENGTH_LONG. The entire Toast class would need to be overridden to allow custom lengths. – onik Aug 23 '13 at 5:31
  • 2
    @onik - Some devs create their own Dialog implementations that mimic toasts both functionally and visually, but with custom timings. Not a true toast, but the end-user doesn't know that. – aggregate1166877 Aug 23 '13 at 11:08
0

The currently accepted answer stands obsolete, now that there are handful of apps offering solutions for copying notifications and toasts for later use. I use Toast Source and it has worked well so far. You can find alternative apps in Play Store.

Install Toast Source, enable its service, let it observe the toasts which you can view them later under Saved toasts option.

As for extending the duration of the toasts, an Xposed based solution could probably help here. XToast claims to change a toast's duration. I have not tried this so I cannot vouch for it.

-2

If you enable engineer mode under quality enhancements you can change display toast time and notification time

  • 1
    How? Please provide a detailed answer with Android model and version it is tested upon? – Firelord Aug 4 '18 at 17:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.