アプリの実行中に断続的に次のエラーが発生するようです。
「アクティビティは、最初にここに追加されたウィンドウ com.android.internal.policy.impl.PhoneWindow$DecorView@40521348 をリークしました」
私がやっているのは、次のように onCreate() メソッドでダイアログを作成することだけです。
@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();
}
問題の可能性はありますか?