I wonder if it's possible to launch a web browser from my app, and when the user clicks a URL which follows a specific pattern, it returns that URL.
Example:
http://domain.top-level-domain/download-folder/file-to-download.its-extension
I wan't to do this because I'm making an app with an integrated downloading system, and I want the user to be able to select the file to download in an easy way (by just clicking the URL). The process is like this:
- You log in to your personal page on a website.
- You browse your personal files.
- You select a file which you want to download.
- The app will automatically download and store it for you when you click the URL to the file.
Step 4 is the step I'm currently working on, and cannot really solve.
With an external browser, the process would have looked something like this:
- You log in to your personal page on a website.
- You browse your personal files.
- You select a file which you want to download.
- You copy the URL.
- You paste it in the app.
The process might not look more complicated, but I want to do it anyways.
EDIT: I found that the download link on that page was a line of javascript which sent the file to the user. Is it possible to execute that line of code on the page and retrieve the file anyway?