Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User sdani's Avatar
    Join Date
    Apr 2012
    Posts
    3
    My code scenario is like this :


    public void keyPressed(int keyAction, int keyCode) {

    if(keyCode==UICanvas.FIRE_KEY) {

    new Thread(this).start();

    }

    }

    public void run() {

    ProgressBar.Start(" Message ") ; // it contains Timer

    Gprshandler.send() // it will send request to the server ;
    }




    This is working in All mobile phones except 60 series mobiles i.e Nokia e5 , Nokia c5 ..

    I think all these mobiles are supported for Minimizing applications.

    i have searched in all forums to findout solution for this type of problem . But i dint get solution.

    My exact Problem is run method is not being invoked at all in those mobiles.

    i hope and wish i will get solution for this problem in this forum .

  2. #2
    Nokia Developer Expert skalogir's Avatar
    Join Date
    Aug 2011
    Posts
    547
    Hi sdani and welcome to Nokia's discussion Boards,

    You can check this thread and more particular the following definition inside the Jad file:

    Nokia-MIDlet-S60-Selection-Key-Compatibility: true

  3. #3
    Registered User sdani's Avatar
    Join Date
    Apr 2012
    Posts
    3
    Hi Skalogir,thank you for the reply.But its not a key compatibility problem.Its coming into the fire key,but Its not starting the thread.

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Code:
    new Thread(new Runnable()
    {
    public void run()
    {
    try{
    call_some_function_that_call_network_function();
    } catch(IOException e) {}
    }
    }).start();
    Try this code instead of your code of thread, I am sure that this must work.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Nokia Developer Expert skalogir's Avatar
    Join Date
    Aug 2011
    Posts
    547
    And in case that doesn't work either, please provide a full sample code if possible. You should be able to get into the run method by calling new Thread(this).start(). Are you certain that you don't? It could be that the problem is related to calling the ProgressBar.Start and Gprshandler.send methods. What if you attempt to print to the console just before those method calls a message with System.out.println("inside the thread");? Would you then get the console message?

Similar Threads

  1. Arabic font issue with nokia mobiles
    By bhakki in forum Mobile Java General
    Replies: 4
    Last Post: 2011-12-13, 12:10
  2. Memory issue with multithreading in J2ME
    By vngwcc in forum Mobile Java General
    Replies: 7
    Last Post: 2010-06-29, 09:14
  3. Issue on T-mobiles
    By manjul_saini in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-04, 06:14
  4. Arabic Display Issue in Nokia Mobiles
    By hooopoe in forum Mobile Java General
    Replies: 2
    Last Post: 2009-02-02, 09:12
  5. Multithreading issue in device drivers
    By SymbianDev10 in forum Symbian C++
    Replies: 1
    Last Post: 2007-09-04, 05:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved