package com.naijab.nextzytimeline.ui;

import android.os.Bundle;
import com.naijab.nextzytimeline.base.BaseMvpActivity;
import com.naijab.nextzytimeline.ui.SplashScreenActivityInterface.Presenter;

public class SplashScreenActivity extends BaseMvpActivity<Presenter>
        implements SplashScreenActivityInterface.View{


    @Override
    public Presenter createPresenter(){
        return SplashScreenActivityPresenter.create();
    }

    @Override
    public int getLayoutView(){
        return 0;
    }


    @Override
    public void bindView(){
    }

    @Override
    public void setupInstance(){

    }

    @Override
    public void setupView(){
    }

    @Override
    public void initialize(){
    }

    @Override
    protected void onSaveInstanceState( Bundle outState ){
        super.onSaveInstanceState( outState );
    }

    @Override
    protected void onRestoreInstanceState( Bundle savedInstanceState ){
        super.onRestoreInstanceState( savedInstanceState );
    }
}


@@ -51,17 +51,111 @@
 oid.
-os.Bundle
+content.Intent;%0Aimport android.os.Bundle;%0Aimport android.os.Handler;%0Aimport com.naijab.nextzytimeline.R
 ;%0Aim
@@ -207,16 +207,71 @@
 tivity;%0A
+import com.naijab.nextzytimeline.ui.Main.MainActivity;%0A
 import c
@@ -409,20 +409,16 @@
 senter%3E%0A
-    
     impl
@@ -462,14 +462,60 @@
 View
+ 
 %7B%0A%0A
-%0A
   
+private static final long DELAY_TIME = 1000;%0A%0A
   @O
@@ -514,34 +514,32 @@
 0;%0A%0A  @Override%0A
-  
   public Present
@@ -558,26 +558,23 @@
 senter()
+ 
 %7B%0A    
- 
-   
 return S
@@ -612,27 +612,23 @@
 eate();%0A
-  
   %7D%0A%0A  
- 
- 
 @Overrid
@@ -621,34 +621,32 @@
  %7D%0A%0A  @Override%0A
-  
   public int get
@@ -661,38 +661,51 @@
 ew()
+ 
 %7B%0A    
-  
-  
 return 
-0
+R.layout.splash_screen
 ;%0A
-  
   %7D%0A%0A
-%0A  
   @O
@@ -706,34 +706,32 @@
 %0A%0A  @Override%0A  
- 
- 
 public void bind
@@ -732,35 +732,32 @@
 d bindView()
+ 
 %7B%0A
-  
   %7D%0A%0A
-  
   @Override%0A
@@ -750,34 +750,32 @@
 %0A%0A  @Override%0A  
- 
- 
 public void setu
@@ -789,20 +789,40 @@
 ce()
+ 
 %7B
-%0A
 %0A  
+  goToMainActivity();%0A
   %7D%0A%0A
-  
   @O
@@ -821,34 +821,32 @@
  %7D%0A%0A  @Override%0A
-  
   public void se
@@ -854,27 +854,24 @@
 upView()
+ 
 %7B%0A
-  
   %7D%0A%0A
-  
   @Overr
@@ -874,18 +874,16 @@
 verride%0A
-  
   public
@@ -904,19 +904,16 @@
 ze()
+ 
 %7B%0A
-  
   %7D%0A%0A
-  
   @O
@@ -914,34 +914,32 @@
 %0A%0A  @Override%0A  
- 
- 
 protected void o
@@ -953,25 +953,24 @@
 stanceState(
- 
 Bundle outSt
@@ -968,36 +968,32 @@
 dle outState
- )%7B%0A   
+) %7B%0A
     
- 
 super.onSave
@@ -1006,25 +1006,24 @@
 ceState(
- 
 outState
  );%0A    
@@ -1018,23 +1018,18 @@
 tate
- 
 );%0A  
- 
- 
 %7D%0A%0A  
- 
- 
 @Ove
@@ -1034,18 +1034,16 @@
 verride%0A
-  
   protec
@@ -1074,17 +1074,16 @@
 ceState(
- 
 Bundle s
@@ -1103,16 +1103,12 @@
 tate
- 
 )
+ 
 %7B%0A
-    
     
@@ -1136,17 +1136,16 @@
 ceState(
- 
 savedIns
@@ -1158,14 +1158,485 @@
 tate
- 
 );%0A  
+%7D%0A%0A  private void delayHandler(Runnable rannable)%7B%0A    Handler handler = new Handler();%0A    handler.postDelayed(rannable, DELAY_TIME);%0A  %7D%0A%0A  private void goToMainActivity() %7B%0A    delayHandler(new Runnable() %7B%0A      @Override%0A      public void run() %7B%0A        Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);%0A        startActivity( intent );%0A        finish();%0A        overridePendingTransition( R.anim.fade_in, R.anim.fade_out );%0A      %7D%0A    %7D);%0A
   %7D%0A

Edit Splash add Handler post delay to MainActivity