ContentCatcher: не удалось уведомить WebViewAndroid

Форум для тех, кто программирует под Android
Anonymous
ContentCatcher: не удалось уведомить WebView

Сообщение Anonymous »

Я пытаюсь открыть веб-просмотр внутри моего фрагмента. Но я получаю сообщение об ошибке.
ContentCatcher: не удалось уведомить WebView.

Ниже приведен код для моего onCreateView моего фрагмента

@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 boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return false;
}
});
webView.loadUrl("www.google.com/");
return rootView;
}


FragmentLayout









И журналы

07-13 17:59:48.410 14386-14386/com.clubtro.dev D/EgretLoader:
EgretLoader(Context context)
07-13 17:59:48.411 14386-14386/com.clubtro.dev D/EgretLoader: The
context is not activity
07-13 17:59:48.423 14386-14386/com.clubtro.dev W/ContentCatcher:
Failed to notify a WebView


Подробнее здесь: https://stackoverflow.com/questions/513 ... -a-webview

Вернуться в «Android»