In my application, I use web browsing to go to the site, automatically filling out the web form using javascript, and then submit to get a link to the CSV export file. The link looks like this: XYZ.com/TEST/index/getexport?id=130.
I want to download the file that this URL points to, then read it in the local database, but I had problems downloading the linked file.
If I just try to open the URL in webview, I get an error message from a webpage stating that there is no such file.
If I use Download Manager to download it myself, the source code is downloaded as an html file, not the associated .csv file.
I can open the url with the intent ACTION_VIEW, and the browser (chrome) downloads the correct file, but this way I do not have a notification that the download is complete.
Any ideas on how to download my .CSV file?
android webview
n00bean
source share