Complex MIDP Application Manager
Introduction
This example demonstrates the MIDP 1.0 compatible features of the
Lightfoot SDK. The application manager allows you to download a JAR
file to the board and run the midlets located in that JAR file. This
example allows you to use an LCD display or a remote X11 display.
Initially you should build for a remote X11 display as you can then use
the keyboard to enter a URL to download a JAR file to the board.
Building the example
Change directory to the application manager example
cd %LF_HOME%\examples\ComplexMIDletManager
Rebuild the application to either use a remote X11 display
lfmake clean all
or to use a display board if you have one
lfmake clean all USE_LCD=1
Running the example
If you don't have a display board, the demo can be built to use an X11
display as described above. Make sure this is running and that it will
accept remote connections (xhost +) before downloading the
application.
To run the example on the board
lfdownload AppMgr.bin
You then have a number of options. The best approach is to download a
JAR file to the board. The MIDPman.jar provided with this
example can be used. Make sure that you place this where a web server
can find it and enter the URL for it in the Lightfoot application. The
exact location this goes is down to you, but the shorter the path, the
easier it will be to enter the unique URL.
Once
the JAR file has been downloaded, you can then run it or save it in
flash using the Flash Menu option of the application. If
you have an LCD display it is a good idea to save the JAR file in
flash, then rebuild the application to use the LCD and run it locally.
The keyboard driver provided with the LCD is too restricted to allow
efficient text input!
Features
This example demonstrates the following SDK features.