×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    6

    Autostart MIDlet (when the phone is power on)

    Hi everyone,

    I have question concerning autostarting MIDlet on Nokia 6230.
    Does anybody know how to set up or implement autostart MIDlet when the phone is powered on?

    I will be very grateful for any advise, information.
    Thanks in advance,

    Tomasz

  2. #2
    Registered User
    Join Date
    Nov 2003
    Posts
    14
    As 6230 is MIDP2.0 phone you should be able to use Push registry to initiate MIDlet with ie. network activity or some timers..

    However I have never used this, just know that it should be possible, don't know if Nokia has actually implemented this..

    check:
    http://developers.sun.com/techtopics...icles/pushreg/

  3. #3
    Regular Contributor
    Join Date
    Sep 2004
    Location
    Barcelona, Spain
    Posts
    68
    I've tested it with sms and works great. You only must indicate which number or port must autostar your application in the jad file.

  4. #4
    Registered User
    Join Date
    Apr 2005
    Posts
    3
    Intresting, could you explain more?

  5. #5
    Regular Contributor
    Join Date
    Sep 2004
    Location
    Barcelona, Spain
    Posts
    68
    There's an example (I don't remember if it is on the nokia examples or wtk2.1 examples) called push that shows how to do that. You can autostart an application with a sms using push registry. It's very easy. But you need to know from which port or phone number the sms will be sent.

    There's more information about this on networking forum.

    Regards,
    Nuria.

  6. #6

  7. #7
    Registered User
    Join Date
    May 2005
    Posts
    6
    Thanks guys for information, by the way does the Push registry support a Bluetooth RFCOMM connections?


    Thanks a lot,
    Tomasz

  8. #8
    Registered User
    Join Date
    Nov 2003
    Posts
    14
    I did some research on exactly the same matter (Bluetooth) last summer too, but if I recall correctly RFCOMM protocol wasn't supported back then.. But I am not sure about the current situation. This is, however, just a faint memory I have as we changed the structure of our app anyway and didn't need that feature..

  9. #9
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: Autostart MIDlet (when the phone is power on)

    hi all,

    currently i've got a midlet, listening to a port for incoming sms. but when the sms arrives on the phone, the application doesn't start automatically. onyl well I select the msg to have a look at it, the midlet comes up.

    is specified the port in a push-entry in the JAD file. Any ideas who to make the application start automatically?

    Cheers,

    Gerald

  10. #10
    Registered User
    Join Date
    May 2005
    Posts
    6

    Re: Autostart MIDlet (when the phone is power on)

    Hi,

    You have to sign your MIDlet with proper certificate(Thawte, Verisign). I didn't do that, If you are going to sign it let me know if you are able to start MIDlet without confirmation from user.

    Greeting,

    Tomasz

  11. #11
    Registered User
    Join Date
    Nov 2006
    Posts
    1

    Re: Autostart MIDlet (when the phone is power on)

    Hi everybody

    I feel that the real question is still unanswered. Is there any way to detect the "power on" event of the device and launch the Midlet, I want something like a windows service that starts up with the device startup and shuts down as the device is switched off.

  12. #12
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Autostart MIDlet (when the phone is power on)

    Generally, this (starting a midlet automatically during the power on) is not possible on Java ME. On some devices (like Symbian) this is possble through workarounds, but usually they are not simple workarounds.

    Hartti

  13. #13
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    128

    Re: Autostart MIDlet (when the phone is power on)

    anybody know how to Auto start Midlet
    Thanks & Regards
    Dip
    diptenduster@gmail.com

  14. #14
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    128

    Re: Autostart MIDlet (when the phone is power on)

    Hi

    Iam using PushRegistry.registerAlarm() to trigger the midlet.

    What i observed is

    i set the alarm for 10 mins and registered the midlet

    Then advanced the date by three days and turned the phone off.

    After powering ON the phone, the alarm did not set as i find the application not turning ON at the alarm time.

    Does it mean that the push registry is calendar date dependent?

    Appreciate your suggestions and advice to handle this
    Thanks & Regards
    Dip
    diptenduster@gmail.com

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

    Re: Autostart MIDlet (when the phone is power on)

    seems so...
    most probably it just sets an internal event within the calendar of the OS...
    I mean its not like the app starts a Timer set for 10 minutes and just waits for it to end :P that would be quite messy with lots of apps and or events...

Posting Permissions

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