Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created December 5, 2016 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ssaurel/c4968df1a4e2026ec6606391f4da1623 to your computer and use it in GitHub Desktop.
Save ssaurel/c4968df1a4e2026ec6606391f4da1623 to your computer and use it in GitHub Desktop.
SplashActivity for your Splash Screen
package com.ssaurel.splashscreen;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by ssaurel on 02/12/2016.
*/
public class SplashActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
finish();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment