Кажется, я периодически получаю следующую ошибку, когда запускаю свое приложение.
«Активность привела к утечке окна 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();
}
Есть идеи, в чем может быть проблема?