首页 > 其他 > 详细

用Volley-nullpointerexception

时间:2015-05-26 22:48:39      阅读:244      评论:0      收藏:0      [点我收藏+]
1  public Request(int method, String url, Response.ErrorListener listener) {
2         mMethod = method;
3         mUrl = url;
4         mErrorListener = listener;
5         setRetryPolicy(new DefaultRetryPolicy());
6 
7         mDefaultTrafficStatsTag = TextUtils.isEmpty(url) ? 0: Uri.parse(url).getHost().hashCode();
8    }

 

最后发现是没有加http://

 

http://stackoverflow.com/questions/18523961/android-maven-project-using-volley-nullpointerexception

用Volley-nullpointerexception

原文:http://www.cnblogs.com/royi123/p/4531777.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!