摘要: /* statement与preparedStatement比较每次执行sql语句,数据库都要执行sql语句的编译,最好用在仅执行一次查询并返回结果的情形,存在sql注入风险。在执行可变参数的一条sql时,preparedstatement 比state... 阅读全文
posted @ 2015-01-08 23:04 BigShui 阅读(179) 评论(0) 推荐(0)
摘要: service开发的步骤: 1.继承Service类 2.在AndroidManifest.xml文件中的节点里对服务进行配置: 3.服务不能自己运行,需要通过调用Context.startService()或Context.bindService()方法启动服务public class MainA... 阅读全文
posted @ 2015-01-08 22:29 BigShui 阅读(129) 评论(0) 推荐(0)