Hi,
i've made a simple program,just to display image.i tested in emu,it works.
but when i install on my 6600,i wont display image..
but when i try on n-gage,it works..
does anyone could help me what is happen?
thanks in advance
tandhy
Hi,
i've made a simple program,just to display image.i tested in emu,it works.
but when i install on my 6600,i wont display image..
but when i try on n-gage,it works..
does anyone could help me what is happen?
thanks in advance
tandhy
Hi
Could you please post the code that you have used ? Where u tried to display the image ? in form or in canvas?
Please explain in detail.. what error did u get?
If it works on N-Gage ;I dont find any reason that it did not work on 6600(since urs is a simple app as u said).
regards
Gopal
thanks in advance.we have the same think..if it works on n-gage then it should be works on 6600.well, below is my code,pls check it out..perhaps there some not fit as it.
thanks many much..
tandhy
code:
public class Image1 extends MIDlet implements CommandListener {
private Display display;
private Form form;
private Image gambar;
private Command exitCommand;
public Image1()
{
try
{
display=Display.getDisplay(this);
form = new Form("Comic Demo");
gambar=Image.createImage("/2.JPG");
form.append(gambar);
exitCommand = new Command("Exit", Command.EXIT, 1);
form.addCommand(exitCommand);
form.setCommandListener(this);
}
catch (Exception e)
{
}
}
public void commandAction(Command c,Displayable d)
{
try
{
if (c==exitCommand)
{
destroyApp(false);
notifyDestroyed();
}
}
catch (Exception e)
{
}
}
public void startApp()
{
display.setCurrent(form);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional)
{
display = null;
gambar = null;
}
}