Skip to content

Instantly share code, notes, and snippets.

@burnix
Created February 24, 2016 19:59
Show Gist options
  • Save burnix/3d112840bf2de781ca07 to your computer and use it in GitHub Desktop.
Save burnix/3d112840bf2de781ca07 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