I'm seem to intermittently be getting the following error when I'm running my app.
"Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40521348 that was originally added here"
All I'm doing is creating my dialog in my onCreate() method like so:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//Create splash-screen object and pass in width and height (width and height are defined and valid, I just removed them from this post to make it more readable)
splash = new SplashScreen(MainActivity.this, width, height);
//Create dialog that will show splash-screen
loading_dialog = new Dialog(MainActivity.this,android.R.style.Theme_Black_NoTitleBar_Fullscreen);
//Set and display splash screen view
loading_dialog.setContentView(splash);
loading_dialog.show();
}
Any ideas what the problem could be?