웹뷰 사용자 오류 페이지 > Android Studio

본문 바로가기
사이트 내 전체검색

Android Studio

웹뷰 사용자 오류 페이지

페이지 정보

profile_image
작성자 최고관리자
댓글 0건 조회 85회 작성일 22-09-16 04:12

본문

둘중 하나다. 뭘까? 




mWebView.setWebViewClient(new WebViewClient(){
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {super.onReceivedError(view, request, error){
String customErrorPageHtml = "<html><center><br><br><br><span style='font-size:32px;'>페이지를 로드할 수 없습니다</span></center></html>";
view.loadData(customErrorPageHtml, "text/html", "UTF-8");
}
});
mWebView.setWebViewClient(new WebViewClient(){
@Override
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
super.onReceivedError(view, errorCode, description, failingUrl);
view.loadUrl("about:blank");
}
});





댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

접속자집계

오늘
7
어제
9
최대
70
전체
2,978
Copyright © OHPR All rights reserved.