content: package mobi.acpm.inspeckage.ui;
  
  import android.content.Intent;
  import android.content.SharedPreferences;
  import android.os.Bundle;
  import android.os.Handler;
  import android.support.v7.app.AppCompatActivity;
  
  import mobi.acpm.inspeckage.Module;
  import mobi.acpm.inspeckage.R;
  import mobi.acpm.inspeckage.util.FileUtil;
  
  public class SplashActivity extends AppCompatActivity {
  
      private static int TIME_OUT = 2000;
      private SharedPreferences mPrefs;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_splash);
  
          mPrefs = getSharedPreferences(Module.PREFS, MODE_PRIVATE);
          FileUtil.fixSharedPreference(this);
  
          new Handler().postDelayed(new Runnable() {
  
              @Override
              public void run() {
                  Intent intent = new Intent(SplashActivity.this, MainActivity.class);
                  startActivity(intent);
                  finish();
              }
          }, TIME_OUT);
      }
  
  
  }
  