Using Tasks; Start The Task Application From Your Blackberry Java Application - Blackberry JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE Integration Manual

Blackberry device applications integration guide
Table of Contents

Advertisement

Using tasks

Start the task application from your BlackBerry Java Application

Check for a
ControlledAccessException
application that you do not have permission to use or access.
Task
Open the task application.
View or change a task.
Create a new blank task.
Create a new populated task.
if your BlackBerry® Java® Application invokes a BlackBerry
Steps
TaskArguments
The
(net.rim.blackberry.api.invoke.TaskArguments) cannot be updated without
changes to the Task application.
Invoke.invokeApplication(APP_TYPE_TASKS, TaskArguments).
>
Invoke
ToDoList
1. Create an instance of a
ToDoList tdl = (ToDoList)PIM.getInstance().openPIMList(PIM.TODO_LIST,
PIM.READ_WRITE);
Enumeration todos = tdl.items();
2. Create a ToDo object using an element from the Enumeration:
ToDo todo = (ToDo)todos.nextElement();
invokeApplication()
3. Invoke
TaskArguments
object created using the ARG_VIEW parameter and the
Invoke.invokeApplication(Invoke.APP_TYPE_TASKS, new
TaskArguments(TaskArguments.ARG_VIEW, todo));
invokeApplication()
>
Invoke
TaskArguments
object created using the ARG_NEW parameter.
Invoke.invokeApplication(Invoke.APP_TYPE_TASKS, new TaskArguments(
TaskArguments.ARG_NEW) );
ToDoList
1. Create an instance of a
ToDoList tdl = (ToDoList)PIM.getInstance().openPIMList(PIM.TODO_LIST,
PIM.READ_WRITE);
createToDo()
2. Invoke
to create a new
object.
ToDo todo = tdl.createToDo();
todo.addString(ToDo.SUMMARY, 0, "Walk the Dog");
invokeApplication()
3. Invoke
TaskArguments
object created using the ARG_NEW parameter and the new
Invoke.invokeApplication(Invoke.APP_TYPE_TASKS, new TaskArguments(
TaskArguments.ARG_NEW, todo));
Enumeration
and store it in an
using the APP_TYPE_TASKS constant parameter, and a new
using the APP_TYPE_TASKS constant parameter, and a new
.
ToDo
object and add information to the new
using the APP_TYPE_TASKS constant parameter, and a new
4: Using tasks
.
ToDo
object.
ToDo
ToDo
object.
39

Advertisement

Table of Contents
loading

This manual is also suitable for:

Java development environment 4.6.0

Table of Contents