×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    2

    Unhappy invalid application

    Hello,

    I am new to MIDlets development, but I wanted to try to develop simple MIDlet for my Nokia 6103. I used Carbide.j. I created a new class, then application package. Before creating application package I changed default device to "Prototype_4_0_S40_128x160_MIDP_Emulator". .jar and .jad files were created. I run successfully my MIDlet on an emulator. It worked fine. Then I transferred .jad file to my mobile. When I tried to execute it I got a message saying: "Invalid application. Delete?"

    I guess, somehow, I have developed application for different device type. As I said, I wanted it to work on my N6103. What setting should I change?

    I would appreciate any suggestions.

    Cheers,

    IronWolf

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: invalid application

    Hi IronWolf! Welcome to Nokia Discussion Boards!!

    Please make sure that your JAD and MF entries are correct and they match each other. Also ensure that you have not used any Classes/methods that the device does not supports.

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    2

    Re: invalid application

    Hi,

    Thank you for your suggestion.

    Manifest file looks like below and matches phone specs:

    MF:
    Manifest-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-Name: HelloMIDlet
    MIDlet-Vendor: MyCompany
    MIDlet-1: HelloMIDlet, , HelloMIDlet
    MIDlet-Version: 0.0.1
    MicroEdition-Profile: MIDP-2.0

    Spec:
    MIDP 2.0
    CLDC 1.1

    Code is quite simple as well:

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

    public class HelloMIDlet
    extends MIDlet
    implements CommandListener {
    private Form mMainForm;

    public HelloMIDlet() {
    mMainForm = new Form("HelloMIDlet");
    mMainForm.append(new StringItem(null, "Hello, Test"));
    mMainForm.addCommand(new Command("Exit", Command.EXIT, 0));
    mMainForm.setCommandListener(this);
    }

    public void startApp() {
    Display.getDisplay(this).setCurrent(mMainForm);
    }

    public void pauseApp() {}

    public void destroyApp(boolean unconditional) {}

    public void commandAction(Command c, Displayable s) {
    notifyDestroyed();
    }
    }

    Cheers,

    IW.

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: invalid application

    May be you should give a try with changing the MIDlet-Version number to 1.0 or so. Just a blind try. I dont find any other mistakes in my quick check.(May be I have missed!)
    MIDlet Suite Versioning
    http://developers.sun.com/techtopics...ion/index.html

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

Similar Threads

  1. Auto Start of the application
    By S.S.Sudhakar in forum Symbian
    Replies: 19
    Last Post: 2008-09-25, 02:16
  2. Launching a view of a diffrent application
    By nsivach in forum Symbian
    Replies: 3
    Last Post: 2007-03-22, 09:51
  3. Java Application Provisioning ove BT
    By a_n_k_u_r in forum Bluetooth Technology
    Replies: 3
    Last Post: 2006-06-23, 08:48
  4. Replies: 0
    Last Post: 2005-05-28, 10:20
  5. Replies: 0
    Last Post: 2003-02-03, 08:08

Posting Permissions

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