John- Beaming to another Palm is done via the Exchange Manager -- much like sending it to the address book application. You need to encode it to the vCard standard prior to beaming. For maximum flexibility, I would give it the vCard MIME type and NOT send it directly to address book. This would give you interoperability with users who have address book replacements on their devices.
This process, by the way, has been made considerably easier on OS 4.0 by the Personal Data Interchange libraries. These contain, essentially, the guts of the transmit and receive code from the built-in applications in former OS versions. I would look at the source code for the 4.0 address book (in the 4.0 sdk) to see how address book uses the PDI libraries to send vCard data through the exchange manager (though to really understand this code, you also need to understand how address book represents its data internally). Note also that this address book code handles both transmit and receive (you probably only want Xmit) and shares some non-trivial code between those two (somewhat disparate) functionalities. -bob -----Original Message----- From: John Crouch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 9:35 AM To: Palm Developer Forum Subject: Re: Address Book Info Thanks for the reply Bob. May I ask one more question? If I store the information in my own pdb, how might I go about giving my program the ability to beam the data to another Palm device and have the receiving Palm device accept the data and recognize it as Address Book data? I think sending the entire file would be the main objective, but optionally maybe support for beaming just one record at a time as well. I'm just trying to plan my strategy before going any further on the project. Thanks again! "Robert McKenzie" <[EMAIL PROTECTED]> wrote in message news:63759@palm-dev-forum... > > You can certainly store contact information that your application collects > in address book. There are (currently) two methods of doing this: > accessing AddressDB directly, and using the exchange manager to send vCard > data to the address book application (use the 'addr' creator id as the > target of the exchange). The former method requires that you understand the > data format of AddressDB (which has not changed from Palm OS 1.0 through > 4.0). The latter requires that you translate your data into vCard format > prior to sending it to address book (but has the virtue of being guaranteed > to work for Palm OSs beyond 4.0, but won't work for Palm OS 1.0 or 2.0). > Additionally I do not know of an easy way to identify and/or extract your > data from address book using the exchange library. > > Bear in mind that AddressDB's sort order may change, hence if you wish to > refer to the record in the future you should determine and use its unique > id, not its record number. > > -bob mckenzie -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
