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


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-03-2009, 11:57 AM
jhaines00 jhaines00 is offline
Registered User
 
Join Date: Dec 2008
Posts: 1
Rep Power: 0
jhaines00 is on a distinguished road
Will EVT_APP_TERMINATE be posted when handset is powered down?

There had been some discussion on this topic in the past, but that was a couple of years ago and I didn't quite get my question answered, so I thought I'd post a new thread. What I'm looking for is an absolute statement by Qualcomm as to exactly which events are guaranteed to be posted to background applications when a handset is being powered down. Other threads indicated that EVT_APP_TERMINATE will be posted in every case. We coded our app accordingly, but are now finding that that event is not being posted on certain handsets (some Kyocera, INQ1 etc). Conversations with the OEMs make me think that posting EVT_APP_TERMINATE is optional. What I'd like to know is if that's true, then what events *must* be posted by the platform? Thanks and apologies if this thread is viewed as a duplicate.
Reply With Quote
  #2  
Old 11-04-2009, 12:57 AM
shivendra shivendra is offline
Registered User
 
Join Date: Apr 2008
Posts: 173
Rep Power: 2
shivendra is on a distinguished road
while powering down your background App should get events as below:

EVT_EXIT
EVT_APP_STOP
(if your App refuses to close on EVT_APP_STOP, then a forceful close event is sent)-
EVT_APP_TERMINATE

thanks.
Reply With Quote
  #3  
Old 11-04-2009, 12:59 AM
adhudase's Avatar
adhudase adhudase is offline
Super Moderator
 
Join Date: Jan 2008
Posts: 601
Rep Power: 10
adhudase is on a distinguished road
Send a message via Yahoo to adhudase
EVT_APP_TERMINATE forcefully terminates apps. Eg. when app is dead.
EVT_EXIT is sent to any loaded apps when BREW terminates.

Just for your reference:
Terminating a background application poses a greater challenge. As they are unable to receive key events directly, it is necessary for
the background application to either terminate itself upon successful completion of a designated task or listen to events generated by a
separate façade application. The application may be terminated through three methods:
1. Another application sends an event (with eCode >= EVT_USER) signaling the background application to terminate through
ISHELL_SendEvent() or ISHELL_PostEvent()
2. Background application terminates itself with ISHELL_CloseApplet() upon completion of a specific task. Note that
according to the API references, calling ISHELL_CloseApplet(pIShell, TRUE) from the active application will
close all other executing applications and return to the idle screen; however, when called by the active application this
operation will not affect other programs not in the application stack
3. Background application activates itself by calling ISHELL_StartApplet(), at which point it may receive user events
__________________
Atul
Reply With Quote
Reply


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 07:29 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.