A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

这个是PHP做的服务端返回的Json格式的数据如下:
{"data":{"hasnext":0,"info":[{"username":"\u201c\u6f02\u4eae\u59d1\u5a18\u4f22\u201d\u62db\u52df\u5566\uff01","email":"2011-03-14 16:31:34","avatar":"http:\/\/172.23.23.13\/Server\/images\/1.gif","timestamp":1332122180,"isvip":1},{"username":"\u51e1\u5ba2\u8bda\u54c1\u6b66\u6c49\u63a8\u5e7f\u6d3b\u52a8\u706b\u7206\u767b\u573a","email":"2011-03-17 13:58:17","avatar":"http:\/\/172.23.23.13\/Server\/images\/1.gif","timestamp":1332122180,"isvip":1},{"username":"\u3010\u4e00\u4ed4\u5e26\u4f60\u5403\u3011\u9080\u4f60\u5230\u5df4\u897f\u5361\u7279\u5170\u514d\u8d39\u54c1\u5c1d\u81ea\u52a9\u70e7\u70e4","email":"2011-04-02 09:13:19","avatar":"http:\/\/172.23.23.13\/Server\/images\/1.gif","timestamp":1332122180,"isvip":1}]}}


       但是会有一个问题有时间加载几十页都不会有问题,有时候加载到第二页的时候就会出现“进程以外停止”报错如下:
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread
      所以小弟在此放出附件希望有高手给优化下同时希望能给android新手一些帮助。


上图:


                   





源码: PHP_Client_5.rar (96.53 KB, 下载次数: 165)

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马