protected void onPreExecute()
{
super.onPreExecute();
progressDialog = ProgressDialog.show(getActivity(),"Fetching", "Fetching Contacts", true, false);
}
@Override
protected ArrayList<String> doInBackground(Void... params) {
// TODO Auto-generated method stub
ODataConsumer c = ODataJerseyConsumer.create("http://mythreeg.dyndns.org:8088/WcfService_Officetail/WcfDataService.svc/VW_CONTACTS()/?$filter=mobile ne null");
List<OEntity> listEntities = c.getEntities("VW_CONTACTS").execute().toList();
System.out.println("Size - " + listEntities.size());
for (OEntity entity : listEntities) {
categories.add((String) entity.getProperty("contact_name").getValue() + (String) entity.getProperty("mobile").getValue());
}
错误:
02-15 13:26:26.260: E/AndroidRuntime(330): Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 102:
http://mythreeg.dyndns.org:8088/WcfService_Officetail/WcfDataService.svc/VW_CONTACTS()/?$filter=mobile ne null/$metadata