Android Question How to open an https with webview?

Discussion in 'Android Questions' started by JoanRPM, Jul 10, 2015.

  1. JoanRPM

    JoanRPM Active Member Licensed User

    To open an http with webview I do the following:
    Code:
    WebView1.LoadUrl("http://www.google.com")
    But an Https does not open.

    How can I do to open https addresses within a webview?

    Thanks.
     
  2. sonicmayne

    sonicmayne Member Licensed User

    What happens? Is there an error in the WebView? Is there anything in the logs?
     
    giga likes this.
  3. giga

    giga Well-Known Member Licensed User

    That should work, I use the same code with no trouble. Is there an error?
     
    JoanRPM and sonicmayne like this.
  4. giga

    giga Well-Known Member Licensed User

    @sonicmayne You have a very quick response:)
     
    sonicmayne likes this.
  5. JoanRPM

    JoanRPM Active Member Licensed User

    No, there is no error, and no logs.
    The page apears blank. I open it with an external browser (like google) and it works but with WebView in B4A no.
    I also try to open in B4A with this code:
    Code:
    Dim p As PhoneIntents
    StartActivity(p.OpenBrowser("https://www.example.com")
    and it works. But this is an external application.

    I need to put it in a panel (inside my program), so I need the Webview.

    Thanks.
     
  6. sonicmayne

    sonicmayne Member Licensed User

    Is the _PageFinished event raised?
     
    JoanRPM likes this.
  7. NJDude

    NJDude Expert Licensed User

    The webview is not handling the SSL handshake, you will have to use the browser.
     
    JoanRPM and sonicmayne like this.
  8. JoanRPM

    JoanRPM Active Member Licensed User

    Yes, it finishes the event raised.
    And ok, I'll need to use the browser.

    Thanks to all.
     
    sonicmayne likes this.
  9. Suhas Chatane

    Suhas Chatane Member Licensed User

  10. giga

    giga Well-Known Member Licensed User

  11. warwound

    warwound Expert Licensed User

  12. JoanRPM

    JoanRPM Active Member Licensed User

    Thanks warwound.
    I will try it.
     
Loading...