In my android app I have an initial activity which popup a dialog (used as the splash screen). I am doing this:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Popup a fullscreen dialog (used as splash)
showSplashScreen();
}
However there is a small time period before this where a blank empty with my logo and title bar show up. I have no idea how to remove this from showing at all. I even tried to see if this was coming from the same activity, I check by removing the title bar by requesting no title bar. However, I had no luck… This mysterious blank activity shows up for a small time interval.
How do apps like facebook show an initial splash screen first without showing anything else before?
use
setContentView(R.layout.layout_name);in the code.Describe the Activity that you want to open as a dialogue in the manifest file as: