Back to project page CloudyPhone.
The source code is released under:
MIT License
If you think the Android project CloudyPhone listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cloudyphone.android.controller.sync; /*from ww w .ja v a2 s .com*/ import com.cloudyphone.android.controller.commands.Command; /** * Update parse objects by find all of objects in the same class, delete them * and execute the command * * @author nguyenthanhhuy * */ public class UpdateThread extends Thread { private Command command; public UpdateThread(Command command) { // this.parseObjectClass = parseObjectClass; this.command = command; } @Override public void run() { // This is to find and delete all existing objects // ParseQuery query = new ParseQuery(parseObjectClass); // // try { // Collection<ParseObject> objects = query.find(); // // for (ParseObject object : objects) { // object.delete(); // } command.execute(); // } catch (ParseException e) { // } } }