Android Question WebView replaced by an ImageView

Discussion in 'Android Questions' started by Alberto Michelis, Jun 23, 2015.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Hi, I have a webview which shows a web page.
    How can I replace the webview by an imageview if the URL do not load, mostly because the device is not connected?
    How can I know that the URL is not loaded to make the webview not visible and the image visible?

    Thanks
     
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi.
    In PageFinish you can know that page loaded.
    check internet and if not active then show image easly :)
     
    mangojack likes this.
  3. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Problem is, you allways gets the URL in PageFinished.
    How do you check for the internet?
     
Loading...