how to make a function pause for 3 seconds android code example
Example: how to wait a few seconds in android studio
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
// yourMethod();
}
}, 5000); //5 seconds