摘要: 在Android开发中我们经常有这样的需求,从服务器上下载xml或者JSON类型的数据,其中包括一些图片资源,本demo模拟了这个需求,从网络上加载XML资源,其中包括图片,我们要做的解析XML里面的数据,并且把图片缓存到本地一个cache目录里面,并且用一个自定义的Adapter去填充到LIstV... 阅读全文
posted @ 2015-12-08 16:32 黑土白云 阅读(324) 评论(0) 推荐(0)
摘要: private boolean getNetWorkStatus() { boolean netSataus = false; ConnectivityManager cwjManager = (ConnectivityManager) getSystemService... 阅读全文
posted @ 2015-12-08 15:43 黑土白云 阅读(146) 评论(0) 推荐(0)
摘要: public void setBrightness(int level) { ContentResolver cr = getContentResolver(); Settings.System.putInt(cr, "screen_brightness", level); Window... 阅读全文
posted @ 2015-12-08 15:41 黑土白云 阅读(156) 评论(0) 推荐(0)
摘要: 首先是回顾一下spring的基本知识1、@controller 控制器(注入服务)2、@service 服务(注入dao)3、@repository dao(实现dao访问)4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的) @Component,@Servi... 阅读全文
posted @ 2015-12-08 15:22 黑土白云 阅读(145) 评论(0) 推荐(0)
摘要: index.jsp org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:applicationContext.xml mvc org.springf... 阅读全文
posted @ 2015-12-08 15:00 黑土白云 阅读(633) 评论(0) 推荐(0)
摘要: 我遇到的是Form表单提交到servelet处理时遇到的问题:(1)//表单的内容(2)对应的处理用户请求的servlet类为HelloServlet.java;(3)配置web.xml文件:③servlet/HelloServlet③servlet/①welcome然后在login.jsp中应该是... 阅读全文
posted @ 2015-12-08 14:55 黑土白云 阅读(1213) 评论(0) 推荐(0)