I used to call the show() method on a created toast every 1s during a few seconds, to obtain a toast that stays on screen for more than LENGTH_LONG.
(Similar to Android SDK keep Toast from fading away)
Note: the toast text is periodically changed while it's being displayed.
Unfortunately, it does not work anymore with Android 8.0: the toast now disappears after approximately 4s. It looks like only the 1st call to show() is working, and all subsequent calls have no effect.
I understand that it is not the intended behaviour of a Toast to stay on-screen, but before moving to another solution, I just wanted to check if this is an expected behaviour of Android 8.0 ? Maybe related to the Toast overlay attack vulnerability ?