I am working on an android app which have local HTML pages to show in WebView and an option to share some content on Facebook using ShareDialog.
- When
ShareDialogis shown after aWebViewloading started, It keeps loading and nothing happens. Even if I closeWebViewand showShareDialogit keeps loading. - When
ShareDialogis shown beforeWebViewloading started, It works right.
I have try clearing WebView cache before showing ShareDialog.
I was calling
webView.pauseTimers()fromonPause()of my Fragment, which is stopping allWebViewprocess, resulting in above error.Fixed it by
webView.resumeTimer()before showing dialog.