> I want to beam some selective files from one palm to
> another palm by clicking only once in the sending palm
> application.
> And also receiving palm prompts only once for
> receiving files,not more then once.

Are you really beaming files or some other objects? Are you beaming records
or entire databases?

I assume you're beaming to another device running your application.

You have two choices.

1. Combine all the data to be beamed into a single object. This is how
beaming categories works in Address, To Do, and Memo. If you're using a
standard interchange format, does it support multiple objects? The vCard and
vCalendar formats do. Multiple memos are combined into a single
Multipart-MIME object which Memo knows how to parse on the other end. If
you're using a proprietary format, you shouldn't have any trouble extending
it to support multiple objects.

2. Use the multi-object PUT feature added in Palm OS 4.0. This is how
overlays and other bundled databases are beamed along with an application.
If the receiving device is running Palm OS 4.0 or later, it'll receive all
the objects, one at a time. If the receiving device is running an older
version of Palm OS, only the first object will be received; all others will
be discarded. You'll need to add some intelligence to your app to prevent it
from prompting for each received object. Launcher does this, so it doesn't
ask you if you want to accept the overlay once you've decided to accept the
app.

To learn more about option 1, see the sample code for the apps mentioned. To
learn more about option 2, see the Object Exchange:Sending Data:Sending
Multiple Objects section in the second volume of the Companion for Palm OS
4.0. Avoiding multiple "do you wanna accept" dialogs is the tricky part. I
can describe how Launcher does this if you'd like - lemme know.
-
Danny @ Palm

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

Reply via email to