I\'m trying to write an app that transfers data from one android device to another - but the devices are most likely located in different parts of the city, state, or country. (
True P2P isn't possible over 3G.
In your question, you mention that you currently use messages. I assume that you mean SMS.
What you could do instead is using mails and attachments with a custom mime type, say application/foobar-data
.
Within your app one could launch a SEND intent containing this attachment. The user would then have to choose his email program (or this could maybe be automatic), and send it to whoever he/she likes. You may also specify the To: address, and the subject in your intent. This would be rather straightforward.
The remote user would then receive this mail and tap on the attachment. Your app would be registered to handle the application/foobar-data
mimetype, using an intent filter in the manifest, and would then automatically launch and receive the data. The body of the mail generated earlier could also be pre-filled with informations about your app and how to install it, such as "You need FooBar to view the attachment. You can install it from...".
And so, in the end, your app could both send custom data and receive it, without relying on a dedicated server.