Android Question WebView: Redirect links to Browser?

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

  1. UFOCoder13

    UFOCoder13 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.
     
    UFOCoder13 likes this.
Loading...