Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello...

I have a bug in my application related to recieving SMS messages at a certain point. I know what the problem and how to fix it, but what I don't know is the specific message that's being passed to my application. (And I can't test it on my own for various reasons; otherwise I'd just throw a DBGPRINTF() for any unhandled event.)

Anyway, I assumed that any event that causes the application to suspend (incoming call, SMS message, etc) always sends a EVT_APP_SUSPEND event, but looking down the list of messages, this might not be the case.

Can anyone tell me if:

1) An SMS message does indeed send EVT_APP_MESSAGE instead of a EVT_APP_SUSPEND?

2) If it does send EVT_APP_MESSAGE, can I treat it the same as a EVT_APP_SUSPEND? (Will my application get sent a EVT_APP_RESUME when the SMS is done?)

If it matters, I'm developing on/for an LG VX4400.

Thanks in advance for any input.

-- Bob
One Man Band
http://www.onemanband.com

When non-BREW SMS message is received by your phone, and if your application is running, then BREW will send your application EVT_APP_SUSPEND event and subsequently EVT_APP_RESUME event will be sent.
If your phone receives BREW SMS message (based on teleservice id or class id) targeted to your application, then BREW will send EVT_APP_MESSAGE to your application. If your application is not running, BREW will wake up your app and send the message. At that point if you want to start your application, you can call ISHELL_StartApplet() function.
ruben

When non-BREW SMS message is received by your phone, and if your application is running, then BREW will send your application EVT_APP_SUSPEND event and subsequently EVT_APP_RESUME event will be sent.
If your phone receives BREW SMS message (based on teleservice id or class id) targeted to your application, then BREW will send EVT_APP_MESSAGE to your application. If your application is not running, BREW will wake up your app and send the message. At that point if you want to start your application, you can call ISHELL_StartApplet() function.
ruben

Sorry for bringing up an old thread but I am getting the exactly problem or have same confusion.
I know it's pasted all over the place that if you get a BREW specific sms EVT_APP_MESSAGE is generated. But in the emulator if I send a sms (NON-BREW) I still get an EVT_APP_MESSAGE and not the suspend/resume events.
My specific problem is -
When a sms is received while the app is in the main menu, the alert window appears blank or partially blank. If the user selects CLR there (CLR exits the app while in the main menu) the device power cycles.
I can't debug the problem cause I am out of network.
For what it's worth, this is happening only on LGVX4400 and not on _any_ other handset.
Regards

Sorry for bringing up an old thread but I am getting the exactly problem or have same confusion.
I know it's pasted all over the place that if you get a BREW specific sms EVT_APP_MESSAGE is generated. But in the emulator if I send a sms (NON-BREW) I still get an EVT_APP_MESSAGE and not the suspend/resume events.
My specific problem is -
When a sms is received while the app is in the main menu, the alert window appears blank or partially blank. If the user selects CLR there (CLR exits the app while in the main menu) the device power cycles.
I can't debug the problem cause I am out of network.
For what it's worth, this is happening only on LGVX4400 and not on _any_ other handset.
Regards

This is a really old thread, I know, but I'm having the same problem with the lg4400 getting the EVT_AVP_MESSAGE event rather than the EVT_AVP_SUSPEND event. My application is made to recieve any SMS messages.
To solve this problem, I simply suspend the app. Would I recieve a RESUME event when needed?
And another question: What is the purpose of returning a boolean in the OnEvent function? What does returning TRUE do? What does returning FALSE do?
Any help is appreciated. Thanks.

This is a really old thread, I know, but I'm having the same problem with the lg4400 getting the EVT_AVP_MESSAGE event rather than the EVT_AVP_SUSPEND event. My application is made to recieve any SMS messages.
To solve this problem, I simply suspend the app. Would I recieve a RESUME event when needed?
And another question: What is the purpose of returning a boolean in the OnEvent function? What does returning TRUE do? What does returning FALSE do?
Any help is appreciated. Thanks.