I am properly checking if device has internet connection or not but for any other reasons is not suitable for me.
I need to capture event when a webview tries to open a webpage but this one could not be opened due to internet conection. Now, webview displays standard browser page “www.mypage.com could not be opened…”. Which event can be handled for this? Thank you
I am properly checking if device has internet connection or not but for any
Share
I generally check what response the req sent to internet connection gives and if it fails I throw a customised
Exception.And in mycatchblock I handle it the way I want like give customised message,alertorToast.The conditions I check for which url can’t be opened:
Each of them I handle differently using my own exception classes.