webvew ¿¡¼ ºê¶ó¿ìÀú·Î ¸µÅ©( blank) |
|
|
![](icon/private_name/1.gif) |
8³â Àü |
·Ñ¸®ÆË¿¡¼ ºê¶ó¿ìÀú »õ⠾ȿ¸®´Â ¹®Á¦ ÇØ°á
private class MyWebChromeclient extends WebChromeClient {
@Override
public boolean onCreateWindow(WebView view, boolean isDialog,
boolean isUserGesture, Message resultMsg) {
WebView newWebView = new WebView(WebViewActivity2.this);
view.addView(newWebView);
WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;
transport.setWebView(newWebView);
resultMsg.sendToTarget();
newWebView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Intent browserIntent = new Intent(Intent.ACTION_VIEW);
browserIntent.setData(Uri.parse(url));
startActivity(browserIntent);
return true;
}
});
return true;
} |
|
̵̧ : 251 |
̵̧
¸ñ·Ï
|
|