摘要: setRequestPropertypublic void setRequestProperty(Stringkey, Stringvalue)设置一般请求属性。如果已存在具有该关键字的属性,则用新值改写其值。注:HTTP 要求所有能够合法拥有多个具有相同键的实例的请求属性,使用以逗号分隔的列表语法,这样可实现将多个属性添加到一个属性中。 参数:key - 用于识别请求的关键字(例如,"accept")。value - 与该键关联的值。 抛出: IllegalStateException - 如果已连接NullPointerExce... 阅读全文
posted @ 2011-12-17 17:56 Atlas's blog 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 看到网上还有一种说法是因为我们sdk的问题,我查看了下,我现在这个版本确实有更新,晚上的时候更新看看.不断的把问题解决了,但是没有找到原因.如果有谁知道原因请告之,感激不尽.看看进程管理器中有没有前一次运行中没关闭的进程Edit这个模拟器,选中Snapshot:下的Enabled这个复选框,就行了-----------------------------------------------------------------------之前这个问题用上面的方法解决了,结果现在又出现了.1.删除avd所在的文件夹: C:/Documents and Settings/chenchongji/.a 阅读全文
posted @ 2011-12-17 15:50 Atlas's blog 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/4529784/android-cannot-access-localhostI started a local http server on Android and it can be reached by other computers in the same local network. But if I try to access this server using opera on the same phone, it won't work. So this means we are not able to 阅读全文
posted @ 2011-12-17 14:46 Atlas's blog 阅读(388) 评论(0) 推荐(0) 编辑
摘要: http://book.51cto.com/art/200908/141101.htm13.8 SortedMap接口SortedMap接口是排序接口,只要是实现了此接口的子类,都属于排序的子类,TreeMap也是此接口的一个子类。SortedMap接口的定义如下:publicinterfaceSortedMap<K,V> extendsMap<K,V>之前讲解的TreeMap就是此接口的实现类,所以TreeMap可以完成排序的功能。在此接口上定义了一些Map中没有的方法,表13-14列出了部分的方法。表13-14 SortedMap接口扩展的方法序号方法类型描述1pu 阅读全文
posted @ 2011-12-17 14:04 Atlas's blog 阅读(4279) 评论(1) 推荐(0) 编辑
摘要: http://www.7xz.com/topic/6489启动android模拟器时候如果提示:Failedtoinstallondevice´emulator-5554´:timeout这是可能因为卡的原因导致启动超时,解决办法:eclipse->window->Preferences->Android->DDMS->ADBconnectiontimeout(ms).把这个时间设置的长一些,默认是5秒即5000ms,我改成10秒就ok了。这样就不用每次重启模拟器了。具体时间设置根据实际环境需要------------------------- 阅读全文
posted @ 2011-12-17 11:58 Atlas's blog 阅读(394) 评论(0) 推荐(0) 编辑
摘要: <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip"> <CheckBox android:id="@+id/login_cb_savepwd" android:layout_width="wrap_content" android:layout_height="wra... 阅读全文
posted @ 2011-12-17 11:43 Atlas's blog 阅读(842) 评论(0) 推荐(0) 编辑