|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Control an Application via the application manager. The Application manager of a device controls the applications running on the device. This interface allows an application with appropriate permissions to monitor running applications, to start an application, and to request changes to the lifecycle of the application.
Field Summary | |
static int |
ACTIVE
The application is active. |
static int |
DESTROYED
The application has been destroyed. |
static int |
LOADED
The application has been loaded. |
static int |
NOT_LOADED
The application is known to the application manager but has not been loaded. |
static int |
PAUSED
The application has been paused. |
Method Summary | |
void |
addListener(AppProxyListener listener)
Adds a listener for changes in the application state. |
int |
getState()
Gets the state of the Application. |
void |
pause()
Requests the application be paused. |
void |
removeListener(AppProxyListener listener)
Remove a listener registered for changes. |
void |
resume()
Requests the application be resumed. |
void |
start(String[] parameters)
Request the application be ACTIVE with the specified parameters. |
void |
stop()
Requests the application to be stopped. |
Field Detail |
public static final int ACTIVE
getState()
,
Xlet states
,
Constant Field Valuespublic static final int DESTROYED
getState()
,
Xlet states
,
Constant Field Valuespublic static final int LOADED
getState()
,
Xlet states
,
Constant Field Valuespublic static final int PAUSED
getState()
,
Xlet states
,
Constant Field Valuespublic static final int NOT_LOADED
getState()
,
Constant Field ValuesMethod Detail |
public void start(String[] parameters)
javax.microedition.xlet.XletContext.ARGS
.
parameters
- the array of parameters to be passed to the application;
null
MUST have the same behavior as passing a zero length array.
IllegalStateException
- if the application is already ACTIVEpublic void stop()
IllegalStateException
- if the application is not ACTIVEpublic void pause()
IllegalStateException
- if the application is not ACTIVEpublic void resume()
IllegalStateException
- if the application is not PAUSED.public int getState()
LOADED
, PAUSED
, ACTIVE
,
DESTROYED
, or NOT_LOADED
.public void addListener(AppProxyListener listener)
listener
- the listener to add.removeListener(com.sun.dtv.application.AppProxyListener)
public void removeListener(AppProxyListener listener)
listener
- the listener to remove.addListener(com.sun.dtv.application.AppProxyListener)
|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |