摘要:一天半调试时间,一些列的错误仅仅源于使用了mkdir()而没有使用mkdirs()。谨记!客户反馈,程序不能正常更新,于是拿出程序来仔细研究之前的代码,重新审视了 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />像这样的权限代码,没问题,而就是更新不下来。出现进度条一闪而
阅读全文
摘要:错误:复写BaseAdapter后使用ListView的下拉刷新功能,每次刷新数据,产生以下错误:04-12 16:00:54.140: E/AndroidRuntime(4663): java.lang.ClassCastException: android.widget.HeaderViewListAdapter原因:这是因为当向listview中加入headerview或者footviwer时,调用ListView的setAdapter方法会将adapter转化为headerviewlistadapter解决方案:将:((BlogStatusAdapter)listView.getAda
阅读全文
摘要:为了开发方便,将两个eclipse图标在桌面建立了快捷方式,同时一个快捷方式为:eclipse-webeclipse-web开启后,使用不长时间就会报错:Unhandled event loop exception PermGen space点击OK后就会跳出:点击Yes推出。网上搜索各种方法,包括,更改eclipse.ini文件的配置都无法解决这个问题,于是乎老老实实的,将eclipse-web重命名为eclipse,问题解决!
阅读全文
摘要:报错:Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar解决方法:Project -> Properties -> libraries,先remove掉JRE System Library,然后再Add Library重新加入。============================================在Eclipse中处理图片,需要引入两个包:import
阅读全文
摘要:eclipse 错误:two or more web modules defined in the configuration have the same context root(/项目名)。to start this server you will need to remove the duplicate(s)产生原因: 因为tomcat为项目建立服务器的配置出现错误。错误的文件为D:\Test\Servers\Tomcat v5.5 Server at localhost-config\server.xml,当你直接复制项目时项目当中D:\Test\test\.settings\org.
阅读全文