易截截图软件、单文件、免安装、纯绿色、仅160KB

WAP HttpConnection问题

Java code:

public void run() {

gra.drawString("test",x,y,Graphics.LEFT| Graphics.TOP);
Font font = Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD,
Font.SIZE_LARGE);
gra.setFont(font);
gra.setColor(0, 0, 0);
gra.drawRect(0, 0, this.getWidth(), this.getHeight());
// TODO Auto-generated method stub
javax.microedition.io.HttpConnection hc = null;
try {
hc = (HttpConnection) Connector
.open("http://110.43.5.66:8678/default.aspx");
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
System.out.println("connected");
System.out.println(hc.getResponseMessage());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

DataInputStream dis = null;
try {
dis = hc.openDataInputStream();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int length = (int)hc.getLength();
byte[] b = new


相关问答:

wap 1.0 wml中的问题

wap 1.0 wml 以下是什么意思?
<onevent type="onenterforward"> <refresh> <setvar name="txtUserName" value="" /> <setvar name="txtPassword" ......

asp.net wap网站开发,控件换行问题

控件解释到客户端时,自动加了br
换行了,这个可以解决吗?不让他自动加br
<br /> 强制换行

现在问题是,我不想换行
代码如:
<mobile:Image ID="ErrorImage" Runat="server" I ......

wap 乱码 - .NET技术 / C#

在web.config中配置
  <globalization fileEncoding="UTF-8" requestEncoding="UTF-8" responseEncoding="UTF-8" />
aspx页面
<%Response.ContentType = " ......

怪事,WAP网站无法采集? - Web 开发 / ASP

我用Server.CreateObject("MSXML2.serverXMLHTTP")来取得网站的源代码,我采集了好几个WAP站,都没问题,可是中国移动的网站却出了问题,我用opera无法访问,但是用手机却可以访问,在手机上用Server.Crea ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号