I have an application that receives URLs from a server using Firebase. When the URL is received, the file in this URL is automatically saved in local storage (they are gpx files).
But after that, I want my application to prompt the user to open the downloaded file using any navigation application that they installed on their phone. Something similar to when you go to the file manager yourself, click on the file, and the system will show you all the applications that can open this file and allow you to select (or open it directly with the default settings, if you have it there is).
I couldn’t find anything, and searches containing "android studio" and "open file" mainly show tutorials on how to manage the source files, so they don’t help at all.
source
share