×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    12

    MIDlet not work on 6600

    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

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429
    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

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    12
    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;
    }
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×