Android RuntimeException onCreateDialog did not create a dialog for id

前端 未结 5 954
温柔的废话
温柔的废话 2021-02-09 19:33

I\'ve an application that you can show and close several Dialogs with:

showDialog(...)
removeDialog(...)

I play a little bit with the applicati

5条回答
  •  余生分开走
    2021-02-09 20:02

    Have you implemented OnCreateDialog as presented here? When you call showDialog(4) for the first time, OnCreateDialog(4) will be called and you need to create the dialog and return it from this method.

提交回复
热议问题