05 2013 档案

摘要:Android里的事务提交 SQLiteDatabase db = SQLiteHelper.getInstance().getWritableDatabase(); db.beginTransaction(); for (Map.Entry<String, String> entry : config.entrySet()) { ContentValues contents = new ContentValues(); contents.put("value", entry.getValue()); ... 阅读全文
posted @ 2013-05-13 20:01 yondy 阅读(274) 评论(0) 推荐(0)
摘要:在Activit获取wifi状态获取WIFI的开关状态WifiManager wifiMgr = (WifiManager) this.getSystemService(WIFI_SERVICE);int stat = wifiMgr.getWifiState(),获取WIFI的连接状态ConnectivityManager conMan = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);State wifi = conMan.getNetworkInfo(ConnectivityManage 阅读全文
posted @ 2013-05-11 23:46 yondy 阅读(1298) 评论(0) 推荐(0)
摘要:基于前一篇的基础上进行配置http://www.cnblogs.com/yondy/archive/2013/04/23/3033404.html因为lighttpd不支持svn,所以要先卸载掉sudo apt-get remove lighttpd新安装apache2及模块sudo apt-get... 阅读全文
posted @ 2013-05-01 00:44 yondy 阅读(435) 评论(0) 推荐(0)