摘要: 一、使用环境 1、windows64位操作系统2、ADT为adt-bundle-windows-x86_64-20130917 3、NDK为android-ndk-r9b二、配置生成头文件.h ⒈首先,如图所示,点击External Tools Configurations... ⒉然后,如... 阅读全文
posted @ 2014-02-19 22:51 whroid 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Android中 WebView控件支持JS与本地代码的交互。// 是否允许在webview中执行javascriptwebSettings.setJavaScriptEnabled(true);//添加JS的接口名称mWebView.addJavascriptInterface(this, "mobiletojs"); 其主要分为两类: 1:JS调用本地代码 通过window.mobiletojs.saveLogin(username, password); mobiletojs 对应mWebView.addJavascriptInterface(this, " 阅读全文
posted @ 2014-02-19 16:50 whroid 阅读(611) 评论(0) 推荐(0) 编辑