Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Black screen instead of Splash screen

$
0
0

@monobeginner wrote:

Hey,

I'm facing problem with Splash screen on Android. I show splash as activity's background but it shows splash for very short time, then black screen for about 4 seconds, and finally first frame of game is visible. From time to time it works correctly, splash is visible and after few seconds main menu. Activity theme:

<style name="Theme.Splash" parent="android:Theme">
    <item name="android:windowBackground">@drawable/splash_background</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowFullscreen">true</item>
  </style>

and here is my activity:

base.OnCreate(bundle);
var g = new Game1();
SetContentView((View)g.Services.GetService(typeof(View)));
g.Run();

Any ideas why such a behavior occurs ? Possible solutions to this problem ? I'm stuck with this for long time.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles