안녕하세요.
webview 가 호출하는 url 페이지에서 자바스크립트 알러창을 호출하고 싶습니다.
<WebView
android:id="@+id/readreviewread_webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="none" />
web = (WebView)findViewById(R.id.readreviewread_webview);
web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);
web.getSettings().setJavaScriptEnabled(true);
web.getSettings().setPluginsEnabled(true);
web.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
web.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
web.loadUrl("url");
url페이지의 소스가
<script>
alert('메세지 나와라');
</script>
이렇게 되어있습니다.
자바스크립트호출도 true로 했는데도 안됩니다.....
좋은하루 되시구요, 답변 부탁 드리겠습니다.
감사합니다.




alert, confirm 같은 경우는 웹뷰에 WebChromeClient 를 설정해 주셔야 합니다.