below is the code i am using, i have an emulator for sprint phones and it does not display anything on them but it does on the defaultphones in my emulator, shouldn't this also work for sprint?
package TestFiles;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.util.* ;
import java.io.* ;
public class Test extends MIDlet implements CommandListener {
private Command exitCommand; // The exit command
private Command infoCommand;
private Command buyCommand;
private Display display;
private ImageItem imageItem;
private MyCanvas canvas;
public Test() {
display = Display.getDisplay(this);
canvas = new MyCanvas(this);
exitCommand = new Command("Exit",Command.SCREEN,2);
}
public void startApp() {
display.setCurrent(canvas);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command c, Displayable s) {
if (c == exitCommand) {
destroyApp(false);
notifyDestroyed();
}
}
}
class MyCanvas extends Canvas implements CommandListener
{
private Command cmdExit;
private Test midlet;
private Image image;
private int a;
private int b;
private int c;
public MyCanvas(Testmidlet)
{
a=b=c=0;
this.midlet = midlet;
cmdExit = new Command("Exit",Command.SCREEN,2);
addCommand(cmdExit);
setCommandListener(this);
try
{
image = Image.createImage("/TestFiles/gc.png"

;
}
catch (Exception e){}
}
public void paint(Graphics g)
{
g.drawImage(image,a,b,c);
//g.fillRect(50,60,10,20);
}
public void commandAction(Command c,Displayable d)
{
if (c == cmdExit)
{
midlet.destroyApp(false);
}
}
}