Parse的Android指南在这里有一个基本的查询示例,它将返回与您的约束匹配的第一个对象:
ParseQuery<ParseObject> query = ParseQuery.getQuery("YourClassName");query.whereEqualTo("ID", "someID");query.getFirstInBackground(new GetCallback<ParseObject>() { public void done(ParseObject object, ParseException e) { if (object == null) { Log.d("score", "The getFirst request failed."); } else { Log.d("score", "Retrieved the object."); } }});
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)