내 앱을 실행할 때 간헐적으로 다음 오류가 발생하는 것 같습니다.onCreate 메서드로 대화 상자 만들기 - 누수
는
내에서 onCreate()와 같은 방법으로 내 대화 상자를 만드는하고있어 모든 "활동은 원래 여기에 추가 된 윈도우 [email protected]를 유출했다" 그래서 :
@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();
}
어떤 아이디어가 될 수 있습니까?
안녕하세요, @ idan, 고맙지 만 작동하지 않습니다 - 'create()'메소드가 없습니다 .... 내가하고있는 일은 오류가 간헐적 인 것입니다! :-) – Zippy
비슷한 Q에 대한 링크를 추가했는데 도움이 되었기를 바랍니다 ... – idan