Android Question I have another WebView question

Discussion in 'Android Questions' started by Lary Yenta, May 9, 2015.

  1. Lary Yenta

    Lary Yenta Member Licensed User

    Okay, I have succeeded in creating an html file with my glucose reading report which I can read fine on my pc. I wanted to use the WebView component to read the file on my tablet. I have tried this, but it shows nothing on the screen:

    Code:
    Sub btn1_Click
       
    Dim T1 As String
       T1= 
    File.DirDefaultExternal & "/" & "GluRpt.html"
       
       WebView1.LoadUrl(T1)   
       
    End Sub
    I know that someone will know the answer as to what I amn doing wrong here.

    Regards,

    lary
     
  2. LucaMs

    LucaMs Expert Licensed User

    Code:
    WebView1.LoadUrl("file://" & File.Combine(File.DirDefaultExternal, "GluRpt.html"))
     
  3. Lary Yenta

    Lary Yenta Member Licensed User

    Thanks for the response LucaMs. I Tried that but the message that I get is "File not found". I know that the file is there because I can browse to it but I don't understand why I can't get it to display?

    Regards,

    Lary
     
  4. Reviewnow

    Reviewnow Active Member Licensed User

    try
    WebView1.LoadUrl("file:///" & File.Combine(File.DirDefaultExternal, "/GluRpt.html"))
     
  5. Lary Yenta

    Lary Yenta Member Licensed User

    Ok, Tried that and I got the following message....
     

    Attached Files:

  6. Reviewnow

    Reviewnow Active Member Licensed User

    you have to do it on the live device
     
    Lary Yenta likes this.
  7. Lary Yenta

    Lary Yenta Member Licensed User

    Hi there, Reviewnow. I have tried it live and a few different ways but no luck. Perhaps the proble is that my main test unit is a Nexus 7 which only uses an emulated SDCard. I find it strange though. If anyone has any suggestions I would welcome them.

    Regards,

    lary
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice