Skip to content

Instantly share code, notes, and snippets.

@ryands
Last active December 23, 2015 09:49
Show Gist options
  • Save ryands/6617508 to your computer and use it in GitHub Desktop.
Save ryands/6617508 to your computer and use it in GitHub Desktop.
A proper splash screen implementation for android.
package org.ryands.android;
import android.app.Activity;
import android.os.Bundle;
/**
* A proper splash screen for android.
*/
public class SplashActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
throw new RuntimeException("Splash screens do not belong on Android.");
}
}
@carlospuk
Copy link

7th topmost match in Google for "android proper implementation splash activity".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment