I can not wait for the release of KDK ;-P
public class KindleTestApp implements Kindlet {
private MyView view;
private KindletContext context;
/** */
public void create(KindletContext context) {
try {
view = new MyView();
this.context = context;
this.context.getRootContainer().add(view); // i guess...
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
/** */
public void start() {
new Thread(view).start();
}
/* */
public void stop() {
}
/* */
public void destroy() {
}
/** */
private class MyView extends KComponent implements Runnable {
:
$ # java vavi.apps.kindlet.KindletViewer your_Kindlet_class
$ java vavi.apps.kindlet.KindletViewer vavi.games.tetris.TetrisApp
You can download Tetris for KDK from here!