文件名称:Androidjs
介绍说明--下载内容均来自于网络,请自行研究使用
Android与Js交互的演示实例,与Javascr ipt交互的例子,获得浏览器组件。
//WebView就是一个简单的浏览器
//android浏览器源码存在于LINUX/android/package/apps/Browser中
//里面的所有操作都是围绕WebView来展开的
//WebSettings 几乎浏览器的所有设置都在该类中进行
DemoJavascr iptInterface类为js调用android服务器端提供接口
* android 作为DemoJavascr iptInterface类的客户端接口被js调用
* 调用的具体方法在DemoJavascr iptInterface中定义:
* 例如该实例中的clickOnAndroid
继承WebChromeClient类
* 在这个类的3个方法中,分别使用Android的内置控件重写了Js中对应的对话框,就是说对js中的对话框做处理了,就是重写了。-Android and Js interactive demo instance, to interact with the Javascr ipt example, access to the components of the browser.// WebView is a simple browser// android browser source code exists in the linux/android/package/apps/Browser// inside all operations are expanded around the WebView/the/the WebSettings almost all settings of the browser js call android server-side interface in the class DemoJavascr iptInterface class* android as the DemoJavascr iptInterface class client interface js call* call specific methods defined in DemoJavascr iptInterface:* For example, in this instance clickOnAndroid inherited WebChromeClient of class* this three methods of the class, respectively, using the Android built-in controls rewrite Js corresponding dialog box, that is handled js dialog box is rewritten.
//WebView就是一个简单的浏览器
//android浏览器源码存在于LINUX/android/package/apps/Browser中
//里面的所有操作都是围绕WebView来展开的
//WebSettings 几乎浏览器的所有设置都在该类中进行
DemoJavascr iptInterface类为js调用android服务器端提供接口
* android 作为DemoJavascr iptInterface类的客户端接口被js调用
* 调用的具体方法在DemoJavascr iptInterface中定义:
* 例如该实例中的clickOnAndroid
继承WebChromeClient类
* 在这个类的3个方法中,分别使用Android的内置控件重写了Js中对应的对话框,就是说对js中的对话框做处理了,就是重写了。-Android and Js interactive demo instance, to interact with the Javascr ipt example, access to the components of the browser.// WebView is a simple browser// android browser source code exists in the linux/android/package/apps/Browser// inside all operations are expanded around the WebView/the/the WebSettings almost all settings of the browser js call android server-side interface in the class DemoJavascr iptInterface class* android as the DemoJavascr iptInterface class client interface js call* call specific methods defined in DemoJavascr iptInterface:* For example, in this instance clickOnAndroid inherited WebChromeClient of class* this three methods of the class, respectively, using the Android built-in controls rewrite Js corresponding dialog box, that is handled js dialog box is rewritten.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Androidjs\AndroidJsTest\.classpath
.........\.............\.project
.........\.............\AndroidManifest.xml
.........\.............\assets\android_normal.png
.........\.............\......\android_waving.png
.........\.............\......\index.css
.........\.............\......\index.html
.........\.............\......\index.js
.........\.............\......\index2.html
.........\.............\bin\AndroidJsTest.apk
.........\.............\...\classes.dex
.........\.............\...\.om\renren\js\PhoneTest$DemoJavaScriptInterface$1.class
.........\.............\...\...\......\..\PhoneTest$DemoJavaScriptInterface.class
.........\.............\...\...\......\..\PhoneTest$DemoWebViewClient.class
.........\.............\...\...\......\..\PhoneTest$MyWebChromeClient$1.class
.........\.............\...\...\......\..\PhoneTest$MyWebChromeClient.class
.........\.............\...\...\......\..\PhoneTest.class
.........\.............\...\...\......\..\R$attr.class
.........\.............\...\...\......\..\R$drawable.class
.........\.............\...\...\......\..\R$id.class
.........\.............\...\...\......\..\R$layout.class
.........\.............\...\...\......\..\R$string.class
.........\.............\...\...\......\..\R.class
.........\.............\...\resources.ap_
.........\.............\default.properties
.........\.............\gen\com\renren\js\R.java
.........\.............\proguard.cfg
.........\.............\res\drawable-hdpi\icon.png
.........\.............\...\.........ldpi\icon.png
.........\.............\...\.........mdpi\icon.png
.........\.............\...\layout\main.xml
.........\.............\...\values\strings.xml
.........\.............\src\com\renren\js\PhoneTest.java
.........\.............\bin\com\renren\js
.........\.............\gen\com\renren\js
.........\.............\src\com\renren\js
.........\.............\bin\com\renren
.........\.............\gen\com\renren
.........\.............\src\com\renren
.........\.............\bin\com
.........\.............\gen\com
.........\.............\res\drawable-hdpi
.........\.............\...\drawable-ldpi
.........\.............\...\drawable-mdpi
.........\.............\...\layout
.........\.............\...\values
.........\.............\src\com
.........\.............\assets
.........\.............\bin
.........\.............\gen
.........\.............\res
.........\.............\src
.........\AndroidJsTest
Androidjs