摘要: 软件: JDK: eclipse: Lomboz: http://lomboz.ow2.org/ Tomcat: http://tomcat.apache.org/download-60.cgi 阅读全文
posted @ 2011-09-19 17:16 镇水古月 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 引用:http://www.pin5i.com/showtopic-android-asynctask-sample.htmlAsyncTask 看上去修改后的connect()方法已经可用了,但是这种匿名线程的方式是存在缺陷的:第一,线程的开销较大,如果每个任务都要创建一个线程,那么应用 程序的效率要低很多;第二,线程无法管理,匿名线程创建并启动后就不受程序的控制了,如果有很多个请求发送,那么就会启动非常多的线程,系统将不堪重负。 另外,前面已经看到,在新线程中更新UI还必须要引入handler,这让代码看上去非常臃肿。 为了解决这一问题,OPhone在1.5版本引入了Async... 阅读全文
posted @ 2011-09-19 15:43 镇水古月 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 详细介绍:http://wenku.baidu.com/view/fcf6d3f47c1cfad6195fa724.html?from=rec&pos=0&weight=14&lastweight=1&count=5 /** * 在SD卡上创建文件 * * @throws IOException */ public File creatSDFile(String fileName) throws IOException { File file = new File(SDPATH + fileName); f... 阅读全文
posted @ 2011-09-19 15:04 镇水古月 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 引用:http://www.cnblogs.com/skylaugh/archive/2006/09/15/505393.html我的xml文件Login.xml如下.<?xmlversion="1.0"encoding="utf-8"?><Login><Character><CText="热血"Value="0"></C><CText="弱气"Value="1"></C><CText= 阅读全文
posted @ 2011-09-19 13:33 镇水古月 阅读(306) 评论(0) 推荐(0) 编辑