in my application users can specify an FTP URI to upload a data file. Currently I handle the upload internally and that works well. But since only a tiny percentage of users need this feature, I plan to remove the ftp code, and call an external intent. I would like my users to be able to choose between potentially more than one app able to handle ftp uploads. Apps would need to react to ACTION_SEND with an ftp URI as data:
I experimented with the idea and found out that instead of ACTION_SEND, one would need to use ACTION_SENDTO, since intent-filters for ACTION_SEND do not interprete the data. The following code:
I know that AndFTP has defined a special Intent for uploading files using the ACTION_PICK action and a custom data type. My question is if you'd agree to implement an Intent that would be coherent with how Android handles sending content through email, i.e. with action ACTION_SENDTO, specifying the URI with setData, and the file to send with Intent.EXTRA_STREAM, thus alowing applications to define sending through ftp in a generic way, and allowing users to choose the ftp client.
Sorry, if I did not make this sufficiently clear in my original post.