使用objectId取消固定parseObject

时间:2016-02-03 16:26:56

标签: android parse-platform

我正在尝试使用对象的ID

取消固定对象
  ParseQuery deleteQuery = ParseQuery.getQuery("TestNotes");
        deleteQuery.whereEqualTo("objectId",oId);
        deleteQuery.fromLocalDatastore();
        deleteQuery.getFirstInBackground(new GetCallback() {
            @Override
            public void done(ParseObject object, ParseException e) {



              // but inside this codes are not executing
                   Toast.makeText(context," object found",Toast.LENGTH_SHORT).show();

                object.unpinInBackground();


            }
            @Override
            public void done(Object o, Throwable throwable) {

           // instead they are executing here 
            }
        });

因为您可以看到无法处理检索到的对象,因为光标永远不会进入public void done(ParseObject object, ParseException e)方法(从不执行此方法)

任何线索为什么它发生我的代码是不正确的,因为他们应该是???

0 个答案:

没有答案