1. #1
    SKIL
    SKIL is offline
    Junior Member

    Location
    Eastern Europe, Romania
    Posts
    10
    Hello!

    I am a medium-level programmer. I have downloaded all the stuff needed to make & compile a little program for my 3510i. As I make this program:

    Welcome.java

    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;

    public class Welcome extends MIDlet implements CommandListener
    {
    private Display display;
    private Form frmain;
    private Command cmdExit;

    public Welcome ()
    {
    display=Display.getDisplay(this);
    cmdExit=new Command ("Iesire",Command.EXIT,1);
    frmain=new Form("Prima Aplicatie");
    frmain.addCommand(cmdExit);
    frmain.setCommandListener(this);
    }

    public void startApp()
    {
    display.setCurrent(frmain);
    }

    public void pauseApp()
    {

    }

    public void destroyApp(boolean unconditional)
    {

    }

    public void commandAction(Command c, Displayable s)
    {
    if (c==cmdExit)
    {
    destroyApp(false);
    notifyDestroyed();
    }
    }
    }

    Compiling this, gets a Welcome.Jad and Welcome.Jar. They both work OK on the 3510i computer emulator from NOKIA. But when i upload them to my mobile phone, when i open the applications, it gives me the error: APPLICATION NOT SUPPORTED!

    I can upload ALREADY MADE APPLICATIONS AND GAMES, but what can be wrong?

    Welcome.Jad looks like this:

    MIDlet-1: Welcome
    MIDlet-Description: Hello World
    MIDlet-Jar-Size: 1330
    MIDlet-Jar-URL: Welcome.jar
    MIDlet-Name: Test
    MIDlet-Vendor: Me
    MIDlet-Version: 2.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0

    The JAR size is correct.

    Can you please help me?


    See More: Unable to create applications on 3510i.
    Forever New!




  2. #2
    ski_power
    ski_power is offline
    Phone Expert
    ski_power's Avatar

    Posts
    1,131 - liked 4 times

    I am not a programmer myself, but I can suggest you that first you download the Series 30 SDK and emulator, and try running the proggies there. It would save you a lot of trouble, of uploading and then frustration.
    What you lookin' here for ehhh?



  3. #3
    SKIL
    SKIL is offline
    Junior Member

    Location
    Eastern Europe, Romania
    Posts
    10

    AS I TOLD YOU BEFORE, THE APPLICATION RUNS ON 3510i emulator!
    Forever New!



  4. #4
    gpalouk
    gpalouk is offline
    Junior Member

    Location
    Patras, Greece
    Posts
    29

    Re: Unable to create applications on 3510i.

    Originally posted by SKIL
    Welcome.Jad looks like this:

    MIDlet-1: Welcome
    MIDlet-Description: Hello World
    MIDlet-Jar-Size: 1330
    MIDlet-Jar-URL: Welcome.jar
    MIDlet-Name: Test
    MIDlet-Vendor: Me
    MIDlet-Version: 2.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0

    The JAR size is correct.

    Can you please help me?
    One error that I see as a first look is this: MicroEdition-Profile: MIDP-2.0 <=== It must be MIDP-1.0 to be supported by your phone...

    Try to change it & tell us...

    gpalouk.



  5. #5
    SKIL
    SKIL is offline
    Junior Member

    Location
    Eastern Europe, Romania
    Posts
    10

    I tried changing MIDP-2.0 into MIDP-1.0 and it gives me the same error!

    WHAT CAN I DO?
    Forever New!



  6. #6
    Alternatones
    Alternatones is offline
    Junior Member

    Posts
    29

    You might have used MIDP 2.0 libraries or methods in your code. I do not know for sure because I have not used Java to program for phones before.

    The emulators aren't 100% accurate, unfortunately. Do you have the latest version?



  7. #7
    SKIL
    SKIL is offline
    Junior Member

    Location
    Eastern Europe, Romania
    Posts
    10

    I have the latest version. The application is a SIMPLE hello world (sourcecode is listed in my first post).

    I cannot understand!

    Alternatively, if you can't tell me what's wrong, can you please tell me the command line for compiling an application and creating its jad file?

    Thank you!
    Forever New!



  8. #8
    Alternatones
    Alternatones is offline
    Junior Member

    Posts
    29

    I don't know why it isn't working on your phone.

    This probably isn't the best forum to be asking programming questions!

    Have you tried the forums at http://www.forum.nokia.com? You must already have an account there to download the 3510i SDK, so it should be easy enough to post this question there.



  • Similar Threads







  • Quick Reply Quick Reply

    If you are already a member, please login above.