app/src/main/java/com/voices/ui/activity/SplashActivity.java
/**
     * Start the Splash Timer to wait for few second to move to the new screen
     */
Start the Splash Timer to wait for few second to move to the new screen
Start the Splash Timer to wait for few second to move to the new screen
private void startSplashTimer() {
        thread = new Timer();
        thread.schedule(new TimerTask() {
            @Override
            public void run() {
                Intent intent = new Intent(SplashActivity.this, HomeActivity.class);
                startActivity(intent);
                finish();
                overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        }, SPLASH_TIMEOUT);
    }
private void startSplashTimer ( ) { thread = new Timer ( ) ; thread . schedule ( new TimerTask ( ) { @ Override public void run ( ) { Intent intent = new Intent ( SplashActivity . this , HomeActivity . class ) ; startActivity ( intent ) ; finish ( ) ; overridePendingTransition ( android . R . anim . fade_in , android . R . anim . fade_out ) ; } } , SPLASH_TIMEOUT ) ; }
Start the Splash Timer to wait for few second to move to the new screen
Start the Splash Timer to wait for few second to move to the new screen