摘要: 1、 JS调用的安卓方法必须放在一个Handler中执行 2、 webview可能造成漏洞,调用时分三种: addJavascriptInterface 进行js调用, 4.2以下有漏洞 使用WebViewClient的shouldOverrideUrlLoading 进行url拦截,缺点是单向请求 阅读全文
posted @ 2015-12-05 14:23 Xiao.T 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 近日在使用AlertDialog时发现一个错误:Unable to add window -- token null is not for an application,从前面观察是无法添加一个新的窗口到这个context,后来想了想前面是用的getApplicationContext()传递过来的... 阅读全文
posted @ 2015-12-05 14:20 Xiao.T 阅读(396) 评论(0) 推荐(0) 编辑