parse.com - Android - Parse - deleteInBackground, record not being deleted -


i'm using parse android in order sync data. i'm trying delete object stored in parse cloud via callback returns , there's no exception, logcat message "deleted".

but object still exists in table when check parse data.

tasttoedit object task class (configured locally in app).

    parseobject parse_task = new parseobject("task");     parse_task.put("description",tasttoedit.getdescription());     parse_task.put("duedate",tasttoedit.getduedate());     parse_task.put("priority",tasttoedit.getpriority().ordinal());     int com_state = (tasttoedit.getcompleted()) ? 1 : 0;     parse_task.put("iscompleted",com_state);     parse_task.put("location",0);     parse_task.put("category",tasttoedit.gettask_catg().ordinal());     parse_task.put("status", tasttoedit.gettask_sts().ordinal());     //parse_task.deleteinbackground();     parse_task.deleteinbackground(new deletecallback() {         public void done(parseexception e) {             if (e == null) {                 log.d("msg","deleted");             } else {                 log.d("msg", "not deleted");                 e.printstacktrace();             }         }     }); 

what might causing callback return "deleted" object still remains?

thanks in advance.

you creating new parseobject , try delete after don't provide objectid.

a better way first parsequery task looking , in completion delete it.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -