×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    2

    run J2ME application in the background on startup

    Hi folks,

    can you please help me with some questions on J2ME applications.

    1. Is there a possibility to run a J2ME application on a S60 device in the background?

    2. If so how can it be switched to the foreground again?

    3. Is it possible to automatically run the application on startup?

    Thank you in advance!

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: run J2ME application in the background on startup

    Hi,

    This is discussed here.Please look into juarze's reply

    http://discussion.forum.nokia.com/fo...ad.php?t=80261

    Wang

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

    Re: run J2ME application in the background on startup

    Thank you very much for your help Wang!

    The topic discussed in this thread is not what I am looking for. It doesn't help me to set my application to sleep and awake it on a push event.

    I am searching for a mechanism to make my application run in the background. The application shall run all the time, but the user should be able to interact with his mobile device without noticing the application is running at all. From time to time the application shall notify the user about certain results of the processing and disapear again afterwards.

    Does anybody know how to achieve this?

    Furthermore I want to register the application to run on sartup of the mobile device. How does this work?

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: run J2ME application in the background on startup

    Hi schmida1980,

    3. Is it possible to automatically run the application on startup?
    AFAIK this is planned for future Series 40 devices, there's a JavaOne 2006 presentation briefing on that.

    BR,

    Juarez Junior

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    15

    Re: run J2ME application in the background on startup

    but there is no answer of 2nd question

    2. If so how can it be switched to the foreground again?

    is it possible of not?
    ------------
    Mitul Nakum

  6. #6
    Registered User
    Join Date
    Oct 2009
    Posts
    26

    Re: run J2ME application in the background on startup

    Hi,

    I am also looking for similar background app in j2me.
    1. Possibility to run a J2ME application in the background?
    2. Can we run the application on startup?

    Have you found any solution?
    Could you please share your experiences with me?
    Shankar V N

  7. #7
    Regular Contributor
    Join Date
    May 2007
    Location
    India
    Posts
    208

    Re: run J2ME application in the background on startup

    Quote Originally Posted by shankar_vn View Post
    Hi,

    I am also looking for similar background app in j2me.
    1. Possibility to run a J2ME application in the background?
    2. Can we run the application on startup?

    Have you found any solution?
    Could you please share your experiences with me?
    Some recent phones of S40 may support J2ME background running app but not all phones. You can try creating such application using Symbian platform.

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: run J2ME application in the background on startup

    Quote Originally Posted by shankar_vn View Post
    Hi,

    I am also looking for similar background app in j2me.
    1. Possibility to run a J2ME application in the background?
    2. Can we run the application on startup?

    Have you found any solution?
    Could you please share your experiences with me?

    1.Possibility to run a J2ME application in the background? --- Yes, you can run background app on all S60, recent S40 and recent Sony Erricson and other devices as well. You can try it by setting currentdisplayable to null and keep some threads runing in background on these devices. Or press the Menu key and start another app, pushing the old runing app to background.

    2. Can we run the application on startup? --- Yes, you can do by Jad Attribute - Midlet-auto-start: yes, on various platforms like on Nokia it becomes: Nokia-Midlet-Auto-Start: On, on SE devices JP7onwards you can try PushRegistry with ://autostart: etc.

    thanks,
    ~Amitabh

  9. #9
    Registered User
    Join Date
    Jan 2009
    Posts
    4

    Re: run J2ME application in the background on startup

    I used setCurrent(null) and it works on Nokia N79. i.e. the midlet hides. But when i use setCurrent(myCanvas) to again put the midlet in foreground it does'nt do any thing.
    So my question is How can we make midlet in the foreground again ?

  10. #10
    Registered User
    Join Date
    Oct 2010
    Posts
    44

    Re: run J2ME application in the background on startup

    Quote Originally Posted by im2amit View Post
    1.Possibility to run a J2ME application in the background? --- Yes, you can run background app on all S60, recent S40 and recent Sony Erricson and other devices as well. You can try it by setting currentdisplayable to null and keep some threads runing in background on these devices. Or press the Menu key and start another app, pushing the old runing app to background.

    2. Can we run the application on startup? --- Yes, you can do by Jad Attribute - Midlet-auto-start: yes, on various platforms like on Nokia it becomes: Nokia-Midlet-Auto-Start: On, on SE devices JP7onwards you can try PushRegistry with ://autostart: etc.

    thanks,
    ~Amitabh
    I couldn't make the midlet-auto-start nor the nokia-midlet-auto-start JAD attributes work in a Nokia 5230.

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

    Re: run J2ME application in the background on startup

    Quote Originally Posted by tuxette View Post
    I couldn't make the midlet-auto-start nor the nokia-midlet-auto-start JAD attributes work in a Nokia 5230.
    Jad attribute Nokia-MIDlet-auto-start Works only on the S40 devices with the Series 40 3rd Edition FP 2 onward. However you need to get the MIDlet signed from the Manufacturer / operator domain.


    Possible values:

    yes
    no
    once
    Example: Nokia-MIDlet-auto-start: yes
    The device you are referring to is of the S60.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  12. #12
    Registered User
    Join Date
    Oct 2010
    Posts
    44

    Re: run J2ME application in the background on startup

    So there's absolutely no way to make a midlet autostart in a S60...?

  13. #13
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: run J2ME application in the background on startup

    Hi, I am developed one j2me application. I am Using Nokia n95 mobile.
    I want run the application in background.
    I See your answer and try it.
    But, it is not worked .
    Any other solution is available? PlZ help me...

  14. #14
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: run J2ME application in the background on startup

    Quote Originally Posted by DileepKumar View Post
    Hi, I am developed one j2me application. I am Using Nokia n95 mobile.
    I want run the application in background.
    I See your answer and try it.
    But, it is not worked .
    Any other solution is available? PlZ help me...
    It is not feature of J2ME, but it depends on platform in which MIDlet runs,
    I have answered here : http://www.developer.nokia.com/Commu...-in-Background

    regards,
    rahul

  15. #15
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: run J2ME application in the background on startup

    Midlet Version 1.0.0 support for Nokia-Midlet-auto-start:yes ?

Similar Threads

  1. Agent appplication with should run in background
    By alonish in forum Mobile Java General
    Replies: 8
    Last Post: 2007-01-08, 14:50
  2. Replies: 4
    Last Post: 2005-09-01, 13:47
  3. Moving application in background and foreground
    By lilesh in forum Symbian User Interface
    Replies: 5
    Last Post: 2005-06-16, 10:00
  4. don't run application on my 7650
    By aritzita in forum Mobile Java General
    Replies: 4
    Last Post: 2003-11-04, 11:44
  5. Replies: 1
    Last Post: 2003-10-17, 08:45

Posting Permissions

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