BREW Forums  
Go Back   BREW Forums > BREW Technical Discussions > BREW 1.0
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-25-2002, 11:16 AM
mroskothen mroskothen is offline
Registered User
 
Join Date: Mar 2002
Posts: 24
Rep Power: 0
mroskothen is off the scale
Start and Suspend

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).
  #2  
Old 04-25-2002, 05:02 PM
mroskothen mroskothen is offline
Registered User
 
Join Date: Mar 2002
Posts: 24
Rep Power: 0
mroskothen is off the scale
SMS message causes NET_PPP_CLOSED

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.
  #3  
Old 05-02-2002, 06:11 PM
devi's Avatar
devi devi is offline
Registered User
 
Join Date: Mar 2002
Posts: 56
Rep Power: 0
devi is on a distinguished road
SMS message causes NET_PPP_CLOSED

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/develo...port/kb/51.html

Devi Krishnan
BREW Support
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump




All times are GMT -7. The time now is 10:42 PM.

BREW 3.x Technical Documentation BREW Developer - Application Development Home BREW Customer Support Portal
BREW Training BREW Developer Labs



REGISTER | USER CP | CALENDAR | MEMBERS | FAQ | SEARCH | FORUMS HOME
QUALCOMM HOME | CONTACT US | SEARCH | SITE MAP | LEGAL | PRIVACY



Powered by: vBulletin Version 3.0.13
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.