Parse platform Can';t更新解析对象

Parse platform Can';t更新解析对象,parse-platform,updating,Parse Platform,Updating,我以前创建了一个对象,现在正试图在“编辑”屏幕中更新该对象 对象的id是正确的(因为它正确地在活动的前面查询以更新文本标签。单击按钮时应保存该id) ParseQuery<ParseObject> query = ParseQuery.getQuery("Product"); Intent i = getIntent(); String queryString = i.getStringExtra("id

我以前创建了一个对象,现在正试图在“编辑”屏幕中更新该对象

对象的id是正确的(因为它正确地在活动的前面查询以更新文本标签。单击按钮时应保存该id)

ParseQuery<ParseObject> query = ParseQuery.getQuery("Product");
                    Intent i = getIntent();
                    String queryString = i.getStringExtra("id");
                    query.getInBackground(queryString, new GetCallback<ParseObject>() {
                        public void done(ParseObject editProduct, ParseException e) {
                            if (e == null) {
                                editProduct.put("productName", ProductName.getText().toString());
                                editProduct.put("ISDN", ISDN_text.getText().toString());
                                editProduct.put("expiry", expiry_date.getText().toString());
                                editProduct.put("type", spinnercategory.getSelectedItem().toString());
                                editProduct.put("quantity", quantity.getText().toString());
                                editProduct.put("username", "Admin");
                                editProduct.put("shoppingList", true);
                                editProduct.put("mainList", false);
                                editProduct.saveInBackground();
                          }
                        }
                    });
ParseQuery query=ParseQuery.getQuery(“产品”);
Intent i=getIntent();
字符串queryString=i.getStringExtra(“id”);
getInBackground(queryString,new GetCallback(){
public void done(ParseObject editProduct,parsee异常){
如果(e==null){
editProduct.put(“productName”,productName.getText().toString());
editProduct.put(“ISDN”,ISDN_text.getText().toString());
editProduct.put(“expiry”,expiry_date.getText().toString());
editProduct.put(“type”,spinnercategory.getSelectedItem().toString());
editProduct.put(“quantity”,quantity.getText().toString());
editProduct.put(“用户名”、“管理员”);
editProduct.put(“shoppingList”,true);
editProduct.put(“mainList”,false);
editProduct.saveInBackground();
}
}
});

这是从《解析Android开发者指南》中提出来的,但似乎不起作用。任何建议都解决了。算是吧

editProduct.put(“expiry”,expiry_date.getText().toString());
是中断它的行。我试图将字符串传递给后端定义为日期的内容,这显然会取消整个保存操作

现在在我的解决方案中对此进行注释,直到我可以用日期解决问题