上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页
摘要: 12-19 12:12:42.701: E/AndroidRuntime(626): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.clm.activity/com.clm.activity.RegistActivity}: java.lang.NullPointerException12-19 12:12:42.701: E/AndroidRuntime(626): at com.clm.activity.RegistActivity.onCreate(RegistActivity.java:39 阅读全文
posted @ 2011-12-19 23:24 Atlas's blog 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 建有emulator,在Run configuration里面 Automatic 勾选默认emulatorselect a preferred Android Virtual Device for deployment 阅读全文
posted @ 2011-12-19 16:40 Atlas's blog 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: Change modifier of 'music' to finalhttp://stackoverflow.com/questions/1299837/cannot-refer-to-a-non-final-variable-inside-an-inner-class-defined-in-a-differen最近在写程序的时候一直出现这个提示,一直没有时间来查询原因.不解,先把标题留在这儿,有时间了来查看还有一个是实例化后的对象在赋为 return null时没有为null 阅读全文
posted @ 2011-12-16 23:50 Atlas's blog 阅读(492) 评论(0) 推荐(0) 编辑
摘要: /*错误的*/select song.song_name,song.title_url,song.mv_url,singer.singer_name from WEBDB_PROD_SONG as song, WEBDB_PROD_SINGER as singer where song.singer_id=singer.singer_id andsong.song_name=(select* from WEBDB_PROD_SONG where song_name='F289D7C4')消息 116,级别 16,状态 1,第 1 行当没有用 EXISTS 引入子查询时,在选择列 阅读全文
posted @ 2011-12-16 23:31 Atlas's blog 阅读(664) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页