receiving an sms whenever it comes

excuse me I need the ability to receive an sms whenever it comes but I think it is possible only if I can :

1. have a program which can run at start up and be invisible + the ability of running a midlet from an other one.

2. tell to the system to run my program when a new sms receives.

could you please help me.

[337 byte] By [etaa] at [2007-11-27 9:38:28]
# 1
it is important for me please answer.is it possible to have two midlets running on a device?is it possible to have medlet started whenever a phone starts up.
etaa at 2007-7-12 23:11:53 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

ok

I found something. PushRegistry.

as I realized, in a midlet descriptor we can set midlet to be run when a specific connection occurs and the WMADemo has this abillity.

but when I send a message to the phone number of the emulated device. its midlet does'nt start.

what is the problem?

etaa at 2007-7-12 23:11:53 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

> ok

> I found something. PushRegistry.

> as I realized, in a midlet descriptor we can set

> midlet to be run when a specific connection occurs

> and the WMADemo has this abillity.

> but when I send a message to the phone number of the

> emulated device. its midlet does'nt start.

> what is the problem?

J2ME programms can recieve messages ONLY from sms port. You must send messages to phone(emulator) to port, that WMADemo hearing.

For example: sms://+5550000:5000

mpx220a at 2007-7-12 23:11:53 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
thanks butI did it.I sent it to the port.I think the port that wmademo was listening is 50000.but I will go to see and try agian.so you say that the midlet will automaticaly start even in wtk's emulator. true?
etaa at 2007-7-12 23:11:53 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
PushRegistry has never worked with the SJWTK with me but on a real device it works fine, so perhaps try on a real mobile.
psykrodelika at 2007-7-12 23:11:53 > top of Java-index,Java Mobility Forums,Java ME Technologies...