I’m developing an app in which i have to display an ad,have set it’s position and ad is displying but when we click on ad image this open in same webview.But i wanna when we click another webbview should open for display.Can any please help me out.Thanks
Code:
WebView ad = (WebView) findViewById(R.id.ad);
ad.loadUrl(url);
ad.setWebViewClient(new MyWebViewClient());
class MyWebViewClient extends WebViewClient {
@Override
// show the web page in webview but not in web browser
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
}
Finally done this using…….following code