我正在检索解析中的对象,但它总是去 ParseException
这是我的代码:
public void setItemListData(Context context, String className,
String[] value, String colName) {
ParseQuery query = new ParseQuery(className);
query.whereContainsAll("Store",Arrays.asList (value));
query.whereEqualTo("Store","Asus");
dataList = new ArrayList<String>();
try {
List<ParseObject> dataHolder = query.find();
for(int counter =0;counter<dataHolder.size();counter++){
String datas = dataHolder.get(counter).getString(colName);
dataList.add(datas);
}
} catch (ParseException e) {
Toast.makeText(context,"No Internet Connection",
Toast.LENGTH_SHORT).show();
}
}
我不知道我的代码有什么问题
提前致谢