×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    56

    application wont lunch in the emulator?

    i have inherited the class MIDlet and derived the nessery methods , and implemented them to show a form. but even when i attach the debugger to the methods startApp and pauseApp , i don't see any action (and those methods are not begin executed).
    the application however does lunch on my phone.

  2. #2
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Hamburg, Germany
    Posts
    283

    Re: application wont lunch in the emulator?

    Hello Mikecotic,

    I don't think that anybody can help you with the information you provided.....

    Are there any messages on the output window of the emulator?
    Have you ever used the emulator successfully with a hello-world midlet?
    It may also help to tell us what emulator are you using.

    Regards

    Karsten Meier

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    56

    Re: application wont lunch in the emulator?

    emulator : s60 3rd FP 1
    my application: MIDP 2.0 , in netbeans
    helloWordMidlet: working.
    myApplication : not working.
    error messages : none , just wont show anything when sdk progress gets to done

    i think its netbeans who doesn't like MIDlets avoiding his code generator.

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: application wont lunch in the emulator?

    Hi,
    @ Do you want to debug your application ..
    @ Have you tried to run that application with out the debugger.

    try to put the println() and watch the output upto which point ot which methods it is coming...

    try to find the reason.
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    56

    Re: application wont lunch in the emulator?

    i like your advice ,people from the india capitol are really nice , thx.
    however , this doesn't practically help - the idea of println is good , but as i just tried putting printlns on all the methods in the midlet-inherited class- no method is invoked - the application is not begin lunch - may be the emulator doesn't recognize the main midlet ...

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: application wont lunch in the emulator?

    Hi,
    Well thanks for the complement!!!

    Is this application is a small one till the time..if yes then you can put the code here..let me have a look for the same..

    else put you midlet class and tell me what exactly you want on this midlet..make it fast..else it will be able to check it on the tomorrow morning..
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: application wont lunch in the emulator?

    u did set ur MIDlet as main midlet in the Properties of the Project ?
    So right-click on ur project, sleect properties, then go to Application Desciptor and then Midlets...
    is yours in there ?
    Also is the selected platform the correct one and also when making the project u selected MIDP 2.0 right ?
    Dont worry about netbeans and midlets, that al works fine...

  8. #8
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    56

    Re: application wont lunch in the emulator?

    Midlet code :
    Code:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package app;
    
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    
    /**
     *
     * @author Mike
     */
    public class MainMidlet extends MIDlet implements CommandListener {
    
        private boolean midletPaused = false;
        public boolean sentToback = false;
        private Form mainform = null;
        private Command mainform_cmd_hide,  mainform_cmd_exit;
    
        
        public MainMidlet() {
            System.out.println("string2");
        }
    
        private void initialize() {
            mainform = new form_Mainform(this);
            mainform_cmd_hide = new Command("Hide", Command.BACK, 0);
    
            mainform_cmd_exit = new Command("Exit", Command.EXIT, 4);
    
            mainform.addCommand(mainform_cmd_hide);
            mainform.addCommand(mainform_cmd_exit);
    
            mainform.setCommandListener(this);
    
        }
    
        public void commandAction(Command cmd, Displayable disp) {
            if (disp == mainform) {
                if (cmd == mainform_cmd_hide) {
                    Display.getDisplay(this).setCurrent(null);
                    sentToback = true;
    
                } else if (cmd == mainform_cmd_exit) {
                    exitMIDlet();
    
                }
            }
        }
    
        public void startMIDlet() {
            System.out.println("string2");
            Display.getDisplay(this).setCurrent(mainform);
            sentToback = false;
        }
    
        public void resumeMIDlet() {
            Display.getDisplay(this).setCurrent(mainform);
            System.out.println("string2");
            sentToback = false;
        }
    
        //<editor-fold defaultstate="collapsed" desc=" Basic midlet functions ">                    
        /**
         * Exits MIDlet.
         */
        public void exitMIDlet() {
            Display.getDisplay(this).setCurrent(null);
            destroyApp(true);
            notifyDestroyed();
        }
    
        /**
         * Called when MIDlet is started.
         * Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet.
         */
        public void startApp() {
            System.out.println("string2");
            if (midletPaused) {
                resumeMIDlet();
            } else {
                initialize();
                startMIDlet();
            }
            midletPaused = false;
        }
    
        /**
         * Called when MIDlet is paused.
         */
        public void pauseApp() {
            midletPaused = true;
        }
    
        /**
         * Called to signal the MIDlet to terminate.
         * @param unconditional if true, then the MIDlet has to be unconditionally terminated and all resources has to be released.
         */
        public void destroyApp(boolean unconditional) {
        }
        //</editor-fold>     
            
    }
    and also i switched to the s60 3ed fp2 emulator for some try outs and i got the following errors :

    in regular mode :
    http://i34.tinypic.com/ajpizt.jpg

    and then i change some setting to device
    http://i34.tinypic.com/sem074.jpg

    thx in advance

    EDIT : to tiger :

    yeah my midlet is there i added it to that tab , it later got a little green play-like tringle on it's icon in the pane where you seeyour "projects".

    yes the application is MIDP 2.0 i even tried running it as MIDP 2.1 doesnt help.

    above all that it does run on my n95 ...

    EDIT 2:

    dammit the midlet does run and i only stripped off some lines

    EDIT 3:

    could it be some static class whose causing the problem?
    Last edited by mikecotic; 2008-11-18 at 13:47.

  9. #9
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    56

    Re: application wont lunch in the emulator?

    ok , i copied the application files to a new build and it works .
    the one to blame : Netbeans code-generator , the files in the folder "nbproject" where faulty deleting them and copying application classes without the reflector solved the problem.
    also the reason to begin redisinging the application was the code-generator which wouldn't allow propper code editing in the main midlet.
    if any one comes to this post using google the error is
    "command failed with symbian error code: -30472"

  10. #10
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: application wont lunch in the emulator?

    u tried to CLEAN and build project right ?
    It also clears all directories instead of the normal build command....

  11. #11
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    56

    Re: application wont lunch in the emulator?

    yeah i tried that one 2.

Similar Threads

  1. Replies: 4
    Last Post: 2004-04-27, 15:33
  2. Application not found in EPOC Emulator
    By whitemoon in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2003-10-21, 07:58
  3. Application not appearing in emulator
    By Juggle4Evr1 in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-05-19, 06:51
  4. Replies: 2
    Last Post: 2002-06-18, 01:25

Posting Permissions

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