Android RuntimeException onCreateDialog did not create a dialog for id

前端 未结 5 955
温柔的废话
温柔的废话 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 19:56

    Are you properly returning the dialog in onCreateDialog? If you were to do dialog.show() in dialog create but return some other dialog you could perhaps get a result like that.

    Or are you doing any sort of manipulation in of the dialog object in onPrepareDialog

提交回复
热议问题