Webview crashes on select box or any Dialog

后端 未结 1 1608
南笙
南笙 2021-01-21 07:33

I have an application where clicking on an item in a list shows webview with javascript injected.I need to save the webview object so that when the user presses the same item ag

1条回答
  •  情书的邮戳
    2021-01-21 08:00

    I had a similar problem. In my case the webview was in an ActivityGroup. ActivityGroups and dialogs don't work out of the box. In my case I had to not use this as context, instead use getParent().

    temp_WebView=new WebView(getParent());
    

    0 讨论(0)
提交回复
热议问题