public interface TaskManager
Modifier and Type | Method and Description |
---|---|
TaskInfo |
getCurrentTask()
Returns a descriptor of the task the caller belongs to.
|
TaskInfo |
getForegroundTask()
Returns foreground task.
|
TaskInfo[] |
getTaskList(boolean includeSystem)
Returns an array of running tasks.
|
void |
setStatusListener(TaskManagerListener theListener)
Assigns the task status update listener
|
TaskInfo |
startTask(java.lang.String suiteName,
java.lang.String vendorName,
java.lang.String className)
Starts task with given parameters.
|
TaskInfo |
startTaskWithOptions(java.lang.String suiteName,
java.lang.String vendorName,
java.lang.String className,
int options)
Starts task with given parameters and options.
|
TaskInfo startTask(java.lang.String suiteName, java.lang.String vendorName, java.lang.String className)
suiteName
- suite name where the task launched fromvendorName
- vendor of the suite where the task
launched fromclassName
- startup classTaskInfo startTaskWithOptions(java.lang.String suiteName, java.lang.String vendorName, java.lang.String className, int options)
suiteName
- suite name where the task launched fromvendorName
- vendor of the suite where the task
launched fromclassName
- startup classoptions
- startup task options (debug, suspend, profile - see Constants.MIDP_RUN_OPTION)TaskInfo getForegroundTask()
TaskInfo[] getTaskList(boolean includeSystem)
includeSystem
- indicates whether to include system task
into list.TaskInfo getCurrentTask()
void setStatusListener(TaskManagerListener theListener)
theListener
- TaskManagerListener
implementation
or null
to remove any listenerCopyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.