Android Question WebView: Redirect links to Browser?

Discussion in 'Android Questions' started by ShaneG30, Jun 26, 2015.

  1. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    I'm looking into an ad service that doesn't have any native SDKs and uses Javascript to render the ads.

    The only solution is to use a WebView, and I'm wanting to know if it's possible to tell links to load in an external browser instead of the WebView.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Yes. You can use PhoneIntents from the Phone library to open a link in the default browser.

    Handle WebView_OverrideUrl. This will allow you to get the link and open it in the default browser.
     
    ShaneG30 likes this.
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