search

Home  >  Q&A  >  body text

android - IllegalArgumentException View not attached to window manager

请问下这是什么bug???

ringa_leeringa_lee2772 days ago587

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 17:54:30

    It seems that the activity was killed and the dialog method was called again

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:54:30

    Dialog cannot exist independently. It must be attached to the activity, that is, the window. If your window is destroyed, an error will be reported. But it seems that your error is not that the activity was destroyed, but that you used the wrong context to construct the dialog. Check this parameter.

    reply
    0
  • Cancelreply