BREW Forums  
Go Back   BREW Forums > BREW Technical Discussions > BREW 1.1
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 04-02-2002, 07:07 PM
luks0r luks0r is offline
Registered User
 
Join Date: Apr 2002
Posts: 4
Rep Power: 0
luks0r is off the scale
Question Notification of incoming calls

Hi, I'm trying to figure out how to register my applet for notification of incoming calls. I'm using the emulator to monitor the behavior, so I'm hoping it's the same between the emulator and the phone.

When an incoming call is received, the phone asks if the user wants to receive the call. If I select Enter (M), it will accept the call, call EVT_APP_SUSPEND to my applet, etc.

What I need to be able to do is have the applet know that an incoming call request is being made, so that I don't draw *over* the screen until the call request is handled. I figured it had to do with ISHELL_RegisterNotify() or something with the ITAPI interface but I couldn't get it to work properly in either case. When an incoming comes in, HandleEvent() isn't called with any parameters.

If anyone has solved this issue, or if I'm missing something elementary, please let me know.

Thanks!
-Steve
Reply With Quote
  #2  
Old 04-03-2002, 03:13 PM
Mahesh
Guest
 
Posts: n/a
When a call comes in, the application will get an EVT_APP_SUSPEND or EVT_APP_STOP. The following knowledgebase article illustrates the steps that are needed to correctly deal with with in coming calls:

http://www.qualcomm.com/brew/develo...port/kb/51.html

--Mahesh
BREW Support
Reply With Quote
  #3  
Old 04-04-2002, 05:31 PM
luks0r luks0r is offline
Registered User
 
Join Date: Apr 2002
Posts: 4
Rep Power: 0
luks0r is off the scale
>When a call comes in, the application will get an
>EVT_APP_SUSPEND or EVT_APP_STOP.

Actually, this is not completely accurate, at least from my experience with the emulator. When a call comes in, the phone pops up a message asking if I want to receive the call. If I respond yes, THEN the application gets the EVT_APP_SUSPEND or EVT_APP_STOP.

My problem is, the application I'm writing does a periodic redraw, which overlays the message asking if I want to receive the call.

I need to find out how to get notification that a call is coming in. (Not the notification (suspend/stop) that occurs when the call is answered.) This way I can tell my app to stop drawing, and the user can choose to answer the call.

Any and all help is appreciated.

Thanks,
-Steve
Reply With Quote
  #4  
Old 04-04-2002, 06:11 PM
luks0r luks0r is offline
Registered User
 
Join Date: Apr 2002
Posts: 4
Rep Power: 0
luks0r is off the scale
To see an example of the problem, run the RoadWarrior Application and select a freeway. Pick a freeway where the text selection animates upon selecting it. Then use the TAPI emulation to Start Call. You'll see the applet overwrite the Privacy / Incoming Call Screen.

Any and all help is appreciated.

Thanks,
-Steve
Reply With Quote
  #5  
Old 04-05-2002, 06:03 PM
Mahesh
Guest
 
Posts: n/a
Steve,

The 1.0 handsets get the EVT_APP_SUSPEND event before a dialog for accepting the call is displayed. This is correct behavior.

The emulator is not behaving currently in this case and we will be fixed in the next version. Appreciate your input.

--Mahesh
BREW Support
Reply With Quote
  #6  
Old 04-09-2002, 01:18 PM
luks0r luks0r is offline
Registered User
 
Join Date: Apr 2002
Posts: 4
Rep Power: 0
luks0r is off the scale
Emulator

Mahesh,

Got it. So it's the emulator that's the problem. Sounds good, I've made the changes. Thanks for all your help. =)

-Steve
Reply With Quote
  #7  
Old 05-03-2004, 05:17 PM
shonali45 shonali45 is offline
Registered User
 
Join Date: Nov 2003
Posts: 41
Rep Power: 0
shonali45 is off the scale
Post EVT_APP_SUSPEND received only when select Ignore/Answer

Hello Mahesh,

On Brew 2.0 device Motorola V710, I don't receive a EVT_APP_SUSPEND till I select :-

1) Answer for phone call
2) View for SMS

If I select one of the following I never get an EVT_APP_SUSPEND
1) Ignore for phone
2)Exit for SMS

The result of this is that even if I now "END" the game after having received a call/sms and ignored/exited it, the game does not stop.

If you dont select anything on the OEM messgage ignore/exit, then the game continues to run in the background.

Is there anything that can be done to workaround this problem. Does the OEM actually give you any message other than EVT_APP_SUSPEND that can be processed. My apps are currently in NSTL testing and am hoping they dont reject it on basis of this handset issue.
Reply With Quote
  #8  
Old 05-03-2004, 05:24 PM
max's Avatar
max max is offline
Administrator
 
Join Date: Jan 2004
Posts: 3,058
Rep Power: 10
max has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud of
This is a known behavior on the device - Motorola introduced it intentionally, though they are evaluating whether it will be changed.
__________________
Max
BREW Apps Engineering
Reply With Quote
  #9  
Old 07-15-2004, 11:51 AM
jeantsai jeantsai is offline
Registered User
 
Join Date: Mar 2002
Posts: 163
Rep Power: 8
jeantsai is off the scale
would NSTL fail our app on this issue?

Thanks!
Jean
Reply With Quote
  #10  
Old 07-15-2004, 12:03 PM
max's Avatar
max max is offline
Administrator
 
Join Date: Jan 2004
Posts: 3,058
Rep Power: 10
max has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud ofmax has much to be proud of
No...it was intended by the OEM.
__________________
Max
BREW Apps Engineering
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 09:51 AM.

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.