PDA

View Full Version : Start and Suspend


mroskothen
04-25-2002, 10:16 AM
Is it possible for an application to receive a EVT_APP_SUSPEND during the processing of the EVT_APP_START?
I get some weird behavior when the application receives a suspend event right at the start of an application. The suspend event occurs (trigger by an SMS message) before the application even draws anything to the screen. The SMS message notification pops up and after 2 seconds my application starts to draw to screen without me pressing the acknowledge button. I thought that this can not happen unless BREW sends me a resume event (which it does not).

mroskothen
04-25-2002, 04:02 PM
As it turns out I get a 'NET_PPP_CLOSED' event when the application receives a SMS message during initialization. I stripped out everything but a ISOCKET_Connect() call with the callback function doing nothing.
Why does the phone close my network connection when it receives a SMS message during initialization? This does not happen when a datacall is already in progress.

devi
05-02-2002, 05:11 PM
The PPP connection is established after the socket is connected. If an app is suspended before the network connection is established (i.e., before the connect callback is invloked), then the network connection never existed, and that is why it does not exist after Suspend/Resume.

The data call annunciator is displayed as soon as the network connection is attempted, it does not indicate that a connection has already been established.

Apps are required to release their socket(s) on Suspend. Please refer to the following Knowledge Base article on Handling Suspend/Resume events: http://www.qualcomm.com/brew/developer/support/kb/51.html

Devi Krishnan
BREW Support