Android RuntimeException onCreateDialog did not create a dialog for id

前端 未结 5 960
温柔的废话
温柔的废话 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:11

    For SDK version < 8, if you return null in onCreateDialog you get Exception java.lang.IllegalArgumentException.

提交回复
热议问题