android webview client activity indicator

前端 未结 4 1689
粉色の甜心
粉色の甜心 2020-12-31 09:57

I got the code for showing activity indicator in a webview. I checked more than one reference and still I couldn\'t get it working. Can you please help me to debug my code b

4条回答
  •  隐瞒了意图╮
    2020-12-31 10:41

    I cannot post a comment because I don't have enough reputation points, but just a quick comment on the accepted answer: Check for null before checking if the dialog is showing. This will avoid the dreaded NPE.

    if(pd != null && pd.isShowing()) { ... }
    

提交回复
热议问题