我正在使用AQuery 演示应用程序中的以下代码,并且 xml 始终为空
如何获取与我从谷歌账户列表中选择的账户相关的信息?
public void auth_specific_account(){
String url = "https://www.google.com/reader/atom/user/-/state/com.google/reading-list?n=8";
AjaxCallback<XmlDom> cb = new AjaxCallback<XmlDom>();
cb.url(url).type(XmlDom.class).weakHandler(this, "readerCb");
cb.auth(this, AQuery.AUTH_READER, AQuery.ACTIVE_ACCOUNT);
aq.progress(R.id.progress).ajax(cb);
}
public void readerCb(String url, XmlDom xml, AjaxStatus status) {
if(xml != null){
List<XmlDom> entries = xml.tags("entry");
List<String> titles = new ArrayList<String>();
for(XmlDom entry: entries){
titles.add(entry.text("title"));
}
showTextResult(titles);
}
AQUtility.debug("status:" + status);
showResult(xml, status);
}