[英]Android Samsung S2 spannablestringbuilder error
I'm working on an app which fetches data from server using JSON
. 我正在开发一个使用
JSON
从服务器获取数据的应用程序。 It is working fine in emulator but in my phone, it is giving error and not getting data. 它在仿真器中工作正常,但是在我的手机中,它给出了错误并且没有获取数据。
The error comes at this point in JSON
Parser.... 错误是在
JSON
分析器中出现的。
HttpPost httpPost = new HttpPost(url);
HttpPost httpPost =新的HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(params));
httpPost.setEntity(new UrlEncodedFormEntity(params)); HttpResponse httpResponse = httpClient.execute(httpPost);//Error Point httpEntity = httpResponse.getEntity();
HttpResponse httpResponse = httpClient.execute(httpPost); //错误点httpEntity = httpResponse.getEntity();
On the third line logcat shows.... 在第三行显示logcat。
SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
SPAN_EXCLUSIVE_EXCLUSIVE范围的长度不能为零
I have searched a lot but it doesn't help me. 我已经搜索了很多,但是对我没有帮助。
检查您的string.lenght()不应为0。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.