client/android/ZUMOAPPNAME/app/src/main/java/com/example/zumoappname/ToDoActivity.java
/**
     * Mark an item as completed
     *
     * @param item
     *            The item to mark
     */
Mark an item as completed
@param item
The item to mark
Mark an item as completed @param item The item to mark
public void checkItem(final ToDoItem item) {
        if (mClient == null) {
            return;
        }
        item.setComplete(true);
        AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>(){
            @Override
            protected Void doInBackground(Void... params) {
                try {
                    checkItemInTable(item);
                    runOnUiThread(new Runnable() {
                        @Override
                        public void run() {
                            if (item.isComplete()) {
                                mAdapter.remove(item);
                            }
                        }
                    });
                } catch (final Exception e) {
                    createAndShowDialogFromTask(e, "Error");
                }
                return null;
            }
        };
        runAsyncTask(task);
    }
public void checkItem ( final ToDoItem item ) { if ( mClient == null ) { return ; } item . setComplete ( true ) ; AsyncTask < Void , Void , Void > task = new AsyncTask < Void , Void , Void > ( ) { @ Override protected Void doInBackground ( Void ... params ) { try { checkItemInTable ( item ) ; runOnUiThread ( new Runnable ( ) { @ Override public void run ( ) { if ( item . isComplete ( ) ) { mAdapter . remove ( item ) ; } } } ) ; } catch ( final Exception e ) { createAndShowDialogFromTask ( e , "Error" ) ; } return null ; } } ; runAsyncTask ( task ) ; }
Mark an item as completed
 @param item
            The item to mark
Mark an item as completed @param item The item to mark
// Set the item as completed and update it in the table