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
long delay = 1000; long period = 50000; Timer task = new Timer(); task.scheduleAtFixedRate(new TimerTask() { @Override public void run() { getDriver(sessionManager.getKEY(), ride_id); } }, delay, period);