android - Getting network errror while fql query with androidquery -
im trying fql query in android application aquery. in first fql query got json normal, when scroll list more posts (calling method using created_time comparisons ) got network error e aquery , json null.
if test url in browser, runs correctly , returns json data, when run android, network error , json comes null.
anyone can give me help?
this method called when scroll:
public void calljsonnext(){ progress_bottom.setvisibility(view.visible); final aquery aq = new aquery(getactivity()); string url = url_postagens_passadas + created_time_olds + "limit%2010&access_token=" + access_token; log.d("url_call_json_next", url); aq.ajax(url, jsonobject.class, new ajaxcallback<jsonobject>() { @override public void callback(string url, jsonobject json, ajaxstatus status) { log.d("status_next", status.tostring()); if(json != null){ fillarraywitholderposts(json); }else{ toast.maketext(aq.getcontext(), "error:" + status.getcode() + " in json next" + status.geterror() + status.getmessage() + status.getsource(), toast.length_long).show(); toast.maketext(aq.getcontext(), "error:" + status.getcode() + " in json next" + status.geterror() + status.getmessage() + status.getsource(), toast.length_long).show(); } } }); }
try copy url , paste in browrser , see whats response.
or use string.class type second call , print out response debug.
most wrong url cause result invalid json type.
Comments
Post a Comment