> I want to send a vcard from my app to the Address app without requiring
the
> user to 'accept' it...can I turn off the user prompt programmatically?

In Palm OS 3.5, setting the localMode flag to true disables the "do you
wanna accept" dialog. The app is still sent the sysAppLaunchCmdExgAskUser
launch code, so it might put up its own dialog, typically by calling
ExgDoDialog, or pass back exgAskDialog to force a dialog to appear. The PIM
apps do the former, so you won't be able to override the "do you wanna
accept" dialog for them. You could temporarily patch ExgDoDialog to work
around this. Not pretty, but it should work.

In Palm OS 4.0, you have control over whether to prompt or not. Use the
Local exchange library and set up the socketRef field in your ExgSocketType
to point to an ExgLocalSocketInfoType. Set the noAsk flag in this struct.
This will skip the sysAppLaunchCmdExgAskUser launch as well as the default
"do you wanna accept" dialog, so this will work on the PIM apps. For
details, see the Companion, volume 2, Object Exchange, Sending and Receiving
Locally.
--
Danny @ PalmSource

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to