Search code examples
androidwindowstartup

Android - Disable dummy starting window of application


I want to know how to achieve this effect.

My app (default everything), when launcher icon is clicked, right away display some kind of a empty dummy window, where nothing is happening and then loads layout into it.

"Heavier" apps like YouTube, Drive, Dropbox etc. when started, seem to wait after launch, without showing that dummy window and load right into ready layout.

Any idea how to do this or where should I look into?

Thanks

//EDIT: this has nothing to do with something like loading database, where I should display progressBar, imho this has to do with stuff before activity exists.


Solution

  • <style name="Theme.MyTheme" parent="android:style/Theme" >
        ....
        <item name="android:windowDisablePreview">true</item>
        ....
    </style>
    

    but use with caution