|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationProxy
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 |
---|
static final int ACTIVE
getState()
,
Xlet states
,
Constant Field Valuesstatic final int DESTROYED
getState()
,
Xlet states
,
Constant Field Valuesstatic final int LOADED
getState()
,
Xlet states
,
Constant Field Valuesstatic final int PAUSED
getState()
,
Xlet states
,
Constant Field Valuesstatic final int NOT_LOADED
getState()
,
Constant Field ValuesMethod Detail |
---|
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 ACTIVEvoid stop()
IllegalStateException
- if the application is not ACTIVEvoid pause()
IllegalStateException
- if the application is not ACTIVEvoid resume()
IllegalStateException
- if the application is not PAUSED.int getState()
LOADED
, PAUSED
, ACTIVE
,
DESTROYED
, or NOT_LOADED
.void addListener(AppProxyListener listener)
listener
- the listener to add.removeListener(com.sun.dtv.application.AppProxyListener)
void removeListener(AppProxyListener listener)
listener
- the listener to remove.addListener(com.sun.dtv.application.AppProxyListener)
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |