In fact, there is a simple notification one can register for to indicate an incoming phone call, without having to mess around with the more complicated phonelib events: pmNotifyHighPriorityUITask
This works for the Treo 650 and 700p, but alas, not for the 600. Here's a hint: - listen for pmNotifyHighPriorityUITask notification and set a ftr when received, perhaps the value set will be the current system time - when you get AppStopEvent, check your ftr: if it exists and the time value stored in it is less than 15 seconds ago, conclude it is an incoming phone call and block AppStopEvent, else exit app Of course this "block switch to phone app on incoming call" behaviour should be a user-selectable option in the preferences of your application, because certainly not all of the users are going to want that non-standard phone behaviour. I'll leave it to you to connect the rest of the dots... -- David Thacker http://www.SatelliteForms.net The Premier RAD Tool for PalmOS & PocketPC "Jeff Loucks" <> wrote in message news:[EMAIL PROTECTED] > Thanks David for cutting through my clutter of events and such and > given the actual simple answer to Joker's question - namely, if you > don't want ot exit your app, then ignore the AppStopEvent. > > But, as Joker says, if he ever wants to exit his app he'll need to > know which AppStopEvent to ignore. So, returns the clutter of events > and such. > > I suspect you could watch the various phone events and notifications. > If you see one that implies a switch to the phone app, you could for > one time ignore the imminent AppStopEvent. > > Or, ignore all AppStopEvents until an app exit button is pressed, but > who wants an exit button in a Palm app :) > > > On 10/3/06, Joker <> wrote: >> > All you need to do to keep your own app running >> > during a phone call is to block the AppStopEvent that is posted >> > when the phone call is answered >> >> Seems easy, but how can the app distinguish when AppStopEvent is >> generated by a phone call and not by the user that actually wanted to >> open another program? In the latter case, processing AppStopEvent is a >> must and there is some clean-up my app has to do before exiting. >> -- >> For information on using the PalmSource Developer Forums, or to >> unsubscribe, please see http://www.palmos.com/dev/support/forums/ >> > > > -- > yisdersomenimororsisasisdenderisorsis? > Jeff Loucks > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
