I am new in android development and now my launcher activity show only 5 seconds and after that I want to check the user is logged in or not function and perform the actions
Try this, code create CountDownTimer with one tick
timer = new CountDownTimer(5000, 5000) { public void onTick(long millisUntilFinished) { } public void onFinish() { displayData(); } }; timer.start();