supermap for android,com.supermap.services.QueryService查询不进回调service.setResponseCallback(new ResponseCallback()里面的所有回调都没进入,请问一下在什么情况下不进回调
QueryService service = new QueryService(serviceUrl);
ServiceQueryParameter parameter = new ServiceQueryParameter();
parameter.setQueryMapName(mapName);
parameter.setQueryServiceName(serviceName);
parameter.setQueryLayerName("China_Provinces_4490@China#2");
parameter.setExpectRecordCount(1000);
parameter.setAttributeFilter(whereClause);
parameter.setQueryOption(QueryOption.ATTRIBUTEANDGEOMETRY);
parameter.setQueryGeomety(geometry);
parameter.setSpatialQueryMode(SpatialQueryMode.INTERSECT);
service.setResponseCallback(new ResponseCallback() {
@Override
public void requestFailed(String s) {
Loger.error("查询失败,原因:" + s);
}
@Override
public void requestSuccess() {
Loger.error("查询失败,原因:");
}
@Override
public void addFeatureSuccess(int i) {
Loger.error("查询失败,原因:");
}
@Override
public void receiveResponse(FeatureSet featureSet) {
Loger.error("查询失败,原因:" );
}
@Override
public void dataServiceFinished(String s) {
Loger.error("查询失败,原因:" + s);
}
});
service.query(parameter, QueryMode.SpatialQuery);