On May 10, 2006, at 1:02 AM, nitin baranwal wrote:


1) open dialog to user to select a (*.pdb) file from
the root directory of the storage card.
2) send this file to the root directory of the storage
card of another PDA. There should be a receiving
program on this end.
3) Transfer happen with bluetooth, TCP/IP, or IrDA --
which ever is available.



If all you really need is a .pdb transferred to another Palm, FileZ (which most peple have) and Resco Explorer can both send .pdbs from either memory or VFS. Any off the shelf Palm can receive it, but it will be stored in memory, not VFS, as you asked. (My own VFS Exchange can only send them from the VFS, as sending is an incidental function of VFS Exchange.)

You could probably save a whole heap of effort by making your application able to read its .pdb from memory or VFS, and not try to handle receiving it yourself. Your application could always move it to VFS if that's necessary for some reason.

You could write a program that would register to receive .pdbs via the Exchange Manager and store them in VFS. To avoid interfering too much with normal use, your program would need to register with the Exchage Manager when run, and unregister when exiting. (You'd want to register for "application/vnd.palm" and "application/x-pilot types" and ".pdb" extensions)

Or, you could check incoming files, and if they're not your .pdb, do a local exchange targeting Applications (assuming it's not too large; in this scenario you'd need room in dynamic memory for 3 times the size of the .pdb). In that case your program could stay registered and would not need to be running when the .pdb was sent.

For sending, you could refer your clients to either FileZ or VFS Exchange, which are both free. If you just had to have a one-purpose sending program, you could cut down and modify VFS Exchange, but note that it's under the GPL, so your one-purpose program would have to be GPL'd as well.

http://www.nosleep.net/
http://www.resco.net/palm/explorer/default.asp
http://csml.som.ohio-state.edu/~reeder/VFSExchange/

--
P. Douglas Reeder
[EMAIL PROTECTED]


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

Reply via email to