Reputation: 2050
I've created an android app, and everything works fine, but when you first hit the icon to launch the app it flashes white with the title bar for a second or two before loading the full interface.
I have a previous app the just flashes black for a second or two before launching, without the title bar but I can't seem to find what is different in the setup/code that makes it do that.
After the app loads I'm removing the title bar with the following line in onCreate
requestWindowFeature(Window.FEATURE_NO_TITLE);
Upvotes: 0
Views: 417
Reputation: 2898
Add the below line in your Manifest
file for the splashaActivity
,
<activity android:name="splashActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
Hope this will solve your problem.
Upvotes: 1
Reputation: 1477
Try this. In your Manifest activity include android:theme="@android:style/Theme.Light.NoTitleBar"
<activity
android:name=".MainScreen"
android:theme="@android:style/Theme.Light.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Upvotes: 1