Waits (blocks) until MIDlet reaches specified lifecycle state.
param
state state to wait for
throws
IlegalStateException thrown if state to wait for is invalid,
or if during waiting MIDlet has reached the state where waiting for
specified state is no longer valid
Waits (blocks) until MIDlet reaches specified foreground state.
param
state state to wait for
throws
IlegalStateException thrown if state to wait for is invalid,
or if during waiting MIDlet has reached the state where waiting for
specified state is no longer valid