private Handler mHandler = new Handler();
private Runnable mUpdateTimeTask = new Runnable() {
public void run() {
// do what you need to do here after the delay
}
};
insert this anywhere you want to run
mHandler.postDelayed(mUpdateTimeTask, 2000);
No comments:
Post a Comment