Using delay in your Android apps

4 views
Skip to first unread message

Rohit Kalhans

unread,
Mar 22, 2011, 9:42:14 AM3/22/11
to bpgc-androi...@googlegroups.com
Here is a small code snippet if you want to incorporate a delay in your applications.

 Handler handler = new Handler();

                handler.postDelayed(new Runnable() {
                     public void run() {
                         //TODO: Whatever you want to do after the delay
                         // most of the tym we call the same function with
                         // updated parameters.
                          
                     }
                }, time_in_milli_second);




--
Rohit Kalhans
blogfolio: http://info-rohit.co.cc

 

Reply all
Reply to author
Forward
0 new messages