I am implementing an intent-filter to allow apps to send files to Syncthing via the standard Android “share” menu. For example, you can share an image in the Gallery and send it to Syncthing. I want to discuss the best framework for how to handle this. Here is my initial simple idea:
Add a new activity (ShareActivity). When a user shares a file or files, the ShareActivity gets a list of available repos and presents them to the user (similar to ReposFragment). When the user selects a repo, the disk location of the repo is determined and the shared files are copied to that folder.