×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    19

    S40 6th Ed: Start application in background

    This relates to the S40 6th Edition.

    Is it somehow possible to start application in the background? Calling Display.getDisplay(this).setCurrent(null) causes the system to show a dialog with a 'Nothing to display' label and a single 'Quit' button. That dialog is used as a placeholder for the midlet UI and it controls the midlet execution. But that is undesirable.
    Last edited by DmitryAkimov; 2010-06-03 at 20:07.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: S40 6th Ed: Start application in background

    Hello DmitryAkimov,

    unfortunately it is not possible to put a Java application on background in Series 40 6th Edition by using Display.getDisplay(this).setCurrent(null).

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    19

    Re: S40 6th Ed: Start application in background

    Thanks for the reply.

    If it is not possible to put an application to the background, then what is the purpose of the attributes such as

    Nokia-MIDlet-bg-memory-size,
    Nokia-MIDlet-bg-server,
    Nokia-MIDlet-no-exit,
    etc.

    What do I need to do along with the use of these attributes to create a background application?

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: S40 6th Ed: Start application in background

    I think you are referring to these on Forum Nokia Java Developer's Library?:

    Java Developer's Library 3.5 > Developer's Guides > Application framework > JAD and JAR manifest attributes

    Unfortunately the current info is incomplete, what is missing from the library is that:
    in order for a MIDlet to be able to access these features, either operator or manufacturer domains signing is required as a prerequisite. This requirement has been explained in detail here on Forum Nokia Wiki:

    Signed to Either Operator or Manufacturer Domain

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    19

    Re: S40 6th Ed: Start application in background

    Yes, I know about this restriction - I am able to obtain such signing.

    My task is as the following.

    I need to create an application, a kind of service, that should start silently (also automatically after the system restart) and keep working in background.

    Also, I need some means to allow the user to control the service via some user interface. This could be another application with user interface that is able to control the service.

    Is this possible on S40 6th Edition?

  6. #6
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: S40 6th Ed: Start application in background

    I'd put it this way that based on the information on Forum Nokia Java Developer's Library some or most of the things which you have referred would be possible to achieve.

    Yes, I know about this restriction - I am able to obtain such signing.
    I'd like to suggest you to contact the very same party which is the owner of the signing (as defined in the Forum Nokia Wiki article Signed to Either Operator or Manufacturer Domain). Via that channel you can receive all the answers to your questions on this topic.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    19

    Re: S40 6th Ed: Start application in background

    Thanks, I guess I will do so.

  8. #8
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: S40 6th Ed: Start application in background

    Also, I need some means to allow the user to control the service via some user interface. This could be another application with user interface that is able to control the service.
    Once you get your Java server running in the background, you can listen from it for commands on certain port no.

    Create another UI application can be invoked by the user to give commands to your background server, to stop or start the service or another command you want to pass like... change the always on to time interval based polling from the server.. etc.


    thanks,
    Ekta

Similar Threads

  1. Can't capture keypress in background application
    By Jick in forum Symbian User Interface
    Replies: 4
    Last Post: 2010-04-07, 05:39
  2. midlet start from c++ application
    By manubemanu in forum Symbian
    Replies: 2
    Last Post: 2009-10-08, 09:41
  3. Home Screen application on 5th Ed?
    By jupitar in forum Symbian
    Replies: 5
    Last Post: 2009-09-10, 11:18
  4. How to display CAknWaitDialog in a hidden background application task
    By hyuan in forum Series 40 & S60 Platform Feedback Archive
    Replies: 0
    Last Post: 2009-07-26, 21:24
  5. Replies: 0
    Last Post: 2007-11-27, 11:09

Posting Permissions

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