首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

URLConnection 这个类 setAllowUserInteraction 方法是什么意思?该如何解决

2012-03-11 
URLConnection 这个类 setAllowUserInteraction 方法是什么意思?看了API ,还是不太懂,求高手指教。。API关于

URLConnection 这个类 setAllowUserInteraction 方法是什么意思?
看了API ,还是不太懂,求高手指教。。

API关于此方法的信息如下:

void setAllowUserInteraction(boolean allowuserinteraction)
设置此 URLConnection 的 allowUserInteraction 字段的值。

[解决办法]
allowUserInteraction 
如果为 true,则在允许用户交互(例如弹出一个验证对话框)的上下文中对此 URL 进行检查。

热点排行