sleep Archives - wiki

Android execute code after delay

Android execute code after delay

In this sample code the myFuction() will call after 10 second

 

don't use Thread.sleep(10000);  because it will block your UI

  Like
By bm on July 20, 2016 | Android | 1 comment
Tags: , ,