• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Delay thread android W/ Toast

Ofirst99

Lurker
Jul 2, 2017
6
0
Hello,

I want to use the constant of “Toast” in the delay.

When I write a number it fine, but when I use for example "Toast.LENGTH_LONG", it immediately execute the code in side it, and does not wait as I wanted.

Thanks
 

Attachments

  • Screen Shot 2017-07-02 at 13.13.12.png
    Screen Shot 2017-07-02 at 13.13.12.png
    44.9 KB · Views: 131

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones