摘要: setRequestPropertypublic void setRequestProperty(Stringkey, Stringvalue)设置一般请求属性。如果已存在具有该关键字的属性,则用新值改写其值。注:HTTP 要求所有能够合法拥有多个具有相同键的实例的请求属性,使用以逗号分隔的列表语法,这样可实现将多个属性添加到一个属性中。参数:key- 用于识别请求的关键字(例如,"accept")。value- 与该键关联的值。抛出:IllegalStateException- 如果已连接NullPointerException- ... 阅读全文
posted @ 2012-09-08 01:32 Atlas's blog 阅读(287) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/Android_2011/archive/2011/06/12/2078643.htmlAndroid 应用程序中有三大核心组件: Activity, Service, Broadcast Receiver 都是通过被称之为意图的消息运行。Intent messaging is a facility for late run-time binding between components in the same or different applications. 意图本身一个 Intent 对象,它保存了对要执行操作的抽象描述—对于broadca 阅读全文
posted @ 2012-09-08 01:31 Atlas's blog 阅读(158) 评论(0) 推荐(0)
摘要: 需求:将访问服务器的地址放置到资源文件中(assets/base.properties)base.properties:[html]view plaincopyprint?<spanstyle="font-size:16px;">intfAddr=http://192.168.0.114:8080/clm-webapp/UserInfoController.do?method=</span>HttpUtil.java:[java]view plaincopyprint?<spanstyle="font-size:16px;" 阅读全文
posted @ 2012-09-08 01:22 Atlas's blog 阅读(1032) 评论(0) 推荐(0)
摘要: [java]view plaincopyprint?ListViewlistView=getListView();//添加到脚页显示这个要继承ListActivity实现OnScrollListenerlistView.addFooterView(loadingLayout);这位兄弟的Demo非常不错.[java]view plaincopyprint?publicclassListViewUpdateextendsActivityimplementsOnScrollListener,OnItemClickListener{privateList<ApplicationItemInfo 阅读全文
posted @ 2012-09-08 01:21 Atlas's blog 阅读(1130) 评论(0) 推荐(0)