Android WebView的使用
2010-07-19 23:13:00 来源:WEB开发网< application android:icon="@drawable/icon" android:label="@string/app_name">
< activity android:name=".Test" android:label="@string/app_name">
< intent-filter>
< /intent-filter>
< /activity>
< /application>
< uses-permission android:name="android.permission.INTERNET" />
< /manifest>
Java代码
< %@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
< html>
< head>
< title>index.jsp
< script type="text/JavaScript">
function s(){
alert("Good Morning!");
}
function d(){
confirm("Are you ok?")
}
function f(){
prompt("What’s your name?")
}
< /script>
< /head>
< body>
下面我们演示三种对话框
< br/>< br/>
< input type="button" value="警告,提醒对话框" >
< br/>
< input type="button" value="带选择的对话框" >
< br/>
< input type="button" value="要求用户输入的对话框" >
< /body>
< /html>
更多精彩
赞助商链接