I have toyed with that idea, but it isn't really required for my application. In any event, the problem wasn't so much "how to access the screen", but rather, how to pass data from other applications.
Right now I am using a RuntimeStore object (a string) which I append to. The problem is that when I show the screen it does not get updated in realtime.
eg:
Other applications write to the debug screen by calling:
Code:
DebugScreen.DebugMessage("This is my message");
The OptionsProvider creates the screen when required, and the constructor creates a RichTextField.
Code:
class DebugScreen /*...*/{
private static RichTextField _output;
/* ... */
public DebugScreen(){
/* ... */
String strCurrOutput = /* Get from runtime store */
_output = new RichTextField("Started...\n" + strCurrOutput);
}
/* ... */
public void DebugMessage(String msg){
/* add msg to runtimestore object */
if(_output != null){
_output.setText( textfromruntimestore );
}
}
}
When I first open the debug screen, I get all debug messages that were present in the runtime store (no problem there). The problem is that while the window is open, it never gets updated!