안드로이드 All WebView methods must be called on the same thread 오류 수정


안드로이드 All WebView methods must be called on the same thread 오류 수정

All WebView methods must be called on the same thread 오류 시 해결방법입니다. JavascriptInterface 안에서 동작하는 작업을 post()로 처리하면 되는데요 mWebView.post(new Runnable(){ @Override public void run(){ mWebView.loadUrl("UrlString"); } }); 저는 JavascriptInterface에서 다른 페이지로 이동시키려고 할 때 오류가 발생했고 위와같이 해결했습니다.

안드로이드 All WebView methods must be called on the same thread 오류 수정에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : 안드로이드 All WebView methods must be called on the same thread 오류 수정