help me plis..
i got some error: this application does not use the screen and runs in the backgroud.
.but i don't know what's the problem causing that..
anybody know how to fix it?? i just want to see the gauge bar progressing in MIDLET..
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class gaugeDemo extends MIDlet {
private Display d;
private Form f;
private Gauge g;
public gaugeDemo(){
long a = 0;
f = new Form("Tentang Gauge");
g = new Gauge("Ini Gauge", false,100,0);
for (int i=0; i<100;i++){
g.setValue(i);
a= System.currentTimeMillis();
while (System.currentTimeMillis()-a<1000);
}
f.append(g);
}
public void startApp() {
d = Display.getDisplay(this);
d.setCurrent(f);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}