Boa tarde,
Pessoal, no emulador minha aplicação roda com as imagens normalmente, mas qdo. carrego o arquivo jar no celular a mesma não é mostrada. O que pode estar acontecendo ?
Meu código que chama a imagem é esse:
[code]public void startApp() {
this.display = Display.getDisplay(this);
this.display.setCurrent(this.splash);
try {
Thread.sleep(3000);
} catch (InterruptedException ioe) {}
this.display.setCurrent(this.lista);
}[/code]
Classe Splash:
[code]public class SplashScreen extends Canvas {
private Image logotipo = null;
public SplashScreen() {
try{
logotipo = Image.createImage("/splash.png");
}catch(IOException ioe) {}
}
protected void paint(Graphics g) {
g.drawImage(logotipo, this.getWidth() / 2, this.getHeight() / 2, Graphics.VCENTER | Graphics.HCENTER);
g.drawString("Aguarde...", this.getWidth()/2, 210, Graphics.BOTTOM | Graphics.HCENTER);
repaint();
}
}[/code]
Obrigado