on-internet
← Community

ContentCatcher: Failed to notify a WebView

Stack Overflow ·

I am trying to open a webview inside my fragment. But I am getting the error ContentCatcher: Failed to notify a WebView. Below is the code for my onCreateView of my fragment @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_payment_gateway, container, false); webView=(WebView)rootView.findViewById(R.id.paymentwebview); WebSettings webSettings= webView.getSettings(); webSettings.setJavaScriptEnabled(true); webView.setWebViewClient(new WebViewClient() { @Override public

Comments

Sign in or sign up to comment and upvote.

No comments yet.