日期:2014-05-20  浏览次数:20736 次

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

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

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

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