Skip to content

Instantly share code, notes, and snippets.

@burnix
Created February 14, 2016 18:22
Show Gist options
  • Save burnix/b4c67b86d912bf61897e to your computer and use it in GitHub Desktop.
Save burnix/b4c67b86d912bf61897e to your computer and use it in GitHub Desktop.
public class SplashActivtiy extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Fabric.with(this, new Crashlytics());
setContentView(R.layout.activity_splash);
new Thread(new Runnable() {
@Override
public void run() {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
startActivity(new Intent(SplashActivtiy.this, MainActivity.class));
finish();
}
}).start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment