background - Android: delete blank screen displayed before Splash screen -
i created splash screen
, works fine. problem before activity
with background image displayed, second, screen appears default theme of android , background of app. can stop screen appearing on startup?
thanks
startactivity
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); this.requestwindowfeature(window.feature_no_title); setcontentview(r.layout.inicio); tareaasincinicio = new tareaasincronainicio(); tareaasincinicio.execute(); }
styles
<style name="apptheme2" parent="android:theme.holo"> <item name="android:windowbackground">@drawable/app_background</item> </style>
give custom_title_splash_theme splash activity in manifest
<style name="custom_title_splash_theme" parent="android:theme"> <item name="android:windowdisablepreview">true</item> </style>
or add in style
<item name="android:windowdisablepreview">true</item>
Comments
Post a Comment