Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User jorgenovoa's Avatar
    Join Date
    Nov 2008
    Posts
    9
    hi,
    i want to create a memory resident application.
    I need an application which runs forever (like a windows service or like application which loads at windows starts) and responses an specific action when the user clicks a specific device button
    theres a way to do it with java.
    that i want to create its a security hazard, when the user clicks a celular key it activates the app. and it response to a server.
    Hope understand
    Regards

  2. #2
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    Not possible with Java ME (you can put the MIDlet in the background on S60, but it cannot wake up by button presses).

    On S60 phones you could use Symbian C++ and likely also Python for this.

    Hartti

  3. #3
    Registered User jorgenovoa's Avatar
    Join Date
    Nov 2008
    Posts
    9
    ok, how can i set the midlet in background even it can't response to any key(how do i wake up the bakcrounded app. then)?.
    What another approach can i use to achive that behaviour?

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Hi,
    Following code can be used to send MIDlet to background:

    Display display = Display.getDisplay(myMIDletClass);
    display.setCurrent(null);

    The setCurrent(null) doesn't set the displayable to null but is used in Java ME implementations that support concurrent applications like S60 to send the foreground application to background (on Series 40 phones this approach does not work). The application that is shown is the last application that was shown before the MIDlet got activated.

    for the second point -
    http://java.sun.com/javame/reference.../policies.html
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. AutoStart My application at bootup
    By prakashs in forum Symbian C++
    Replies: 7
    Last Post: 2009-03-24, 10:06
  2. Replies: 37
    Last Post: 2008-07-16, 05:17
  3. Replies: 4
    Last Post: 2008-07-15, 11:37
  4. Replies: 1
    Last Post: 2008-05-08, 12:32
  5. Replies: 0
    Last Post: 2005-05-28, 10:20

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