Delete a task

  1. Import the required classes and interfaces.
    import java.util.Enumeration;
    import javax.microedition.pim.PIM;
    import javax.microedition.pim.ToDo;
    import javax.microedition.pim.ToDoList;
  2. Invoke PIM.getInstance to create a ToDoList object.
    ToDoList todoList = (ToDoList)PIM.getInstance().openToDoList(PIM.TODO_LIST, 
  3. Invoke ToDoList.removeToDo() to delete the task.
Previous topic: Import a task

Was this information helpful? Send us your comments.