Using processing and andoid phone to send data to a ftp server

Hi,
Previously i had written a processing script that ran on an old eeePC which essentially turned the eeePC into a data logger. Serial stream data was processed and logged to the hard-drive and periodically the data was uploaded to an ftp server using a cell stick modem. I would now like to do the same thing - run a similar script - on an android phone as an app that uses the phones internal modem. I have installed android mode into processing. It looks like reading and logging the serial stream (making use of an on-the-go cable) will work but i am unsure of how to accomplish the ftp upload using the phones internal modem. I have heard that this can be done but i need some insights/code examples to get me started.

Any help is much appreciated.

Cheers.

Anybody??? - pretty please with sugar on top.