I don't understand what wma demo is doing.

hello

in wma demo there are the following codes

startApp(){

...

if(thread ==null){

thread =new Thread(this);

thread.start();

}

...

}

and

notifyIncommingMessage(MessageConnection mc){

if(thread ==null){

thread =new Thread(this);

thread.start();

}

}

when at start up the thread was asigned a new thread how can any new message be received in thread's run method?

the thread will only be set to null, when midlet is paused or exited.

[1026 byte] By [etaa] at [2007-11-27 10:02:54]
# 1

if it's the SMSReceive.java source:

it is An example MIDlet displays text from an SMS MessageConnection. it is not made to

wait for all the SMSConnection, it is used to receive an SMS, reading it (reply ?) and close it.

After closing, if you receive a new SMS, you will call notifyIncomingMessage(...) method

which reload the app

this MIDlet should be used with anothers MIDlet, not alone...

it depends on what you wanna do...

suparenoa at 2007-7-13 0:37:19 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
this is not bad.I want something alike.then the application will automaticlly start when new sms arrives.true?
etaa at 2007-7-13 0:37:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
not sure...check out the code and install it on a mobile
suparenoa at 2007-7-13 0:37:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
thanks anyway.
etaa at 2007-7-13 0:37:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...