Hola Diego veo que esta usando
Cambiaron mucho las lib de Superwaba pero nada que con un pocquito d electura se vuelva a poner en linea
public class helloworld extends MainWindow
{
Button btn;
public helloworld()
{
super("Hello World Sample", TAB_ONLY_BORDER);
}
public void initUI()
{
add(btn = new Button(" Exit "), CENTER, TOP + 1);
ListBox lb = new ListBox(new String[]
{
"Version is " + Settings.versionStr,
"Platform is " + Settings.platform,
"User is " + Settings.userName,
"Pen is " + (Settings.keyboardFocusTraversable ? "missing" : "available"),
"Has Keypad only is " + Settings.keypadOnly,
"Virtual keyboard is " + Settings.virtualKeyboard,
"Screen is " + Settings.screenWidth + "x" + Settings.screenHeight,
"Is color? " + Settings.isColor,
"Is high color? " + Settings.isHighColor,
"Max Colors is " + Settings.maxColors,
"timeZone is " + Settings.timeZone,
"dateFormat is " + Settings.dateFormat,
"dateSeparator is " + Settings.dateSeparator,
"decimalSeparator is " + Settings.decimalSeparator,
"thousandsSeparator is " + Settings.thousandsSeparator + " ",
"timeSeparator is " + Settings.timeSeparator,
"daylightSavings is " + Settings.daylightSavings,
"is24Hour is " + Settings.is24Hour,
"weekStart is " + Settings.weekStart,
"Battery is at " + Vm.getRemainingBattery() + "%",
"Free memory is at " + Vm.getFreeMemory(),
"Rom serial number is " + Settings.romSerialNumber,
"IMEI is "+ Settings.imei,
"Rom version is " + Settings.romVersion,
"Device id is " + Settings.deviceId,
"App path is " + Settings.appPath,
});
lb.enableHorizontalScroll();
add(lb, LEFT, AFTER + 2, FILL, FILL);
lb.requestFocus();
repaint();
}
public void onEvent(Event e)
{
if ((e.type == ControlEvent.PRESSED && e.target == btn) ||
(e.type == KeyEvent.KEY_PRESS && ((KeyEvent) e).key == 'x'))
{
exit(0);
}
}
}
TotalCross Aqui Dejo el tutotorial de TotalCross
http://www.youtube.com/user/cursostotalcross
Saludos Gerard
|
|
Gerardo A. Cabero
Salta, Argentina Celular: 387-154413128
Email: cab...@gmail.com
|
Medio Clasico:::
Google Talk: cabero
Skype: gerardo.antonio.cabero
MSN: gerardo_rdf
Google Wave: cabero