Published
- 1 min read
delay a method in android
The solution for this is noted below
delay a method in android
Solution
final Handler handler = new Handler(Looper.getMainLooper());
handler.postDelayed(new Runnable() {
@Override
public void run() {
//Do something after 100ms
}
}, 100);
Try other methods by searching on the site. That is if this doesn’t work