Search code examples
androidfile-uploaddropboxgoogle-drive-api

Use Dropbox/Google Drive or any alternative as a ftp server to store app data


My app generates a xml file on the users phone from a sqlite-db. Is there a possibility to send this file to a remote server so I can work with it? What is the best practice? Is there a possibility to use Dropbox or Google Drive for my purposes (use a public link from my account)?


Solution

  • A pattern that I use to send remotely a file is the following:

    • I send the file as a mail attachment to a "service" gmail account
    • a script process the inbox, and store the file in gdrive

    In this way, I don't have to set up a public ftp server.

    The same thing can be done using Evernote: you can send the attachment to an evernote mail address, linked to your account, and have it styled in a notebook. There isa public sdk, that allow you to process the notebook, and reverie the attachment.

    Ciao