摘要: 今天看到一篇文章,收藏了很多大牛的博客,在这里分享一下(转载于:http://blog.csdn.net/wujxiaoz/article/details/8237096)Android中文WikiAndroidStudio-NDK开发-移动开发团队谦虚的天下 - 博客园gundumw100博客 -... 阅读全文
posted @ 2015-12-24 12:25 黑土白云 阅读(745) 评论(0) 推荐(0) 编辑
摘要: HTTP响应状态码: 1**:请求收到,继续处理2**:操作成功收到,分析、接受3**:完成此请求必须进一步处理4**:请求包含一个错误语法或不能完成5**:服务器执行一个完全有效请求失败100——客户必须继续发出请求101——客户要求服务器根据请求转换HTTP协议版本200——交易成功201——提... 阅读全文
posted @ 2015-12-23 13:24 黑土白云 阅读(273) 评论(0) 推荐(0) 编辑
摘要: myeclipse连接mysql数据库详细步骤第一步 打开Database windows-prefenrence-showview-DBbrowser ,此时会在工具底部有个DBbrowser ,选中它,再它所控制的页面的任意位置 右击new---跳转到一个配置driver的页面 (选择连接方式)... 阅读全文
posted @ 2015-12-11 15:40 黑土白云 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 第一步 创建一个没有界面的广播接收者 继承AppWidgetProviderpublic class MyWidget extends AppWidgetProvider { @Override public void onReceive(Context context, Intent intent... 阅读全文
posted @ 2015-12-09 23:14 黑土白云 阅读(202) 评论(0) 推荐(0) 编辑
摘要: public class ExcelUtil { /** * 导出用户的所有列表到excel * @param userList 用户列表 * @param outputStream 输出流 */ public static void exportUserExcel(List userLis... 阅读全文
posted @ 2015-12-09 14:18 黑土白云 阅读(254) 评论(0) 推荐(0) 编辑
摘要: public class TestPOI2Excel { @Test public void testWrite03Excel() throws Exception { //1、创建工作簿 HSSFWorkbook workbook = new HSSFWorkbook(); //2、创建工作... 阅读全文
posted @ 2015-12-09 13:55 黑土白云 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 在Android开发中我们经常有这样的需求,从服务器上下载xml或者JSON类型的数据,其中包括一些图片资源,本demo模拟了这个需求,从网络上加载XML资源,其中包括图片,我们要做的解析XML里面的数据,并且把图片缓存到本地一个cache目录里面,并且用一个自定义的Adapter去填充到LIstV... 阅读全文
posted @ 2015-12-08 16:32 黑土白云 阅读(317) 评论(0) 推荐(0) 编辑
摘要: private boolean getNetWorkStatus() { boolean netSataus = false; ConnectivityManager cwjManager = (ConnectivityManager) getSystemService... 阅读全文
posted @ 2015-12-08 15:43 黑土白云 阅读(136) 评论(0) 推荐(0) 编辑
摘要: public void setBrightness(int level) { ContentResolver cr = getContentResolver(); Settings.System.putInt(cr, "screen_brightness", level); Window... 阅读全文
posted @ 2015-12-08 15:41 黑土白云 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 首先是回顾一下spring的基本知识1、@controller 控制器(注入服务)2、@service 服务(注入dao)3、@repository dao(实现dao访问)4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的) @Component,@Servi... 阅读全文
posted @ 2015-12-08 15:22 黑土白云 阅读(137) 评论(0) 推荐(0) 编辑