Hi All,
I need to pick a file ( a gpx track ) and copy to the standard app directory.
No problem if the file is already on the device ( in download, for example ) getting an URI of type content: using activity starter, translating to file:/// and use TaifunFile extension. I need too that the source should be a Google Drive. I can get the URI (content) but no idea about how to download the file to ASD.
Somebody can help?
Thanks!
Hi, the final scope is to let the user select a gpx file, to be copied to ASD and then uploaded to a web page. The gpx file should be in download but also in a Google Drive area. The file picker returns me a URI ( content: ) both for the file in Google Drive, but I don't know how to download this file, better if directly in ASD.
Relevant extension are TaifunFTP ( transfer file to server ) , StorageAccess ( permission issue) and TaifunFile.
The scope is to use GPX files from different origins (specific apps) and to trasfer to an external site for further elaborations and storage.
Workflow is: user select a file from mobile storage using activity starter and standard file manager. Google Drive is required for some source sharing method.
A URI was obtained. URI is converted in file: format .
File is copied to ASD, renamed following a specific convention using TaifunFile
Then file uploaded to server via TaifunFTP for format conversion and some data extraction.
Results visuakized as graph built on the server using WebViewer.
Issue is that all this works fime with files on the mobile device storage only. I didin't a way to use or maniulate URI coming from filemanager when file found is in GoogleDrive. The converted URI points an not existing file, use of the URI in conent: format ( I try using SAF extension ) fail in "not found".
With a quick test, using SAF, I can get the contenturi of a file on Google Drive, but don't seem to be able to do anything with it. The SAF extension may not be able to cope with this ? (@vknow360) or I am missing something...
I would recommend that any such files on Google Drive should be "Anyone with the link".
Since the app has full access to the cache (internal storage), you can copy the (non-media) file to any allowed location (Shared Folders, ASD, ...) even without SAF but with any of the file extensions.